From d98bf00fbddc94d4be97564725487cb6790f7a1b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 4 Mar 1998 08:14:23 +0000 Subject: Check for argp code, strndup, program_invocation_name, Wed Mar 4 01:02:55 1998 Tom Tromey * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for argp code, strndup, program_invocation_name, program_invocation_short_name. svn path=/trunk/; revision=58 --- macros/gnome-support.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'macros/gnome-support.m4') diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4 index 28b8e116df..381bc98ca8 100644 --- a/macros/gnome-support.m4 +++ b/macros/gnome-support.m4 @@ -2,6 +2,13 @@ dnl libsupport stuff dnl GNOME_SUPPORT_CHECKS AC_DEFUN([GNOME_SUPPORT_CHECKS],[ AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o") - AC_REPLACE_FUNCS(strtok_r strcasecmp) + AC_CHECK_FUNCS(argp_parse,,LIBOBJS="$LIBOBJS argp-ba.o argp-eexst.o argp-fmtstream.o argp-fs-xinl.o argp-help.o argp-parse.o argp-pv.o argp-xinl.o") + AC_TRY_LINK([#include ],[ + char *foo = program_invocation_short_name], [ + AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME)]) + AC_TRY_LINK([#include ],[ + char *foo = program_invocation_name], [ + AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)]) + AC_REPLACE_FUNCS(strtok_r strcasecmp strndup) AC_SUBST(LIBOBJS) ]) -- cgit