Fix typos and bug in AIX cc_r detection.

This commit is contained in:
Kurt Zeilenga 1999-06-09 00:25:42 +00:00
parent be991c81df
commit 0fabd22a3b
2 changed files with 554 additions and 552 deletions

1095
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -320,19 +320,19 @@ dnl The default CFLAGS is empty NOT whatever AC_PROG_CC sets.
dnl CFLAGS=${CFLAGS-""} dnl CFLAGS=${CFLAGS-""}
dnl dnl
dnl AIX Thread requires we use cc_r or x1c_r. dnl AIX Thread requires we use cc_r or xlc_r.
dnl But only do this IF AIX and CC is zero (initially), dnl But only do this IF AIX and CC is zero (initially),
dnl and cc exists and threads are auto|yes|posix. dnl and cc exists and threads are auto|yes|posix.
dnl dnl
dnl If we find cc_r|x1c_r, force pthreads and assume dnl If we find cc_r|xlc_r, force pthreads and assume
dnl pthread_create is in $LIBS (ie: don't bring in dnl pthread_create is in $LIBS (ie: don't bring in
dnl any additional thread libraries) dnl any additional thread libraries)
dnl If we do not find cc_r|x1c_r, disable threads dnl If we do not find cc_r|xlc_r, disable threads
dnl dnl
AC_CANONICAL_HOST AC_CANONICAL_HOST
case "$host" in case "$host" in
*-*-aix*) $ol_host_os=aix ;; *-*-aix*) ol_host_os=aix ;;
esac esac
ol_aix_threads=no ol_aix_threads=no
@ -343,7 +343,8 @@ if test -z "$save_CC" -a "$CC" = cc -a "$ol_host_os" = aix ; then
fi fi
if test ol_aix_threads = yes ; then if test ol_aix_threads = yes ; then
AC_CHECK_PROGS(CC,cc_r x1c_r) CC=
AC_CHECK_PROGS(CC,cc_r xlc_r)
if test "$CC" ; then if test "$CC" ; then
if test $ol_with_threads != auto ; then if test $ol_with_threads != auto ; then