* configure.in: Rewrite.
* configure: Regenerated.
This commit is contained in:
parent
14abd0fbf0
commit
b39c905ef8
3 changed files with 234 additions and 248 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-12-28 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Rewrite.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2003-01-03 David Carlton <carlton@math.stanford.edu>
|
2003-01-03 David Carlton <carlton@math.stanford.edu>
|
||||||
|
|
||||||
* gdb.base/psymtab.exp: New file.
|
* gdb.base/psymtab.exp: New file.
|
||||||
|
|
278
gdb/testsuite/configure
vendored
278
gdb/testsuite/configure
vendored
|
@ -12,9 +12,11 @@ ac_help=
|
||||||
ac_default_prefix=/usr/local
|
ac_default_prefix=/usr/local
|
||||||
# Any additions from configure.in:
|
# Any additions from configure.in:
|
||||||
ac_help="$ac_help
|
ac_help="$ac_help
|
||||||
--enable-shared use shared libraries"
|
--with-stabs arrange to use stabs instead of host debug format"
|
||||||
ac_help="$ac_help
|
ac_help="$ac_help
|
||||||
--enable-gdbtk "
|
--enable-gtk enable gdbtk graphical user interface (GUI)"
|
||||||
|
ac_help="$ac_help
|
||||||
|
--enable-shared build shared libraries [deault=yes]"
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
# The variables have the same names as the options, with
|
# The variables have the same names as the options, with
|
||||||
|
@ -32,6 +34,7 @@ program_suffix=NONE
|
||||||
program_transform_name=s,x,x,
|
program_transform_name=s,x,x,
|
||||||
silent=
|
silent=
|
||||||
site=
|
site=
|
||||||
|
sitefile=
|
||||||
srcdir=
|
srcdir=
|
||||||
target=NONE
|
target=NONE
|
||||||
verbose=
|
verbose=
|
||||||
|
@ -146,6 +149,7 @@ Configuration:
|
||||||
--help print this message
|
--help print this message
|
||||||
--no-create do not create output files
|
--no-create do not create output files
|
||||||
--quiet, --silent do not print \`checking...' messages
|
--quiet, --silent do not print \`checking...' messages
|
||||||
|
--site-file=FILE use FILE as the site file
|
||||||
--version print the version of autoconf that created configure
|
--version print the version of autoconf that created configure
|
||||||
Directory and file names:
|
Directory and file names:
|
||||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||||
|
@ -316,6 +320,11 @@ EOF
|
||||||
-site=* | --site=* | --sit=*)
|
-site=* | --site=* | --sit=*)
|
||||||
site="$ac_optarg" ;;
|
site="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-site-file | --site-file | --site-fil | --site-fi | --site-f)
|
||||||
|
ac_prev=sitefile ;;
|
||||||
|
-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
|
||||||
|
sitefile="$ac_optarg" ;;
|
||||||
|
|
||||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||||
ac_prev=srcdir ;;
|
ac_prev=srcdir ;;
|
||||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
|
@ -481,6 +490,7 @@ fi
|
||||||
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
||||||
|
|
||||||
# Prefer explicitly selected file to automatically selected ones.
|
# Prefer explicitly selected file to automatically selected ones.
|
||||||
|
if test -z "$sitefile"; then
|
||||||
if test -z "$CONFIG_SITE"; then
|
if test -z "$CONFIG_SITE"; then
|
||||||
if test "x$prefix" != xNONE; then
|
if test "x$prefix" != xNONE; then
|
||||||
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
||||||
|
@ -488,6 +498,9 @@ if test -z "$CONFIG_SITE"; then
|
||||||
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
CONFIG_SITE="$sitefile"
|
||||||
|
fi
|
||||||
for ac_site_file in $CONFIG_SITE; do
|
for ac_site_file in $CONFIG_SITE; do
|
||||||
if test -r "$ac_site_file"; then
|
if test -r "$ac_site_file"; then
|
||||||
echo "loading site script $ac_site_file"
|
echo "loading site script $ac_site_file"
|
||||||
|
@ -526,10 +539,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CC=${CC-cc}
|
|
||||||
|
|
||||||
ac_aux_dir=
|
ac_aux_dir=
|
||||||
for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
||||||
if test -f $ac_dir/install-sh; then
|
if test -f $ac_dir/install-sh; then
|
||||||
ac_aux_dir=$ac_dir
|
ac_aux_dir=$ac_dir
|
||||||
ac_install_sh="$ac_aux_dir/install-sh -c"
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
||||||
|
@ -541,33 +552,30 @@ for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test -z "$ac_aux_dir"; then
|
if test -z "$ac_aux_dir"; then
|
||||||
{ echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
||||||
fi
|
fi
|
||||||
ac_config_guess=$ac_aux_dir/config.guess
|
ac_config_guess=$ac_aux_dir/config.guess
|
||||||
ac_config_sub=$ac_aux_dir/config.sub
|
ac_config_sub=$ac_aux_dir/config.sub
|
||||||
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
||||||
|
|
||||||
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
||||||
|
echo "configure:563: checking build system type" >&5
|
||||||
|
|
||||||
# Do some error checking and defaulting for the host and target type.
|
build_alias=$build
|
||||||
# The inputs are:
|
case "$build_alias" in
|
||||||
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
NONE)
|
||||||
#
|
case $nonopt in
|
||||||
# The rules are:
|
NONE) build_alias=$host_alias ;;
|
||||||
# 1. You are not allowed to specify --host, --target, and nonopt at the
|
*) build_alias=$nonopt ;;
|
||||||
# same time.
|
esac ;;
|
||||||
# 2. Host defaults to nonopt.
|
|
||||||
# 3. If nonopt is not specified, then host defaults to the current host,
|
|
||||||
# as determined by config.guess.
|
|
||||||
# 4. Target and build default to nonopt.
|
|
||||||
# 5. If nonopt is not specified, then target and build default to host.
|
|
||||||
|
|
||||||
# The aliases save the names the user supplied, while $host etc.
|
|
||||||
# will get canonicalized.
|
|
||||||
case $host---$target---$nonopt in
|
|
||||||
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|
||||||
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
||||||
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||||
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||||
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||||
|
echo "$ac_t""$build" 1>&6
|
||||||
|
|
||||||
|
|
||||||
# Make sure we can run config.sub.
|
# Make sure we can run config.sub.
|
||||||
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
||||||
|
@ -575,7 +583,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
||||||
echo "configure:579: checking host system type" >&5
|
echo "configure:587: checking host system type" >&5
|
||||||
|
|
||||||
host_alias=$host
|
host_alias=$host
|
||||||
case "$host_alias" in
|
case "$host_alias" in
|
||||||
|
@ -596,7 +604,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||||
echo "$ac_t""$host" 1>&6
|
echo "$ac_t""$host" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
||||||
echo "configure:600: checking target system type" >&5
|
echo "configure:608: checking target system type" >&5
|
||||||
|
|
||||||
target_alias=$target
|
target_alias=$target
|
||||||
case "$target_alias" in
|
case "$target_alias" in
|
||||||
|
@ -613,137 +621,114 @@ target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||||
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||||
echo "$ac_t""$target" 1>&6
|
echo "$ac_t""$target" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|
||||||
echo "configure:618: checking build system type" >&5
|
|
||||||
|
|
||||||
build_alias=$build
|
|
||||||
case "$build_alias" in
|
|
||||||
NONE)
|
|
||||||
case $nonopt in
|
|
||||||
NONE) build_alias=$host_alias ;;
|
|
||||||
*) build_alias=$nonopt ;;
|
|
||||||
esac ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|
||||||
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
||||||
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
||||||
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
||||||
echo "$ac_t""$build" 1>&6
|
|
||||||
|
|
||||||
test "$host_alias" != "$target_alias" &&
|
|
||||||
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
||||||
NONENONEs,x,x, &&
|
|
||||||
program_prefix=${target_alias}-
|
|
||||||
|
|
||||||
|
|
||||||
# Directories to use in all configurations.
|
# Directories to use in all configurations.
|
||||||
configdirs="gdb.arch \
|
subdirs="gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm"
|
||||||
gdb.asm \
|
|
||||||
gdb.base \
|
|
||||||
gdb.c++ \
|
|
||||||
gdb.java \
|
|
||||||
gdb.disasm \
|
|
||||||
gdb.mi \
|
|
||||||
gdb.threads \
|
|
||||||
gdb.trace"
|
|
||||||
|
|
||||||
|
subdirs="gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm gdb.mi gdb.threads gdb.trace"
|
||||||
|
|
||||||
# Directories to use for a configuration which uses stabs.
|
configdirs=
|
||||||
stabsdirs="gdb.stabs"
|
|
||||||
|
|
||||||
# this section is for targets that use stabs
|
# Add HP-specific tests when appropriate.
|
||||||
# add stabs tests for appropriate targets
|
case $target in
|
||||||
case "${target}" in
|
hppa*-*-hpux*)
|
||||||
powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
|
configdirs="$configdirs gdb.hp" ;;
|
||||||
rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*) if test "x${with_stabs}" = x"yes" ; then
|
|
||||||
configdirs="${configdirs} ${stabsdirs}"
|
|
||||||
fi ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Directory with HP specific tests. They will run only with HP's compilers.
|
# With stabs.
|
||||||
# These tests will not work on other platforms and compilers.
|
# Check whether --with-stabs or --without-stabs was given.
|
||||||
|
if test "${with_stabs+set}" = set; then
|
||||||
hpdir="gdb.hp"
|
withval="$with_stabs"
|
||||||
|
:
|
||||||
case "${target}" in
|
else
|
||||||
hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
|
# We enable stabs tests by default on selected targets.
|
||||||
esac
|
case $target in
|
||||||
|
powerpc-*-aix* \
|
||||||
|
| rs6000-*-aix* \
|
||||||
# Begin stuff to support --enable-shared
|
| *-*-bsd* \
|
||||||
# Check whether --enable-shared or --disable-shared was given.
|
| *-*-go32* \
|
||||||
if test "${enable_shared+set}" = set; then
|
| *-*-linux* \
|
||||||
enableval="$enable_shared"
|
| *-*-lynxos* \
|
||||||
case "${enableval}" in
|
| *-sun-* \
|
||||||
yes) shared=true ;;
|
| hppa*-*-* \
|
||||||
no) shared=false ;;
|
| *-*-elf* \
|
||||||
*) shared=true ;;
|
)
|
||||||
esac
|
with_stabs=yes ;;
|
||||||
fi
|
*)
|
||||||
RPATH_ENVVAR=LD_LIBRARY_PATH
|
with_stabs=no ;;
|
||||||
# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
|
|
||||||
if test "${shared}" = "true"; then
|
|
||||||
case "${host}" in
|
|
||||||
*-*-hpux*)
|
|
||||||
RPATH_ENVVAR=SHLIB_PATH
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# End stuff to support --enable-shared
|
|
||||||
# Start stuff to support --enable-gdbtk
|
# Add stabs tests when appropriate.
|
||||||
|
if test $with_stabs = yes; then
|
||||||
|
configdirs="$configdirs gdb.stabs"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable gdbtk.
|
||||||
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
||||||
if test "${enable_gdbtk+set}" = set; then
|
if test "${enable_gdbtk+set}" = set; then
|
||||||
enableval="$enable_gdbtk"
|
enableval="$enable_gdbtk"
|
||||||
case "${enableval}" in
|
:
|
||||||
yes)
|
|
||||||
case "$host" in
|
|
||||||
*go32*)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*windows*)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*)
|
|
||||||
enable_gdbtk=yes ;;
|
|
||||||
esac ;;
|
|
||||||
no)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*)
|
|
||||||
{ echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
|
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
|
if test -d $srcdir/gdb.gdbtk; then
|
||||||
|
enable_gdbtk=yes
|
||||||
|
else
|
||||||
|
enable_gdbtk=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Default is on for everything but go32 and windows
|
# We unconditionally disable gdbtk tests on selected platforms.
|
||||||
case "$host" in
|
case $host_os in
|
||||||
*go32* | *windows*)
|
go32* | windows*)
|
||||||
;;
|
enable_gdbtk=no ;;
|
||||||
*)
|
|
||||||
enable_gdbtk=yes ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Add gdbtk tests when appropriate.
|
||||||
|
if test $enable_gdbtk = yes; then
|
||||||
|
configdirs="$configdirs gdb.gdbtk"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable shared libraries.
|
||||||
|
# Check whether --enable-shared or --disable-shared was given.
|
||||||
|
if test "${enable_shared+set}" = set; then
|
||||||
|
enableval="$enable_shared"
|
||||||
|
:
|
||||||
|
else
|
||||||
|
enable_shared=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "${enable_gdbtk}" = "yes"; then
|
# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
|
||||||
configdirs="${configdirs} gdb.gdbtk"
|
# such that we can find the shared libraries in the build tree.
|
||||||
|
if test $enable_shared = no; then
|
||||||
|
# The variable `RPATH_ENVVAR' itself is not likely to be used on any
|
||||||
|
# platform.
|
||||||
|
RPATH_ENVVAR=RPATH_ENVVAR
|
||||||
|
else
|
||||||
|
# The variable `LD_LIBRARY_PATH' is used on most platforms.
|
||||||
|
RPATH_ENVVAR=LD_LIBRARY_PATH
|
||||||
|
# The following exceptions are taken from Libtool 1.4.3.
|
||||||
|
case $host_os in
|
||||||
|
aix*)
|
||||||
|
if test $host_cpu != ia64; then
|
||||||
|
RPATH_ENVVAR=LIBPATH
|
||||||
|
fi ;;
|
||||||
|
darwin* | rhapsody*)
|
||||||
|
RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
|
||||||
|
hpux*)
|
||||||
|
RPATH_ENVVAR=SHLIB_PATH ;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
# End stuff to support --enable-shared
|
|
||||||
|
|
||||||
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
||||||
echo "configure:742: checking for Cygwin environment" >&5
|
echo "configure:727: checking for Cygwin environment" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 747 "configure"
|
#line 732 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -754,7 +739,7 @@ int main() {
|
||||||
return __CYGWIN__;
|
return __CYGWIN__;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ac_cv_cygwin=yes
|
ac_cv_cygwin=yes
|
||||||
else
|
else
|
||||||
|
@ -771,19 +756,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
|
||||||
CYGWIN=
|
CYGWIN=
|
||||||
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
||||||
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
||||||
echo "configure:775: checking for mingw32 environment" >&5
|
echo "configure:760: checking for mingw32 environment" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 780 "configure"
|
#line 765 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
return __MINGW32__;
|
return __MINGW32__;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
ac_cv_mingw32=yes
|
ac_cv_mingw32=yes
|
||||||
else
|
else
|
||||||
|
@ -802,7 +787,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes
|
||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
||||||
echo "configure:806: checking for executable suffix" >&5
|
echo "configure:791: checking for executable suffix" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -812,10 +797,10 @@ else
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
echo 'int main () { return 0; }' > conftest.$ac_ext
|
echo 'int main () { return 0; }' > conftest.$ac_ext
|
||||||
ac_cv_exeext=
|
ac_cv_exeext=
|
||||||
if { (eval echo configure:816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
for file in conftest.*; do
|
for file in conftest.*; do
|
||||||
case $file in
|
case $file in
|
||||||
*.c | *.o | *.obj) ;;
|
*.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
|
||||||
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -833,9 +818,7 @@ echo "$ac_t""${ac_cv_exeext}" 1>&6
|
||||||
ac_exeext=$EXEEXT
|
ac_exeext=$EXEEXT
|
||||||
|
|
||||||
|
|
||||||
# configure the subdirectories too
|
subdirs="gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm gdb.mi gdb.threads gdb.trace $configdirs"
|
||||||
subdirs="$configdirs"
|
|
||||||
|
|
||||||
|
|
||||||
trap '' 1 2 15
|
trap '' 1 2 15
|
||||||
cat > confcache <<\EOF
|
cat > confcache <<\EOF
|
||||||
|
@ -981,7 +964,11 @@ s%@includedir@%$includedir%g
|
||||||
s%@oldincludedir@%$oldincludedir%g
|
s%@oldincludedir@%$oldincludedir%g
|
||||||
s%@infodir@%$infodir%g
|
s%@infodir@%$infodir%g
|
||||||
s%@mandir@%$mandir%g
|
s%@mandir@%$mandir%g
|
||||||
s%@CC@%$CC%g
|
s%@build@%$build%g
|
||||||
|
s%@build_alias@%$build_alias%g
|
||||||
|
s%@build_cpu@%$build_cpu%g
|
||||||
|
s%@build_vendor@%$build_vendor%g
|
||||||
|
s%@build_os@%$build_os%g
|
||||||
s%@host@%$host%g
|
s%@host@%$host%g
|
||||||
s%@host_alias@%$host_alias%g
|
s%@host_alias@%$host_alias%g
|
||||||
s%@host_cpu@%$host_cpu%g
|
s%@host_cpu@%$host_cpu%g
|
||||||
|
@ -992,14 +979,9 @@ s%@target_alias@%$target_alias%g
|
||||||
s%@target_cpu@%$target_cpu%g
|
s%@target_cpu@%$target_cpu%g
|
||||||
s%@target_vendor@%$target_vendor%g
|
s%@target_vendor@%$target_vendor%g
|
||||||
s%@target_os@%$target_os%g
|
s%@target_os@%$target_os%g
|
||||||
s%@build@%$build%g
|
s%@subdirs@%$subdirs%g
|
||||||
s%@build_alias@%$build_alias%g
|
|
||||||
s%@build_cpu@%$build_cpu%g
|
|
||||||
s%@build_vendor@%$build_vendor%g
|
|
||||||
s%@build_os@%$build_os%g
|
|
||||||
s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
|
s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
|
||||||
s%@EXEEXT@%$EXEEXT%g
|
s%@EXEEXT@%$EXEEXT%g
|
||||||
s%@subdirs@%$subdirs%g
|
|
||||||
|
|
||||||
CEOF
|
CEOF
|
||||||
EOF
|
EOF
|
||||||
|
@ -1132,7 +1114,7 @@ if test "$no_recursion" != yes; then
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
for ac_config_dir in $configdirs; do
|
for ac_config_dir in gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm gdb.mi gdb.threads gdb.trace $configdirs; do
|
||||||
|
|
||||||
# Do not complain, so a configure script can configure whichever
|
# Do not complain, so a configure script can configure whichever
|
||||||
# parts of a large source tree are present.
|
# parts of a large source tree are present.
|
||||||
|
|
|
@ -1,116 +1,115 @@
|
||||||
dnl Process this file file with autoconf to produce a configure script.
|
# -*- Autoconf -*-
|
||||||
dnl This file is a shell script fragment that supplies the information
|
# Process this file with autoconf to produce a configure script.
|
||||||
dnl necessary to tailor a template configure script into the configure
|
|
||||||
dnl script appropriate for this directory. For more information, check
|
|
||||||
dnl any existing configure script.
|
|
||||||
|
|
||||||
AC_PREREQ(2.12.1)
|
# Copyright (C) 2002
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
AC_INIT(gdb.base)
|
AC_INIT(gdb.base)
|
||||||
|
|
||||||
CC=${CC-cc}
|
AC_CANONICAL_BUILD
|
||||||
AC_SUBST(CC)
|
AC_CANONICAL_HOST
|
||||||
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
AC_CANONICAL_TARGET
|
||||||
AC_CANONICAL_SYSTEM
|
|
||||||
|
|
||||||
# Directories to use in all configurations.
|
# Directories to use in all configurations.
|
||||||
configdirs="gdb.arch \
|
AC_CONFIG_SUBDIRS(gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm)
|
||||||
gdb.asm \
|
AC_CONFIG_SUBDIRS(gdb.mi gdb.threads gdb.trace)
|
||||||
gdb.base \
|
configdirs=
|
||||||
gdb.c++ \
|
|
||||||
gdb.java \
|
|
||||||
gdb.disasm \
|
|
||||||
gdb.mi \
|
|
||||||
gdb.threads \
|
|
||||||
gdb.trace"
|
|
||||||
|
|
||||||
|
# Add HP-specific tests when appropriate.
|
||||||
# Directories to use for a configuration which uses stabs.
|
case $target in
|
||||||
stabsdirs="gdb.stabs"
|
hppa*-*-hpux*)
|
||||||
|
configdirs="$configdirs gdb.hp" ;;
|
||||||
# this section is for targets that use stabs
|
|
||||||
# add stabs tests for appropriate targets
|
|
||||||
case "${target}" in
|
|
||||||
powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
|
|
||||||
*) if test "x${with_stabs}" = x"yes" ; then
|
|
||||||
configdirs="${configdirs} ${stabsdirs}"
|
|
||||||
fi ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Directory with HP specific tests. They will run only with HP's compilers.
|
# With stabs.
|
||||||
# These tests will not work on other platforms and compilers.
|
AC_ARG_WITH(stabs,
|
||||||
|
[ --with-stabs arrange to use stabs instead of host debug format],,
|
||||||
|
[# We enable stabs tests by default on selected targets.
|
||||||
|
case $target in
|
||||||
|
powerpc-*-aix* \
|
||||||
|
| rs6000-*-aix* \
|
||||||
|
| *-*-bsd* \
|
||||||
|
| *-*-go32* \
|
||||||
|
| *-*-linux* \
|
||||||
|
| *-*-lynxos* \
|
||||||
|
| *-sun-* \
|
||||||
|
| hppa*-*-* \
|
||||||
|
| *-*-elf* \
|
||||||
|
)
|
||||||
|
with_stabs=yes ;;
|
||||||
|
*)
|
||||||
|
with_stabs=no ;;
|
||||||
|
esac])
|
||||||
|
|
||||||
hpdir="gdb.hp"
|
# Add stabs tests when appropriate.
|
||||||
|
if test $with_stabs = yes; then
|
||||||
|
configdirs="$configdirs gdb.stabs"
|
||||||
|
fi
|
||||||
|
|
||||||
case "${target}" in
|
# Enable gdbtk.
|
||||||
hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
|
AC_ARG_ENABLE(gdbtk,
|
||||||
|
[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
|
||||||
|
[if test -d $srcdir/gdb.gdbtk; then
|
||||||
|
enable_gdbtk=yes
|
||||||
|
else
|
||||||
|
enable_gdbtk=no
|
||||||
|
fi])
|
||||||
|
# We unconditionally disable gdbtk tests on selected platforms.
|
||||||
|
case $host_os in
|
||||||
|
go32* | windows*)
|
||||||
|
enable_gdbtk=no ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Add gdbtk tests when appropriate.
|
||||||
|
if test $enable_gdbtk = yes; then
|
||||||
|
configdirs="$configdirs gdb.gdbtk"
|
||||||
|
fi
|
||||||
|
|
||||||
# Begin stuff to support --enable-shared
|
# Enable shared libraries.
|
||||||
AC_ARG_ENABLE(shared,
|
AC_ARG_ENABLE(shared,
|
||||||
[ --enable-shared use shared libraries],
|
[ --enable-shared build shared libraries [deault=yes]],,
|
||||||
[case "${enableval}" in
|
enable_shared=yes)
|
||||||
yes) shared=true ;;
|
|
||||||
no) shared=false ;;
|
# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
|
||||||
*) shared=true ;;
|
# such that we can find the shared libraries in the build tree.
|
||||||
esac])dnl
|
if test $enable_shared = no; then
|
||||||
|
# The variable `RPATH_ENVVAR' itself is not likely to be used on any
|
||||||
|
# platform.
|
||||||
|
RPATH_ENVVAR=RPATH_ENVVAR
|
||||||
|
else
|
||||||
|
# The variable `LD_LIBRARY_PATH' is used on most platforms.
|
||||||
RPATH_ENVVAR=LD_LIBRARY_PATH
|
RPATH_ENVVAR=LD_LIBRARY_PATH
|
||||||
# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
|
# The following exceptions are taken from Libtool 1.4.3.
|
||||||
if test "${shared}" = "true"; then
|
case $host_os in
|
||||||
case "${host}" in
|
aix*)
|
||||||
*-*-hpux*)
|
if test $host_cpu != ia64; then
|
||||||
RPATH_ENVVAR=SHLIB_PATH
|
RPATH_ENVVAR=LIBPATH
|
||||||
;;
|
fi ;;
|
||||||
|
darwin* | rhapsody*)
|
||||||
|
RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
|
||||||
|
hpux*)
|
||||||
|
RPATH_ENVVAR=SHLIB_PATH ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_SUBST(RPATH_ENVVAR)
|
AC_SUBST(RPATH_ENVVAR)
|
||||||
# End stuff to support --enable-shared
|
|
||||||
# Start stuff to support --enable-gdbtk
|
|
||||||
AC_ARG_ENABLE(gdbtk,
|
|
||||||
[ --enable-gdbtk ],
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes)
|
|
||||||
case "$host" in
|
|
||||||
*go32*)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*windows*)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*)
|
|
||||||
enable_gdbtk=yes ;;
|
|
||||||
esac ;;
|
|
||||||
no)
|
|
||||||
enable_gdbtk=no ;;
|
|
||||||
*)
|
|
||||||
AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
|
|
||||||
esac],
|
|
||||||
[
|
|
||||||
# Default is on for everything but go32 and windows
|
|
||||||
case "$host" in
|
|
||||||
*go32* | *windows*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
enable_gdbtk=yes ;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
|
|
||||||
if test "${enable_gdbtk}" = "yes"; then
|
|
||||||
configdirs="${configdirs} gdb.gdbtk"
|
|
||||||
fi
|
|
||||||
# End stuff to support --enable-shared
|
|
||||||
|
|
||||||
dnl Check for exe extension set on certain hosts (e.g. Win32)
|
|
||||||
AC_EXEEXT
|
AC_EXEEXT
|
||||||
|
|
||||||
# configure the subdirectories too
|
|
||||||
AC_CONFIG_SUBDIRS($configdirs)
|
AC_CONFIG_SUBDIRS($configdirs)
|
||||||
|
|
||||||
dnl AC_SUBST(gdb_target_cpu)
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile)
|
||||||
|
|
Loading…
Reference in a new issue