~ubuntu-branches/ubuntu/edgy/syslog-ng/edgy-updates

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Magosányi Árpád (mag)
  • Date: 2004-09-13 17:19:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20040913171950-exchl6q68goa4zi4
Tags: 1.6.4-2
* Added patch from Loic Minier to make init script more sane. Closes: #268820
* Added PATH to init script. Closes: #262224
* Only one instance of html documentation. Patch from Loic Minier. Closes: #268685
* Stops only once in prerm. Closes: #268848
* New syslog-ng.conf. Closes: #268686 
* Added Nate Campi's FAQ. Closes: #268998

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl $Id: configure.in,v 1.72.4.3 2004/01/23 11:55:54 bazsi Exp $
 
1
dnl $Id: configure.in,v 1.72.4.7 2004/05/14 14:43:11 bazsi Exp $
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
AC_INIT(src/affile.c)
4
4
 
5
 
AM_INIT_AUTOMAKE(syslog-ng, "1.6.2")
 
5
AM_INIT_AUTOMAKE(syslog-ng, "1.6.4")
6
6
if test -n "$SNAPSHOT_VERSION"; then
7
7
        VERSION=$VERSION+$SNAPSHOT_VERSION
8
8
fi
38
38
   [  --with-libol=path       use an uninstalled copy of libol],
39
39
   [with_libol=`cd $with_libol; pwd`],
40
40
   [with_libol=""])
 
41
   
 
42
AC_ARG_WITH(libnet,
 
43
   [  --with-libnet=path      use path to libnet-config script],
 
44
   ,
 
45
   [with_libnet=""])
41
46
 
42
47
AC_ARG_ENABLE(sun-streams,
43
48
   [  --enable-sun-streams    enable Sun STREAMS support even if not detected])
44
49
 
45
50
AC_ARG_ENABLE(sun-door,
46
51
   [  --enable-sun-door       enable Sun door support even if not detected],,
47
 
   enable_sun_door=no)
 
52
   enable_sun_door=auto)
48
53
 
49
54
AC_ARG_ENABLE(tcp-wrapper,
50
55
   [  --enable-tcp-wrapper    enable using /etc/hosts.deny & /etc/hosts.allow for TCP access],,
51
56
   enable_tcp_wrapper=no)
52
57
 
 
58
AC_ARG_ENABLE(spoof-source,
 
59
   [  --enable-spoof-source    enable spoof_source feature],,
 
60
   enable_spoof_source=no)
 
61
 
53
62
sysconfdir="${sysconfdir}/syslog-ng"
54
63
 
55
64
AM_SANITY_CHECK
88
97
blb_cv_c_modern_utmp=yes,
89
98
blb_cv_c_modern_utmp=no)])
90
99
 
91
 
 
 
100
AC_CACHE_CHECK(for global timezone variable,
 
101
               blb_cv_c_global_timezone,
 
102
[AC_TRY_COMPILE([
 
103
#include <time.h>
 
104
],
 
105
[
 
106
int foo(void)
 
107
{
 
108
        timezone = 0;
 
109
}
 
110
],
 
111
blb_cv_c_global_timezone=yes,
 
112
blb_cv_c_global_timezone=no)])
92
113
 
93
114
if test "x$blb_cv_c_modern_utmp" = "xyes"; then
94
115
        AC_DEFINE(HAVE_MODERN_UTMP)
95
116
fi
96
117
 
97
 
AC_MSG_CHECKING(whether to compile klogctl)
98
 
if test "x$ac_cv_header_sys_klog_h" = "xyes"; then
99
 
        klogctl=klogctl
100
 
        AC_MSG_RESULT(yes)
101
 
else
102
 
        klogctl=""
103
 
        AC_MSG_RESULT(no)
104
 
fi
105
 
 
106
 
AC_SUBST(klogctl)
107
 
 
108
118
dnl Seek a type for UINT32
109
119
AC_CHECK_SIZEOF(short, 2)
110
120
AC_CHECK_SIZEOF(int, 4)
133
143
        AC_DEFINE(HAVE_O_LARGEFILE, 1)
134
144
fi
135
145
 
 
146
if test "x$blb_cv_c_global_timezone" = "xyes"; then
 
147
        AC_DEFINE(HAVE_GLOBAL_TIMEZONE, 1)
 
148
fi
 
149
 
136
150
AC_CACHE_CHECK(for res_init in <resolv.h>, blb_cv_c_res_init,
137
151
  [AC_EGREP_HEADER(res_init, resolv.h, blb_cv_c_res_init=yes)])
138
152
 
214
228
        enable_sun_door=yes
215
229
        AC_MSG_RESULT(yes)
216
230
else
 
231
        enable_sun_door=no
217
232
        AC_MSG_RESULT(no)
218
233
fi
219
234
 
233
248
        AC_MSG_RESULT(no)
234
249
fi
235
250
 
 
251
AC_MSG_CHECKING(whether to enable spoof_source support)
 
252
if test "x$enable_spoof_source" = "xyes"; then
 
253
        if test "x$with_libnet" = "x"; then
 
254
                LIBNET_CONFIG=`which libnet-config`
 
255
        else
 
256
                LIBNET_CONFIG=$with_libnet/libnet-config
 
257
        fi
 
258
        if test -x $LIBNET_CONFIG; then
 
259
                AC_DEFINE(ENABLE_SPOOF_SOURCE)
 
260
                CFLAGS="$CFLAGS `$LIBNET_CONFIG --cflags`"
 
261
                CPPFLAGS="$CPPFLAGS `$LIBNET_CONFIG --defines`"
 
262
                LIBS="$LIBS `$LIBNET_CONFIG --libs`"
 
263
                AC_MSG_RESULT(yes)
 
264
        else
 
265
                AC_ERROR(libnet-config not found)
 
266
        fi
 
267
else
 
268
        AC_MSG_RESULT(no)
 
269
fi
 
270
 
236
271
 
237
272
AC_MSG_CHECKING(libol version >= $LIBOL_REQ_MAJOR.$LIBOL_REQ_MINOR.$LIBOL_REQ_PATCH)
238
273