comparison configure @ 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 6fadabe80ad8
children b40f29144e80 096634fc3f19
comparison
equal deleted inserted replaced
883:6bc374d45832 884:93a770ecfc98
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Sonic Visualiser 2.4. 3 # Generated by GNU Autoconf 2.69 for Sonic Visualiser 2.4.1.
4 # 4 #
5 # Report bugs to <cannam@all-day-breakfast.com>. 5 # Report bugs to <cannam@all-day-breakfast.com>.
6 # 6 #
7 # 7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
578 MAKEFLAGS= 578 MAKEFLAGS=
579 579
580 # Identity of this package. 580 # Identity of this package.
581 PACKAGE_NAME='Sonic Visualiser' 581 PACKAGE_NAME='Sonic Visualiser'
582 PACKAGE_TARNAME='sonic-visualiser' 582 PACKAGE_TARNAME='sonic-visualiser'
583 PACKAGE_VERSION='2.4' 583 PACKAGE_VERSION='2.4.1'
584 PACKAGE_STRING='Sonic Visualiser 2.4' 584 PACKAGE_STRING='Sonic Visualiser 2.4.1'
585 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' 585 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com'
586 PACKAGE_URL='' 586 PACKAGE_URL=''
587 587
588 ac_unique_file="main/main.cpp" 588 ac_unique_file="main/main.cpp"
589 # Factoring default headers for most tests. 589 # Factoring default headers for most tests.
679 PKG_CONFIG_PATH 679 PKG_CONFIG_PATH
680 PKG_CONFIG 680 PKG_CONFIG
681 EGREP 681 EGREP
682 GREP 682 GREP
683 CXXCPP 683 CXXCPP
684 HAVE_CXX11
684 MKDIR_P 685 MKDIR_P
685 INSTALL_DATA 686 INSTALL_DATA
686 INSTALL_SCRIPT 687 INSTALL_SCRIPT
687 INSTALL_PROGRAM 688 INSTALL_PROGRAM
688 ac_ct_CXX 689 ac_ct_CXX
1331 # 1332 #
1332 if test "$ac_init_help" = "long"; then 1333 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing. 1334 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh. 1335 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF 1336 cat <<_ACEOF
1336 \`configure' configures Sonic Visualiser 2.4 to adapt to many kinds of systems. 1337 \`configure' configures Sonic Visualiser 2.4.1 to adapt to many kinds of systems.
1337 1338
1338 Usage: $0 [OPTION]... [VAR=VALUE]... 1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 1340
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables. 1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 _ACEOF 1394 _ACEOF
1394 fi 1395 fi
1395 1396
1396 if test -n "$ac_init_help"; then 1397 if test -n "$ac_init_help"; then
1397 case $ac_init_help in 1398 case $ac_init_help in
1398 short | recursive ) echo "Configuration of Sonic Visualiser 2.4:";; 1399 short | recursive ) echo "Configuration of Sonic Visualiser 2.4.1:";;
1399 esac 1400 esac
1400 cat <<\_ACEOF 1401 cat <<\_ACEOF
1401 1402
1402 Optional Features: 1403 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options 1404 --disable-option-checking ignore unrecognized --enable/--with options
1544 fi 1545 fi
1545 1546
1546 test -n "$ac_init_help" && exit $ac_status 1547 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then 1548 if $ac_init_version; then
1548 cat <<\_ACEOF 1549 cat <<\_ACEOF
1549 Sonic Visualiser configure 2.4 1550 Sonic Visualiser configure 2.4.1
1550 generated by GNU Autoconf 2.69 1551 generated by GNU Autoconf 2.69
1551 1552
1552 Copyright (C) 2012 Free Software Foundation, Inc. 1553 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation 1554 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it. 1555 gives unlimited permission to copy, distribute and modify it.
1884 } # ac_fn_cxx_try_link 1885 } # ac_fn_cxx_try_link
1885 cat >config.log <<_ACEOF 1886 cat >config.log <<_ACEOF
1886 This file contains any messages produced by compilers while 1887 This file contains any messages produced by compilers while
1887 running configure, to aid debugging if configure makes a mistake. 1888 running configure, to aid debugging if configure makes a mistake.
1888 1889
1889 It was created by Sonic Visualiser $as_me 2.4, which was 1890 It was created by Sonic Visualiser $as_me 2.4.1, which was
1890 generated by GNU Autoconf 2.69. Invocation command line was 1891 generated by GNU Autoconf 2.69. Invocation command line was
1891 1892
1892 $ $0 $@ 1893 $ $0 $@
1893 1894
1894 _ACEOF 1895 _ACEOF
3468 fi 3469 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3470 $as_echo "$MKDIR_P" >&6; } 3471 $as_echo "$MKDIR_P" >&6; }
3471 3472
3472 3473
3474 # We are daringly making use of C++11 now
3475
3476 ax_cxx_compile_cxx11_required=true
3477 ac_ext=cpp
3478 ac_cpp='$CXXCPP $CPPFLAGS'
3479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482 ac_success=no
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3484 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3485 if ${ax_cv_cxx_compile_cxx11+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 template <typename T>
3492 struct check
3493 {
3494 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3495 };
3496
3497 struct Base {
3498 virtual void f() {}
3499 };
3500 struct Child : public Base {
3501 virtual void f() override {}
3502 };
3503
3504 typedef check<check<bool>> right_angle_brackets;
3505
3506 int a;
3507 decltype(a) b;
3508
3509 typedef check<int> check_type;
3510 check_type c;
3511 check_type&& cr = static_cast<check_type&&>(c);
3512
3513 auto d = a;
3514 auto l = [](){};
3515
3516 _ACEOF
3517 if ac_fn_cxx_try_compile "$LINENO"; then :
3518 ax_cv_cxx_compile_cxx11=yes
3519 else
3520 ax_cv_cxx_compile_cxx11=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3525 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3526 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3527 ac_success=yes
3528 fi
3529
3530
3531
3532 if test x$ac_success = xno; then
3533 for switch in -std=c++11 -std=c++0x; do
3534 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3536 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3537 if eval \${$cachevar+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_CXXFLAGS="$CXXFLAGS"
3541 CXXFLAGS="$CXXFLAGS $switch"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544
3545 template <typename T>
3546 struct check
3547 {
3548 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3549 };
3550
3551 struct Base {
3552 virtual void f() {}
3553 };
3554 struct Child : public Base {
3555 virtual void f() override {}
3556 };
3557
3558 typedef check<check<bool>> right_angle_brackets;
3559
3560 int a;
3561 decltype(a) b;
3562
3563 typedef check<int> check_type;
3564 check_type c;
3565 check_type&& cr = static_cast<check_type&&>(c);
3566
3567 auto d = a;
3568 auto l = [](){};
3569
3570 _ACEOF
3571 if ac_fn_cxx_try_compile "$LINENO"; then :
3572 eval $cachevar=yes
3573 else
3574 eval $cachevar=no
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 CXXFLAGS="$ac_save_CXXFLAGS"
3578 fi
3579 eval ac_res=\$$cachevar
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3581 $as_echo "$ac_res" >&6; }
3582 if eval test x\$$cachevar = xyes; then
3583 CXXFLAGS="$CXXFLAGS $switch"
3584 ac_success=yes
3585 break
3586 fi
3587 done
3588 fi
3589 ac_ext=cpp
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595 if test x$ax_cxx_compile_cxx11_required = xtrue; then
3596 if test x$ac_success = xno; then
3597 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3598 fi
3599 else
3600 if test x$ac_success = xno; then
3601 HAVE_CXX11=0
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3603 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3604 else
3605 HAVE_CXX11=1
3606
3607 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
3608
3609 fi
3610
3611
3612 fi
3613
3473 3614
3474 ac_ext=cpp 3615 ac_ext=cpp
3475 ac_cpp='$CXXCPP $CPPFLAGS' 3616 ac_cpp='$CXXCPP $CPPFLAGS'
3476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7901 # Save the log message, to keep $0 and so on meaningful, and to 8042 # Save the log message, to keep $0 and so on meaningful, and to
7902 # report actual input values of CONFIG_FILES etc. instead of their 8043 # report actual input values of CONFIG_FILES etc. instead of their
7903 # values after options handling. 8044 # values after options handling.
7904 ac_log=" 8045 ac_log="
7905 This file was extended by Sonic Visualiser $as_me 2.4, which was 8046 This file was extended by Sonic Visualiser $as_me 2.4.1, which was
7906 generated by GNU Autoconf 2.69. Invocation command line was 8047 generated by GNU Autoconf 2.69. Invocation command line was
7907 8048
7908 CONFIG_FILES = $CONFIG_FILES 8049 CONFIG_FILES = $CONFIG_FILES
7909 CONFIG_HEADERS = $CONFIG_HEADERS 8050 CONFIG_HEADERS = $CONFIG_HEADERS
7910 CONFIG_LINKS = $CONFIG_LINKS 8051 CONFIG_LINKS = $CONFIG_LINKS
7953 8094
7954 _ACEOF 8095 _ACEOF
7955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7956 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8097 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7957 ac_cs_version="\\ 8098 ac_cs_version="\\
7958 Sonic Visualiser config.status 2.4 8099 Sonic Visualiser config.status 2.4.1
7959 configured by $0, generated by GNU Autoconf 2.69, 8100 configured by $0, generated by GNU Autoconf 2.69,
7960 with options \\"\$ac_cs_config\\" 8101 with options \\"\$ac_cs_config\\"
7961 8102
7962 Copyright (C) 2012 Free Software Foundation, Inc. 8103 Copyright (C) 2012 Free Software Foundation, Inc.
7963 This config.status script is free software; the Free Software Foundation 8104 This config.status script is free software; the Free Software Foundation