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/argp.m4 | |
parent | 2c4321f6d6ab71a7bf97177ab685d67a24934fb5 (diff) | |
download | gnulib-ec062d7a2671739dd977ebde3965fc93f8678a2e.tar.gz |
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'm4/argp.m4')
-rw-r--r-- | m4/argp.m4 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/m4/argp.m4 b/m4/argp.m4 index 819425bbb7..d3ca5bacc5 100644 --- a/m4/argp.m4 +++ b/m4/argp.m4 @@ -1,5 +1,5 @@ -# argp.m4 serial 10 -dnl Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. +# argp.m4 serial 11 +dnl Copyright (C) 2003-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, dnl with or without modifications, as long as this notice is preserved. @@ -32,20 +32,20 @@ AC_DEFUN([gl_ARGP], # be defined and other not, I prefer to stay on the safe side and to # test each one separately. AC_MSG_CHECKING([whether program_invocation_name is defined]) - AC_TRY_LINK([#include <argp.h>], - [ program_invocation_name = "test"; ], - [ AC_DEFINE([HAVE_PROGRAM_INVOCATION_NAME], [1], - [Define if program_invocation_name is defined]) - AC_MSG_RESULT([yes])], - [ AC_MSG_RESULT([no])] ) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>]], + [[program_invocation_name = "test";]])], + [AC_DEFINE([HAVE_PROGRAM_INVOCATION_NAME], [1], + [Define if program_invocation_name is defined]) + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) AC_MSG_CHECKING([whether program_invocation_short_name is defined]) - AC_TRY_LINK([#include <argp.h>], - [ program_invocation_short_name = "test"; ], - [ AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1], - [Define if program_invocation_short_name is defined]) - AC_MSG_RESULT([yes])], - [ AC_MSG_RESULT([no])] ) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>]], + [[program_invocation_short_name = "test";]])], + [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1], + [Define if program_invocation_short_name is defined]) + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) AC_CHECK_DECLS_ONCE([clearerr_unlocked]) AC_CHECK_DECLS_ONCE([feof_unlocked]) |