Mercurial > hg > sonic-visualiser
comparison configure.ac @ 884:93a770ecfc98 cxx11
CXX11 (-std=c++11) branch, to test build environments before making any code adaptations
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 15:31:08 +0000 |
parents | 5462ac97d28f |
children | b40f29144e80 a16456ca5e71 |
comparison
equal
deleted
inserted
replaced
883:6bc374d45832 | 884:93a770ecfc98 |
---|---|
1 | 1 |
2 AC_INIT([Sonic Visualiser], [2.4], cannam@all-day-breakfast.com) | 2 AC_INIT([Sonic Visualiser], [2.4.1], cannam@all-day-breakfast.com) |
3 | 3 |
4 AC_CONFIG_SRCDIR(main/main.cpp) | 4 AC_CONFIG_SRCDIR(main/main.cpp) |
5 | 5 |
6 # Autoconf will set CXXFLAGS; we don't usually want it to, because we | 6 # Autoconf will set CXXFLAGS; we don't usually want it to, because we |
7 # either define our own flags (at least if GCC is in use) or else use | 7 # either define our own flags (at least if GCC is in use) or else use |
22 | 22 |
23 AC_PROG_CC | 23 AC_PROG_CC |
24 AC_PROG_CXX | 24 AC_PROG_CXX |
25 AC_PROG_INSTALL | 25 AC_PROG_INSTALL |
26 AC_PROG_MKDIR_P | 26 AC_PROG_MKDIR_P |
27 | |
28 # We are daringly making use of C++11 now | |
29 AX_CXX_COMPILE_STDCXX_11(noext) | |
27 | 30 |
28 AC_HEADER_STDC | 31 AC_HEADER_STDC |
29 | 32 |
30 # These are the flags Autoconf guesses for us; we use them later if | 33 # These are the flags Autoconf guesses for us; we use them later if |
31 # the user has set none and we are not using GCC (so lack our own | 34 # the user has set none and we are not using GCC (so lack our own |
48 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" | 51 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" |
49 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | 52 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" |
50 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | 53 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" |
51 | 54 |
52 if test "x$GCC" = "xyes"; then | 55 if test "x$GCC" = "xyes"; then |
53 CXXFLAGS_DEBUG="-Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" | 56 CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" |
54 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" | 57 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe" |
55 CXXFLAGS_MINIMAL="-g0 -O0" | 58 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0" |
56 fi | 59 fi |
57 | 60 |
58 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | 61 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" |
59 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" | 62 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" |
60 | 63 |