try generic cc before testing for gcc
authorChristoph Moench-Tegeder <cmt@burggraben.net>
Mon, 11 Jan 2016 20:38:32 +0100
changeset 680 13923a5a7b89
parent 679 8504c82b58ef
child 681 e3370fbe0a25
try generic cc before testing for gcc FreeBSD has clang as it's primary C compiler (and often no gcc, these days). To avoid using the "wrong" compiler (gcc installed via ports if available), test for cc first.
configure.ac
--- a/configure.ac	Mon Jan 11 20:33:01 2016 +0100
+++ b/configure.ac	Mon Jan 11 20:38:32 2016 +0100
@@ -38,7 +38,7 @@
   LDFLAGS="$LDFLAGS -no-undefined"
 fi
 
-AC_PROG_CC
+AC_PROG_CC([cc gcc])
 AC_ISC_POSIX
 AC_HEADER_STDC
 AC_LIBTOOL_WIN32_DLL