1 diff -Nur old/configure.in new/configure.in
2 --- old/configure.in 2003-12-13 19:43:39.000000000 +0000
3 +++ new/configure.in 2003-12-15 02:30:53.000000000 +0000
5 AC_CHECK_FUNCS(readdir readdir_r stricmp ustat)
7 [--without-mmap Don't use mmap. Useful on some platforms with slow mmap],
8 - if test "x$withval" = "xyes"; then
9 + [if test "x$withval" = "xyes"; then
14 - AC_CHECK_FUNCS(mmap)
15 + [AC_CHECK_FUNCS(mmap)]
17 AC_CHECK_FUNC(vsnprintf,,
18 [AC_MSG_ERROR([Must have a system that supports vsnprintf.])]
20 AC_MSG_CHECKING(for acl-support)
22 [--with-sun-acl use ACL on solaris (no checking)],
23 - AC_DEFINE(WITH_SUN_ACL)
24 + [AC_DEFINE(WITH_SUN_ACL)
36 AC_EGREP_CPP(sunisdefined,
40 - AC_CHECK_FUNC(lstat64,
41 - AC_CHECK_FUNC(stat64,
44 + [AC_CHECK_FUNC(lstat64,
45 + [AC_CHECK_FUNC(stat64,
46 AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat64)
47 AC_DEFINE_UNQUOTED(AIDE_STAT_FUNC,stat64)
48 AC_DEFINE_UNQUOTED(AIDE_FSTAT_FUNC,fstat64)
50 AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
51 compoptionstring="${compoptionstring}WITH_LSTAT\\n"
52 compoptionstring="${compoptionstring}WITH_READDIR\\n"
56 - AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
57 + [AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
58 AC_DEFINE_UNQUOTED(AIDE_STAT_FUNC,stat)
59 AC_DEFINE_UNQUOTED(AIDE_FSTAT_FUNC,fstat)
60 AC_DEFINE_UNQUOTED(AIDE_STAT_TYPE,stat)
62 AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
63 AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
64 compoptionstring="${compoptionstring}WITH_LSTAT\\n"
65 - compoptionstring="${compoptionstring}WITH_READDIR\\n"
67 + compoptionstring="${compoptionstring}WITH_READDIR\\n"]
70 - AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
71 + [AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
72 AC_DEFINE_UNQUOTED(AIDE_STAT_FUNC,stat)
73 AC_DEFINE_UNQUOTED(AIDE_FSTAT_FUNC,fstat)
74 AC_DEFINE_UNQUOTED(AIDE_STAT_TYPE,stat)
76 AC_DEFINE_UNQUOTED(AIDE_READDIR_FUNC,readdir)
77 AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
78 AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
79 - compoptionstring="${compoptionstring}WITH_READDIR\\n"
80 + compoptionstring="${compoptionstring}WITH_READDIR\\n"]
87 AC_ARG_WITH([gnu-regexp],
88 - [--with-gnu-regexp use the bundled GNU regexp(use only if necessary)],
89 - [AC_DEFINE(REGEX, 1)]
91 - [AC_CHECK_FUNCS(regexec regcomp,,
92 - [AC_DEFINE(REGEX,1)])]
93 + [--with-gnu-regexp use the bundled GNU regexp (use only if necessary)],
94 + [AC_DEFINE(REGEX, 1)],
95 + [AC_CHECK_FUNCS(regexec regcomp,, [AC_DEFINE(REGEX,1)])]
99 - [--with-gcrypt use gcrypt library],
100 - AC_DEFINE(WITH_GCRYPT)
101 +AC_ARG_WITH(gcrypt, [--with-gcrypt use gcrypt library],
102 + [AC_DEFINE(WITH_GCRYPT)
103 AC_CHECK_HEADER(gcrypt.h,,
104 - AC_MSG_ERROR(You don't have libgcrypt properly installed.
105 -Install it if you need one.)
106 + [AC_MSG_ERROR(You don't have libgcrypt properly installed.
107 +Install it if you need one.)]
110 - compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
111 + compoptionstring="${compoptionstring}WITH_GCRYPT\\n"]
115 -AC_CHECK_LIB(mhash,mhash_get_block_size,
116 +#AC_CHECK_LIB(mhash,mhash_get_block_size,
118 compoptionstring="${compoptionstring}WITH_MHASH\\n"
119 AC_DEFINE(WITH_MHASH)
121 - AC_MSG_ERROR(You must have libmhash properly installed.)
124 +# AC_MSG_ERROR(You must have libmhash properly installed.)
129 @@ -400,12 +398,11 @@
130 if test "x$withval" = "xmd5" ;then
131 AC_DEFINE(CONFIGHMACTYPE,MHASH_MD5)
133 - if test "x$withval" = "xsha1" ;then
134 - AC_DEFINE(CONFIGHMACTYPE,MHASH_SHA1)
136 - echo "Valid parameters for --with-confighmactype are md5, sha1"
139 + if test "x$withval" = "xsha1" ;then
140 + AC_DEFINE(CONFIGHMACTYPE,MHASH_SHA1)
142 + AC_MSG_ERROR(Valid parameters for --with-confighmactype are md5, sha1)
147 @@ -447,12 +444,11 @@
148 if test "x$withval" = "xmd5" ;then
149 AC_DEFINE(DBHMACTYPE,MHASH_MD5)
151 - if test "x$withval" = "xsha1" ;then
152 - AC_DEFINE(DBHMACTYPE,MHASH_SHA1)
154 - echo "Valid parameters for --with-dbhmactype are md5, sha1"
157 + if test "x$withval" = "xsha1" ;then
158 + AC_DEFINE(DBHMACTYPE,MHASH_SHA1)
160 + AC_MSG_ERROR(Valid parameters for --with-dbhmactype are md5, sha1)
167 AC_DEFINE_UNQUOTED(AIDECOMPILEOPTIONS, "${compoptionstring}")
169 -AC_OUTPUT(Makefile src/Makefile intl/Makefile po/Makefile.in doc/Makefile doc/aide.conf