This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by HarfBuzz configure 2.5.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/home/test/autobuild/run/instance-1/output/host --sysconfdir=/home/test/autobuild/run/instance-1/output/host/etc --localstatedir=/home/test/autobuild/run/instance-1/output/host/var --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-nls --disable-dependency-tracking --with-coretext=no --with-uniscribe=no --with-graphite2=no --with-cairo=no --with-icu=no --with-freetype=yes --with-glib=yes ## --------- ## ## Platform. ## ## --------- ## hostname = build uname -m = x86_64 uname -r = 4.4.0-151-generic uname -s = Linux uname -v = #178-Ubuntu SMP Tue Jun 11 08:30:22 UTC 2019 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/test/autobuild/run/instance-1/output/host/bin PATH: /home/test/autobuild/run/instance-1/output/host/sbin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/local/games PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2952: checking for a BSD-compatible install configure:3020: result: /usr/bin/install -c configure:3031: checking whether build environment is sane configure:3086: result: yes configure:3237: checking for a thread-safe mkdir -p configure:3276: result: /bin/mkdir -p configure:3283: checking for gawk configure:3313: result: no configure:3283: checking for mawk configure:3299: found /usr/bin/mawk configure:3310: result: mawk configure:3321: checking whether make sets $(MAKE) configure:3343: result: yes configure:3372: checking whether make supports nested variables configure:3389: result: yes configure:3469: checking whether UID '1003' is supported by ustar format configure:3472: result: yes configure:3479: checking whether GID '1002' is supported by ustar format configure:3482: result: yes configure:3490: checking how to create a ustar tar archive configure:3501: tar --version tar (GNU tar) 1.29 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. configure:3504: $? = 0 configure:3544: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar configure:3547: $? = 0 configure:3551: tar -xf - &5 gcc (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4489: $? = 0 configure:4478: /usr/bin/gcc -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) configure:4489: $? = 0 configure:4478: /usr/bin/gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:4489: $? = 4 configure:4478: /usr/bin/gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:4489: $? = 4 configure:4509: checking whether the C compiler works configure:4531: /usr/bin/gcc -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:4535: $? = 0 configure:4583: result: yes configure:4586: checking for C compiler default output file name configure:4588: result: a.out configure:4594: checking for suffix of executables configure:4601: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:4605: $? = 0 configure:4627: result: configure:4649: checking whether we are cross compiling configure:4657: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:4661: $? = 0 configure:4668: ./conftest configure:4672: $? = 0 configure:4687: result: no configure:4692: checking for suffix of object files configure:4714: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:4718: $? = 0 configure:4739: result: o configure:4743: checking whether we are using the GNU C compiler configure:4762: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:4762: $? = 0 configure:4771: result: yes configure:4780: checking whether /usr/bin/gcc accepts -g configure:4800: /usr/bin/gcc -c -g -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:4800: $? = 0 configure:4841: result: yes configure:4858: checking for /usr/bin/gcc option to accept ISO C89 configure:4921: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:4921: $? = 0 configure:4934: result: none needed configure:4959: checking whether /usr/bin/gcc understands -c and -o together configure:4981: /usr/bin/gcc -c conftest.c -o conftest2.o configure:4984: $? = 0 configure:4981: /usr/bin/gcc -c conftest.c -o conftest2.o configure:4984: $? = 0 configure:4996: result: yes configure:5015: checking dependency style of /usr/bin/gcc configure:5126: result: none configure:5244: checking the archiver (/usr/bin/ar) interface configure:5260: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:5260: $? = 0 configure:5262: /usr/bin/ar cru libconftest.a conftest.o >&5 configure:5265: $? = 0 configure:5293: result: ar configure:5343: checking build system type configure:5357: result: x86_64-pc-linux-gnu configure:5377: checking host system type configure:5390: result: x86_64-pc-linux-gnu configure:5431: checking how to print strings configure:5458: result: printf configure:5479: checking for a sed that does not truncate output configure:5543: result: /bin/sed configure:5561: checking for grep that handles long lines and -e configure:5619: result: /bin/grep configure:5624: checking for egrep configure:5686: result: /bin/grep -E configure:5691: checking for fgrep configure:5753: result: /bin/grep -F configure:5788: checking for ld used by /usr/bin/gcc configure:5855: result: /usr/bin/ld configure:5862: checking if the linker (/usr/bin/ld) is GNU ld configure:5877: result: yes configure:5889: checking for BSD- or MS-compatible name lister (nm) configure:5943: result: /usr/bin/nm configure:6073: checking the name lister (/usr/bin/nm) interface configure:6080: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:6083: /usr/bin/nm "conftest.o" configure:6086: output 0000000000000000 B some_variable configure:6093: result: BSD nm configure:6096: checking whether ln -s works configure:6100: result: yes configure:6108: checking the maximum length of command line arguments configure:6239: result: 3458764513820540925 configure:6287: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:6327: result: func_convert_file_noop configure:6334: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:6354: result: func_convert_file_noop configure:6361: checking for /usr/bin/ld option to reload object files configure:6368: result: -r configure:6442: checking for objdump configure:6458: found /usr/bin/objdump configure:6469: result: objdump configure:6501: checking how to recognize dependent libraries configure:6701: result: pass_all configure:6786: checking for dlltool configure:6816: result: no configure:6846: checking how to associate runtime and link libraries configure:6873: result: printf %s\n configure:6997: checking for archiver @FILE support configure:7014: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:7014: $? = 0 configure:7017: /usr/bin/ar cru libconftest.a @conftest.lst >&5 configure:7020: $? = 0 configure:7025: /usr/bin/ar cru libconftest.a @conftest.lst >&5 /usr/bin/ar: conftest.o: No such file or directory configure:7028: $? = 1 configure:7040: result: @ configure:7098: checking for strip configure:7114: found /usr/bin/strip configure:7125: result: strip configure:7197: checking for ranlib configure:7224: result: /usr/bin/ranlib configure:7326: checking command to parse /usr/bin/nm output from /usr/bin/gcc object configure:7479: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:7482: $? = 0 configure:7486: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm configure:7489: $? = 0 configure:7555: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c conftstm.o >&5 configure:7558: $? = 0 configure:7596: result: ok configure:7643: checking for sysroot configure:7673: result: no configure:7680: checking for a working dd configure:7718: result: /bin/dd configure:7722: checking how to truncate binary pipes configure:7737: result: /bin/dd bs=4096 count=1 configure:7873: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:7876: $? = 0 configure:8066: checking for mt configure:8082: found /bin/mt configure:8093: result: mt configure:8116: checking if mt is a manifest tool configure:8122: mt '-?' configure:8130: result: no configure:8807: checking how to run the C preprocessor configure:8877: result: /usr/bin/cpp configure:8897: /usr/bin/cpp -I/home/test/autobuild/run/instance-1/output/host/include conftest.c configure:8897: $? = 0 configure:8911: /usr/bin/cpp -I/home/test/autobuild/run/instance-1/output/host/include conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:8911: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | /* end confdefs.h. */ | #include configure:8940: checking for ANSI C header files configure:8960: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:8960: $? = 0 configure:9033: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:9033: $? = 0 configure:9033: ./conftest configure:9033: $? = 0 configure:9044: result: yes configure:9057: checking for sys/types.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for sys/stat.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for stdlib.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for string.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for memory.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for strings.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for inttypes.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for stdint.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9057: checking for unistd.h configure:9057: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9057: $? = 0 configure:9057: result: yes configure:9071: checking for dlfcn.h configure:9071: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:9071: $? = 0 configure:9071: result: yes configure:9326: checking for objdir configure:9341: result: .libs configure:9605: checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions configure:9623: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] configure:9627: $? = 0 configure:9640: result: no configure:9998: checking for /usr/bin/gcc option to produce PIC configure:10005: result: -fPIC -DPIC configure:10013: checking if /usr/bin/gcc PIC flag -fPIC -DPIC works configure:10031: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -fPIC -DPIC -DPIC conftest.c >&5 configure:10035: $? = 0 configure:10048: result: yes configure:10077: checking if /usr/bin/gcc static flag -static works configure:10105: result: yes configure:10120: checking if /usr/bin/gcc supports -c -o file.o configure:10141: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -o out/conftest2.o conftest.c >&5 configure:10145: $? = 0 configure:10167: result: yes configure:10175: checking if /usr/bin/gcc supports -c -o file.o configure:10222: result: yes configure:10255: checking whether the /usr/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:11514: result: yes configure:11551: checking whether -lc should be explicitly linked in configure:11559: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:11562: $? = 0 configure:11577: /usr/bin/gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1 configure:11580: $? = 0 configure:11594: result: no configure:11754: checking dynamic linker characteristics configure:12335: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath -Wl,/foo conftest.c >&5 configure:12335: $? = 0 configure:12575: result: GNU/Linux ld.so configure:12697: checking how to hardcode library paths into programs configure:12722: result: immediate configure:13270: checking whether stripping libraries is possible configure:13275: result: yes configure:13310: checking if libtool supports shared libraries configure:13312: result: yes configure:13315: checking whether to build shared libraries configure:13340: result: yes configure:13343: checking whether to build static libraries configure:13347: result: no configure:13434: checking for gcc configure:13461: result: /usr/bin/gcc configure:13690: checking for C compiler version configure:13699: /usr/bin/gcc --version >&5 gcc (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:13710: $? = 0 configure:13699: /usr/bin/gcc -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) configure:13710: $? = 0 configure:13699: /usr/bin/gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:13710: $? = 4 configure:13699: /usr/bin/gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:13710: $? = 4 configure:13714: checking whether we are using the GNU C compiler configure:13742: result: yes configure:13751: checking whether /usr/bin/gcc accepts -g configure:13812: result: yes configure:13829: checking for /usr/bin/gcc option to accept ISO C89 configure:13905: result: none needed configure:13930: checking whether /usr/bin/gcc understands -c and -o together configure:13967: result: yes configure:13986: checking dependency style of /usr/bin/gcc configure:14097: result: none configure:14112: checking for /usr/bin/gcc option to accept ISO C99 configure:14261: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 conftest.c:71:29: error: expected ';', ',' or ')' before 'text' conftest.c: In function 'main': conftest.c:125:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' conftest.c:125:18: error: 'newvar' undeclared (first use in this function) conftest.c:125:18: note: each undeclared identifier is reported only once for each function it appears in conftest.c:135:3: error: 'for' loop initial declarations are only allowed in C99 mode conftest.c:135:3: note: use option -std=c99 or -std=gnu99 to compile your code configure:14261: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include | #include | #include | #include | #include | | // Check varargs macros. These examples are taken from C99 6.10.3.5. | #define debug(...) fprintf (stderr, __VA_ARGS__) | #define showlist(...) puts (#__VA_ARGS__) | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | static void | test_varargs_macros (void) | { | int x = 1234; | int y = 5678; | debug ("Flag"); | debug ("X = %d\n", x); | showlist (The first, second, and third items.); | report (x>y, "x is %d but y is %d", x, y); | } | | // Check long long types. | #define BIG64 18446744073709551615ull | #define BIG32 4294967295ul | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | #if !BIG_OK | your preprocessor is broken; | #endif | #if BIG_OK | #else | your preprocessor is broken; | #endif | static long long int bignum = -9223372036854775807LL; | static unsigned long long int ubignum = BIG64; | | struct incomplete_array | { | int datasize; | double data[]; | }; | | struct named_init { | int number; | const wchar_t *name; | double average; | }; | | typedef const char *ccp; | | static inline int | test_restrict (ccp restrict text) | { | // See if C++-style comments work. | // Iterate through items via the restricted pointer. | // Also check for declarations in for loops. | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | continue; | return 0; | } | | // Check varargs and va_copy. | static void | test_varargs (const char *format, ...) | { | va_list args; | va_start (args, format); | va_list args_copy; | va_copy (args_copy, args); | | const char *str; | int number; | float fnumber; | | while (*format) | { | switch (*format++) | { | case 's': // string | str = va_arg (args_copy, const char *); | break; | case 'd': // int | number = va_arg (args_copy, int); | break; | case 'f': // float | fnumber = va_arg (args_copy, double); | break; | default: | break; | } | } | va_end (args_copy); | va_end (args); | } | | int | main () | { | | // Check bool. | _Bool success = false; | | // Check restrict. | if (test_restrict ("String literal") == 0) | success = true; | char *restrict newvar = "Another string"; | | // Check varargs. | test_varargs ("s, d' f .", "string", 65, 34.234); | test_varargs_macros (); | | // Check flexible array members. | struct incomplete_array *ia = | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ia->datasize = 10; | for (int i = 0; i < ia->datasize; ++i) | ia->data[i] = i * 1.234; | | // Check named initializers. | struct named_init ni = { | .number = 34, | .name = L"Test wide string", | .average = 543.34343, | }; | | ni.number = 58; | | int dynamic_array[ni.number]; | dynamic_array[ni.number - 1] = 543; | | // work around unused variable warnings | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | || dynamic_array[ni.number - 1] != 543); | | ; | return 0; | } configure:14261: /usr/bin/gcc -std=gnu99 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:14261: $? = 0 configure:14281: result: -std=gnu99 configure:14402: checking for C++ compiler version configure:14411: /usr/bin/g++ --version >&5 g++ (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:14422: $? = 0 configure:14411: /usr/bin/g++ -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) configure:14422: $? = 0 configure:14411: /usr/bin/g++ -V >&5 g++: error: unrecognized command line option '-V' g++: fatal error: no input files compilation terminated. configure:14422: $? = 4 configure:14411: /usr/bin/g++ -qversion >&5 g++: error: unrecognized command line option '-qversion' g++: fatal error: no input files compilation terminated. configure:14422: $? = 4 configure:14426: checking whether we are using the GNU C++ compiler configure:14445: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 configure:14445: $? = 0 configure:14454: result: yes configure:14463: checking whether /usr/bin/g++ accepts -g configure:14483: /usr/bin/g++ -c -g -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 configure:14483: $? = 0 configure:14524: result: yes configure:14549: checking dependency style of /usr/bin/g++ configure:14660: result: none configure:14693: checking how to run the C++ preprocessor configure:14720: /usr/bin/g++ -E -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp configure:14720: $? = 0 configure:14734: /usr/bin/g++ -E -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:14734: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include configure:14759: result: /usr/bin/g++ -E configure:14779: /usr/bin/g++ -E -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp configure:14779: $? = 0 configure:14793: /usr/bin/g++ -E -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:14793: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include configure:14955: checking for ld used by /usr/bin/g++ configure:15022: result: /usr/bin/ld -m elf_x86_64 configure:15029: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld configure:15044: result: yes configure:15099: checking whether the /usr/bin/g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:16172: result: yes configure:16208: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 configure:16211: $? = 0 configure:16692: checking for /usr/bin/g++ option to produce PIC configure:16699: result: -fPIC -DPIC configure:16707: checking if /usr/bin/g++ PIC flag -fPIC -DPIC works configure:16725: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -fPIC -DPIC -DPIC conftest.cpp >&5 configure:16729: $? = 0 configure:16742: result: yes configure:16765: checking if /usr/bin/g++ static flag -static works configure:16793: result: yes configure:16805: checking if /usr/bin/g++ supports -c -o file.o configure:16826: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -o out/conftest2.o conftest.cpp >&5 configure:16830: $? = 0 configure:16852: result: yes configure:16857: checking if /usr/bin/g++ supports -c -o file.o configure:16904: result: yes configure:16934: checking whether the /usr/bin/g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:16974: result: yes configure:17115: checking dynamic linker characteristics configure:17863: result: GNU/Linux ld.so configure:17928: checking how to hardcode library paths into programs configure:17953: result: immediate configure:18000: checking whether /usr/bin/g++ supports C++11 features by default configure:18294: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 conftest.cpp:32:2: error: #error "This is not a C++11 compiler" configure:18294: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18301: result: no configure:18311: checking whether /usr/bin/g++ supports C++11 features with -std=gnu++11 configure:18607: /usr/bin/g++ -std=gnu++11 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:270:25: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:271:26: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:272:28: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:272:30: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:273:32: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:274:42: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:18607: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18616: result: no configure:18311: checking whether /usr/bin/g++ supports C++11 features with -std=gnu++0x configure:18607: /usr/bin/g++ -std=gnu++0x -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:270:25: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:271:26: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:272:28: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:272:30: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:273:32: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:274:42: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:18607: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18616: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with -std=c++11 configure:18929: /usr/bin/g++ -std=c++11 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:270:25: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:271:26: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:272:28: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:272:30: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:273:32: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:274:42: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with +std=c++11 configure:18929: /usr/bin/g++ +std=c++11 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 g++: error: +std=c++11: No such file or directory configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with -h std=c++11 configure:18929: /usr/bin/g++ -h std=c++11 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 g++: error: unrecognized option '-h' configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with -std=c++0x configure:18929: /usr/bin/g++ -std=c++0x -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:270:25: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:271:26: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:272:28: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:272:30: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:273:32: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:273:34: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:274:42: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:260:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:260:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:274:44: required from here conftest.cpp:260:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with +std=c++0x configure:18929: /usr/bin/g++ +std=c++0x -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 g++: error: +std=c++0x: No such file or directory configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18633: checking whether /usr/bin/g++ supports C++11 features with -h std=c++0x configure:18929: /usr/bin/g++ -h std=c++0x -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.cpp >&5 g++: error: unrecognized option '-h' configure:18929: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:18938: result: no configure:18967: No compiler with C++11 support was found configure:18985: checking for special C compiler options needed for large files configure:19030: result: no configure:19036: checking for _FILE_OFFSET_BITS value needed for large files configure:19061: /usr/bin/gcc -std=gnu99 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:19061: $? = 0 configure:19093: result: no configure:19287: checking pkg-config is at least version 0.20 configure:19290: result: yes configure:19351: checking for gtk-doc configure:19354: $PKG_CONFIG --exists --print-errors "$gtk_doc_requires" Package gtk-doc was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk-doc.pc' to the PKG_CONFIG_PATH environment variable Package 'gtk-doc', required by 'virtual:world', not found configure:19357: $? = 1 configure:19363: result: no configure:19369: WARNING: You will not be able to create source packages with 'make dist' because gtk-doc >= 1.15 is not found. configure:19377: checking for gtkdoc-check configure:19407: result: no configure:19414: checking for gtkdoc-check configure:19447: result: no configure:19456: checking for gtkdoc-rebase configure:19489: result: no configure:19500: checking for gtkdoc-mkpdf configure:19533: result: no configure:19558: checking whether to build gtk-doc documentation configure:19560: result: no configure:19573: checking for GTKDOC_DEPS configure:19580: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" configure:19583: $? = 0 configure:19597: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" configure:19600: $? = 0 configure:19638: result: yes configure:19726: checking for atexit configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for mprotect configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for sysconf configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for getpagesize configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for mmap configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for isatty configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for newlocale configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19726: checking for strtod_l configure:19726: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 configure:19726: $? = 0 configure:19726: result: yes configure:19738: checking for unistd.h configure:19738: result: yes configure:19738: checking sys/mman.h usability configure:19738: /usr/bin/gcc -std=gnu99 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking sys/mman.h presence configure:19738: /usr/bin/cpp -I/home/test/autobuild/run/instance-1/output/host/include conftest.c configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking for sys/mman.h configure:19738: result: yes configure:19738: checking xlocale.h usability configure:19738: /usr/bin/gcc -std=gnu99 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking xlocale.h presence configure:19738: /usr/bin/cpp -I/home/test/autobuild/run/instance-1/output/host/include conftest.c configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking for xlocale.h configure:19738: result: yes configure:19738: checking stdbool.h usability configure:19738: /usr/bin/gcc -std=gnu99 -c -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include conftest.c >&5 configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking stdbool.h presence configure:19738: /usr/bin/cpp -I/home/test/autobuild/run/instance-1/output/host/include conftest.c configure:19738: $? = 0 configure:19738: result: yes configure:19738: checking for stdbool.h configure:19738: result: yes configure:19753: checking alignment of struct{char;} configure:19758: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib conftest.c >&5 conftest.c:69:37: warning: declaration does not declare anything [enabled by default] configure:19758: $? = 0 configure:19758: ./conftest configure:19758: $? = 0 configure:19776: result: 1 configure:19789: checking whether the linker accepts -Bsymbolic-functions configure:19808: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 configure:19808: $? = 0 configure:19817: result: yes configure:19863: checking for native Win32 configure:19870: result: no configure:20065: checking whether /usr/bin/gcc -std=gnu99 is Clang configure:20090: result: no configure:20213: checking whether pthreads work with -pthread configure:20307: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -pthread -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 configure:20307: $? = 0 configure:20316: result: yes configure:20335: checking for joinable pthread attribute configure:20353: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -pthread -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 configure:20353: $? = 0 configure:20361: result: PTHREAD_CREATE_JOINABLE configure:20375: checking whether more special flags are required for pthreads configure:20388: result: no configure:20396: checking for PTHREAD_PRIO_INHERIT configure:20412: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -pthread -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 conftest.c: In function 'main': conftest.c:38:9: error: 'PTHREAD_PRIO_INHERIT' undeclared (first use in this function) conftest.c:38:9: note: each undeclared identifier is reported only once for each function it appears in configure:20412: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_ATEXIT 1 | #define HAVE_MPROTECT 1 | #define HAVE_SYSCONF 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MMAP 1 | #define HAVE_ISATTY 1 | #define HAVE_NEWLOCALE 1 | #define HAVE_STRTOD_L 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_XLOCALE_H 1 | #define HAVE_STDBOOL_H 1 | #define ALIGNOF_STRUCT_CHAR__ 1 | /* end confdefs.h. */ | #include | int | main () | { | int i = PTHREAD_PRIO_INHERIT; | ; | return 0; | } configure:20421: result: no configure:20550: checking for GLIB configure:20557: $PKG_CONFIG --exists --print-errors "$GLIB_DEPS" configure:20560: $? = 0 configure:20574: $PKG_CONFIG --exists --print-errors "$GLIB_DEPS" configure:20577: $? = 0 configure:20615: result: yes configure:21056: checking for FONTCONFIG configure:21063: $PKG_CONFIG --exists --print-errors "fontconfig" configure:21066: $? = 0 configure:21080: $PKG_CONFIG --exists --print-errors "fontconfig" configure:21083: $? = 0 configure:21121: result: yes configure:21505: checking for FREETYPE configure:21512: $PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS" configure:21515: $? = 0 configure:21529: $PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS" configure:21532: $? = 0 configure:21570: result: yes configure:21587: checking for FT_Get_Var_Blend_Coordinates configure:21587: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c -L/home/test/autobuild/run/instance-1/output/host/lib -lfreetype >&5 configure:21587: $? = 0 configure:21587: result: yes configure:21587: checking for FT_Set_Var_Blend_Coordinates configure:21587: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c -L/home/test/autobuild/run/instance-1/output/host/lib -lfreetype >&5 configure:21587: $? = 0 configure:21587: result: yes configure:21587: checking for FT_Done_MM_Var configure:21587: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c -L/home/test/autobuild/run/instance-1/output/host/lib -lfreetype >&5 configure:21587: $? = 0 configure:21587: result: yes configure:21772: checking for Intel atomic primitives configure:21795: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 configure:21795: $? = 0 configure:21803: result: true configure:21812: checking for Solaris atomic operations configure:21837: /usr/bin/gcc -std=gnu99 -o conftest -O2 -I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include -L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions conftest.c >&5 conftest.c:43:22: fatal error: atomic.h: No such file or directory compilation terminated. configure:21837: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "HarfBuzz" | #define PACKAGE_TARNAME "harfbuzz" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "HarfBuzz 2.5.3" | #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" | #define PACKAGE_URL "http://harfbuzz.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_ATEXIT 1 | #define HAVE_MPROTECT 1 | #define HAVE_SYSCONF 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MMAP 1 | #define HAVE_ISATTY 1 | #define HAVE_NEWLOCALE 1 | #define HAVE_STRTOD_L 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_XLOCALE_H 1 | #define HAVE_STDBOOL_H 1 | #define ALIGNOF_STRUCT_CHAR__ 1 | #define HAVE_PTHREAD 1 | #define HAVE_GLIB 1 | #define HAVE_FONTCONFIG 1 | #define HAVE_FREETYPE 1 | #define HAVE_FT_GET_VAR_BLEND_COORDINATES 1 | #define HAVE_FT_SET_VAR_BLEND_COORDINATES 1 | #define HAVE_FT_DONE_MM_VAR 1 | #define HAVE_INTEL_ATOMIC_PRIMITIVES 1 | /* end confdefs.h. */ | | #include | /* This requires Solaris Studio 12.2 or newer: */ | #include | void memory_barrier (void) { __machine_rw_barrier (); } | int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); } | void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); } | | int | main () | { | | ; | return 0; | } configure:21845: result: false configure:22039: checking that generated files are newer than configure configure:22045: result: done configure:22176: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by HarfBuzz config.status 2.5.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on build config.status:1398: creating Makefile config.status:1398: creating src/Makefile config.status:1398: creating src/harfbuzz-config.cmake config.status:1398: creating util/Makefile config.status:1398: creating test/Makefile config.status:1398: creating test/api/Makefile config.status:1398: creating test/fuzzing/Makefile config.status:1398: creating test/shaping/Makefile config.status:1398: creating test/shaping/data/Makefile config.status:1398: creating test/shaping/data/aots/Makefile config.status:1398: creating test/shaping/data/in-house/Makefile config.status:1398: creating test/shaping/data/text-rendering-tests/Makefile config.status:1398: creating test/subset/Makefile config.status:1398: creating test/subset/data/Makefile config.status:1398: creating docs/Makefile config.status:1398: creating docs/version.xml config.status:1398: creating config.h config.status:1627: executing depfiles commands config.status:1627: executing libtool commands configure:24597: WARNING: unrecognized options: --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-nls configure:24635: Build configuration: Unicode callbacks (you want at least one): Builtin true Glib: true ICU: false Font callbacks (the more the merrier): FreeType: true Tools used for command-line utilities: Cairo: false Fontconfig: true Additional shapers (the more the merrier): Graphite2: false Platform shapers (not normally needed): CoreText: false DirectWrite: false Uniscribe: false Other features: Documentation: no GObject bindings: false Introspection: false ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_alignof_struct_char__=1 ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CAIRO_CFLAGS_set= ac_cv_env_CAIRO_CFLAGS_value= ac_cv_env_CAIRO_FT_CFLAGS_set= ac_cv_env_CAIRO_FT_CFLAGS_value= ac_cv_env_CAIRO_FT_LIBS_set= ac_cv_env_CAIRO_FT_LIBS_value= ac_cv_env_CAIRO_LIBS_set= ac_cv_env_CAIRO_LIBS_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/bin/gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -I/home/test/autobuild/run/instance-1/output/host/include' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-I/home/test/autobuild/run/instance-1/output/host/include ac_cv_env_CPP_set=set ac_cv_env_CPP_value=/usr/bin/cpp ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-O2 -I/home/test/autobuild/run/instance-1/output/host/include' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/usr/bin/g++ ac_cv_env_FONTCONFIG_CFLAGS_set= ac_cv_env_FONTCONFIG_CFLAGS_value= ac_cv_env_FONTCONFIG_LIBS_set= ac_cv_env_FONTCONFIG_LIBS_value= ac_cv_env_FREETYPE_CFLAGS_set= ac_cv_env_FREETYPE_CFLAGS_value= ac_cv_env_FREETYPE_LIBS_set= ac_cv_env_FREETYPE_LIBS_value= ac_cv_env_GLIB_CFLAGS_set= ac_cv_env_GLIB_CFLAGS_value= ac_cv_env_GLIB_LIBS_set= ac_cv_env_GLIB_LIBS_value= ac_cv_env_GOBJECT_CFLAGS_set= ac_cv_env_GOBJECT_CFLAGS_value= ac_cv_env_GOBJECT_LIBS_set= ac_cv_env_GOBJECT_LIBS_value= ac_cv_env_GRAPHITE2_CFLAGS_set= ac_cv_env_GRAPHITE2_CFLAGS_value= ac_cv_env_GRAPHITE2_LIBS_set= ac_cv_env_GRAPHITE2_LIBS_value= ac_cv_env_GTKDOC_DEPS_CFLAGS_set= ac_cv_env_GTKDOC_DEPS_CFLAGS_value= ac_cv_env_GTKDOC_DEPS_LIBS_set= ac_cv_env_GTKDOC_DEPS_LIBS_value= ac_cv_env_ICU_CFLAGS_set= ac_cv_env_ICU_CFLAGS_value= ac_cv_env_ICU_LIBS_set= ac_cv_env_ICU_LIBS_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_PKG_CONFIG_LIBDIR_set=set ac_cv_env_PKG_CONFIG_LIBDIR_value=/home/test/autobuild/run/instance-1/output/host/lib/pkgconfig:/home/test/autobuild/run/instance-1/output/host/share/pkgconfig ac_cv_env_PKG_CONFIG_PATH_set= ac_cv_env_PKG_CONFIG_PATH_value= ac_cv_env_PKG_CONFIG_set=set ac_cv_env_PKG_CONFIG_value=/home/test/autobuild/run/instance-1/output/host/bin/pkg-config ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_FT_Done_MM_Var=yes ac_cv_func_FT_Get_Var_Blend_Coordinates=yes ac_cv_func_FT_Set_Var_Blend_Coordinates=yes ac_cv_func_atexit=yes ac_cv_func_getpagesize=yes ac_cv_func_isatty=yes ac_cv_func_mmap=yes ac_cv_func_mprotect=yes ac_cv_func_newlocale=yes ac_cv_func_strtod_l=yes ac_cv_func_sysconf=yes ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdbool_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_mman_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_header_xlocale_h=yes ac_cv_host=x86_64-pc-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FGREP='/bin/grep -F' ac_cv_path_GREP=/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_install='/usr/bin/install -c' ac_cv_path_lt_DD=/bin/dd ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_CPP=/usr/bin/cpp ac_cv_prog_CXXCPP='/usr/bin/g++ -E' ac_cv_prog_ac_ct_CC=/usr/bin/gcc ac_cv_prog_ac_ct_MANIFEST_TOOL=mt ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=/usr/bin/ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_c99=-std=gnu99 ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes ac_cv_sys_file_offset_bits=no ac_cv_sys_largefile_CC=no am_cv_CC_dependencies_compiler_type=none am_cv_CXX_dependencies_compiler_type=none am_cv_ar_interface=ar am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes am_cv_prog_tar_ustar=gnutar ax_cv_PTHREAD_CLANG=no ax_cv_PTHREAD_JOINABLE_ATTR=PTHREAD_CREATE_JOINABLE ax_cv_PTHREAD_PRIO_INHERIT=no ax_cv_PTHREAD_SPECIAL_FLAGS=no ax_cv_check_ldflags___Bsymbolic_functions=yes ax_cv_cxx_compile_cxx11=no ax_cv_cxx_compile_cxx11__h_std_cpp0x=no ax_cv_cxx_compile_cxx11__h_std_cpp11=no ax_cv_cxx_compile_cxx11__std_cpp0x=no ax_cv_cxx_compile_cxx11__std_cpp11=no ax_cv_cxx_compile_cxx11__std_gnupp0x=no ax_cv_cxx_compile_cxx11__std_gnupp11=no ax_cv_cxx_compile_cxx11_pstd_cpp0x=no ax_cv_cxx_compile_cxx11_pstd_cpp11=no hb_cv_have_intel_atomic_primitives=true hb_cv_have_solaris_atomic_ops=false lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64' lt_cv_path_NM=/usr/bin/nm lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_compiler_static_works_CXX=yes lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_import= lt_cv_sys_max_cmd_len=3458764513820540925 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop lt_cv_truncate_bin='/bin/dd bs=4096 count=1' pkg_cv_FONTCONFIG_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include/freetype2 -I/home/test/autobuild/run/instance-1/output/host/include/uuid ' pkg_cv_FONTCONFIG_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lfontconfig -lfreetype ' pkg_cv_FREETYPE_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/freetype2 ' pkg_cv_FREETYPE_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lfreetype ' pkg_cv_GLIB_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/glib-2.0 -I/home/test/autobuild/run/instance-1/output/host/lib/glib-2.0/include -I/home/test/autobuild/run/instance-1/output/host/include ' pkg_cv_GLIB_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lglib-2.0 ' pkg_cv_GTKDOC_DEPS_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/glib-2.0 -I/home/test/autobuild/run/instance-1/output/host/lib/glib-2.0/include -I/home/test/autobuild/run/instance-1/output/host/include ' pkg_cv_GTKDOC_DEPS_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lgobject-2.0 -lglib-2.0 ' ## ----------------- ## ## Output variables. ## ## ----------------- ## @echo "Need to reconfigure with --enable-code-coverage" @echo "Need to reconfigure with --enable-code-coverage" $(CODE_COVERAGE_IGNORE_PATTERN); $(CODE_COVERAGE_OUTPUT_FILE); # # # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage) # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info) # (Default: $(top_builddir)) # (Default: empty) # Multiple directories may be specified, separated by whitespace. # by lcov for code coverage. (Default: # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) # lcov instance. (Default: empty) # reports to be created. (Default: # set to 0 to disable it and leave empty to stay with the default. # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage, # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting. # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated # $(PACKAGE_VERSION). In order to add the current git hash to the title, # Capture code coverage data # Code coverage # Hook rule executed before code-coverage-capture, overridable by the user # Optional variables # Optional: # The generated report will be titled using the $(PACKAGE_NAME) and # Use recursive makes in order to ignore errors during check # sanitizes the test-name: replaces with underscores: dashes and dots # use the git-version-gen script, available online. $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ ' --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean ACLOCAL='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing aclocal-1.16' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='0' AM_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage AM_DISTCHECK_CONFIGURE_FLAGS ?= AM_V='$(V)' AR='/usr/bin/ar' AUTOCONF='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing autoconf' AUTOHEADER='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing autoheader' AUTOMAKE='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing automake-1.16' AWK='mawk' CAIRO_CFLAGS='' CAIRO_FT_CFLAGS='' CAIRO_FT_LIBS='' CAIRO_LIBS='' CC='/usr/bin/gcc -std=gnu99' CCDEPMODE='depmode=none' CFLAGS='-O2 -I/home/test/autobuild/run/instance-1/output/host/include' CODE_COVERAGE_BRANCH_COVERAGE ?= CODE_COVERAGE_CFLAGS='' CODE_COVERAGE_CPPFLAGS='' CODE_COVERAGE_CXXFLAGS='' CODE_COVERAGE_DIRECTORY ?= $(top_builddir) CODE_COVERAGE_ENABLED='no' CODE_COVERAGE_ENABLED_FALSE='' CODE_COVERAGE_ENABLED_TRUE='#' CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\ CODE_COVERAGE_IGNORE_PATTERN ?= CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)" CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?= CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ CODE_COVERAGE_LDFLAGS='' CODE_COVERAGE_LIBS='' CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info CODE_COVERAGE_RULES=' CORETEXT_CFLAGS='' CORETEXT_LIBS='' CPP='/usr/bin/cpp' CPPFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include' CXX='/usr/bin/g++' CXXCPP='/usr/bin/g++ -E' CXXDEPMODE='depmode=none' CXXFLAGS='-fno-rtti -O2 -I/home/test/autobuild/run/instance-1/output/host/include -fno-exceptions -fno-threadsafe-statics -fvisibility-inlines-hidden' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DIRECTWRITE_CXXFLAGS='' DIRECTWRITE_LIBS='' DLLTOOL='false' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' ENABLE_GTK_DOC_FALSE='' ENABLE_GTK_DOC_TRUE='#' EXEEXT='' FGREP='/bin/grep -F' FONTCONFIG_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include -I/home/test/autobuild/run/instance-1/output/host/include/freetype2 -I/home/test/autobuild/run/instance-1/output/host/include/uuid ' FONTCONFIG_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lfontconfig -lfreetype ' FREETYPE_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/freetype2 ' FREETYPE_DEPS='freetype2 >= 12.0.6' FREETYPE_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lfreetype ' GCOV='' GENHTML='' GIT='git' GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY) GITIGNOREFILES ?= GLIB_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/glib-2.0 -I/home/test/autobuild/run/instance-1/output/host/lib/glib-2.0/include -I/home/test/autobuild/run/instance-1/output/host/include ' GLIB_DEPS='glib-2.0 >= 2.19.1' GLIB_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lglib-2.0 ' GLIB_MKENUMS='' GOBJECT_CFLAGS='' GOBJECT_LIBS='' GRAPHITE2_CFLAGS='' GRAPHITE2_DEPS='graphite2 >= 1.2.0' GRAPHITE2_LIBS='' GREP='/bin/grep' GTKDOC_CHECK='' GTKDOC_CHECK_PATH='' GTKDOC_DEPS_CFLAGS='-I/home/test/autobuild/run/instance-1/output/host/include/glib-2.0 -I/home/test/autobuild/run/instance-1/output/host/lib/glib-2.0/include -I/home/test/autobuild/run/instance-1/output/host/include ' GTKDOC_DEPS_LIBS='-L/home/test/autobuild/run/instance-1/output/host/lib -lgobject-2.0 -lglib-2.0 ' GTKDOC_MKPDF='' GTKDOC_REBASE='true' GTK_DOC_BUILD_HTML_FALSE='' GTK_DOC_BUILD_HTML_TRUE='#' GTK_DOC_BUILD_PDF_FALSE='' GTK_DOC_BUILD_PDF_TRUE='#' GTK_DOC_USE_LIBTOOL_FALSE='#' GTK_DOC_USE_LIBTOOL_TRUE='' GTK_DOC_USE_REBASE_FALSE='#' GTK_DOC_USE_REBASE_TRUE='' HAVE_CAIRO_FALSE='' HAVE_CAIRO_FT_FALSE='' HAVE_CAIRO_FT_TRUE='#' HAVE_CAIRO_TRUE='#' HAVE_CORETEXT_FALSE='' HAVE_CORETEXT_TRUE='#' HAVE_CXX11='0' HAVE_DIRECTWRITE_FALSE='' HAVE_DIRECTWRITE_TRUE='#' HAVE_FONTCONFIG_FALSE='#' HAVE_FONTCONFIG_TRUE='' HAVE_FREETYPE_FALSE='#' HAVE_FREETYPE_TRUE='' HAVE_GCC_FALSE='#' HAVE_GCC_TRUE='' HAVE_GLIB_FALSE='#' HAVE_GLIB_TRUE='' HAVE_GOBJECT_FALSE='' HAVE_GOBJECT_TRUE='#' HAVE_GRAPHITE2_FALSE='' HAVE_GRAPHITE2_TRUE='#' HAVE_GTK_DOC_FALSE='' HAVE_GTK_DOC_TRUE='#' HAVE_ICU_BUILTIN_FALSE='' HAVE_ICU_BUILTIN_TRUE='#' HAVE_ICU_FALSE='' HAVE_ICU_TRUE='#' HAVE_INTROSPECTION_FALSE='' HAVE_INTROSPECTION_TRUE='#' HAVE_PTHREAD_FALSE='#' HAVE_PTHREAD_TRUE='' HAVE_UNISCRIBE_FALSE='' HAVE_UNISCRIBE_TRUE='#' HB_LIBTOOL_VERSION_INFO='20503:0:20503' HB_VERSION='2.5.3' HB_VERSION_MAJOR='2' HB_VERSION_MICRO='3' HB_VERSION_MINOR='5' HTML_DIR='${datadir}/gtk-doc/html' ICU_CFLAGS='' ICU_CONFIG='' ICU_LIBS='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' INTROSPECTION_CFLAGS='' INTROSPECTION_COMPILER='' INTROSPECTION_GENERATE='' INTROSPECTION_GIRDIR='' INTROSPECTION_LIBS='' INTROSPECTION_MAKEFILE='' INTROSPECTION_SCANNER='' INTROSPECTION_TYPELIBDIR='' LCOV='' LD='/usr/bin/ld -m elf_x86_64' LDFLAGS='-L/home/test/autobuild/run/instance-1/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-1/output/host/lib -Bsymbolic-functions' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAKEINFO='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OS_WIN32_FALSE='' OS_WIN32_TRUE='#' OTOOL64='' OTOOL='' PACKAGE='harfbuzz' PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new' PACKAGE_NAME='HarfBuzz' PACKAGE_STRING='HarfBuzz 2.5.3' PACKAGE_TARNAME='harfbuzz' PACKAGE_URL='http://harfbuzz.org/' PACKAGE_VERSION='2.5.3' PATH_SEPARATOR=':' PKG_CONFIG='/home/test/autobuild/run/instance-1/output/host/bin/pkg-config' PKG_CONFIG_LIBDIR='/home/test/autobuild/run/instance-1/output/host/lib/pkgconfig:/home/test/autobuild/run/instance-1/output/host/share/pkgconfig' PKG_CONFIG_PATH='' PTHREAD_CC='/usr/bin/gcc -std=gnu99' PTHREAD_CFLAGS='-pthread' PTHREAD_LIBS='' RAGEL='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/missing ragel' RANLIB='/usr/bin/ranlib' SED='/bin/sed' SET_MAKE='' SHELL='/bin/bash' STRIP='strip' UNISCRIBE_CFLAGS='' UNISCRIBE_LIBS='' VERSION='2.5.3' WITH_LIBSTDCXX_FALSE='' WITH_LIBSTDCXX_TRUE='#' ac_ct_AR='' ac_ct_CC='/usr/bin/gcc' ac_ct_CXX='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='#' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='#' am__include='include' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='tar --format=ustar -chf - "$$tardir"' am__untar='tar -xf -' ax_pthread_config='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' check-code-coverage: code-coverage-capture-hook: code-coverage-capture: code-coverage-capture-hook code_coverage_quiet = $(code_coverage_quiet_$(V)) code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY)) code_coverage_quiet_0 = --quiet code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1))) code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V)) code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY)) code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY); code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V)) code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY)) code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\ code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V)) code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY)) code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\ datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' have_gobject='false' host='x86_64-pc-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/test/autobuild/run/instance-1/output/build/host-harfbuzz-2.5.3/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/home/test/autobuild/run/instance-1/output/host/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/test/autobuild/run/instance-1/output/host' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/home/test/autobuild/run/instance-1/output/host/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "HarfBuzz" #define PACKAGE_TARNAME "harfbuzz" #define PACKAGE_VERSION "2.5.3" #define PACKAGE_STRING "HarfBuzz 2.5.3" #define PACKAGE_BUGREPORT "https://github.com/harfbuzz/harfbuzz/issues/new" #define PACKAGE_URL "http://harfbuzz.org/" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_ATEXIT 1 #define HAVE_MPROTECT 1 #define HAVE_SYSCONF 1 #define HAVE_GETPAGESIZE 1 #define HAVE_MMAP 1 #define HAVE_ISATTY 1 #define HAVE_NEWLOCALE 1 #define HAVE_STRTOD_L 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_MMAN_H 1 #define HAVE_XLOCALE_H 1 #define HAVE_STDBOOL_H 1 #define ALIGNOF_STRUCT_CHAR__ 1 #define HAVE_PTHREAD 1 #define HAVE_GLIB 1 #define HAVE_FONTCONFIG 1 #define HAVE_FREETYPE 1 #define HAVE_FT_GET_VAR_BLEND_COORDINATES 1 #define HAVE_FT_SET_VAR_BLEND_COORDINATES 1 #define HAVE_FT_DONE_MM_VAR 1 #define HAVE_INTEL_ATOMIC_PRIMITIVES 1 configure: exit 0