1
AC_INIT(log4shib, 1.0.4)
3
# autoconf 2.50 or higher to rebuild aclocal.m4, because the
4
# AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
8
# +1 : ? : +1 == new interface that does not break old one
9
# +1 : ? : 0 == new interface that breaks old one
10
# ? : ? : 0 == no new interfaces, but breaks apps
11
# ? :+1 : ? == just some internal changes, nothing breaks but might work
13
# CURRENT : REVISION : AGE
18
#AC_CONFIG_SRCDIR(configure.in)
19
AC_CONFIG_AUX_DIR(config)
20
AM_CONFIG_HEADER(include/config.h)
24
# General "with" options
25
# ----------------------------------------------------------------------------
26
AC_ARG_WITH(idsa, [ --with-idsa include idsa support])
29
# ----------------------------------------------------------------------------
33
AC_HELP_STRING(--enable-debug, [Have GCC compile with symbols (Default = no)]),
34
enable_debug=$enableval, enable_debug=no)
36
if test "$enable_debug" = "yes" ; then
37
GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
38
GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
40
GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
41
GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
48
AC_PROG_CXX([g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC])
50
if test "$GCC" = "yes" ; then
51
CFLAGS="-Wall $GCC_CFLAGS"
52
CXXFLAGS="-Wall $GCC_CXXFLAGS"
59
# ----------------------------------------------------------------------------
60
AC_CHECK_HEADERS([unistd.h])
61
AC_CHECK_HEADERS([io.h])
64
# ----------------------------------------------------------------------------
67
AC_CHECK_FUNCS([syslog gettimeofday ftime localtime_r gmtime_r])
69
# Checks for libraries
70
# ----------------------------------------------------------------------------
72
# for RemoteSyslogAppender
73
AC_CHECK_LIB(socket,socket, LIBS="-lsocket $LIBS",,)
74
AC_CHECK_LIB(nsl,gethostbyname, LIBS="-lnsl $LIBS",,)
77
ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
78
if test $enable_threads != "pthread"; then
79
AC_MSG_ERROR([unable to find pthreads, currently this is required])
81
AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
82
AC_DEFINE(HAVE_THREADING,1,[define if threading is enabled])
83
AC_DEFINE(USE_PTHREADS,1,[define if pthread library is available])
84
AC_DEFINE(_PTHREADS,1,[define for STL if pthread library is used])
85
LIBS="$PTHREAD_LIBS $LIBS"
86
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
87
CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
95
if test "x$with_idsa" = xyes; then
96
AC_CHECK_LIB([idsa], [idsa_open])
97
if test "$ac_cv_lib_idsa_idsa_open" = no; then
98
AC_MSG_ERROR([could not locate idsa library])
103
# ----------------------------------------------------------------------------
106
# check for omnithreads
107
#BB_CHECK_OMNITHREADS
110
LOG4SHIB_CFLAGS="$CXXFLAGS"
111
LOG4SHIB_LIBS="-llog4shib"
112
LOG4SHIB_LIBDEPS="$LIBS"
113
LOG4SHIB_VERSION="$VERSION"
118
# ----------------------------------------------------------------------------
120
AC_CONFIG_LIBCONFIG_IN([log4shib])
121
AC_CONFIG_PKGCONFIG_IN([log4shib], [C++ library for flexible logging, modeled after Log4j])
135
include/log4shib/Makefile
136
include/log4shib/threading/Makefile
140
msvc6/log4shib/Makefile
141
msvc6/log4shibDLL/Makefile
142
msvc6/testCategory/Makefile
143
msvc6/testDLL/Makefile
144
msvc6/testMain/Makefile
145
msvc6/testNDC/Makefile
146
msvc6/testNTEventLog/Makefile
147
msvc6/testPattern/Makefile
149
msvc8/log4shib/Makefile
150
msvc8/log4shibDLL/Makefile
151
msvc8/testCategory/Makefile
152
msvc8/testDLL/Makefile
153
msvc8/testMain/Makefile
154
msvc8/testNDC/Makefile
155
msvc8/testNTEventLog/Makefile
156
msvc8/testPattern/Makefile
158
msvc9/log4shib/Makefile
159
msvc9/log4shibDLL/Makefile
160
msvc9/testCategory/Makefile
161
msvc9/testDLL/Makefile
162
msvc9/testMain/Makefile
163
msvc9/testNDC/Makefile
164
msvc9/testNTEventLog/Makefile
165
msvc9/testPattern/Makefile
167
bcb5/log4shib/Makefile
168
bcb5/testCategory/Makefile
169
bcb5/testConfig/Makefile
170
bcb5/testFixedContextCategory/Makefile
171
bcb5/testmain/Makefile
172
bcb5/testNDC/Makefile
173
bcb5/testPattern/Makefile
178
AC_CREATE_PREFIX_CONFIG_H([include/log4shib/config.h],
179
$PACKAGE_TARNAME, [include/config.h])