configure: use cc/c++ instead of gcc/g++

Some systems (e.g. FreeBSD 10) do not ship with the GNU Compiler
Collection.  Use generic cc/c++ instead of gcc/g++ (unless the
CC/CXX environment variables are used).
This commit is contained in:
Fraser Tweedale 2014-05-22 20:10:06 +10:00 committed by David Bremner
parent 6ef676aac3
commit 0e50854a7f

4
configure vendored
View file

@ -43,8 +43,8 @@ fi
# Set several defaults (optionally specified by the user in # Set several defaults (optionally specified by the user in
# environment variables) # environment variables)
CC=${CC:-gcc} CC=${CC:-cc}
CXX=${CXX:-g++} CXX=${CXX:-c++}
CFLAGS=${CFLAGS:--O2} CFLAGS=${CFLAGS:--O2}
CPPFLAGS=${CPPFLAGS:-} CPPFLAGS=${CPPFLAGS:-}
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}