summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-30 14:22:30 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-30 14:22:30 (GMT)
commit7f059ad41aa48ce90e089a9c0ce55e6231bf8887 (patch)
treee55b098120fdd33754b13b3f91f22422bb159270
parentd7918fb75846ccea69f7fb9774f08e5879478e34 (diff)
downloadcpython-7f059ad41aa48ce90e089a9c0ce55e6231bf8887.zip
cpython-7f059ad41aa48ce90e089a9c0ce55e6231bf8887.tar.gz
cpython-7f059ad41aa48ce90e089a9c0ce55e6231bf8887.tar.bz2
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.
-rw-r--r--configure.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 975631e..1f9ba21 100644
--- a/configure.in
+++ b/configure.in
@@ -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)