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
)
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 \