1 # We need to be careful to avoid having the reference to
2 # program_invocation_name optimized out. We do that by
5 AC_DEFUN([AC_PROGRAM_INVOCATION_NAME],
7 for program_invocation_name,
8 ac_cv_have_program_invocation_name,
9 AC_TRY_LINK([extern char* program_invocation_name;],
10 [return *program_invocation_name;],
11 [ac_cv_have_program_invocation_name=yes],
12 [ac_cv_have_program_invocation_name=no])
14 if test "$ac_cv_have_program_invocation_name" = "yes"; then
15 AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME, 1,
16 [define if libc has program_invocation_name])