head 1.20; access; symbols FSL_1_7_0:1.20 FSL_1_6_1:1.20 FSL_1_6_0:1.19 FSL_1_6b2:1.19 FSL_1_6b1:1.19 FSL_1_5_0:1.19 FSL_1_5a3:1.19 FSL_1_5a2:1.19 FSL_1_5a1:1.19 FSL_1_4_0:1.16 FSL_1_4b1:1.16 FSL_1_4a1:1.15 FSL_1_3_0:1.15 FSL_1_3b1:1.15 FSL_1_2_1:1.15 FSL_1_2_0:1.15 FSL_1_1_0:1.15 FSL_1_1b1:1.14 FSL_1_0_8:1.14 FSL_1_0_7:1.14 FSL_1_0_6:1.13 FSL_1_0_5:1.12 FSL_1_0_4:1.12 FSL_1_0_3:1.12 FSL_1_0_2:1.12 FSL_1_0_1:1.12 FSL_1_0_0:1.12 FSL_0_9_0:1.12 FSL_0_1_12:1.9 FSL_0_1_11:1.8 FSL_0_1_10:1.8 FSL_0_1_9:1.8 FSL_0_1_8:1.6 FSL_0_1_7:1.6 FSL_0_1_6:1.6 FSL_0_1_5:1.6 FSL_0_1_1:1.3; locks; strict; comment @# @; 1.20 date 2005.10.03.09.28.53; author rse; state Exp; branches; next 1.19; 1.19 date 2004.04.22.09.32.50; author thl; state Exp; branches; next 1.18; 1.18 date 2004.03.19.22.36.08; author thl; state Exp; branches; next 1.17; 1.17 date 2004.03.19.15.43.49; author thl; state Exp; branches; next 1.16; 1.16 date 2004.01.09.10.48.26; author thl; state Exp; branches; next 1.15; 1.15 date 2003.05.22.14.01.55; author thl; state Exp; branches; next 1.14; 1.14 date 2003.01.06.16.41.21; author rse; state Exp; branches; next 1.13; 1.13 date 2002.11.09.14.45.34; author rse; state Exp; branches; next 1.12; 1.12 date 2002.08.01.10.18.06; author rse; state Exp; branches; next 1.11; 1.11 date 2002.08.01.09.36.53; author rse; state Exp; branches; next 1.10; 1.10 date 2002.07.31.12.58.03; author thl; state Exp; branches; next 1.9; 1.9 date 2002.07.30.09.42.54; author thl; state Exp; branches; next 1.8; 1.8 date 2002.07.27.18.13.51; author rse; state Exp; branches; next 1.7; 1.7 date 2002.07.27.15.37.21; author rse; state Exp; branches; next 1.6; 1.6 date 2002.07.24.15.29.01; author thl; state Exp; branches; next 1.5; 1.5 date 2002.07.24.14.55.55; author rse; state Exp; branches; next 1.4; 1.4 date 2002.07.23.14.37.50; author thl; state Exp; branches; next 1.3; 1.3 date 2002.07.12.17.26.23; author rse; state Exp; branches; next 1.2; 1.2 date 2002.07.10.09.08.51; author rse; state Exp; branches; next 1.1; 1.1 date 2002.07.09.09.42.09; author rse; state Exp; branches; next ; desc @@ 1.20 log @Adjust copyright messages to include new year 2005. @ text @dnl ## dnl ## OSSP fsl - Faking/Flexible Syslog Library dnl ## Copyright (c) 2002-2005 Ralf S. Engelschall dnl ## Copyright (c) 2002-2005 The OSSP Project dnl ## Copyright (c) 2002-2005 Cable & Wireless dnl ## dnl ## This file is part of OSSP fsl, a syslog(3) API faking library which dnl ## can be found at http://www.ossp.org/pkg/lib/fsl/. dnl ## dnl ## Permission to use, copy, modify, and distribute this software for dnl ## any purpose with or without fee is hereby granted, provided that dnl ## the above copyright notice and this permission notice appear in all dnl ## copies. dnl ## dnl ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED dnl ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF dnl ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. dnl ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR dnl ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, dnl ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT dnl ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF dnl ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND dnl ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, dnl ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT dnl ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF dnl ## SUCH DAMAGE. dnl ## dnl ## configure.ac: GNU Autoconf source script dnl ## AC_PREREQ(2.54) AC_INIT dnl # announce our version V=`./shtool version -lc -dlong fsl_version.c` ./shtool echo -e "Configuring %BOSSP fsl%b (Faking/Flexible Syslog Library), Version %B${V}%b" echo "Copyright (c) 2002-2005 Ralf S. Engelschall " echo "Copyright (c) 2002-2005 The OSSP Project " echo "Copyright (c) 2002-2005 Cable & Wireless " AC_PROG_MAKE_SET AC_PROG_CC AC_CHECK_DEBUGGING sinclude(libtool.m4) AC_PROG_LIBTOOL sinclude(fsl.ac) FSL_CHECK_ALL dnl # FIXME FIXME FIXME FIXME FIXME FIXME FIXME dnl # perform important checks from OSSP l2 because we have dnl # no possibility to merge their determined knowledge dnl # into our brain. AC_CHECK_LIB(nsl, gethostname) if test ".`echo $LIBS | grep nsl`" = . ;then AC_CHECK_LIB(nsl, gethostbyname) fi AC_CHECK_LIB(socket, accept) dnl # pre-processing for subdirs LIB_DEPS="" dnl # check for OSSP l2 library AC_CHECK_EXTLIB([OSSP l2], l2, l2_channel_log, l2.h, [SUBDIR_L2=""], [SUBDIR_L2="lib_l2" CPPFLAGS="$CPPFLAGS -Ilib_l2" CFLAGS="$CFLAGS -Ilib_l2" LIB_DEPS="$LIB_DEPS lib_l2/*.lo"]) AC_SUBST(SUBDIR_L2) dnl # check for OSSP cfg library AC_CHECK_EXTLIB([OSSP cfg], cfg, cfg_syn_import, cfg.h, [SUBDIR_CFG=""], [SUBDIR_CFG="lib_cfg" CPPFLAGS="$CPPFLAGS -Ilib_cfg" CFLAGS="$CFLAGS -Ilib_cfg" LIB_DEPS="$LIB_DEPS lib_cfg/*.lo"]) AC_SUBST(SUBDIR_CFG) dnl # check for OSSP pcre library AC_CHECK_EXTLIB([OSSP pcre], pcre, pcre_compile, pcre.h, [SUBDIR_PCRE=""], [SUBDIR_PCRE="lib_pcre" CPPFLAGS="$CPPFLAGS -Ilib_pcre -DPCRE_PREFIX=fsl_"; CFLAGS="$CFLAGS -Ilib_pcre" LIB_DEPS="$LIB_DEPS lib_pcre/*.lo"]) AC_SUBST(SUBDIR_PCRE) dnl # post-processing for subdirs AC_SUBST(LIB_DEPS) if test ".$SUBDIR_L2" != .; then AC_CONFIG_SUBDIRS(lib_l2) fi if test ".$SUBDIR_CFG" != .; then AC_CONFIG_SUBDIRS(lib_cfg) fi if test ".$SUBDIR_PCRE" != .; then AC_CONFIG_SUBDIRS(lib_pcre) fi dnl # export is a hack to pass CPPFLAGS down to subdirs (introduced for PCRE_PREFIX) export CPPFLAGS dnl # output generation AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES([Makefile fsl-config]) AC_CONFIG_COMMANDS([adjustment], [chmod a+x fsl-config]) AC_OUTPUT @ 1.19 log @fix pcre name space dirt, leakage, collission; pick up that new feature in fsl @ text @d3 3 a5 3 dnl ## Copyright (c) 2002-2004 Ralf S. Engelschall dnl ## Copyright (c) 2002-2004 The OSSP Project dnl ## Copyright (c) 2002-2004 Cable & Wireless Deutschland d37 3 a39 3 echo "Copyright (c) 2002-2004 Ralf S. Engelschall " echo "Copyright (c) 2002-2004 The OSSP Project " echo "Copyright (c) 2002-2004 Cable & Wireless Deutschland " @ 1.18 log @Fix PR#39: configure --with-l2 does not work @ text @d89 1 a89 1 CPPFLAGS="$CPPFLAGS -Ilib_pcre" d99 2 @ 1.17 log @get rid of "AC_CONFIG_SUBDIRS: you should use literals" warning @ text @d66 1 a66 1 l2, l2_stream_log, l2.h, @ 1.16 log @Adjust copyright messages to include new year 2004 @ text @d96 3 a98 1 AC_CONFIG_SUBDIRS([$SUBDIR_L2 $SUBDIR_CFG $SUBDIR_PCRE]) @ 1.15 log @whitespaces @ text @d3 3 a5 3 dnl ## Copyright (c) 2002-2003 Ralf S. Engelschall dnl ## Copyright (c) 2002-2003 The OSSP Project dnl ## Copyright (c) 2002-2003 Cable & Wireless Deutschland d37 3 a39 3 echo "Copyright (c) 2002-2003 Ralf S. Engelschall " echo "Copyright (c) 2002-2003 The OSSP Project " echo "Copyright (c) 2002-2003 Cable & Wireless Deutschland " @ 1.14 log @Adjust copyright messages to include new year 2003 @ text @d58 1 a58 1 fi d65 3 a67 3 AC_CHECK_EXTLIB([OSSP l2], l2, l2_stream_log, l2.h, [SUBDIR_L2=""], d75 3 a77 3 AC_CHECK_EXTLIB([OSSP cfg], cfg, cfg_syn_import, cfg.h, [SUBDIR_CFG=""], d85 3 a87 3 AC_CHECK_EXTLIB([OSSP pcre], pcre, pcre_compile, pcre.h, [SUBDIR_PCRE=""], @ 1.13 log @upgrade to latest expected versions @ text @d3 3 a5 3 dnl ## Copyright (c) 2002 Ralf S. Engelschall dnl ## Copyright (c) 2002 The OSSP Project dnl ## Copyright (c) 2002 Cable & Wireless Deutschland d37 3 a39 3 echo "Copyright (c) 2002 Ralf S. Engelschall " echo "Copyright (c) 2002 The OSSP Project " echo "Copyright (c) 2002 Cable & Wireless Deutschland " @ 1.12 log @cleanups @ text @d31 1 a31 1 AC_PREREQ(2.53) @ 1.11 log @cleanup @ text @d37 1 d98 1 a98 35 AC_MSG_CHECKING(for platform) PLATFORM=`sh ./config.guess` if test ".$PLATFORM" != .; then PLATFORM=`sh ./config.sub $PLATFORM` fi AC_MSG_RESULT([$PLATFORM]) case $PLATFORM in *-*-solaris2.[[6-9]]* ) AC_DEFINE(HAVE_VSYSLOG_USVALIST, 1, [vsyslog(3) uses __va_list]) ;; *-*-osf* ) CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" ;; esac AC_MSG_CHECKING(for configuration directory) AC_ARG_WITH(cfgdir,dnl [ --with-cfgdir=PATH set configuration directory (default=PREFIX/etc/fsl)], [ fsl_cfgdir=$withval ], [ fsl_cfgdir="${prefix}/etc/fsl" ] )dnl AC_DEFINE_UNQUOTED(FSL_CFGDIR, "$fsl_cfgdir", [Define configuration directory]) FSL_CFGDIR="$fsl_cfgdir" AC_SUBST(FSL_CFGDIR) AC_MSG_RESULT([$fsl_cfgdir]) AC_MSG_CHECKING(for debugging using a l2spec) AC_ARG_WITH(debug,dnl [ --with-debug=L2SPEC set debugging using a l2spec (default="")], [ fsl_debug=$withval ], [ fsl_debug="null()" ] )dnl AC_DEFINE_UNQUOTED(FSL_DEBUG, "$fsl_debug", [Define debugging using a l2spec]) AC_MSG_RESULT([$fsl_debug]) @ 1.10 log @now logging FSL version @ text @a39 3 FSL_VERSION_STR=`./shtool version -l txt -d long VERSION` AC_SUBST(FSL_VERSION_STR) @ 1.9 log @take HAVE_VSYSLOG_USVALIST over from old fakesyslog @ text @d33 7 a40 1 ./shtool echo -e "Configuring %BOSSP fsl%b (Faking/Flexible Syslog Library), version %B${FSL_VERSION_STR}%b" @ 1.8 log @source tree cleanups and fixes @ text @d94 15 @ 1.7 log @add Flexible to the official name @ text @d101 2 @ 1.6 log @added solaris and linux compatiblity; improved readability of traces @ text @d2 1 a2 1 dnl ## OSSP fsl - Faking Syslog Library d34 1 a34 1 ./shtool echo -e "Configuring %BOSSP fsl%b (Faking Syslog Library), version %B${FSL_VERSION_STR}%b" @ 1.5 log @workaround for brain-dead Solaris @ text @d105 1 a105 1 [ --with-debug=L2SPEC set debugging using a l2spec (default="")], d107 1 a107 1 [ fsl_debug="" ] @ 1.4 log @added userlevel debugging through FSL_DEBUG environment variable @ text @d47 10 @ 1.3 log @add OSSP pcre to build environment @ text @d90 1 a90 1 AC_DEFINE_UNQUOTED(FSL_CFGDIR, "$fsl_cfgdir", [Define for configuration directory]) d92 9 @ 1.2 log @add Autoconf support for --with-cfgdir option @ text @d70 10 d82 1 a82 1 AC_CONFIG_SUBDIRS([$SUBDIR_L2 $SUBDIR_CFG]) @ 1.1 log @First cut for new-born OSSP fsl, a faking syslog(3) API library. It is internally based (and contains) OSSP l2 and OSSP cfg. @ text @d74 9 @