gdb
[deliverable/binutils-gdb.git] / gdb / testsuite / configure.ac
index cc6f620d48fd6ac93770b36c733cf22b9de3ab7c..a9d63cbc6af9ddf37f52c9e227c16b3ba54ae515 100644 (file)
@@ -1,7 +1,7 @@
 #                                                       -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-# Copyright 2002, 2003, 2004, 2005
+# Copyright 2002, 2003, 2004, 2005, 2009
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -26,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],,
@@ -116,5 +144,6 @@ AC_OUTPUT([Makefile \
   gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
   gdb.fortran/Makefile gdb.server/Makefile \
   gdb.java/Makefile gdb.mi/Makefile gdb.modula2/Makefile \
-  gdb.objc/Makefile gdb.pascal/Makefile gdb.threads/Makefile \
-  gdb.trace/Makefile gdb.xml/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])
This page took 0.024192 seconds and 4 git commands to generate.