Use TRY_RUN, not TRY_COMPILE, to test for -Olimit (on Solaris,

with Sun's cc, the compile succeeds, but the link fails).

Test for IRIX*/6* instead of for IRIX/6* -- on 64-bit IRIX systems,
uname returns IRIX64.
This commit is contained in:
Guido van Rossum 1997-05-30 14:22:30 +00:00
parent d7918fb758
commit 7f059ad41a

View File

@ -115,7 +115,7 @@ AC_MSG_CHECKING(whether $CC accepts -Olimit 1500)
AC_CACHE_VAL(ac_cv_olimit_ok,
[ac_save_cc="$CC"
CC="$CC -Olimit 1500"
AC_TRY_COMPILE([], [;],
AC_TRY_RUN([int main() { return 0; }],
ac_cv_olimit_ok=yes,
ac_cv_olimit_ok=no)
CC="$ac_save_cc"])
@ -189,7 +189,7 @@ then
case $ac_sys_system/$ac_sys_release in
AIX*) LDSHARED="ld_so_aix \$(CC)";;
IRIX/5*) LDSHARED="ld -shared";;
IRIX/6*) LDSHARED="ld $SGI_ABI -shared -all"; OPT="$OPT $SGI_ABI";;
IRIX*/6*) LDSHARED="ld $SGI_ABI -shared -all"; OPT="$OPT $SGI_ABI";;
SunOS/4*) LDSHARED="ld";;
SunOS/5*) LDSHARED="ld -G";;
hp*|HP*) LDSHARED="ld -b";;
@ -216,7 +216,7 @@ then
Linux*) CCSHARED="-fpic";;
FreeBSD*) CCSHARED="-fpic";;
SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
IRIX/6*) CCSHARED="$SGI_ABI -all";;
IRIX*/6*) CCSHARED="$SGI_ABI -all";;
esac
fi
AC_MSG_RESULT($CCSHARED)
@ -232,7 +232,7 @@ then
Linux*) LINKFORSHARED="-rdynamic";;
next) LINKFORSHARED="-u libsys_s";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
IRIX/6*) LINKFORSHARED="$SGI_ABI -all";;
IRIX*/6*) LINKFORSHARED="$SGI_ABI -all";;
esac
fi
AC_MSG_RESULT($LINKFORSHARED)