strnlen: Fix a C++ test error on MacOS X and Solaris.
[pspp] / m4 / truncl.m4
index 3eab513a377c9417333c3250c77067ad5fe67d57..0498585b2033a1df69aa736fe914a0fdac099913 100644 (file)
@@ -1,4 +1,4 @@
-# truncl.m4 serial 3
+# truncl.m4 serial 4
 dnl Copyright (C) 2007-2008, 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -61,9 +61,9 @@ int main()
       *) REPLACE_TRUNCL=1 ;;
     esac
   else
-    REPLACE_TRUNCL=1
+    HAVE_DECL_TRUNCL=0
   fi
-  if test $REPLACE_TRUNCL = 1; then
+  if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
     AC_LIBOBJ([truncl])
     TRUNCL_LIBM=
   fi