mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Only set CC=cc if test -z CC && cc exists in path...
This commit is contained in:
parent
c6cf2815cb
commit
e88a9dafc2
@ -311,7 +311,9 @@ dnl AC_PROG_INSTALL
|
||||
|
||||
dnl The default compiler is cc (NOT gcc)
|
||||
dnl (should check to see if 'cc' exists)
|
||||
CC=${CC-"cc"}
|
||||
if test -z "${CC}"; then
|
||||
AC_CHECK_PROG(CC,cc,cc,)
|
||||
fi
|
||||
|
||||
dnl The default CFLAGS is empty NOT whatever AC_PROG_CC sets.
|
||||
dnl CFLAGS=${CFLAGS-""}
|
||||
|
Loading…
Reference in New Issue
Block a user