OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [configure.in] - Blame information for rev 1181

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
dnl Process this file file with autoconf to produce a configure script.
2
dnl This file is a shell script fragment that supplies the information
3
dnl necessary to tailor a template configure script into the configure
4
dnl script appropriate for this directory.  For more information, check
5
dnl any existing configure script.
6
 
7
AC_PREREQ(2.12.1)
8
AC_INIT(gdb.base)
9
 
10
CC=${CC-cc}
11
AC_SUBST(CC)
12
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
13
AC_CANONICAL_SYSTEM
14
 
15
# Directories to use in all configurations.
16
configdirs="gdb.arch \
17
            gdb.asm \
18
            gdb.base \
19
            gdb.c++ \
20
            gdb.java \
21
            gdb.disasm \
22
            gdb.mi \
23
            gdb.threads \
24
            gdb.trace"
25
 
26
 
27
# Directories to use for a configuration which uses stabs.
28
stabsdirs="gdb.stabs"
29
 
30
        # this section is for targets that use stabs
31
# add stabs tests for appropriate targets
32
case "${target}" in
33
        powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
34
        rs6000-*-aix*)  configdirs="${configdirs} ${stabsdirs}" ;;
35
        *-*-bsd*)       configdirs="${configdirs} ${stabsdirs}" ;;
36
        *-*-go32*)      configdirs="${configdirs} ${stabsdirs}" ;;
37
        *-*-linux*)     configdirs="${configdirs} ${stabsdirs}" ;;
38
        *-*-lynxos*)    configdirs="${configdirs} ${stabsdirs}" ;;
39
        *-sun-*)        configdirs="${configdirs} ${stabsdirs}" ;;
40
        hppa*-*-*)      configdirs="${configdirs} ${stabsdirs}" ;;
41
        *-*-elf*)       configdirs="${configdirs} ${stabsdirs}" ;;
42
        *)              if test "x${with_stabs}" = x"yes" ; then
43
                          configdirs="${configdirs} ${stabsdirs}"
44
                        fi ;;
45
esac
46
 
47
# Directory with HP specific tests. They will run only with HP's compilers.
48
# These tests will not work on other platforms and compilers.
49
 
50
hpdir="gdb.hp"
51
 
52
case "${target}" in
53
 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
54
esac
55
 
56
 
57
# Begin stuff to support --enable-shared
58
AC_ARG_ENABLE(shared,
59
[  --enable-shared         use shared libraries],
60
[case "${enableval}" in
61
  yes) shared=true ;;
62
  no)  shared=false ;;
63
  *) shared=true ;;
64
esac])dnl
65
RPATH_ENVVAR=LD_LIBRARY_PATH
66
# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
67
if test "${shared}" = "true"; then
68
  case "${host}" in
69
  *-*-hpux*)
70
    RPATH_ENVVAR=SHLIB_PATH
71
    ;;
72
  esac
73
fi
74
AC_SUBST(RPATH_ENVVAR)
75
# End stuff to support --enable-shared
76
# Start stuff to support --enable-gdbtk
77
AC_ARG_ENABLE(gdbtk,
78
[  --enable-gdbtk ],
79
[case "${enableval}" in
80
    yes)
81
        case "$host" in
82
        *go32*)
83
            enable_gdbtk=no ;;
84
        *windows*)
85
            enable_gdbtk=no ;;
86
        *)
87
            enable_gdbtk=yes ;;
88
        esac ;;
89
    no)
90
        enable_gdbtk=no  ;;
91
    *)
92
        AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
93
esac],
94
[
95
# Default is on for everything but go32 and windows
96
case "$host" in
97
    *go32* | *windows*)
98
        ;;
99
    *)
100
        enable_gdbtk=yes ;;
101
    esac
102
])
103
 
104
if test "${enable_gdbtk}" = "yes"; then
105
    configdirs="${configdirs} gdb.gdbtk"
106
fi
107
# End stuff to support --enable-shared
108
 
109
dnl Check for exe extension set on certain hosts (e.g. Win32)
110
AC_EXEEXT
111
 
112
# configure the subdirectories too
113
AC_CONFIG_SUBDIRS($configdirs)
114
 
115
dnl AC_SUBST(gdb_target_cpu)
116
AC_OUTPUT(Makefile)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.