X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fconfigure.ac;h=c8668e52a9a3376515873435e51a9aa03f779777;hb=17ea53c331199c560a28089d4c5757caa1517d33;hp=15369d39934d44a5ccec65346cc364bfe294ab56;hpb=be2a5f717b0a6fc45c2c457c1342face409ac3d9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac index 15369d3993..c8668e52a9 100644 --- a/gdb/testsuite/configure.ac +++ b/gdb/testsuite/configure.ac @@ -1,13 +1,13 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -# Copyright 2002, 2003, 2004, 2005 +# Copyright 2002, 2003, 2004, 2005, 2009, 2010 # 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. +# the Free Software Foundation; either version 3 of the License, 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 @@ -15,9 +15,7 @@ # 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. +# along with this program. If not, see . AC_PREREQ(2.59) AC_INIT(gdb.base) @@ -28,12 +26,40 @@ AC_CANONICAL_TARGET ACX_NONCANONICAL_TARGET +# Check for the 'make' the user wants to use. +AC_CHECK_PROGS(MAKE, make) +MAKE_IS_GNU= +case "`$MAKE --version 2>&1 | sed 1q`" in + *GNU*) + MAKE_IS_GNU=yes + ;; +esac +AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes) +AC_PROG_MAKE_SET + # Add HP-specific tests when appropriate. case $target in hppa*-*-hpux*) AC_CONFIG_SUBDIRS(gdb.hp) ;; esac +# Add Cell/B.E. specific tests when appropriate. +# We need support for both PowerPC and SPU targets configured in. +case $target in + powerpc*-*-linux*) + have_spu_target=no + for targ in `echo $enable_targets | sed 's/,/ /g'` + do + case "${targ}" in + spu*|all) have_spu_target=yes ;; + esac + done + if test x$have_spu_target = xyes; then + AC_CONFIG_SUBDIRS(gdb.cell) + fi + ;; +esac + # With stabs. AC_ARG_WITH(stabs, [ --with-stabs arrange to use stabs instead of host debug format],, @@ -48,6 +74,8 @@ case $target in | *-sun-* \ | hppa*-*-* \ | *-*-elf* \ + | *-*-cygwin* \ + | *-*-mingw* \ ) with_stabs=yes ;; *) @@ -114,6 +142,8 @@ AC_OUTPUT([Makefile \ gdb.ada/Makefile \ gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \ gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \ - gdb.fortran/Makefile gdb.server/Makefile \ - gdb.java/Makefile gdb.mi/Makefile \ - gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile]) + gdb.fortran/Makefile gdb.server/Makefile gdb.java/Makefile \ + gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \ + gdb.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile \ + gdb.python/Makefile gdb.reverse/Makefile \ + gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])