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