diff options
Diffstat (limited to 'gdb/testsuite/configure.ac')
-rw-r--r-- | gdb/testsuite/configure.ac | 19 |
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]],, |