use $jm_with_regex, now $WITH_REGEX
[pspp] / m4 / regex.m4
index 2a7bfe014332561c87ca2257b97cf0700edf3f4a..0d55c4496dbe7cd45e8c395bd8abcb09cde5fc33 100644 (file)
@@ -5,10 +5,12 @@ dnl From grep.
 AC_DEFUN(jm_WITH_REGEX,
   [
     AC_ARG_WITH(included-regex,
-               [  --without-included-regex         don't compile regex],
-               USE_REGEX=$withval,
-               USE_REGEX=yes)
+               [  --without-included-regex don't compile regex],
+               jm_with_regex=$withval,
+               jm_with_regex=yes)
 
-    test "$USE_REGEX" = "yes" && LIBOBJS="$LIBOBJS regex.o"
+    if test "$jm_with_regex" = yes; then
+      LIBOBJS="$LIBOBJS regex.o"
+    fi
   ]
 )