diff --git a/configure.in b/configure.in index 04980218c1..4150fad185 100644 --- a/configure.in +++ b/configure.in @@ -672,7 +672,7 @@ AC_CHECK_FUNCS(semtimedop) # HPUX has a bug in .h files. To detect it we need C++ here. AC_LANG_PUSH(C++) #AC_CHECK_FUNCS(posix_fadvise) -AC_COMPILE_IFELSE( +AC_LINK_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[posix_fadvise(0, 0, 0, 0);]])], AC_DEFINE(HAVE_POSIX_FADVISE, 1, [Define this if posix_fadvise() is present on the platform])) AC_LANG_POP(C++)