Permalink
Browse files

Enable C++11 in autotools build

  • Loading branch information...
1 parent a928517 commit f0ba37b73a59d2be45ddbf35f015f8317531151e @ridiculousfish ridiculousfish committed Nov 20, 2016
Showing with 609 additions and 0 deletions.
  1. +8 −0 configure.ac
  2. +562 −0 m4/ax_cxx_compile_stdcxx.m4
  3. +39 −0 m4/ax_cxx_compile_stdcxx_11.m4
View
@@ -15,6 +15,7 @@ AC_INIT(fish,
m4_esyscmd([cut -f 3 -d ' ' FISH-BUILD-VERSION-FILE | tr -d '\n']),
fish-users@lists.sourceforge.net)
ac_clean_files=a.out.dSYM
+
#
# List of output variables produced by this configure script
#
@@ -82,6 +83,12 @@ else
fi
#
+# Include the autoconf macros directory
+#
+
+AC_CONFIG_MACRO_DIRS([m4])
+
+#
# Set up various programs needed for install
# Note AC_PROG_CXX sets CXXFLAGS if not set, which we want
# So ensure this happens before we modify CXXFLAGS below
@@ -97,6 +104,7 @@ AC_PROG_AWK
AC_PROG_FGREP
AC_PROG_SED
AC_USE_SYSTEM_EXTENSIONS
+AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
#
# Tell autoconf to create config.h header
Oops, something went wrong.

0 comments on commit f0ba37b

Please sign in to comment.