From 21834f995758e1d0d5923eac94110433919d12cb Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Wed, 29 Apr 2009 08:05:43 +0000 Subject: [PATCH] On HPUX problems happen when linking C++ program using posix_fadvice() --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)