diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-07 21:53:26 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-07 21:53:26 +0000 |
commit | bec39cab007a204b75919cce2841888318e018b2 (patch) | |
tree | 6f9978407cf7bafcbb3ddd34c865ea885b7aff86 /gdb/testsuite/configure.ac | |
parent | e14ecb8f10c0666ccc696cd5c3420a8d5b492ac9 (diff) | |
download | binutils-bec39cab007a204b75919cce2841888318e018b2.zip binutils-bec39cab007a204b75919cce2841888318e018b2.tar.gz binutils-bec39cab007a204b75919cce2841888318e018b2.tar.bz2 |
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: doc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: gdbserver/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
* gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.stabs/configure: Re-generate.
* gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.hp/configure: Re-generate.
* gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.objdbg/configure: Re-generate.
* gdb.hp/gdb.defects/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.defects/configure: Re-generate.
* gdb.hp/gdb.compat/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.compat/configure: Re-generate.
* gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.base-hp/configure: Re-generate.
* gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.aCC/configure: Re-generate.
Diffstat (limited to 'gdb/testsuite/configure.ac')
-rw-r--r-- | gdb/testsuite/configure.ac | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac new file mode 100644 index 0000000..79d3802 --- /dev/null +++ b/gdb/testsuite/configure.ac @@ -0,0 +1,116 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +# Copyright 2002, 2003, 2004 +# 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.59) +AC_INIT(gdb.base) + +AC_CANONICAL_BUILD +AC_CANONICAL_HOST +AC_CANONICAL_TARGET + +# Add HP-specific tests when appropriate. +case $target in + hppa*-*-hpux*) + AC_CONFIG_SUBDIRS(gdb.hp) ;; +esac + +# With stabs. +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]) + +# Add stabs tests when appropriate. +if test $with_stabs = yes; then + AC_CONFIG_SUBDIRS(gdb.stabs) +fi + +# Enable gdbtk. +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 + +# Add gdbtk tests when appropriate. +if test $enable_gdbtk = yes; then + AC_CONFIG_SUBDIRS(gdb.gdbtk) +fi + +# Enable shared libraries. +AC_ARG_ENABLE(shared, +[ --enable-shared build shared libraries [deault=yes]],, + enable_shared=yes) + +# If we have shared libraries, try to set RPATH_ENVVAR reasonably, +# 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 +AC_SUBST(RPATH_ENVVAR) + +AC_CHECK_HEADERS(pthread.h) + +AC_EXEEXT + +AC_OUTPUT([Makefile \ + gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \ + gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \ + gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \ + gdb.fortran/Makefile gdb.java/Makefile gdb.mi/Makefile \ + gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile]) |