diff options
author | Francesco Potortì <pot@gnu.org> | 2003-03-16 22:26:14 +0000 |
---|---|---|
committer | Francesco Potortì <pot@gnu.org> | 2003-03-16 22:26:14 +0000 |
commit | cf4703cb18fcf28cad8d2826a81774cafa05108e (patch) | |
tree | fe86a00584e7686a91113e19e1fe64ae40e5da4e | |
parent | 682896db0bf706a3431256204f5fc3b98ad8bf7f (diff) | |
download | emacs-cf4703cb18fcf28cad8d2826a81774cafa05108e.tar.gz |
Check for need for bigtoc support on IBM AIX for
solving a linker table overflow problem.
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c15c5dc0cf9..522e93f029d 100644 --- a/configure.in +++ b/configure.in @@ -1598,6 +1598,22 @@ else fi AC_MSG_RESULT($HAVE_XFREE386) +dnl Check for need for bigtoc support on IBM AIX + +case ${host_os} in +aix*) + AC_CACHE_CHECK([for -bbigtoc option], [gdb_cv_bigtoc], [ + case $GCC in + yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; + *) gdb_cv_bigtoc=-bbigtoc ;; + esac + + LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc + AC_TRY_LINK([], [int i;], [], [gdb_cv_bigtoc=]) + ]) + ;; +esac + # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used # for the tests that follow. We set it back to REAL_CFLAGS later on. |