summaryrefslogtreecommitdiff
path: root/m4/truncl.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-07-30 21:18:13 +0200
committerBruno Haible <bruno@clisp.org>2010-07-30 21:18:13 +0200
commit11b16d3cdc4646f80822751dc6882b21c9da2a22 (patch)
tree72767f72a00069a14a3adbc08b9596d71eb0ad74 /m4/truncl.m4
parentb4e5a5f11bd67ce5435b5ecf43b7fb6a81ba62a0 (diff)
downloadgnulib-11b16d3cdc4646f80822751dc6882b21c9da2a22.tar.gz
truncl: Fix autoconf test.
Diffstat (limited to 'm4/truncl.m4')
-rw-r--r--m4/truncl.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/truncl.m4 b/m4/truncl.m4
index 0498585b20..49f006520f 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 ;;