Mercurial > hg > octave-lyh > gnulib-hg
changeset 9735:cc334325e69d
(gl_ARGP): Use AC_TRY_LINK to test if program_invocation_name and
program_invocation_short_name are present.
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Fri, 29 Feb 2008 10:29:06 +0200 |
parents | 80e0e25c2220 |
children | c9d842aa733a |
files | m4/argp.m4 |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/argp.m4 +++ b/m4/argp.m4 @@ -32,20 +32,20 @@ # 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_COMPILE([#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_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_MSG_CHECKING(whether program_invocation_short_name is defined) - AC_TRY_COMPILE([#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_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_CHECK_DECLS_ONCE([clearerr_unlocked]) AC_CHECK_DECLS_ONCE([feof_unlocked])