about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--zshconfig.ac7
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3001a7ab7..81223b99d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-30  Clint Adams  <clint@zsh.org>
+
+	* 18131: zshconfig.ac: find pcre on RedHat.
+
 2003-01-30  Oliver Kiddle  <opk@zsh.org>
 
 	* Doug Kearns: 18159: Completion/Unix/Command/_tidy:
diff --git a/zshconfig.ac b/zshconfig.ac
index b3ab7dca8..266630af2 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -482,6 +482,13 @@ AC_HEADER_STDC
 AC_HEADER_TIME
 AC_HEADER_STAT
 AC_HEADER_SYS_WAIT
+
+oldcflags="$CFLAGS"
+AC_CHECK_PROG([PCRECONF], pcre-config, pcre-config)
+if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
+  CFLAGS="$CFLAGS `pcre-config --cflags`"
+fi
+
 AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
 		 termios.h sys/param.h sys/filio.h string.h memory.h \
 		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \