aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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