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 ab702c6..1b91533 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
        gl_PREREQ_SIGPROMASK invocations from here...
index 6973a71..696a9b6 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 b3ad388..bc351f3 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: