Add -Olimit 1500 to OPT if CC supports it.

This commit is contained in:
Guido van Rossum 1997-05-14 21:14:44 +00:00
parent 2b4d2800af
commit 201afe56d3
2 changed files with 221 additions and 175 deletions

383
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -111,6 +111,19 @@ fi
AC_AIX
AC_MINIX
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_cv_olimit_ok=yes,
ac_cv_olimit_ok=no)
CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_olimit_ok)
if test $ac_cv_olimit_ok = yes; then
OPT="$OPT -Olimit 1500"
fi
# check for ANSI or K&R ("traditional") preprocessor
AC_MSG_CHECKING(for C preprocessor type)
AC_TRY_COMPILE([