Commit | Line | Data |
---|---|---|
782445c7 FF |
1 | 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. | |
bf3d2b75 | 6 | |
f240337a | 7 | AC_PREREQ(2.12.1) |
782445c7 | 8 | AC_INIT(gdb.base) |
bf3d2b75 | 9 | |
782445c7 FF |
10 | CC=${CC-cc} |
11 | AC_SUBST(CC) | |
12 | AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) | |
13 | AC_CANONICAL_SYSTEM | |
bf3d2b75 | 14 | |
782445c7 | 15 | # Directories to use in all configurations. |
27001c66 | 16 | configdirs="gdb.asm gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads gdb.trace" |
bf3d2b75 | 17 | |
782445c7 FF |
18 | # Directories to use for a configuration which uses stabs. |
19 | stabsdirs="gdb.stabs" | |
e18faa8a | 20 | |
782445c7 | 21 | # this section is for targets that use stabs |
3ba76bd8 | 22 | # add stabs tests for appropriate targets |
e18faa8a | 23 | case "${target}" in |
a9424716 | 24 | powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;; |
782445c7 FF |
25 | rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;; |
26 | *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;; | |
27 | *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;; | |
28 | *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;; | |
29 | *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;; | |
30 | *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;; | |
31 | hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;; | |
dada5105 | 32 | *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;; |
782445c7 FF |
33 | *) if test "x${with_stabs}" = x"yes" ; then |
34 | configdirs="${configdirs} ${stabsdirs}" | |
35 | fi ;; | |
3ba76bd8 | 36 | esac |
e18faa8a | 37 | |
b3d32d4f DT |
38 | # Directory with HP specific tests. They will run only with HP's compilers. |
39 | # These tests will not work on other platforms and compilers. | |
40 | ||
41 | hpdir="gdb.hp" | |
42 | ||
43 | case "${target}" in | |
44 | hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;; | |
45 | esac | |
46 | ||
47 | ||
20ece597 FF |
48 | # Begin stuff to support --enable-shared |
49 | AC_ARG_ENABLE(shared, | |
50 | [ --enable-shared use shared libraries], | |
51 | [case "${enableval}" in | |
52 | yes) shared=true ;; | |
53 | no) shared=false ;; | |
54 | *) shared=true ;; | |
55 | esac])dnl | |
56 | RPATH_ENVVAR=LD_LIBRARY_PATH | |
57 | # If we have shared libraries, try to set RPATH_ENVVAR reasonably. | |
58 | if test "${shared}" = "true"; then | |
59 | case "${host}" in | |
60 | *-*-hpux*) | |
61 | RPATH_ENVVAR=SHLIB_PATH | |
62 | ;; | |
63 | esac | |
64 | fi | |
65 | AC_SUBST(RPATH_ENVVAR) | |
66 | # End stuff to support --enable-shared | |
ead08777 KS |
67 | # Start stuff to support --enable-gdbtk |
68 | # start-sanitize-gdbtk | |
f35ea218 KS |
69 | AC_ARG_ENABLE(gdbtk, |
70 | [ --enable-gdbtk ], | |
71 | [case "${enableval}" in | |
72 | yes) | |
73 | case "$host" in | |
74 | *go32*) | |
75 | enable_gdbtk=no ;; | |
76 | *windows*) | |
77 | enable_gdbtk=no ;; | |
78 | *) | |
79 | enable_gdbtk=yes ;; | |
80 | esac ;; | |
81 | no) | |
82 | enable_gdbtk=no ;; | |
83 | *) | |
84 | AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;; | |
85 | esac], | |
86 | [ | |
87 | # Default is on for everything but go32 and windows | |
88 | case "$host" in | |
89 | *go32* | *windows*) | |
90 | ;; | |
91 | *) | |
92 | enable_gdbtk=yes ;; | |
93 | esac | |
94 | ]) | |
95 | ||
96 | if test "${enable_gdbtk}" = "yes"; then | |
97 | configdirs="${configdirs} gdb.gdbtk" | |
98 | fi | |
ead08777 KS |
99 | # End stuff to support --enable-shared |
100 | # end-sanitize-gdbtk | |
20ece597 | 101 | |
782445c7 FF |
102 | # configure the subdirectories too |
103 | AC_CONFIG_SUBDIRS($configdirs) | |
bf3d2b75 | 104 | |
782445c7 FF |
105 | dnl AC_SUBST(gdb_target_cpu) |
106 | AC_OUTPUT(Makefile) |