summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-02-12 03:25:19 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-02-12 03:25:19 +0000
commitd30240904adda50bfab0e4b7b36699b495e22a93 (patch)
treebb4b3fad186004c8b2095c7898cc8b4430606300 /m4
parent1df65bd83a87cdb49e49b4e897e27eb73c2cf23a (diff)
downloadgrep-d30240904adda50bfab0e4b7b36699b495e22a93.tar.gz
update for bootstrap.
provided for system lacking configure. update added guard for HAVE_CONFIG_H * grep-2.2f beta release. * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : New files to aid configuration and unload configure.in. * m4/Makefile.am : updated. Patch forwarded by Ben Elliston.
Diffstat (limited to 'm4')
-rw-r--r--m4/regex.m426
1 files changed, 13 insertions, 13 deletions
diff --git a/m4/regex.m4 b/m4/regex.m4
index 13ccd4c1..0456c74e 100644
--- a/m4/regex.m4
+++ b/m4/regex.m4
@@ -5,8 +5,6 @@ dnl Mostly written by Jim Meyering.
AC_DEFUN(jm_INCLUDED_REGEX,
[
- AC_REQUIRE([AM_GLIBC])
-
dnl Even packages that don't use regex.c can use this macro.
dnl Of course, for them it doesn't do anything.
@@ -14,6 +12,8 @@ AC_DEFUN(jm_INCLUDED_REGEX,
# in the older regex will not be detected so test for everyone.
# The failing regular expression is from `Spencer ere test
# #75' in grep-2.2f.
+ dnl AC_REQUIRE([AM_GLIBC])
+
ac_use_included_regex=yes
# Without this run-test, on older glibc2 systems we'd end up
@@ -31,23 +31,24 @@ AC_DEFUN(jm_INCLUDED_REGEX,
static struct re_pattern_buffer regex;
const char *s;
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
- /* Add this third left square bracket, [, to balance the
+ /* Add this third left square bracket, XX, to balance the
three right ones below. Otherwise autoconf-2.14 chokes. */
- s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
+ s = re_compile_pattern ("a[[:XX:]]b\n", 9, &regex);
/* This should fail with _Invalid character class name_ error. */
exit (s ? 0 : 1);
}
>>,
changequote([, ])dnl
- jm_cv_func_working_re_compile_pattern=yes,
- jm_cv_func_working_re_compile_pattern=no,
- dnl When crosscompiling, assume it's broken.
- jm_cv_func_working_re_compile_pattern=no))
- if test $jm_cv_func_working_re_compile_pattern = yes; then
- ac_use_included_regex=no
- fi
+ jm_cv_func_working_re_compile_pattern=yes,
+ jm_cv_func_working_re_compile_pattern=no,
+ dnl When crosscompiling, assume it's broken.
+ jm_cv_func_working_re_compile_pattern=no))
+ if test "$jm_cv_func_working_re_compile_pattern" = yes; then
+ ac_use_included_regex=no
+ fi
+ AC_SUBST(LIBOJS)dnl
test -n "$1" || AC_MSG_ERROR([missing argument])
syscmd([test -f $1])
ifelse(sysval, 0,
@@ -60,10 +61,9 @@ AC_DEFUN(jm_INCLUDED_REGEX,
jm_with_regex=$withval,
jm_with_regex=$ac_use_included_regex)
if test "$jm_with_regex" = yes; then
- LIBOBJS="$LIBOBJS regex.o"
+ LIBOBJS="$LIBOBJS regex.${ac_objext}"
fi
],
)
- AC_SUBST(LIBOJS)dnl
]
)