signbit: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 22:25:36 +0000 (00:25 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:47 +0000 (00:06 +0200)
* m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
* modules/signbit (configure.ac): ... to here.

ChangeLog
m4/signbit.m4
modules/signbit

index ab702c66d0152c5ea637bbcd80c3664968972b35..1b915338d6a421c2ead60b7596acb423e7fd84e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       signbit: Move AC_LIBOBJ invocations to module description.
+       * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
+       * modules/signbit (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        sigprocmask: Move AC_LIBOBJ invocations to module description.
index 6973a7110787b52b4b029c3b30c8936b76973402..696a9b6e1dee05b43df6eecc43ff52ac181f3c8e 100644 (file)
@@ -1,4 +1,4 @@
-# signbit.m4 serial 9
+# signbit.m4 serial 10
 dnl Copyright (C) 2007-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,
@@ -58,10 +58,8 @@ AC_DEFUN([gl_SIGNBIT],
     REPLACE_SIGNBIT_USING_GCC=1
   else
     if test "$gl_cv_func_signbit" != yes; then
+      dnl REPLACE_SIGNBIT=1 makes sure the signbit[fdl] functions get built.
       REPLACE_SIGNBIT=1
-      AC_LIBOBJ([signbitf])
-      AC_LIBOBJ([signbitd])
-      AC_LIBOBJ([signbitl])
       gl_FLOAT_SIGN_LOCATION
       gl_DOUBLE_SIGN_LOCATION
       gl_LONG_DOUBLE_SIGN_LOCATION
index b3ad38836b8eb4d4ae5b925e68c4c58d4cc0df32..bc351f3ee1af0f71696d304e5df90c72218f57f7 100644 (file)
@@ -19,6 +19,11 @@ memcmp          [test $REPLACE_SIGNBIT = 1]
 
 configure.ac:
 gl_SIGNBIT
+if test $REPLACE_SIGNBIT = 1; then
+  AC_LIBOBJ([signbitf])
+  AC_LIBOBJ([signbitd])
+  AC_LIBOBJ([signbitl])
+fi
 gl_MATH_MODULE_INDICATOR([signbit])
 
 Makefile.am: