* Makefile.in (autoconf-install): New target.
[deliverable/binutils-gdb.git] / gdb / testsuite / configure.in
CommitLineData
782445c7
FF
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.
bf3d2b75 6
6c890568 7AC_PREREQ(2.5)
782445c7 8AC_INIT(gdb.base)
bf3d2b75 9
782445c7
FF
10CC=${CC-cc}
11AC_SUBST(CC)
12AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
13AC_CANONICAL_SYSTEM
bf3d2b75 14
782445c7 15# Directories to use in all configurations.
e0effbae 16configdirs="gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads"
bf3d2b75 17
782445c7
FF
18# Directories to use for a configuration which uses stabs.
19stabsdirs="gdb.stabs"
e18faa8a 20
782445c7 21 # this section is for targets that use stabs
3ba76bd8 22# add stabs tests for appropriate targets
e18faa8a 23case "${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 36esac
e18faa8a 37
20ece597
FF
38# Begin stuff to support --enable-shared
39AC_ARG_ENABLE(shared,
40[ --enable-shared use shared libraries],
41[case "${enableval}" in
42 yes) shared=true ;;
43 no) shared=false ;;
44 *) shared=true ;;
45esac])dnl
46RPATH_ENVVAR=LD_LIBRARY_PATH
47# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
48if test "${shared}" = "true"; then
49 case "${host}" in
50 *-*-hpux*)
51 RPATH_ENVVAR=SHLIB_PATH
52 ;;
53 esac
54fi
55AC_SUBST(RPATH_ENVVAR)
56# End stuff to support --enable-shared
57
782445c7
FF
58# configure the subdirectories too
59AC_CONFIG_SUBDIRS($configdirs)
bf3d2b75 60
782445c7
FF
61dnl AC_SUBST(gdb_target_cpu)
62AC_OUTPUT(Makefile)
This page took 0.238937 seconds and 4 git commands to generate.