summaryrefslogtreecommitdiff
path: root/m4/ftello.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-07-19 23:30:26 +0200
committerBruno Haible <bruno@clisp.org>2010-08-26 22:57:47 +0200
commitec062d7a2671739dd977ebde3965fc93f8678a2e (patch)
tree9994c5eba453481c6616a46b4135d7b96a6dde01 /m4/ftello.m4
parent2c4321f6d6ab71a7bf97177ab685d67a24934fb5 (diff)
downloadgnulib-ec062d7a2671739dd977ebde3965fc93f8678a2e.tar.gz
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'm4/ftello.m4')
-rw-r--r--m4/ftello.m410
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