diff options
author | DJ Delorie <dj@redhat.com> | 2003-06-13 01:50:48 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-06-13 01:50:48 +0000 |
commit | e69f6c8c79513fb9f3c9a06ba34eadc54d93a616 (patch) | |
tree | 3041c504f9777c965bd3d64239f97883f790911b /libiberty/configure.in | |
parent | 0fc9922abc6ac20739319e0ec1ca03eafa0ebb94 (diff) | |
download | gdb-e69f6c8c79513fb9f3c9a06ba34eadc54d93a616.zip gdb-e69f6c8c79513fb9f3c9a06ba34eadc54d93a616.tar.gz gdb-e69f6c8c79513fb9f3c9a06ba34eadc54d93a616.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r-- | libiberty/configure.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in index 4a704e8..0eab855 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -209,7 +209,7 @@ funcs="$funcs waitpid" # Also in the old function.def file: alloca, vfork, getopt. -vars="sys_errlist sys_nerr sys_siglist _system_configuration" +vars="sys_errlist sys_nerr sys_siglist" checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" @@ -230,7 +230,6 @@ if test "x" = "y"; then AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.]) - AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, [Define if you have the _system_configuration variable.]) fi # For each of these functions, if the host does not provide the @@ -433,6 +432,17 @@ if test -z "${setobjs}"; then AC_MSG_RESULT(no) fi done + + # special check for _system_configuration because AIX <4.3.2 do not + # contain the `physmem' member. + AC_MSG_CHECKING([for external symbol _system_configuration]) + AC_TRY_COMPILE([#include <sys/systemcfg.h>], + [double x = _system_configuration.physmem;], + [AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, + [Define if you have the _system_configuration variable.])], + [AC_MSG_RESULT([no])]) + AC_CHECK_FUNCS($checkfuncs) libiberty_NEED_DECLARATION(canonicalize_file_name) fi |