fi
-AX_CHECK_OPENSSL([
- AC_DEFINE(HAVE_SSL, , [Check for OpenSSL Library])
- HAVE_SSL="yes"
- ])
-
-
+AX_CHECK_OPENSSL([AC_DEFINE(HAVE_SSL, , [Check for OpenSSL Library]) HAVE_SSL="yes"])
AC_ARG_ENABLE(zlib, AS_HELP_STRING([--disable-zlib], [Don't use zlib for database compression.]), enable_zlib=$enableval, enable_zlib=yes)
AC_CHECK_FUNC(crypt, [AC_DEFINE(HAS_CRYPT, , [Has system crypt])])
AC_CHECK_FUNCS([fpsetmask fpsetround])
AC_MSG_CHECKING([for isnormal])
-AC_LINK_IFELSE([
+AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <math.h>
int main(void) {
return !isnormal(1.0);
}
-],
+])],
[AC_MSG_RESULT(yes)]
[AC_DEFINE(HAVE_ISNORMAL, , [check for isnormal function in math.h])],
AC_MSG_RESULT(no))
# through an AC_CHECK_FUNCS but not when it comes time to actually use
# them in source.
AC_MSG_CHECKING([for posix_fallocate])
-AC_LINK_IFELSE([
+AC_LINK_IFELSE([AC_LANG_SOURCE([
#define _XOPEN_SOURCE 600
#include <fcntl.h>
-
int
main(void)
{
posix_fallocate(0, 0, 100);
return 0;
}
-],
+])],
[AC_MSG_RESULT(yes)]
[AC_DEFINE(HAVE_POSIX_FALLOCATE, , [check for posix_fallocate function in fcntl.h])],
AC_MSG_RESULT(no))
AC_MSG_CHECKING([for posix_fadvise and associated constants])
-AC_LINK_IFELSE([
+AC_LINK_IFELSE([AC_LANG_SOURCE([
#define _XOPEN_SOURCE 600
#include <fcntl.h>
-
int
main(void)
{
posix_fadvise(0, 0, 0, POSIX_FADV_SEQUENTIAL);
return 0;
}
-],
+])],
[AC_MSG_RESULT(yes)]
[AC_DEFINE(HAVE_POSIX_FADVISE, , [check for posix_fadvise function])],
AC_MSG_RESULT(no))
LIBS="$OPENSSL_LIBS $LIBS"
CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
- AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)]),
+ [AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)])],
[
AC_MSG_RESULT([yes])
$1