From: wessels <> Date: Wed, 27 Nov 1996 02:08:48 +0000 (+0000) Subject: force GNUregex on solaris X-Git-Tag: SQUID_3_0_PRE1~5386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00fa2c1259f7d110767960da63fe06314abd0f46;p=thirdparty%2Fsquid.git force GNUregex on solaris --- diff --git a/configure.in b/configure.in index 580d6cd6d4..818457888f 100644 --- a/configure.in +++ b/configure.in @@ -3,20 +3,21 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.52 1996/11/25 03:19:22 wessels Exp $ +dnl $Id: configure.in,v 1.53 1996/11/26 19:08:48 wessels Exp $ dnl dnl dnl AC_INIT(src/main.c) AC_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.52 $)dnl +AC_REVISION($Revision: 1.53 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AC_CONFIG_AUX_DIR(aux) AC_CANONICAL_HOST CRYPTLIB='' -REGEXLIB='' +REGEXLIB='' # -lregex +LIBREGEX='' # libregex.a dnl use directory structure of cached as default (hack) if test "$libexecdir" = '${exec_prefix}/libexec'; then @@ -336,15 +337,23 @@ AC_CHECK_FUNCS(\ ) AC_MSG_CHECKING(if GNUregex needs to be compiled) -if test "$ac_cv_func_regcomp" = no; then - AC_MSG_RESULT(yes) +if test "$ac_cv_func_regcomp" = "no" ; then + COMPILE_GNUREGEX="yes" +else + COMPILE_GNUREGEX="no" +fi +case "$host" in + *-sun-solaris2.[0-4]) + COMPILE_GNUREGEX="yes" + ;; +esac +AC_MSG_RESULT($COMPILE_GNUREGEX) +if test "$COMPILE_GNUREGEX" = "yes"; then REGEXLIB="-lregex" LIBREGEX="libregex.a" - AC_SUBST(LIBREGEX) -else - AC_MSG_RESULT(no) fi AC_SUBST(REGEXLIB) +AC_SUBST(LIBREGEX) AC_REPLACE_FUNCS(\ tempnam \