diff options
author | Bruno Haible <bruno@clisp.org> | 2010-07-19 23:30:26 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-26 22:57:47 +0200 |
commit | ec062d7a2671739dd977ebde3965fc93f8678a2e (patch) | |
tree | 9994c5eba453481c6616a46b4135d7b96a6dde01 /m4/atanl.m4 | |
parent | 2c4321f6d6ab71a7bf97177ab685d67a24934fb5 (diff) | |
download | gnulib-ec062d7a2671739dd977ebde3965fc93f8678a2e.tar.gz |
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'm4/atanl.m4')
-rw-r--r-- | m4/atanl.m4 | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/m4/atanl.m4 b/m4/atanl.m4 index 28cf7b3a81..3573a3cd8e 100644 --- a/m4/atanl.m4 +++ b/m4/atanl.m4 @@ -1,4 +1,4 @@ -# atanl.m4 serial 2 +# atanl.m4 serial 3 dnl Copyright (C) 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, @@ -14,12 +14,14 @@ AC_DEFUN([gl_FUNC_ATANL], AC_CACHE_CHECK([whether atanl() can be used without linking with libm], [gl_cv_func_atanl_no_libm], [ - AC_TRY_LINK([#ifndef __NO_MATH_INLINES - # define __NO_MATH_INLINES 1 /* for glibc */ - #endif - #include <math.h> - long double x;], - [return atanl (x) > 1;], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#ifndef __NO_MATH_INLINES + # define __NO_MATH_INLINES 1 /* for glibc */ + #endif + #include <math.h> + long double x;]], + [[return atanl (x) > 1;]])], [gl_cv_func_atanl_no_libm=yes], [gl_cv_func_atanl_no_libm=no]) ]) @@ -29,12 +31,14 @@ AC_DEFUN([gl_FUNC_ATANL], [ save_LIBS="$LIBS" LIBS="$LIBS -lm" - AC_TRY_LINK([#ifndef __NO_MATH_INLINES - # define __NO_MATH_INLINES 1 /* for glibc */ - #endif - #include <math.h> - long double x;], - [return atanl (x) > 1;], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#ifndef __NO_MATH_INLINES + # define __NO_MATH_INLINES 1 /* for glibc */ + #endif + #include <math.h> + long double x;]], + [[return atanl (x) > 1;]])], [gl_cv_func_atanl_in_libm=yes], [gl_cv_func_atanl_in_libm=no]) LIBS="$save_LIBS" |