mbspcasecmp: Fix function specification.
[gnulib.git] / m4 / truncl.m4
index a5243c3..0498585 100644 (file)
@@ -1,5 +1,5 @@
-# truncl.m4 serial 2
-dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
+# 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,
 dnl with or without modifications, as long as this notice is preserved.
@@ -61,12 +61,11 @@ 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
-  AC_SUBST([REPLACE_TRUNCL])
   AC_SUBST([TRUNCL_LIBM])
 ])