aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-11 01:21:15 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-11 01:21:15 +0000
commite48f66e46e8f58c36392397b816545318b0e4ab6 (patch)
tree74c53230a74927162f6f7b92c4a279e5875565a4 /gdb/configure.in
parentf38e884d673d606a904096c1af631eee5295f220 (diff)
downloadgdb-e48f66e46e8f58c36392397b816545318b0e4ab6.zip
gdb-e48f66e46e8f58c36392397b816545318b0e4ab6.tar.gz
gdb-e48f66e46e8f58c36392397b816545318b0e4ab6.tar.bz2
Cleanup USE_INCLUDED_REGEX. Move -D to acconfig.h.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in13
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,