summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2022-03-27 13:47:33 -0700
committerMark Adler <madler@alumni.caltech.edu>2022-03-27 13:47:33 -0700
commite9a52aa129efe3834383e415580716a7c4027f8d (patch)
treeae8e611667c2fb64e21a1e98813ccba9a98a3315
parent1a1e8da703e28ea36873ef34dab0d90ff8f98393 (diff)
downloadzlib-e9a52aa129efe3834383e415580716a7c4027f8d.tar.gz
zlib-e9a52aa129efe3834383e415580716a7c4027f8d.tar.bz2
zlib-e9a52aa129efe3834383e415580716a7c4027f8d.zip
Check for cc masquerading as gcc or clang in configure.
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 98156e7..52ff4a0 100755
--- a/configure
+++ b/configure
@@ -167,8 +167,14 @@ extern int getchar();
167int hello() {return getchar();} 167int hello() {return getchar();}
168EOF 168EOF
169 169
170test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log 170if test -z "$CC"; then
171cc=${CC-${CROSS_PREFIX}gcc} 171 echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log
172 if ${CROSS_PREFIX}gcc -v >/dev/null 2>&1; then
173 cc=${CROSS_PREFIX}gcc
174 else
175 cc=${CROSS_PREFIX}cc
176 fi
177fi
172cflags=${CFLAGS-"-O3"} 178cflags=${CFLAGS-"-O3"}
173# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure 179# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
174case "$cc" in 180case "$cc" in