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/ftello.m4 | |
parent | 2c4321f6d6ab71a7bf97177ab685d67a24934fb5 (diff) | |
download | gnulib-ec062d7a2671739dd977ebde3965fc93f8678a2e.tar.gz |
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'm4/ftello.m4')
-rw-r--r-- | m4/ftello.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/ftello.m4 b/m4/ftello.m4 index ae9a4e6138..38bcf437ee 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,4 +1,4 @@ -# ftello.m4 serial 7 +# ftello.m4 serial 8 dnl Copyright (C) 2007-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, @@ -15,8 +15,12 @@ AC_DEFUN([gl_FUNC_FTELLO], AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello], [ - AC_TRY_LINK([#include <stdio.h>], [ftello (stdin);], - [gl_cv_func_ftello=yes], [gl_cv_func_ftello=no]) + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include <stdio.h>]], + [[ftello (stdin);]])], + [gl_cv_func_ftello=yes], + [gl_cv_func_ftello=no]) ]) if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 |