1 --- ./configure.in.org Mon Jul 22 10:46:22 2002
2 +++ ./configure.in Mon Jul 22 12:35:12 2002
7 -AC_CHECK_FUNC(vsnprintf,,
8 - echo "Must have a system that supports vsnprintf"
10 +AC_CHECK_FUNC(vsnprintf,, AC_MSG_ERROR(Must have a system that supports vsnprintf))
12 AC_CHECK_HEADERS(syslog.h ustat.h)
16 if test x$with_zlib = xyes; then
17 AC_CHECK_HEADERS(zlib.h,,
18 - echo "You don't have zlib properly installed."
19 - echo "Install it or try --without-zlib."
21 + AC_MSG_ERROR(You don't have zlib properly installed. Install it or try --without-zlib.))
23 LDFLAGS="$LDFLAGS $LD_STATIC_FLAG"
24 - AC_CHECK_LIB(z,gzdopen,,
25 - echo "You don't have zlib properly installed."
26 - echo "Install it or try --without-zlib."
28 + AC_CHECK_LIB(z,gzdopen,,
29 + AC_MSG_ERROR(You don't have zlib properly installed. Install it or try --without-zlib.))
31 AC_DEFINE(WITH_ZLIB,1)
34 AC_ARG_WITH(gnu-regexp,
35 - "--with-gnu-regexp use the bundled GNU regexp (use only if necessary)",
36 - [AC_DEFINE(REGEX, 1)],
37 - [AC_CHECK_FUNCS(regexec regcomp,,
38 - [AC_DEFINE(REGEX,1)]
40 + [--with-gnu-regexp use the bundled GNU regexp (use only if necessary)],
41 + [AC_DEFINE(REGEX, 1)],
42 + [AC_CHECK_FUNCS(regexec regcomp, , [AC_DEFINE(REGEX,1)] )]
46 - [--with-gcrypt use gcrypt library],
47 - AC_DEFINE(WITH_GCRYPT)
48 - AC_CHECK_HEADER(gcrypt.h,,
49 - echo "You don't have libgcrypt properly installed."
50 - echo "Install it if you need one."
53 - compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
57 -AC_CHECK_LIB(mhash,mhash_get_block_size,
59 - compoptionstring="${compoptionstring}WITH_MHASH\\n"
60 - AC_DEFINE(WITH_MHASH)
62 - echo "You must have libmhash properly installed."
64 +AC_ARG_WITH(gcrypt, [--with-gcrypt use gcrypt library],
65 + [AC_DEFINE(WITH_GCRYPT)
66 + AC_CHECK_HEADER(gcrypt.h, [],
67 + [AC_MSG_ERROR([You don't have libgcrypt properly installed. Install it if you need one.])])
69 + compoptionstring="${compoptionstring}WITH_GCRYPT\\n" ],
72 +#AC_CHECK_LIB(mhash,mhash_get_block_size,
74 + compoptionstring="${compoptionstring}WITH_MHASH\\n"
75 + AC_DEFINE(WITH_MHASH)
77 +# AC_MSG_ERROR(You must have libmhash properly installed.))
81 AC_ARG_WITH(confighmactype,
82 [--with-confighmactype=TYPE Hash type to use for checking config.
83 Valid values are md5 and sha1.],
84 - if test "x$withval" = "xmd5" ;then
85 - AC_DEFINE(CONFIGHMACTYPE,MHASH_MD5)
86 + if test "x$withval" = "xmd5" ; then
87 + AC_DEFINE(CONFIGHMACTYPE,MHASH_MD5)
89 - if test "x$withval" = "xsha1" ;then
90 - AC_DEFINE(CONFIGHMACTYPE,MHASH_SHA1)
92 - echo "Valid parameters for --with-confighmactype are md5, sha1"
95 + if test "x$withval" = "xsha1" ;then
96 + AC_DEFINE(CONFIGHMACTYPE,MHASH_SHA1)
98 + AC_MSG_ERROR(Valid parameters for --with-confighmactype are md5, sha1)
103 @@ -418,14 +404,13 @@
104 [--with-dbhmactype=TYPE Hash type to use for checking db.
105 Valid values are md5 and sha1.],
106 if test "x$withval" = "xmd5" ;then
107 - AC_DEFINE(DBHMACTYPE,MHASH_MD5)
108 + AC_DEFINE(DBHMACTYPE,MHASH_MD5)
110 - if test "x$withval" = "xsha1" ;then
111 - AC_DEFINE(DBHMACTYPE,MHASH_SHA1)
113 - echo "Valid parameters for --with-dbhmactype are md5, sha1"
116 + if test "x$withval" = "xsha1" ;then
117 + AC_DEFINE(DBHMACTYPE,MHASH_SHA1)
119 + AC_MSG_ERROR(Valid parameters for --with-dbhmactype are md5, sha1)
126 [--with-psql use postgres sql library for storing databases],
128 - AC_CHECK_LIB(pq,PQclear,,
129 - echo "You must postgres sql library installed."
131 + AC_CHECK_LIB(pq,PQclear,, AC_MSG_ERROR(You must postgres sql library installed.))
133 compoptionstring="${compoptionstring}WITH_PSQL\\n"
137 AC_DEFINE_UNQUOTED(AIDECOMPILEOPTIONS, "${compoptionstring}")
139 -AC_OUTPUT(Makefile src/Makefile intl/Makefile po/Makefile.in doc/Makefile doc/aide.conf