test-perror: relax test to ignore cygwin bug
[pspp] / m4 / imaxabs.m4
index 62304803d11f3c1052cfb7be89d1636acf635b70..2450353822b57398184fcfdff9faf3357e82c113 100644 (file)
@@ -1,13 +1,15 @@
-# imaxabs.m4 serial 1
-dnl Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+# imaxabs.m4 serial 2
+dnl Copyright (C) 2006, 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,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_IMAXABS],
 [
-  AC_REQUIRE([gl_INTTYPES_H])
+  AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
+  AC_CHECK_DECLS_ONCE([imaxabs])
   if test "$ac_cv_have_decl_imaxabs" != yes; then
+    HAVE_DECL_IMAXABS=0
     AC_LIBOBJ([imaxabs])
     gl_PREREQ_IMAXABS
   fi