Fixed a problem where the REGEX library was included even if the system
already had a working library.
This commit is contained in:
parent
51e4ebb293
commit
551e7cf39f
50
configure.in
50
configure.in
@ -1,4 +1,4 @@
|
||||
dnl $Id: configure.in,v 1.21 2001-08-28 15:52:53 rjkaes Exp $
|
||||
dnl $Id: configure.in,v 1.22 2001-08-29 04:05:33 rjkaes Exp $
|
||||
|
||||
dnl Devlopers, please strive to achieve this order:
|
||||
dnl
|
||||
@ -19,7 +19,7 @@ AC_INIT()
|
||||
AC_CANONICAL_SYSTEM
|
||||
AC_DEFINE_UNQUOTED(TARGET_SYSTEM, "$target")
|
||||
|
||||
AM_INIT_AUTOMAKE(tinyproxy,1.4.1.5)
|
||||
AM_INIT_AUTOMAKE(tinyproxy,1.4.1.6)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl
|
||||
@ -58,7 +58,7 @@ AC_ARG_ENABLE(filter,
|
||||
[ --enable-filter Enable filtering of domains/URLs [default=yes]],
|
||||
filter_enabled=yes, filter_enabled=yes)
|
||||
if test "$filter_enabled" = "yes"; then
|
||||
LIBOBJS="$LIBOBJS filter.o"
|
||||
LIBOBJS="filter.o $LIBOBJS"
|
||||
AC_DEFINE(FILTER_ENABLE)
|
||||
fi
|
||||
|
||||
@ -200,27 +200,6 @@ AC_UNP_CHECK_TYPE(in_addr_t, uint32_t)
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIGNAL
|
||||
|
||||
dnl
|
||||
dnl Compiler characteristics
|
||||
dnl
|
||||
|
||||
dnl Enable the debugging flags (by checking for the GCC compiler)
|
||||
CFLAGS="-Wall $CFLAGS"
|
||||
if test "$enable_debug" = "yes" ; then
|
||||
dnl Add the warnings if we have the GCC compiler
|
||||
if test x$ac_cv_prog_gcc = xyes ; then
|
||||
CFLAGS="-Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes $CFLAGS"
|
||||
CFLAGS="-Wmissing-prototypes -Wmissing-declarations $CFLAGS"
|
||||
CFLAGS="-Wpointer-arith -Waggregate-return -Wnested-externs $CFLAGS"
|
||||
fi
|
||||
CFLAGS="-DYYDEBUG $CFLAGS"
|
||||
YFLAGS="-v -d"
|
||||
else
|
||||
dnl No debugging information, include the optimizations
|
||||
CFLAGS="-DNDEBUG $CFLAGS"
|
||||
YFLAGS="-d"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Checks for functions
|
||||
dnl
|
||||
@ -246,6 +225,27 @@ if test "$ac_cv_func_vprintf" != "yes"; then
|
||||
AC_CHECK_FUNC(_doprnt, AC_DEFINE(HAVE_DOPRNT))
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Compiler characteristics
|
||||
dnl
|
||||
|
||||
dnl Enable the debugging flags (by checking for the GCC compiler)
|
||||
CFLAGS="-Wall $CFLAGS"
|
||||
if test "$enable_debug" = "yes" ; then
|
||||
dnl Add the warnings if we have the GCC compiler
|
||||
if test x$ac_cv_prog_gcc = xyes ; then
|
||||
CFLAGS="-Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes $CFLAGS"
|
||||
CFLAGS="-Wmissing-prototypes -Wmissing-declarations $CFLAGS"
|
||||
CFLAGS="-Wpointer-arith -Waggregate-return -Wnested-externs $CFLAGS"
|
||||
fi
|
||||
CFLAGS="-DYYDEBUG $CFLAGS"
|
||||
YFLAGS="-v -d"
|
||||
else
|
||||
dnl No debugging information, include the optimizations
|
||||
CFLAGS="-DNDEBUG $CFLAGS"
|
||||
YFLAGS="-d"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Make sure we can actually handle the "--with-*" and "--enable-*" stuff.
|
||||
dnl
|
||||
@ -261,7 +261,7 @@ if test "$socks_enabled" = "yes"; then
|
||||
fi
|
||||
|
||||
dnl Handle the REGEX library
|
||||
if test "$ac_cv_func_regex" != "yes"; then
|
||||
if test "$ac_cv_func_regexec" != "yes"; then
|
||||
dnl We don't have a functioning REGEX so include our copy
|
||||
tinyproxy_use_our_regex=yes
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user