Commit 0ff5f7af authored by David Llewellyn-Jones's avatar David Llewellyn-Jones

Add check for g++ on configure

If it's not present, the configure process should give a sensible
error, rather than just claiming glut doesn't exist when it does
(which is a horrible misdirection!).
parent e33509a4
......@@ -4335,6 +4335,16 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
# Check for C++ compiler, thanks to mono project for implementatioon
# See https://github.com/mono/mono/blob/6ead72475fe42b148c01f2d63ea0d539c6d8f28b/configure.ac#L389
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
if test "x$CXX" = "xg++"; then
if test "x$GXX" != "xyes"; then
as_fn_error $? "You need to install g++" "$LINENO" 5
fi
fi
# Checks for libraries.
......
......@@ -14,6 +14,16 @@ AC_PROG_CXX
AM_PROG_CC_C_O
AC_LANG(C++)
# Check for C++ compiler, thanks to mono project for implementatioon
# See https://github.com/mono/mono/blob/6ead72475fe42b148c01f2d63ea0d539c6d8f28b/configure.ac#L389
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
if test "x$CXX" = "xg++"; then
if test "x$GXX" != "xyes"; then
AC_MSG_ERROR([You need to install g++])
fi
fi
# Checks for libraries.
PKG_CHECK_MODULES([FUNCTY], [gtk+-2.0 gdk-2.0 gtkglext-1.0 glee [libzip >= 0.11], libpng, libpulse-mainloop-glib, fftw3, ncursesw])
PKG_CHECK_MODULES([SYMBOLIC], [libsymbolic-1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment