1 | dnl# |
1 | dnl# |
2 | dnl# Process this file with autoconf to produce a configure script. |
2 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# |
3 | dnl# |
4 | |
4 | |
5 | AC_INIT |
5 | AC_INIT |
6 | AC_PREREQ(2.50) |
6 | AC_PREREQ(2.71) |
7 | AC_CONFIG_SRCDIR([src/feature.h]) |
7 | AC_CONFIG_SRCDIR([src/feature.h]) |
8 | AC_CONFIG_HEADER(config.h:config.h.in) |
8 | AC_CONFIG_HEADER(config.h:config.h.in) |
9 | |
9 | |
10 | AC_CANONICAL_HOST |
10 | AC_CANONICAL_HOST |
11 | |
11 | |
… | |
… | |
30 | |
30 | |
31 | AC_AIX |
31 | AC_AIX |
32 | AC_GNU_SOURCE |
32 | AC_GNU_SOURCE |
33 | AC_ISC_POSIX |
33 | AC_ISC_POSIX |
34 | AC_LANG(C++) |
34 | AC_LANG(C++) |
|
|
35 | |
|
|
36 | if test "$ac_prog_cxx_stdcxx" != cxx11; then |
|
|
37 | AC_MSG_ERROR([the compiler does not support C++11]) |
|
|
38 | fi |
35 | |
39 | |
36 | LINKER="$CXX" |
40 | LINKER="$CXX" |
37 | dnl check whether we can link with gcc -lsupc++ |
41 | dnl check whether we can link with gcc -lsupc++ |
38 | if test x$GCC = xyes && test x$GXX = xyes; then |
42 | if test x$GCC = xyes && test x$GXX = xyes; then |
39 | dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it |
43 | dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it |