Commit b7daacda authored by legoc's avatar legoc
Browse files

Enabled c++11

parent f61863b6
......@@ -24,12 +24,4 @@ automake --gnu --add-missing
export CXXFLAGS="$CXXFLAGS -Wall -Wconversion -O2 -g -pthread"
cd build
if [ -d "/usr/local/src/boost" ]
then
# SUSE
../configure --prefix=$NOMAD_HOME/mod --with-boost="/usr/local/src/boost" LIBS=-lboost_system
else
../configure --prefix=$NOMAD_HOME/mod
fi
......@@ -18,6 +18,8 @@ AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
AX_BOOST_BASE([1.41],, [AC_MSG_ERROR([Boost 1.41 required])])
AX_BOOST_DATE_TIME
AX_BOOST_SYSTEM
......@@ -28,8 +30,7 @@ AX_BOOST_THREAD
AX_BOOST_UNIT_TEST_FRAMEWORK
AC_QT4
NOMAD_CXXFLAGS="$BOOST_CPPFLAGS"
NOMAD_CXXFLAGS="-DBOOST_NO_CXX11_SCOPED_ENUMS $BOOST_CPPFLAGS"
NOMAD_LDFLAGS="$BOOST_LDFLAGS"
NOMAD_LIBS="$BOOST_DATE_TIME_LIB \
......
This diff is collapsed.
# =============================================================================
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
# =============================================================================
#
# SYNOPSIS
#
# AX_CXX_COMPILE_STDCXX_11([ext|noext], [mandatory|optional])
#
# DESCRIPTION
#
# Check for baseline language coverage in the compiler for the C++11
# standard; if necessary, add switches to CXX and CXXCPP to enable
# support.
#
# This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX
# macro with the version set to C++11. The two optional arguments are
# forwarded literally as the second and third argument respectively.
# Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for
# more information. If you want to use this macro, you also need to
# download the ax_cxx_compile_stdcxx.m4 file.
#
# LICENSE
#
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
# Copyright (c) 2015 Paul Norman <penorman@mac.com>
# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 18
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX([11], [$1], [$2])])
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