]> git.ipfire.org Git - thirdparty/sarg.git/blame - configure.ac
Restore support for bzip2 files
[thirdparty/sarg.git] / configure.ac
CommitLineData
11cb1341 1dnl Process this file with autoconf or autoreconf to produce a configure script.
2fd0415d 2AC_INIT([sarg],[2.4.0-pre2])
0743911c 3AC_CONFIG_SRCDIR([log.c])
25697a35
GS
4AC_CONFIG_AUX_DIR(cfgaux)
5
25697a35
GS
6AC_CANONICAL_HOST
7
8AC_ARG_WITH(gcc,
2020ec6f 9AS_HELP_STRING([--without-gcc],[use CC to compile]))
25697a35
GS
10
11test -n "$CC" && cc_specified=yes
12case ${with_gcc} in
13 yes ) CC=gcc ;;
14dnl yes ) CC=g++ ;;
15 no ) CC=cc ;;
16 * ) AC_PROG_CC;;
17dnl * ) AC_PROG_CXX ;;
18esac
19
ff0eb6c5
FM
20dnl The purpose of the following condition is unknown but it is obsolete as it is.
21dnl The -Aa option produces an error claiming that some argument are missing.
22dnl if test "${CC}" = "cc" ; then
23dnl CFLAGS="${CFLAGS} -g -O2 -Aa"
24dnl fi
25
2b17869b
FM
26dnl C99 support is required to define LLONG_MAX (at least on CentOS 5.7)
27AC_PROG_CC_C99
28
ff0eb6c5 29# Report more warnings to improve code quality.
dfbbe8fa 30CFLAGS="${CFLAGS} -Wall"
05b90947 31
f6614448 32dnl Check for supported compiler options
4782357f 33
f6614448
FM
34AC_MSG_CHECKING([for extra warnings flag in $CC])
35saved_CFLAGS="${CFLAGS}"
7c9980f1 36CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
f6614448
FM
37AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_extra_warnings="yes"],[have_extra_warnings="no"])
38AC_MSG_RESULT($have_extra_warnings)
e9e69ce7 39AS_IF([test "$have_extra_warnings" = "no"],[CFLAGS="${saved_CFLAGS}"])
f6614448 40
dfbbe8fa
FM
41# Don't compare signs as it is a mess
42CFLAGS="${CFLAGS} -Wno-sign-compare"
43
f6614448 44AC_MSG_CHECKING([for implicit-function-declaration error flag in $CC])
4782357f
FM
45saved_CFLAGS="${CFLAGS}"
46CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
47AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_implicit_function_declaration="yes"],[have_implicit_function_declaration="no"])
48AC_MSG_RESULT($have_implicit_function_declaration)
e9e69ce7 49AS_IF([test "$have_implicit_function_declaration" = "no"],[CFLAGS="${saved_CFLAGS}"])
4782357f 50
f6614448 51AC_MSG_CHECKING([for format error flag in $CC])
4782357f
FM
52saved_CFLAGS="${CFLAGS}"
53CFLAGS="${CFLAGS} -Werror=format"
54AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"])
55AC_MSG_RESULT($have_error_format)
e9e69ce7 56AS_IF([test "$have_error_format" = "no"],[CFLAGS="${saved_CFLAGS}"])
25697a35
GS
57
58case "$host" in
59 *-solaris*)
60 LDFLAGS="${LDFLAGS} -lsocket -lnsl"
61 CFLAGS="-DSOLARIS ${CFLAGS}"
62 ;;
63esac
64
65#dnl Checks for programs.
66#AC_PROG_CC
67
68dnl Check for headers
69AC_HEADER_DIRENT
70AC_HEADER_STDC
71
d6e703cc 72
25697a35 73AC_CHECK_HEADERS(stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
a50c6319 74 dirent.h sys/types.h sys/socket.h netdb.h arpa/inet.h netinet/in.h sys/stat.h \
1c72006e 75 ctype.h errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
58dfd425
FM
76 execinfo.h math.h libintl.h libgen.h stdbool.h getopt.h fcntl.h fnmatch.h \
77 winsock.h)
9b179eb0 78
e9e69ce7 79AS_IF([test $ac_cv_header_getopt_h = "no"],[AC_MSG_ERROR("getopt.h is required to compile sarg")])
25697a35 80
1c72006e
FM
81# Build with gd
82AC_ARG_WITH([gd],
82aba1f7
FM
83 AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]),
84 [],[with_gd=check])
e9e69ce7
FM
85AS_IF([test "x$with_gd" != "xno"],
86[
1c72006e 87 AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h)
e9e69ce7
FM
88 AS_IF([test "x$ac_cv_header_gd_h" = "xyes"],
89 [
8ddc656a 90 AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes", HAVE_GD_LIB="")
e9e69ce7
FM
91 AS_IF([test "x$HAVE_GD_LIB" != "xyes"],
92 [
a11f0112 93 AC_MSG_ERROR([libgd is required to compile sarg with gd])
e9e69ce7
FM
94 ])
95 ],[
8ddc656a 96 gd_status="not found"
e9e69ce7
FM
97 ])
98],[
8ddc656a 99 gd_status="disabled"
e9e69ce7 100])
1c72006e
FM
101
102# Build with LDAP
103AC_ARG_WITH([ldap],
82aba1f7
FM
104 AS_HELP_STRING([--with-ldap],[Compile with LDAP support]),
105 [],[with_ldap=check])
e9e69ce7
FM
106AS_IF([test "x$with_ldap" != "xno"],
107[
62f36072 108 AC_CHECK_HEADERS([ldap_cdefs.h] [ldap_features.h] [ldap.h],,break)
e9e69ce7
FM
109 AS_IF([test "x$ac_cv_header_ldap_h" = "xyes"],
110 [
62f36072 111 AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="")
e9e69ce7 112 ],[
e9d09e79 113 ldap_status="not found"
e9e69ce7
FM
114 ])
115],[
e9d09e79 116 ldap_status="disabled"
e9e69ce7 117])
1c72006e
FM
118
119# Build with iconv
120AC_ARG_WITH([iconv],
82aba1f7
FM
121 AS_HELP_STRING([--with-iconv],[Compile with support for iconv]),
122 [],[with_iconv=check])
e9e69ce7
FM
123AS_IF([test "x$with_iconv" != "xno"],
124[
1c72006e
FM
125 dnl Check for iconv
126 AM_ICONV
e9e69ce7 127 AS_IF([test -n "$LIBICONV"],[LIBS="$LIBS $LIBICONV"])
1c72006e 128 AC_CHECK_HEADERS(iconv.h)
e9e69ce7 129],[
1c72006e 130 AC_MSG_NOTICE([Not building with iconv as requested on the configuration command line])
e9e69ce7 131])
25697a35 132
6e24f222
FM
133# Build with pcre
134AC_ARG_WITH([pcre],
82aba1f7
FM
135 AS_HELP_STRING([--with-pcre],[Compile with support for the Perl Compatible Regular Expressions library]),
136 [],[with_pcre=check])
e9e69ce7
FM
137AS_IF([test "x$with_pcre" != "xno"],
138[
6e24f222 139 AC_CHECK_HEADERS(pcre.h)
e9e69ce7
FM
140 AS_IF([test "x$ac_cv_header_pcre_h" = "xyes"],
141 [
f6185ca7 142 LIBS="$LIBS $(pcre-config --libs)"
6e24f222 143 CFLAGS="$CFLAGS $(pcre-config --cflags)"
e9e69ce7 144 ],[
6e24f222 145 pcre_status="not found"
e9e69ce7
FM
146 ])
147],[
6e24f222 148 pcre_status="disabled"
e9e69ce7 149])
25697a35 150
2b41f02c
FM
151# Build with file globbing
152AC_ARG_WITH([glob],
82aba1f7
FM
153 AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]),
154 [],[with_glob=yes])
e9e69ce7
FM
155AS_IF([test "x$with_glob" != "xno"],
156[
f101e208
FM
157 AC_CHECK_HEADERS([glob.h],[],
158 [
159 AS_IF([test "x$with_glob" != "xcheck"],
160 [
161 AC_MSG_FAILURE([glob.h not found (use --without-glob to compile without file globbing)])
162 ])
163 ])
e9e69ce7 164],[
2b41f02c 165 glob_status="disabled"
e9e69ce7 166])
2b41f02c 167
800eafb8
FM
168# Build with zlib
169AC_ARG_WITH([zlib],
82aba1f7
FM
170 AS_HELP_STRING([--with-zlib],[Compile with support to decompress gz files]),
171 [],[with_zlib=check])
e9e69ce7
FM
172AS_IF([test "x$with_zlib" != "xno" ],
173[
800eafb8 174 AC_CHECK_HEADERS(zlib.h)
e9e69ce7
FM
175 AS_IF([test "x$ac_cv_header_zlib_h" = "xyes"],
176 [
68bb0f2c
FM
177 AC_CHECK_LIB([z],[gzopen],
178 [
179 LIBS="-lz ${LIBS}"
180 HAVE_ZLIB_LIB="yes"
181 ],[
182 HAVE_ZLIB_LIB=""
183 ])
e9e69ce7
FM
184 AS_IF([test "x$HAVE_ZLIB_LIB" != "xyes"],[AC_MSG_ERROR([zlib was not found])])
185 ],[
800eafb8 186 zlib_status="not found"
e9e69ce7
FM
187 ])
188],[
800eafb8 189 zlib_status="disabled"
e9e69ce7 190])
800eafb8 191
a1e4e370
FM
192# Build with bzlib
193AC_ARG_WITH([bzlib],
194 AS_HELP_STRING([--with-bzlib],[Compile with support to decompress bz2 files]),
195 [],[with_bzlib=check])
196AS_IF([test "x$with_bzlib" != "xno" ],
197[
198 AC_CHECK_HEADERS(bzlib.h)
199 AS_IF([test "x$ac_cv_header_bzlib_h" = "xyes"],
200 [
201 AC_CHECK_LIB([bz2],[BZ2_bzReadOpen],
202 [
203 LIBS="-lbz2 ${LIBS}"
204 HAVE_BZLIB_LIB="yes"
205 ],[
206 HAVE_BZLIB_LIB=""
207 ])
208 AS_IF([test "x$HAVE_BZLIB_LIB" != "xyes"],[AC_MSG_ERROR([bzlib was not found])])
209 ],[
210 bzlib_status="not found"
211 ])
212],[
213 bzlib_status="disabled"
214])
215
25697a35
GS
216dnl Checks for typedefs, structures, and compiler characteristics.
217AC_C_CONST
218AC_STRUCT_TM
219
5963cdcd
FM
220# Change the gettext version according to the available version on your system.
221# It should not be necessary to change it unless you run autoreconf -fi.
c8aad602 222AM_GNU_GETTEXT_VERSION([0.18])
095bc6be
FM
223AM_GNU_GETTEXT([external])
224
32e71fa4 225AC_SYS_LARGEFILE
d6e703cc 226
25697a35
GS
227# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
228# needs to be defined for it
229AC_MSG_CHECKING([for fopen64])
230AC_CACHE_VAL(bu_cv_have_fopen64,
a61fe05c
FM
231[noerror_CFLAGS=$CFLAGS
232 CFLAGS="$CFLAGS -Werror"
233 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[FILE *f = fopen64 ("/tmp/foo","r");fclose(f);]])],[bu_cv_have_fopen64=yes],
234 [CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
235 AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");fclose(f);],
25697a35 236bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
a61fe05c
FM
237 CFLAGS=$noerror_CFLAGS
238 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[FILE *f = fopen64 ("/tmp/foo","r");fclose(f);]])],[bu_cv_have_fopen64="yes without -Werror"
239 werror_status="fail"],
240 [CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
241 AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");fclose(f);],
242bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE and no -Werror"
243werror_status="fail",
244bu_cv_have_fopen64=no)]))
245 ])
246 CFLAGS=$noerror_CFLAGS])
25697a35 247AC_MSG_RESULT($bu_cv_have_fopen64)
e9e69ce7
FM
248AS_IF([test "$bu_cv_have_fopen64" != no],
249[
250 AC_DEFINE([HAVE_FOPEN64],1,[Is fopen64 available?])
251 AS_IF([test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"],
252 [
253 AC_DEFINE([_LARGEFILE64_SOURCE],1,[Enable LFS])
254 ])
255])
25697a35 256
40d681bc 257dnl check for functions
e6414a9d 258AC_CHECK_FUNCS(backtrace)
b5f13803 259AC_CHECK_FUNCS(symlink)
d9c45e9c 260AC_CHECK_FUNCS(lstat)
72c27633 261AC_CHECK_FUNCS(getnameinfo)
4afbb7a5 262AC_CHECK_FUNCS(getaddrinfo)
d7cb0aec 263AC_CHECK_FUNCS(mkstemp)
6068ae56 264AC_CHECK_FUNCS(fnmatch)
32e71fa4 265
a50c6319
FM
266dnl check for structure members
267AC_CHECK_MEMBER([struct sockaddr_storage.ss_len],[AC_DEFINE([HAVE_SOCKADDR_SA_LEN],1,[ss_len in sockaddr_storage])])
268
cda22ffb 269dnl windows require this library
e9e69ce7
FM
270AS_IF([test $ac_cv_header_winsock_h = "yes"],
271[
cda22ffb 272# AC_CHECK_LIBS([ws2_32],[WSAGetLastError]) fails because of the __stdcall in the function prototype
e9e69ce7
FM
273 LIBS="$LIBS -lws2_32"
274])
cda22ffb 275
32e71fa4
FM
276dnl check for the rlim_t size
277AC_CHECK_SIZEOF(rlim_t,1,[#if HAVE_SYS_RESOURCE_H
278#include <sys/resource.h>
279#endif
280])
e9e69ce7
FM
281AS_IF([test $ac_cv_sizeof_rlim_t = "4"],
282[
283 AC_DEFINE(RLIM_STRING, "%d", [Rlim string])
284],[test $ac_cv_sizeof_rlim_t = "8"],
285[
286 AC_DEFINE(RLIM_STRING, "%lli", [Rlim string])
287],[
288 AC_MSG_WARN([can not detect the size of your system rlim_t type])
289])
32e71fa4 290
2b17869b
FM
291dnl check for the long long int max constant
292AC_CHECK_DECL(LLONG_MAX,HAVE_LLONG_MAX="yes",HAVE_LLONG_MAX="no",[[#include <limits.h>]])
e9e69ce7
FM
293AS_IF([test "x$ac_cv_have_decl_LLONG_MAX" != "xyes"],
294[
2b17869b 295 AC_MSG_ERROR([LLONG_MAX is not defined on your system.])
e9e69ce7 296])
2b17869b 297
7bbc1de4
FM
298dnl Select sarg-php directory
299AC_ARG_ENABLE(sargphp,
82aba1f7
FM
300 AS_HELP_STRING([--enable-sargphp=sargphpdir],
301 [Select sargphpdir as the directory to install sarg-php into]),
302 [
303 AS_IF([test "$enableval" -a "x$enableval" != "xno"],[SARGPHPDIR=$enableval])
304 ],[SARGPHPDIR="/var/www/html"])
e9e69ce7
FM
305AS_IF([test "$SARGPHPDIR"],
306[
307 AC_MSG_NOTICE([using $SARGPHPDIR as the directory to install sarg-php])
308 AC_SUBST(SARGPHPDIR)
309])
25697a35 310
b3695c67
FM
311dnl Select fonts dir
312AC_ARG_ENABLE(fontdir,
82aba1f7
FM
313 AS_HELP_STRING([--enable-fontdir=fontdir],
314 [Select fontdir as the directory with the fonts to use in the reports]),
315 [
316 AS_IF([test "$enableval" -a "x$enableval" != "xno"],[FONTDIR=$enableval])
317 ],[FONTDIR="${datarootdir}/sarg/fonts"])
e9e69ce7
FM
318AS_IF([test "$FONTDIR"],
319[
320 AS_IF([test "x$prefix" = "xNONE"],
321 [
322 tempfullpath=`prefix=$ac_default_prefix ; eval "echo $FONTDIR"`
323 ],[
324 tempfullpath=`eval "echo $FONTDIR"`
325 ])
326 AC_MSG_NOTICE([using $tempfullpath as the directory of the fonts])
327 AC_SUBST(FONTDIR)
328])
b3695c67
FM
329
330dnl Select images dir
331AC_ARG_ENABLE(imagedir,
82aba1f7
FM
332 AS_HELP_STRING([--enable-imagedir=imagedir],
333 [Select imagedir as the directory with the images to use in the reports]),
334 [
335 AS_IF([test "$enableval"],[IMAGEDIR=$enableval])
336 ],[IMAGEDIR="${datarootdir}/sarg/images"])
e9e69ce7
FM
337AS_IF([test "x$prefix" = "xNONE"],
338[
339 tempfullpath=`prefix=$ac_default_prefix ; eval "echo $IMAGEDIR"`
340],[
341 tempfullpath=`eval "echo $IMAGEDIR"`
342])
d2eb201c 343AC_MSG_NOTICE([using $tempfullpath as the directory of the images])
b3695c67
FM
344AC_SUBST(IMAGEDIR)
345
05b90947
FM
346dnl Enable extra compile and run time protection
347AC_ARG_ENABLE(extraprotection,
82aba1f7
FM
348 AS_HELP_STRING([--enable-extraprotection],
349 [Enable compile and runtime extra protections]),
05b90947 350[
e9e69ce7
FM
351 AS_IF([test "$enableval"],
352 [
353 # _FORTIFY_SOURCE may have been defined by the system. It must be undefined before it is changed to the value we want.
354 CFLAGS="${CFLAGS} -fstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
355 AS_IF([test "x$werror_status" != "xfail"],[CFLAGS="${CFLAGS} -Werror"])
356
357 AC_MSG_CHECKING([for format security flag in $CC])
358 saved_CFLAGS="${CFLAGS}"
359 CFLAGS="${CFLAGS} -Wformat -Werror=format-security"
360 AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_format_security="yes"],[have_format_security="no"])
361 AC_MSG_RESULT($have_format_security)
362 AS_IF([test "$have_format_security" = "no"],[CFLAGS="${saved_CFLAGS}"])
363
364 AC_MSG_CHECKING([for empty body flag in $CC])
365 saved_CFLAGS="${CFLAGS}"
366 CFLAGS="${CFLAGS} -Wempty-body"
367 AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_empty_body="yes"],[have_empty_body="no"])
368 AC_MSG_RESULT($have_empty_body)
369 AS_IF([test "$have_empty_body" = "no"],[CFLAGS="${saved_CFLAGS}"])
370 ])
feba7d37 371])
05b90947 372
65b4ec2c
FM
373dnl Enable double check of the data written in the reports
374AC_ARG_ENABLE(doublecheck,
82aba1f7
FM
375 AS_HELP_STRING([--enable-doublecheck],
376 [Make sarg double check the data it manipulates and output a warning if an error is found]),
65b4ec2c 377[
e9e69ce7
FM
378 AS_IF([test "$enableval"],
379 [
380 AC_DEFINE(ENABLE_DOUBLE_CHECK_DATA)
381 ])
65b4ec2c
FM
382])
383
a640023b
FM
384dnl Get the xsl stylesheet to produce the manpage
385AC_ARG_ENABLE(xsl-man,
82aba1f7
FM
386 AS_HELP_STRING([--enable-xsl-man=man-xsl-style-sheet],
387 [Select the directory containing the the XSL stylesheets to convert DocBook into man page]),
a640023b 388[
e9e69ce7
FM
389 AS_IF([test "$enableval"],
390 [
a640023b
FM
391 XSL_MAN_STYLESHEET=$enableval
392 AC_SUBST(XSL_MAN_STYLESHEET)
e9e69ce7 393 ])
a640023b
FM
394],
395AC_CHECK_FILES([/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl],
396[
397 # debian
398 XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl"
399 AC_SUBST(XSL_MAN_STYLESHEET)
82aba1f7
FM
400],[
401 AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl],
402 [
403 # gentoo
404 XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
405 AC_SUBST(XSL_MAN_STYLESHEET)
406 ])
a640023b
FM
407]))
408
409dnl Get the xsl stylesheet to produce the html page
410AC_ARG_ENABLE(xsl-html,
82aba1f7
FM
411 AS_HELP_STRING([--enable-xsl-html=html-xsl-style-sheet],
412 [Select the directory containing the the XSL stylesheets to convert DocBook into html page]),
a640023b 413[
e9e69ce7
FM
414 AS_IF([test "$enableval"],
415 [
a640023b
FM
416 XSL_HTML_STYLESHEET=$enableval
417 AC_SUBST(XSL_HTML_STYLESHEET)
e9e69ce7 418 ])
a640023b
FM
419],
420AC_CHECK_FILES([/usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/html/onechunk.xsl],
421[
422 # debian
423 XSL_HTML_STYLESHEET="/usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/html/onechunk.xsl"
424 AC_SUBST(XSL_HTML_STYLESHEET)
425],
426[
427AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl],
428[
429 # gentoo
430 XSL_HTML_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl"
431 AC_SUBST(XSL_HTML_STYLESHEET)
d89f1394 432])
a640023b
FM
433]))
434
b6b2e9a9
FM
435AC_SUBST(PACKAGE,"$PACKAGE_NAME")
436AC_SUBST(VERSION,"$PACKAGE_VERSION")
437
095bc6be 438AC_CONFIG_FILES([Makefile po/Makefile.in])
0743911c 439AC_OUTPUT
8ddc656a 440
e9e69ce7 441AS_IF([test "x$gd_status" = "xdisabled"],[
8ddc656a 442 AC_MSG_NOTICE([Not building with gd as requested on the configuration command line])
e9e69ce7 443],[test "x$gd_status" = "xnot found"],[
8ddc656a 444 AC_MSG_NOTICE([gd.h was not found so the graphs won't be available in the report])
e9e69ce7 445])
6e24f222 446
e9e69ce7 447AS_IF([test "x$pcre_status" = "xdisabled"],[
6e24f222 448 AC_MSG_NOTICE([Not building with pcre as requested on the configuration command line])
e9e69ce7 449],[test "x$pcre_status" = "xnot found"],[
ea9c71bf 450 AC_MSG_NOTICE([pcre.h was not found so the regexp won't be available in hostalias])
e9e69ce7 451])
e9d09e79 452
e9e69ce7 453AS_IF([test "x$ldap_status" = "xdisabled"],[
e9d09e79 454 AC_MSG_NOTICE([Not building with LDAP support as requested on the configuration command line])
e9e69ce7 455],[test "x$ldap_status" = "xnot found"],[
e9d09e79 456 AC_MSG_NOTICE([ldap header files not found so LDAP is not available to resolve user's names])
e9e69ce7 457])
2b41f02c 458
e9e69ce7 459AS_IF([test "x$glob_status" = "xdisabled"],[
2b41f02c 460 AC_MSG_NOTICE([Not building with file globbing as requested on the configuration command line])
e9e69ce7 461])
800eafb8 462
e9e69ce7 463AS_IF([test "x$zlib_status" = "xdisabled"],[
800eafb8 464 AC_MSG_NOTICE([Not building with zlib as requested on the configuration command line])
e9e69ce7 465],[test "x$zlib_status" = "xnot found"],[
800eafb8 466 AC_MSG_NOTICE([zlib.h was not found so it won't be possible to process gzipped files])
e9e69ce7 467])
a1e4e370
FM
468
469AS_IF([test "x$bzlib_status" = "xdisabled"],[
470 AC_MSG_NOTICE([Not building with bzlib as requested on the configuration command line])
471],[test "x$bzlib_status" = "xnot found"],[
472 AC_MSG_NOTICE([bzlib.h was not found so it won't be possible to process bzipped files])
473])