changeset 12222:a968e87200d1

fseeko: fix m4 regression * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes regression from 2009-10-27. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 31 Oct 2009 07:23:11 -0600
parents a12bc0c11a21
children 2f9579cbb962
files ChangeLog m4/fseeko.m4
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-31  Eric Blake  <ebb9@byu.net>
+
+	fseeko: fix m4 regression
+	* m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
+	regression from 2009-10-27.
+	Reported by Ralf Wildenhues.
+
 2009-10-31  Jim Meyering  <meyering@redhat.com>
 
 	inttostr: aesthetics and improved (compile-time) safety
--- a/m4/fseeko.m4
+++ b/m4/fseeko.m4
@@ -1,4 +1,4 @@
-# fseeko.m4 serial 5
+# fseeko.m4 serial 6
 dnl Copyright (C) 2007-2009 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,7 +15,8 @@
 
   AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko],
     [
-      AC_TRY_LINK([[#include <stdio.h>]], [fseeko (stdin, 0, 0);],
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
+]], [fseeko (stdin, 0, 0);])],
 	[gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no])
     ])
   if test $gl_cv_func_fseeko = no; then