Some systems (e.g. FreeBSD 10) do not ship with the GNU Compiler Collection. Use generic cc/c++ as a fallback when gcc/g++ are not available. --- configure | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/configure b/configure index 9bde2eb..59ab87b 100755 --- a/configure +++ b/configure @@ -43,8 +43,16 @@ fi # Set several defaults (optionally specified by the user in # environment variables) -CC=${CC:-gcc} -CXX=${CXX:-g++} +if command -v gcc >/dev/null; then + CC=${CC:-gcc} +else + CC=${CC:-cc} +fi +if command -v g++ >/dev/null; then + CXX=${CXX:-g++} +else + CXX=${CXX:-c++} +fi CFLAGS=${CFLAGS:--O2} CPPFLAGS=${CPPFLAGS:-} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} -- 1.9.2 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch