about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-01 17:58:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-01 17:58:53 +0000
commit5138a4299549a9583eab01e2a45fcad43a03be7a (patch)
treec9e0eb1c5454ec6ed2b014b5531d8ef2a72ae595 /configure.ac
parent10ffd207715c487774b141822b4c4ae086096fc0 (diff)
downloadzsh-5138a4299549a9583eab01e2a45fcad43a03be7a.tar.gz
zsh-5138a4299549a9583eab01e2a45fcad43a03be7a.tar.xz
zsh-5138a4299549a9583eab01e2a45fcad43a03be7a.zip
19512: --enable-pcre option
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b80ff0c87..99f28546b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -308,6 +308,11 @@ else
   AC_DEFINE_UNQUOTED(MAX_FUNCTION_DEPTH, $enableval)
 fi])
 
+dnl Do you want to look for pcre support?
+AC_ARG_ENABLE(pcre,
+AC_HELP_STRING([--enable-pcre],
+[enable the search for the pcre library (may create run-time library dependencies)]))
+
 dnl ------------------
 dnl CHECK THE COMPILER
 dnl ------------------
@@ -495,6 +500,7 @@ AC_HEADER_STAT
 AC_HEADER_SYS_WAIT
 
 oldcflags="$CFLAGS"
+if test x$enable_pcre = xyes; then
 AC_CHECK_PROG([PCRECONF], pcre-config, pcre-config)
 dnl Typically (meaning on this single RedHat 9 box in front of me)
 dnl pcre-config --cflags produces a -I output which needs to go into
@@ -503,6 +509,7 @@ dnl producing a warning.
 if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
   CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
 fi
+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 \
@@ -708,8 +715,10 @@ AC_CHECK_LIB(socket, socket)
 
 AC_CHECK_LIB(iconv, iconv)
 
+if test x$enable_pcre = xyes; then
 dnl pcre-config should probably be employed here
 AC_SEARCH_LIBS(pcre_compile, pcre)
+fi
 
 dnl ---------------------
 dnl CHECK TERMCAP LIBRARY