From f6328422b440195b8c1d7750a168e72f30de1a98 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 27 Dec 2002 11:15:09 +0000 Subject: Framework for AIX support 2002-10-08 Laurent Vivier * Framework for AIX support 2002-08-07 Vincent Berger * support/: Add alloca management for AIX * configure.in: correct checking for nm svn path=/branches/libgtop-GNOME-2-0-port/; revision=2679 --- support/findme.c | 21 +++++++++++++++++++-- support/popt.c | 21 +++++++++++++++++++-- support/poptconfig.c | 21 +++++++++++++++++++-- 3 files changed, 57 insertions(+), 6 deletions(-) diff --git a/support/findme.c b/support/findme.c index 4ba4950..9c949b8 100644 --- a/support/findme.c +++ b/support/findme.c @@ -2,6 +2,21 @@ file accompanying popt source distributions, available from ftp://ftp.redhat.com/pub/code/popt */ +/* AIX requires this to be the first thing in the file. */ +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX +# pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -16,8 +31,10 @@ #include #endif -#if HAVE_ALLOCA_H -# include +#ifndef _AIX +# if HAVE_ALLOCA_H +# include +# endif #endif #include "findme.h" diff --git a/support/popt.c b/support/popt.c index 3e8f73e..33f34ba 100644 --- a/support/popt.c +++ b/support/popt.c @@ -2,6 +2,21 @@ file accompanying popt source distributions, available from ftp://ftp.redhat.com/pub/code/popt */ +/* AIX requires this to be the first thing in the file. */ +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX +# pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -15,8 +30,10 @@ #include #include -#if HAVE_ALLOCA_H -# include +#ifndef _AIX +# if HAVE_ALLOCA_H +# include +# endif #endif #include "findme.h" diff --git a/support/poptconfig.c b/support/poptconfig.c index 2b44264..4c14ed2 100644 --- a/support/poptconfig.c +++ b/support/poptconfig.c @@ -2,6 +2,21 @@ file accompanying popt source distributions, available from ftp://ftp.redhat.com/pub/code/popt */ +/* AIX requires this to be the first thing in the file. */ +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX +# pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -13,8 +28,10 @@ #include #include -#if HAVE_ALLOCA_H -# include +#ifndef _AIX +# if HAVE_ALLOCA_H +# include +# endif #endif #include "popt-gnome.h" -- cgit v1.2.1