aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-23 11:55:32 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-23 12:11:58 +0100
commit5bae609333f51c0fcf47ec4bb808fe382325ee03 (patch)
tree015143a81038061674dbe1fd681b5fee4d888c1d
parent749e72dcdae7ce8eb0c2bb47fd12aadaf4405e96 (diff)
downloadvis-5bae609333f51c0fcf47ec4bb808fe382325ee03.tar.gz
vis-5bae609333f51c0fcf47ec4bb808fe382325ee03.tar.xz
configure: default to cc instead of c99
Using -std=c99 in combination with c99 does not make sense. Some versions of Mac OS seem to have a broken wrapper implementing the c99 utility which always generates 32-bit code instead of targeting the native architecture. http://stackoverflow.com/questions/4182413 Also add clang to the list of compilers to try.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 2c30e5c..4633d02 100755
--- a/configure
+++ b/configure
@@ -176,9 +176,9 @@ trap 'rm -f "$tmpc" "$tmpo"' EXIT INT QUIT TERM HUP
# Find a C compiler to use
#
printf "checking for C compiler... "
-trycc c99
trycc cc
trycc gcc
+trycc clang
printf "%s\n" "$CC"
test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }