aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-03-04 16:14:23 +0800
committerTom Tromey <tromey@src.gnome.org>1998-03-04 16:14:23 +0800
commitd98bf00fbddc94d4be97564725487cb6790f7a1b (patch)
tree24ec3bc720b1dae8e7beba0656fd644f1a05bc26
parentc8ee176b4cedecc774afd0500e76099395f2b91c (diff)
downloadgsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar.gz
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar.bz2
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar.lz
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar.xz
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.tar.zst
gsoc2013-evolution-d98bf00fbddc94d4be97564725487cb6790f7a1b.zip
Check for argp code, strndup, program_invocation_name,
Wed Mar 4 01:02:55 1998 Tom Tromey <tromey@cygnus.com> * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for argp code, strndup, program_invocation_name, program_invocation_short_name. svn path=/trunk/; revision=58
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/gnome-support.m49
2 files changed, 13 insertions, 1 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index e4ded3d763..e101b87279 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+Wed Mar 4 01:02:55 1998 Tom Tromey <tromey@cygnus.com>
+
+ * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for argp code,
+ strndup, program_invocation_name, program_invocation_short_name.
+
Mon Mar 2 15:27:44 1998 Tom Tromey <tromey@cygnus.com>
* gnome-x-checks.m4 (GNOME_X_CHECKS): Also check for SMlib.h; some
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 <errno.h>],[
+ char *foo = program_invocation_short_name], [
+ AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME)])
+ AC_TRY_LINK([#include <errno.h>],[
+ char *foo = program_invocation_name], [
+ AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)])
+ AC_REPLACE_FUNCS(strtok_r strcasecmp strndup)
AC_SUBST(LIBOBJS)
])