From 11b16d3cdc4646f80822751dc6882b21c9da2a22 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 30 Jul 2010 21:18:13 +0200 Subject: [PATCH] truncl: Fix autoconf test. --- ChangeLog | 7 +++++++ m4/truncl.m4 | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 79b353688..5a8f0b40a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-07-30 Bruno Haible + truncl: Fix autoconf test. + * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing + whether truncl works. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + round: Update regarding AIX. * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7. * doc/posix-functions/round.texi: Mention bug on AIX 7.1. diff --git a/m4/truncl.m4 b/m4/truncl.m4 index 0498585b2..49f006520 100644 --- a/m4/truncl.m4 +++ b/m4/truncl.m4 @@ -1,4 +1,4 @@ -# truncl.m4 serial 4 +# truncl.m4 serial 5 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, @@ -40,6 +40,8 @@ AC_DEFUN([gl_FUNC_TRUNCL], TRUNCL_LIBM= fi dnl Test whether truncl() works. It crashes on OSF/1 4.0d. + save_LIBS="$LIBS" + LIBS="$LIBS $TRUNCL_LIBM" AC_CACHE_CHECK([whether truncl works], [gl_cv_func_truncl_works], [ AC_TRY_RUN([ @@ -56,6 +58,7 @@ int main() esac ]) ]) + LIBS="$save_LIBS" case "$gl_cv_func_truncl_works" in *yes) ;; *) REPLACE_TRUNCL=1 ;; -- 2.11.0