/* Define to 1 if you have the `getmntinfo' function. */
#undef HAVE_GETMNTINFO
-/* Define to 1 if you have the `getpagesize' function. */
+/* Set if have getpagesize */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the `getpid' function. */
[echo 'configure: cannot find needed function.'; exit 1]
)
+AC_CHECK_FUNCS(getpagesize, [AC_DEFINE(HAVE_GETPAGESIZE, 1, [Set if have getpagesize])])
AC_CHECK_FUNCS(malloc_trim, [AC_DEFINE(HAVE_MALLOC_TRIM, 1, [Set if have malloc_trim])])
AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
done
+for ac_func in getpagesize
+do :
+ ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
+if test "x$ac_cv_func_getpagesize" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_GETPAGESIZE 1
+_ACEOF
+
+$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
+
+fi
+done
+
+
for ac_func in malloc_trim
do :
ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"