3 dnl Derived from code in GNU grep.
5 AC_DEFUN(jm_WITH_REGEX,
7 dnl Even packages that don't use regex.c can use this macro.
8 dnl Of course, for them it doesn't do anything.
10 syscmd([test -f lib/regex.c])
13 AC_ARG_WITH(included-regex,
14 [ --without-included-regex don't compile regex (use with caution)],
15 jm_with_regex=$withval,
17 if test "$jm_with_regex" = yes; then
18 LIBOBJS="$LIBOBJS regex.o"