configure: Add C++ compiler support and enable c++0x

---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 80a5d69..30fb4a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ AM_SILENT_RULES([yes])

 # Check for programs
 AC_PROG_CC
+AC_PROG_CXX
 AC_PROG_SED

 # Initialize libtool
@@ -474,6 +475,8 @@ if test x$wayland_scanner = x; then
  AC_MSG_ERROR([wayland-scanner is needed to compile weston])
 fi

+CXXFLAGS="-std=c++0x $CXXFLAGS"
+
 AC_CONFIG_FILES([Makefile
  shared/Makefile
  src/Makefile
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to