X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fargp.m4;h=80cb72f53ed7e672de4329eb439e5f82a04436e9;hb=01dfd1752e938c6fca54e791eb2adc1de29189f5;hp=77f1510c8d1354d69223ca17737cca0914bbb781;hpb=f67b37c4af9923c0c70cf79d9b56b7fbcf2c97c3;p=gnulib.git diff --git a/m4/argp.m4 b/m4/argp.m4 index 77f1510c8..80cb72f53 100644 --- a/m4/argp.m4 +++ b/m4/argp.m4 @@ -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_COMPILE([#include ], - [ 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 ], + [ 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 ], - [ 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 ], + [ 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])