mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 13:53:21 -05:00
Check for gcc as well.
This commit is contained in:
parent
4bb13d45fc
commit
21c0791afe
2 changed files with 825 additions and 830 deletions
10
configure.in
10
configure.in
|
|
@ -623,22 +623,18 @@ if test $ol_aix_threads = yes ; then
|
|||
fi
|
||||
|
||||
if test -z "${CC}"; then
|
||||
AC_CHECK_PROGS(CC,cc,missing)
|
||||
AC_CHECK_PROGS(CC,cc gcc,missing)
|
||||
|
||||
if test "${CC}" = "missing" ; then
|
||||
AC_MSG_ERROR([Unable to locate cc(1). Check PATH or set CC.])
|
||||
AC_MSG_ERROR([Unable to locate cc(1) or suitable replacement. Check PATH or set CC.])
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl The default CFLAGS is empty NOT whatever AC_PROG_CC sets.
|
||||
dnl (for now, let autoconf sort this out)
|
||||
dnl CFLAGS=${CFLAGS-""}
|
||||
|
||||
if test -z "${AR}"; then
|
||||
AC_CHECK_PROGS(AR,ar gar,missing)
|
||||
|
||||
if test "${AR}" = "missing" ; then
|
||||
AC_MSG_ERROR([Unable to locate ar(1). Check PATH or set AR.])
|
||||
AC_MSG_ERROR([Unable to locate ar(1) or suitable replacement. Check PATH or set AR.])
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue