diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 4d47514..5810c47 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -517,8 +517,6 @@ AC_ARG_WITH(included-regex, *) AC_MSG_ERROR(bad value ${withval} for GDB with-included-regex option) ;; esac],[want_included_regex=true])dnl -REGEX="gnu-regex.o" -REGEX_CFLAGS="-DUSE_INCLUDED_REGEX" if test $want_included_regex = false; then AC_MSG_CHECKING(for GNU regex) AC_CACHE_VAL(gdb_cv_have_gnu_regex, @@ -532,13 +530,16 @@ if test $want_included_regex = false; then [gdb_cv_have_gnu_regex=yes], [gdb_cv_have_gnu_regex=no])]) AC_MSG_RESULT($gdb_cv_have_gnu_regex) - if test $gdb_cv_have_gnu_regex = yes; then - REGEX= - REGEX_CFLAGS= + if test $gdb_cv_have_gnu_regex = no; then + want_included_regex=true fi fi + +if test x${want_included_regex} = xtrue; then + REGEX="gnu-regex.o" + AC_DEFINE(USE_INCLUDED_REGEX) +fi AC_SUBST(REGEX) -AC_SUBST(REGEX_CFLAGS) # In the Cygwin environment, we need some additional flags. AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin, |