# HG changeset patch # User Bruno Haible # Date 1280517493 -7200 # Node ID 37d7bd3f8a397a13485b50f073b60fa49261eeeb # Parent c0da50f818a36e739a6a9e14354305ba2ef39626 truncl: Fix autoconf test. diff -r c0da50f818a3 -r 37d7bd3f8a39 ChangeLog --- a/ChangeLog Fri Jul 30 21:14:41 2010 +0200 +++ b/ChangeLog Fri Jul 30 21:18:13 2010 +0200 @@ -1,3 +1,10 @@ +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. diff -r c0da50f818a3 -r 37d7bd3f8a39 m4/truncl.m4 --- a/m4/truncl.m4 Fri Jul 30 21:14:41 2010 +0200 +++ b/m4/truncl.m4 Fri Jul 30 21:18:13 2010 +0200 @@ -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 @@ 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 @@ esac ]) ]) + LIBS="$save_LIBS" case "$gl_cv_func_truncl_works" in *yes) ;; *) REPLACE_TRUNCL=1 ;;