diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-15 18:16:22 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-15 18:16:22 +0000 |
commit | 4e5a0aa00195ee8dd0a5dab9909d21a30e176f27 (patch) | |
tree | 77433d746bd3d038e5e8d92c8d682b92d1917649 | |
parent | b7f036fd8c6c7b2b2e2f7540a94486cf89991b94 (diff) |
- (bal) added '--with-prce' to allow overriding of system regex when
required (tested by David Dulek <ddulek@fastenal.com>)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 39 |
2 files changed, 36 insertions, 9 deletions
@@ -1,3 +1,7 @@ +20010216 + - (bal) added '--with-prce' to allow overriding of system regex when + required (tested by David Dulek <ddulek@fastenal.com>) + 20010215 - (djm) Move PAM session setup back to before setuid to user. Fixes problems on Solaris-derived PAMs. @@ -3970,4 +3974,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.772 2001/02/15 17:27:15 stevesk Exp $ +$Id: ChangeLog,v 1.773 2001/02/15 18:16:22 mouring Exp $ diff --git a/configure.in b/configure.in index 93806925..fb580674 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.238 2001/02/15 03:46:28 mouring Exp $ +# $Id: configure.in,v 1.239 2001/02/15 18:16:23 mouring Exp $ AC_INIT(ssh.c) @@ -295,6 +295,20 @@ AC_ARG_WITH(libs, ] ) +AC_ARG_WITH(pcre, + [ --with-pcre Override built in regex library with pcre], + [ + + AC_CHECK_LIB(pcre, pcre_info, + [ + AC_DEFINE(HAVE_LIBPCRE) + LIBS="$LIBS -lpcreposix -lpcre" + no_comp_check="yes" + ], + [ AC_MSG_ERROR([*** Can not locate pcre libraries.]) ] + ) + ] +) # Checks for libraries. if test -z "$no_libsocket" ; then @@ -308,13 +322,22 @@ AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen") AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") -AC_CHECK_FUNC(regcomp, - [ AC_DEFINE(HAVE_REGCOMP)], - [ - AC_CHECK_LIB(pcre, pcre_info, - AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre") - ] -) +# We don't want to check if we did an pcre override. +if test -z "$no_comp_check" ; then + AC_CHECK_FUNC(regcomp, + [ AC_DEFINE(HAVE_REGCOMP)], + [ + AC_CHECK_LIB(pcre, pcre_info, + [ + AC_DEFINE(HAVE_LIBPCRE) + LIBS="$LIBS -lpcreposix -lpcre" + ], + [ + AC_MSG_ERROR([*** No regex library found.]) + ]) + ] + ) +fi dnl UnixWare 2.x AC_CHECK_FUNC(strcasecmp, |