summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-02 01:32:05 +0200
committerBruno Haible <bruno@clisp.org>2011-09-02 01:32:05 +0200
commit7c712d9b74453214bc029ebcb12f6f2a00f68bbc (patch)
tree97276b49d1053cff141723e396539e29ef5caeb6 /m4
parent8724e2192d0576a7b86e210e08e38b2b73e6bd8d (diff)
downloadgnulib-7c712d9b74453214bc029ebcb12f6f2a00f68bbc.tar.gz
imaxabs: Avoid link error on OSF/1 with DTK cc.
Diffstat (limited to 'm4')
-rw-r--r--m4/imaxabs.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/imaxabs.m4 b/m4/imaxabs.m4
index 58e5ac8534..294b8f57dc 100644
--- a/m4/imaxabs.m4
+++ b/m4/imaxabs.m4
@@ -1,4 +1,4 @@
-# imaxabs.m4 serial 3
+# imaxabs.m4 serial 4
dnl Copyright (C) 2006, 2009-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,
@@ -7,6 +7,9 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_IMAXABS],
[
AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
+
+ dnl On OSF/1 5.1 with cc, this function is declared but not defined.
+ AC_CHECK_FUNCS_ONCE([imaxabs])
AC_CHECK_DECLS_ONCE([imaxabs])
if test "$ac_cv_have_decl_imaxabs" != yes; then
HAVE_DECL_IMAXABS=0