2003-01-04 00:43:24 +00:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2005-04-08 12:57:00 +00:00
|
|
|
# Copyright 2002, 2003, 2004, 2005
|
2003-01-04 00:43:24 +00:00
|
|
|
# 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.
|
|
|
|
|
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.
2005-01-07 21:53:26 +00:00
|
|
|
AC_PREREQ(2.59)
|
1999-04-16 01:35:26 +00:00
|
|
|
AC_INIT(gdb.base)
|
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# Add HP-specific tests when appropriate.
|
|
|
|
case $target in
|
|
|
|
hppa*-*-hpux*)
|
2005-01-07 15:17:01 +00:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.hp) ;;
|
1999-04-16 01:35:26 +00:00
|
|
|
esac
|
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# 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* \
|
2004-02-22 12:58:01 +00:00
|
|
|
| *-*-*bsd* \
|
2003-01-04 00:43:24 +00:00
|
|
|
| *-*-go32* \
|
|
|
|
| *-*-linux* \
|
|
|
|
| *-*-lynxos* \
|
|
|
|
| *-sun-* \
|
|
|
|
| hppa*-*-* \
|
|
|
|
| *-*-elf* \
|
|
|
|
)
|
|
|
|
with_stabs=yes ;;
|
|
|
|
*)
|
|
|
|
with_stabs=no ;;
|
|
|
|
esac])
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# Add stabs tests when appropriate.
|
|
|
|
if test $with_stabs = yes; then
|
2005-01-07 15:17:01 +00:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.stabs)
|
2003-01-04 00:43:24 +00:00
|
|
|
fi
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# 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 ;;
|
1999-04-16 01:35:26 +00:00
|
|
|
esac
|
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# Add gdbtk tests when appropriate.
|
|
|
|
if test $enable_gdbtk = yes; then
|
2005-01-07 15:17:01 +00:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.gdbtk)
|
2003-01-04 00:43:24 +00:00
|
|
|
fi
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# Enable shared libraries.
|
1999-04-16 01:35:26 +00:00
|
|
|
AC_ARG_ENABLE(shared,
|
2003-01-04 00:43:24 +00:00
|
|
|
[ --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 ;;
|
1999-04-16 01:35:26 +00:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(RPATH_ENVVAR)
|
2000-02-07 00:19:45 +00:00
|
|
|
|
* configure.in: Call AC_CONFIG_HEADER. Don't call
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 15:37:40 +00:00
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
|
|
|
|
2000-11-17 16:37:48 +00:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2004-07-20 23:11:21 +00:00
|
|
|
AC_OUTPUT([Makefile \
|
2005-02-03 03:58:53 +00:00
|
|
|
gdb.ada/Makefile \
|
2004-04-01 17:48:56 +00:00
|
|
|
gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
|
2004-10-12 14:41:42 +00:00
|
|
|
gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
|
2005-04-11 14:13:14 +00:00
|
|
|
gdb.fortran/Makefile gdb.server/Makefile \
|
2005-04-08 12:57:00 +00:00
|
|
|
gdb.java/Makefile gdb.mi/Makefile \
|
2003-05-01 01:09:51 +00:00
|
|
|
gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile])
|