ceilf-ieee: Work around bug on MacOS X 10.5.
[pspp] / m4 / pread.m4
index c6d1888f33ac82b8242942cb553d144777b1cfbd..09a970760a2c68aa8e32fcdaaab57457fa3ad7f0 100644 (file)
@@ -1,4 +1,4 @@
-# pread.m4 serial 3
+# pread.m4 serial 5
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ changequote([,])dnl
         gl_save_CPPFLAGS="$CPPFLAGS"
         CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
         AC_RUN_IFELSE(
-          [AC_LANG_SOURCE([[
+          [AC_LANG_PROGRAM([[
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -82,7 +82,4 @@ changequote([,])dnl
   else
     HAVE_PREAD=0
   fi
-  if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then
-    AC_LIBOBJ([pread])
-  fi
 ])