dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in 4798 2006-12-28 16:34:20Z ajc $
+dnl $Id$
AC_INIT(webserver.c)
PACKAGE=webcit
-VERSION=7.06
+VERSION=7.13
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_SUBST(PACKAGE)
dnl Checks for library functions.
AC_TYPE_SIGNAL
dnl AC_FUNC_VPRINTF
-dnl AC_CHECK_FUNCS(strerror)
AC_REPLACE_FUNCS(snprintf)
dnl Checks for the libical calendaring library.
AC_DEFINE(HAVE_ZLIB)
fi
+
# The big search for OpenSSL
if test "$with_ssl" != "no"; then
saved_LIBS="$LIBS"
AC_SUBST(SETUP_LIBS)
+dnl disable backtrace if we don't want it.
+AC_ARG_WITH(gprof,
+ [ --with-gprof enable profiling],
+ [ if test "x$withval" != "xno" ; then
+ CFLAGS="$CFLAGS -pg "
+ LDFLAGS="$LDFLAGS -pg "
+ fi
+ ]
+)
+
+dnl disable backtrace if we don't want it.
+AC_ARG_WITH(backtrace,
+ [ --with-backtrace enable backtrace dumps in the syslog],
+ [ if test "x$withval" != "xno" ; then
+ CFLAGS="$CFLAGS -rdynamic "
+ LDFLAGS="$LDFLAGS -rdynamic "
+ AC_CHECK_FUNCS(backtrace)
+ fi
+ ]
+)
+echo "$CFLAGS $LDFLAGS"
if test "$prefix" = NONE; then
LOCALEDIR=$ac_default_prefix