aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/configure.ac
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-12-05 19:56:19 +0800
committerYao Qi <yao@codesourcery.com>2014-12-05 19:56:19 +0800
commita13c5393d524f93b87e14475357cef2d585201f7 (patch)
tree6c87fe19548eff82afba9dd41375f9c198e8857b /gdb/testsuite/configure.ac
parentdf1b803ada346835ca3372408555b28e1f9795f2 (diff)
downloadgdb-a13c5393d524f93b87e14475357cef2d585201f7.zip
gdb-a13c5393d524f93b87e14475357cef2d585201f7.tar.gz
gdb-a13c5393d524f93b87e14475357cef2d585201f7.tar.bz2
Revert: Don't enable gdbtk in testsuite
This patch is to revert my previous commit, because we shouldn't remove gdbtk bits from gdb/testsuite/configure.ac while keep gdbtk bits in gdb/configure.ac. gdb/testsuite: 2014-12-05 Yao Qi <yao@codesourcery.com> Revert: * configure.ac: Remove AC_ARG_ENABLE for gdbtk. Don't invoke AC_CONFIG_SUBDIRS(gdb.gdbtk). * configure: Re-generated.
Diffstat (limited to 'gdb/testsuite/configure.ac')
-rw-r--r--gdb/testsuite/configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac
index a1efc31..9dccc9f 100644
--- a/gdb/testsuite/configure.ac
+++ b/gdb/testsuite/configure.ac
@@ -36,6 +36,25 @@ esac
AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes)
AC_PROG_MAKE_SET
+# Enable gdbtk.
+AC_ARG_ENABLE(gdbtk,
+[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
+ [if test -d $srcdir/../gdbtk && 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]],,