From 411a1c8e8493d85faf53aadf144e3cf4e47df186 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Thu, 11 Feb 1999 18:40:14 +0000 Subject: [PATCH] Check whether we need to declare this; some libc5 systems define that 1999-02-10 Martin Baulig * configure.in (program_invocation_name): Check whether we need to declare this; some libc5 systems define that symbol but do not declare it in any header file. --- ChangeLog | 6 ++++++ acconfig.h | 3 +++ configure.in | 11 +++++++++++ 3 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 89be559c..45cd3bc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-02-10 Martin Baulig + + * configure.in (program_invocation_name): Check whether we need + to declare this; some libc5 systems define that symbol but do + not declare it in any header file. + 1999-02-10 Martin Baulig * libgtop.spec.in, libgtop.spec: Replaced libgtop.spec with diff --git a/acconfig.h b/acconfig.h index c691900c..8b954380 100644 --- a/acconfig.h +++ b/acconfig.h @@ -11,6 +11,9 @@ /* Define if getpagesize () must be declared. */ #undef NEED_DECLARATION_GETPAGESIZE +/* Define if program_invocation_name must be declared. */ +#undef NEED_DECLARATION_PROGRAM_INVOCATION_NAME + @TOP@ #undef ENABLE_NLS diff --git a/configure.in b/configure.in index 2d1dbadb..d6500fbc 100644 --- a/configure.in +++ b/configure.in @@ -180,6 +180,17 @@ AC_CHECK_LIB(kvm, kvm_open) dnl For DEC OSF1 AC_CHECK_LIB(mach, vm_statistics) +dnl For some broken libc5 systems (Debian 1.3) +saved_CFLAGS=$CFLAGS +CFLAGS="$CFLAGS -D_GNU_SOURCE" +GCC_NEED_DECLARATION(program_invocation_name, [ +#include +#include +#include +#include +]) +CFLAGS=$saved_CFLAGS + dnl Check for Internet sockets. AC_CHECK_FUNC(socket, [AC_CHECK_HEADER(netinet/in.h,