I am trying to compile and install graph-tool version 2.26 in ubuntu using
./configure but I am getting following error

checking for boostlib >= 1.55.0 (105500)... yes
checking whether the Boost::Python library is available... yes
checking whether boost_python is the correct library... no
checking whether boost_python-py27 is the correct library... no
checking whether boost_python-py27 is the correct library... (cached) no
checking whether boost_python-py27 is the correct library... (cached) no
checking whether boost_python-py35 is the correct library... no
checking whether boost_python-py35 is the correct library... (cached) no
checking whether boost_python-py35 is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python3 is the correct library... no
configure: error: No usable boost::python found

I have tried ./configure --with-python-boost=no but have obtained the same
error ...

I have also added the config.log if that helps
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by graph-tool configure 2.26, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = sam-Lenovo-ideapad-500-14ISK
uname -m = x86_64
uname -r = 4.4.0-21-generic
uname -s = Linux
uname -v = #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016

/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: ~/usr/include/boost
PATH: /home/sam/anaconda2/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /usr/lib/jvm/java-8-oracle/bin
PATH: /usr/lib/jvm/java-8-oracle/db/bin
PATH: /usr/lib/jvm/java-8-oracle/jre/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2718: checking build system type
configure:2732: result: x86_64-pc-linux-gnu
configure:2752: checking host system type
configure:2765: result: x86_64-pc-linux-gnu
configure:2785: checking target system type
configure:2798: result: x86_64-pc-linux-gnu
configure:2840: checking for a BSD-compatible install
configure:2908: result: /usr/bin/install -c
configure:2919: checking whether build environment is sane
configure:2974: result: yes
configure:3125: checking for a thread-safe mkdir -p
configure:3164: result: /bin/mkdir -p
configure:3171: checking for gawk
configure:3187: found /usr/bin/gawk
configure:3198: result: gawk
configure:3209: checking whether make sets $(MAKE)
configure:3231: result: yes
configure:3260: checking whether make supports nested variables
configure:3277: result: yes
configure:3356: checking how to create a pax tar archive
configure:3367: tar --version
tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
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:3370: $? = 0
configure:3410: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar
configure:3413: $? = 0
configure:3417: tar -xf - <conftest.tar
configure:3420: $? = 0
configure:3422: cat conftest.dir/file
GrepMe
configure:3425: $? = 0
configure:3438: result: gnutar
configure:3499: checking whether make supports nested variables
configure:3516: result: yes
configure:3539: checking for style of include used by make
configure:3567: result: GNU
configure:3638: checking for gcc
configure:3654: found /usr/bin/gcc
configure:3665: result: gcc
configure:3894: checking for C compiler version
configure:3903: gcc --version >&5
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 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:3914: $? = 0
configure:3903: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --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 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 
configure:3914: $? = 0
configure:3903: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3914: $? = 1
configure:3903: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3914: $? = 1
configure:3934: checking whether the C compiler works
configure:3956: gcc    conftest.c  >&5
configure:3960: $? = 0
configure:4008: result: yes
configure:4011: checking for C compiler default output file name
configure:4013: result: a.out
configure:4019: checking for suffix of executables
configure:4026: gcc -o conftest    conftest.c  >&5
configure:4030: $? = 0
configure:4052: result: 
configure:4074: checking whether we are cross compiling
configure:4082: gcc -o conftest    conftest.c  >&5
configure:4086: $? = 0
configure:4093: ./conftest
configure:4097: $? = 0
configure:4112: result: no
configure:4117: checking for suffix of object files
configure:4139: gcc -c   conftest.c >&5
configure:4143: $? = 0
configure:4164: result: o
configure:4168: checking whether we are using the GNU C compiler
configure:4187: gcc -c   conftest.c >&5
configure:4187: $? = 0
configure:4196: result: yes
configure:4205: checking whether gcc accepts -g
configure:4225: gcc -c -g  conftest.c >&5
configure:4225: $? = 0
configure:4266: result: yes
configure:4283: checking for gcc option to accept ISO C89
configure:4346: gcc  -c -g -O2  conftest.c >&5
configure:4346: $? = 0
configure:4359: result: none needed
configure:4384: checking whether gcc understands -c and -o together
configure:4406: gcc -c conftest.c -o conftest2.o
configure:4409: $? = 0
configure:4406: gcc -c conftest.c -o conftest2.o
configure:4409: $? = 0
configure:4421: result: yes
configure:4440: checking dependency style of gcc
configure:4551: result: gcc3
configure:4571: checking for library containing strerror
configure:4602: gcc -o conftest -g -O2   conftest.c  >&5
configure:4602: $? = 0
configure:4619: result: none required
configure:4634: checking how to run the C preprocessor
configure:4665: gcc -E  conftest.c
configure:4665: $? = 0
configure:4679: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4704: result: gcc -E
configure:4724: gcc -E  conftest.c
configure:4724: $? = 0
configure:4738: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4738: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4767: checking for grep that handles long lines and -e
configure:4825: result: /bin/grep
configure:4830: checking for egrep
configure:4892: result: /bin/grep -E
configure:4897: checking for ANSI C header files
configure:4917: gcc -c -g -O2  conftest.c >&5
configure:4917: $? = 0
configure:4990: gcc -o conftest -g -O2   conftest.c  >&5
configure:4990: $? = 0
configure:4990: ./conftest
configure:4990: $? = 0
configure:5001: result: yes
configure:5014: checking for sys/types.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for sys/stat.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for stdlib.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for string.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for memory.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for strings.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for inttypes.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for stdint.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5014: checking for unistd.h
configure:5014: gcc -c -g -O2  conftest.c >&5
configure:5014: $? = 0
configure:5014: result: yes
configure:5027: checking minix/config.h usability
configure:5027: gcc -c -g -O2  conftest.c >&5
conftest.c:54:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:5027: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:5027: result: no
configure:5027: checking minix/config.h presence
configure:5027: gcc -E  conftest.c
conftest.c:21:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:5027: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:5027: result: no
configure:5027: checking for minix/config.h
configure:5027: result: no
configure:5048: checking whether it is safe to define __EXTENSIONS__
configure:5066: gcc -c -g -O2  conftest.c >&5
configure:5066: $? = 0
configure:5073: result: yes
configure:5145: checking for g++
configure:5161: found /usr/bin/g++
configure:5172: result: g++
configure:5199: checking for C++ compiler version
configure:5208: g++ --version >&5
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 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:5219: $? = 0
configure:5208: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --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 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 
configure:5219: $? = 0
configure:5208: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:5219: $? = 1
configure:5208: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:5219: $? = 1
configure:5223: checking whether we are using the GNU C++ compiler
configure:5242: g++ -c   conftest.cpp >&5
configure:5242: $? = 0
configure:5251: result: yes
configure:5260: checking whether g++ accepts -g
configure:5280: g++ -c -g  conftest.cpp >&5
configure:5280: $? = 0
configure:5321: result: yes
configure:5346: checking dependency style of g++
configure:5457: result: gcc3
configure:5482: checking for gcc option to accept ISO C99
configure:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5631: g++ -c   conftest.cpp >&5
conftest.cpp:76:29: error: expected ',' or '...' before 'text'
 test_restrict (ccp restrict text)
                             ^
conftest.cpp: In function 'int test_restrict(ccp)':
conftest.cpp:81:30: error: 'text' was not declared in this scope
   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                              ^
conftest.cpp: In function 'int main()':
conftest.cpp:130:18: error: expected initializer before 'newvar'
   char *restrict newvar = "Another string";
                  ^
conftest.cpp:138:12: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
            ^
conftest.cpp:156:59: error: 'newvar' was not declared in this scope
   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                                                           ^
configure:5631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // 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:5647: result: unsupported
configure:5657: checking for gcc option to accept ISO C89
configure:5733: result: none needed
configure:5752: checking for gcc option to accept ISO Standard C
configure:5763: result: none needed
configure:5776: checking how to run the C++ preprocessor
configure:5803: g++ -E  conftest.cpp
configure:5803: $? = 0
configure:5817: g++ -E  conftest.cpp
conftest.cpp:26:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5817: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5842: result: g++ -E
configure:5862: g++ -E  conftest.cpp
configure:5862: $? = 0
configure:5876: g++ -E  conftest.cpp
conftest.cpp:26:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5876: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5905: checking for ANSI C header files
configure:6009: result: yes
configure:6095: checking how to print strings
configure:6122: result: printf
configure:6143: checking for a sed that does not truncate output
configure:6207: result: /bin/sed
configure:6225: checking for fgrep
configure:6287: result: /bin/grep -F
configure:6322: checking for ld used by gcc
configure:6389: result: /usr/bin/ld
configure:6396: checking if the linker (/usr/bin/ld) is GNU ld
configure:6411: result: yes
configure:6423: checking for BSD- or MS-compatible name lister (nm)
configure:6477: result: /usr/bin/nm -B
configure:6607: checking the name lister (/usr/bin/nm -B) interface
configure:6614: g++ -c   conftest.cpp >&5
configure:6617: /usr/bin/nm -B "conftest.o"
configure:6620: output
0000000000000000 B some_variable
configure:6627: result: BSD nm
configure:6630: checking whether ln -s works
configure:6634: result: yes
configure:6642: checking the maximum length of command line arguments
configure:6773: result: 1572864
configure:6821: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format
configure:6861: result: func_convert_file_noop
configure:6868: checking how to convert x86_64-pc-linux-gnu file names to toolchain format
configure:6888: result: func_convert_file_noop
configure:6895: checking for /usr/bin/ld option to reload object files
configure:6902: result: -r
configure:6976: checking for objdump
configure:6992: found /usr/bin/objdump
configure:7003: result: objdump
configure:7035: checking how to recognize dependent libraries
configure:7235: result: pass_all
configure:7320: checking for dlltool
configure:7350: result: no
configure:7380: checking how to associate runtime and link libraries
configure:7407: result: printf %s\n
configure:7467: checking for ar
configure:7483: found /usr/bin/ar
configure:7494: result: ar
configure:7547: checking for archiver @FILE support
configure:7564: g++ -c   conftest.cpp >&5
configure:7564: $? = 0
configure:7567: ar cr libconftest.a @conftest.lst >&5
configure:7570: $? = 0
configure:7575: ar cr libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:7578: $? = 1
configure:7590: result: @
configure:7648: checking for strip
configure:7664: found /usr/bin/strip
configure:7675: result: strip
configure:7747: checking for ranlib
configure:7763: found /usr/bin/ranlib
configure:7774: result: ranlib
configure:7876: checking command to parse /usr/bin/nm -B output from gcc object
configure:8029: g++ -c   conftest.cpp >&5
configure:8032: $? = 0
configure:8036: /usr/bin/nm -B 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:8039: $? = 0
configure:8105: g++ -o conftest    conftest.cpp conftstm.o >&5
configure:8108: $? = 0
configure:8146: result: ok
configure:8193: checking for sysroot
configure:8223: result: no
configure:8230: checking for a working dd
configure:8268: result: /bin/dd
configure:8272: checking how to truncate binary pipes
configure:8287: result: /bin/dd bs=4096 count=1
configure:8423: g++ -c   conftest.cpp >&5
configure:8426: $? = 0
configure:8616: checking for mt
configure:8632: found /bin/mt
configure:8643: result: mt
configure:8666: checking if mt is a manifest tool
configure:8672: mt '-?'
configure:8680: result: no
configure:9354: checking for dlfcn.h
configure:9354: g++ -c   conftest.cpp >&5
configure:9354: $? = 0
configure:9354: result: yes
configure:9590: checking for objdir
configure:9605: result: .libs
configure:9865: checking if gcc supports -fno-rtti -fno-exceptions
configure:9883: gcc -c -g -O2  -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C
configure:9887: $? = 0
configure:9900: result: no
configure:10258: checking for gcc option to produce PIC
configure:10265: result: -fPIC -DPIC
configure:10273: checking if gcc PIC flag -fPIC -DPIC works
configure:10291: gcc -c -g -O2  -fPIC -DPIC -DPIC conftest.c >&5
configure:10295: $? = 0
configure:10308: result: yes
configure:10337: checking if gcc static flag -static works
configure:10365: result: yes
configure:10380: checking if gcc supports -c -o file.o
configure:10401: gcc -c -g -O2  -o out/conftest2.o conftest.c >&5
configure:10405: $? = 0
configure:10427: result: yes
configure:10435: checking if gcc supports -c -o file.o
configure:10482: result: yes
configure:10515: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:11776: result: yes
configure:11813: checking whether -lc should be explicitly linked in
configure:11821: gcc -c -g -O2  conftest.c >&5
configure:11824: $? = 0
configure:11839: gcc -shared  -fPIC -DPIC conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep  -lc  \>/dev/null 2\>\&1
configure:11842: $? = 0
configure:11856: result: no
configure:12016: checking dynamic linker characteristics
configure:12597: gcc -o conftest -g -O2   -Wl,-rpath -Wl,/foo conftest.c  >&5
configure:12597: $? = 0
configure:12834: result: GNU/Linux ld.so
configure:12956: checking how to hardcode library paths into programs
configure:12981: result: immediate
configure:13529: checking whether stripping libraries is possible
configure:13538: result: yes
configure:13580: checking if libtool supports shared libraries
configure:13582: result: yes
configure:13585: checking whether to build shared libraries
configure:13610: result: yes
configure:13613: checking whether to build static libraries
configure:13617: result: no
configure:13640: checking how to run the C++ preprocessor
configure:13706: result: g++ -E
configure:13726: g++ -E  conftest.cpp
configure:13726: $? = 0
configure:13740: g++ -E  conftest.cpp
conftest.cpp:29:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:13740: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:13902: checking for ld used by g++
configure:13969: result: /usr/bin/ld -m elf_x86_64
configure:13976: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
configure:13991: result: yes
configure:14046: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:15120: result: yes
configure:15156: g++ -c   conftest.cpp >&5
configure:15159: $? = 0
configure:15640: checking for g++ option to produce PIC
configure:15647: result: -fPIC -DPIC
configure:15655: checking if g++ PIC flag -fPIC -DPIC works
configure:15673: g++ -c   -fPIC -DPIC -DPIC conftest.cpp >&5
configure:15677: $? = 0
configure:15690: result: yes
configure:15713: checking if g++ static flag -static works
configure:15741: result: yes
configure:15753: checking if g++ supports -c -o file.o
configure:15774: g++ -c   -o out/conftest2.o conftest.cpp >&5
configure:15778: $? = 0
configure:15800: result: yes
configure:15805: checking if g++ supports -c -o file.o
configure:15852: result: yes
configure:15882: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:15922: result: yes
configure:16063: checking dynamic linker characteristics
configure:16808: result: GNU/Linux ld.so
configure:16873: checking how to hardcode library paths into programs
configure:16898: result: immediate
configure:17015: checking for pkg-config
configure:17033: found /usr/bin/pkg-config
configure:17045: result: /usr/bin/pkg-config
configure:17070: checking pkg-config is at least version 0.9.0
configure:17073: result: yes
configure:17104: checking whether g++ supports C++14 features by default
configure:17518: g++ -c   conftest.cpp >&5
conftest.cpp:40:2: error: #error "This is not a C++11 compiler"
 #error "This is not a C++11 compiler"
  ^
conftest.cpp:325:2: error: #error "This is not a C++14 compiler"
 #error "This is not a C++14 compiler"
  ^
configure:17518: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 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 <typename T>
|     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<void> single_type;
|     typedef check<check<void>> double_type;
|     typedef check<check<check<void>>> triple_type;
|     typedef check<check<check<check<void>>>> 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<T, T>
|     {
|       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<int, decltype(0)>::value == true, "");
|       static_assert(is_same<int, decltype(c)>::value == false, "");
|       static_assert(is_same<int, decltype(v)>::value == false, "");
|       auto ac = c;
|       auto av = v;
|       auto sumi = ac + av + 'x';
|       auto sumf = ac + av + 1.0;
|       static_assert(is_same<int, decltype(ac)>::value == true, "");
|       static_assert(is_same<int, decltype(av)>::value == true, "");
|       static_assert(is_same<int, decltype(sumi)>::value == true, "");
|       static_assert(is_same<int, decltype(sumf)>::value == false, "");
|       static_assert(is_same<int, decltype(add(c, v))>::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 <int...>
|     struct sum;
| 
|     template <int N0, int... N1toN>
|     struct sum<N0, N1toN...>
|     {
|       static constexpr auto value = N0 + sum<N1toN...>::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<typename T>
|     using member = typename T::member_type;
| 
|     template<typename T>
|     void func(...) {}
| 
|     template<typename T>
|     void func(member<T>*) {}
| 
|     void test();
| 
|     void test() { func<foo>(0); }
| 
|   }
| 
| }  // namespace cxx11
| 
| #endif  // __cplusplus >= 201103L
| 
| 
| 
| 
| // If the compiler admits that it is not ready for C++14, why torture it?
| // Hopefully, this will speed up the test.
| 
| #ifndef __cplusplus
| 
| #error "This is not a C++ compiler"
| 
| #elif __cplusplus < 201402L
| 
| #error "This is not a C++14 compiler"
| 
| #else
| 
| namespace cxx14
| {
| 
|   namespace test_polymorphic_lambdas
|   {
| 
|     int
|     test()
|     {
|       const auto lambda = [](auto&&... args){
|         const auto istiny = [](auto x){
|           return (sizeof(x) == 1UL) ? 1 : 0;
|         };
|         const int aretiny[] = { istiny(args)... };
|         return aretiny[0];
|       };
|       return lambda(1, 1L, 1.0f, '1');
|     }
| 
|   }
| 
|   namespace test_binary_literals
|   {
| 
|     constexpr auto ivii = 0b0000000000101010;
|     static_assert(ivii == 42, "wrong value");
| 
|   }
| 
|   namespace test_generalized_constexpr
|   {
| 
|     template < typename CharT >
|     constexpr unsigned long
|     strlen_c(const CharT *const s) noexcept
|     {
|       auto length = 0UL;
|       for (auto p = s; *p; ++p)
|         ++length;
|       return length;
|     }
| 
|     static_assert(strlen_c("") == 0UL, "");
|     static_assert(strlen_c("x") == 1UL, "");
|     static_assert(strlen_c("test") == 4UL, "");
|     static_assert(strlen_c("another\0test") == 7UL, "");
| 
|   }
| 
|   namespace test_lambda_init_capture
|   {
| 
|     int
|     test()
|     {
|       auto x = 0;
|       const auto lambda1 = [a = x](int b){ return a + b; };
|       const auto lambda2 = [a = lambda1(x)](){ return a; };
|       return lambda2();
|     }
| 
|   }
| 
|   namespace test_digit_separators
|   {
| 
|     constexpr auto ten_million = 100'000'000;
|     static_assert(ten_million == 100000000, "");
| 
|   }
| 
|   namespace test_return_type_deduction
|   {
| 
|     auto f(int& x) { return x; }
|     decltype(auto) g(int& x) { return x; }
| 
|     template < typename T1, typename T2 >
|     struct is_same
|     {
|       static constexpr auto value = false;
|     };
| 
|     template < typename T >
|     struct is_same<T, T>
|     {
|       static constexpr auto value = true;
|     };
| 
|     int
|     test()
|     {
|       auto x = 0;
|       static_assert(is_same<int, decltype(f(x))>::value, "");
|       static_assert(is_same<int&, decltype(g(x))>::value, "");
|       return x;
|     }
| 
|   }
| 
| }  // namespace cxx14
| 
| #endif  // __cplusplus >= 201402L
| 
| 
| 
configure:17525: result: no
configure:17535: checking whether g++ supports C++14 features with -std=gnu++14
configure:17951: g++ -std=gnu++14 -c   conftest.cpp >&5
configure:17951: $? = 0
configure:17960: result: yes
configure:18002: checking whether to enable debug info
configure:18021: result: no
configure:18035: checking whether to enable parallel algorithms with openmp
configure:18123: checking for OpenMP flag of C++ compiler
configure:18168: g++ -std=gnu++14 -o conftest -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -fopenmp -DNDEBUG   conftest.cpp  >&5
configure:18168: $? = 0
configure:18177: result: -fopenmp
configure:18201: checking whether to enable cairo drawing
configure:18214: result: yes
configure:18309: checking for Expat XML Parser headers in /usr/include
configure:18333: g++ -std=gnu++14 -c -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG  -I/usr/include conftest.cpp >&5
configure:18333: $? = 0
configure:18337: result: found
configure:18358: checking for Expat XML Parser libraries
configure:18386: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG  -I/usr/include  -L/usr/lib conftest.cpp  -lexpat >&5
configure:18386: $? = 0
configure:18391: result: found
configure:18417: checking for Expat XML Parser
configure:18432: result: yes
configure:18545: checking for a Python interpreter with version >= 2.7
configure:18562: python -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
configure:18565: $? = 0
configure:18571: result: python
configure:18579: checking for python
configure:18597: found /home/sam/anaconda2/bin/python
configure:18609: result: /home/sam/anaconda2/bin/python
configure:18627: checking for python version
configure:18634: result: 2.7
configure:18646: checking for python platform
configure:18653: result: linux2
configure:18679: checking for python script directory
configure:18714: result: ${prefix}/lib/python2.7/site-packages
configure:18723: checking for python extension module directory
configure:18758: result: ${exec_prefix}/lib/python2.7/site-packages
configure:18782: checking for python2.7
configure:18812: result: /home/sam/anaconda2/bin/python
configure:18828: checking for a version of Python >= '2.1.0'
configure:18854: result: yes
configure:18862: checking for a version of Python == '2.7.12'
configure:18868: result: yes
configure:18885: checking for the distutils Python package
configure:18889: result: yes
configure:18903: checking for Python include path
configure:18919: result: -I/home/sam/anaconda2/include/python2.7
configure:18926: checking for Python library path
configure:19003: result: -L/home/sam/anaconda2/lib -lpython2.7
configure:19010: checking for Python site-packages path
configure:19016: result: /home/sam/anaconda2/lib/python2.7/site-packages
configure:19023: checking python extra libraries
configure:19030: result: -lpthread -ldl  -lutil -lm
configure:19037: checking python extra linking flags
configure:19044: result: -Xlinker -export-dynamic
configure:19051: checking consistency of all components of python development environment
configure:19079: gcc -o conftest -g -O2 -DNDEBUG  -I/home/sam/anaconda2/include/python2.7  -Xlinker -export-dynamic conftest.c  -L/home/sam/anaconda2/lib -lpython2.7 -lpthread -ldl  -lutil -lm -lpthread -ldl  -lutil -lm >&5
configure:19079: $? = 0
configure:19097: result: yes
configure:19273: checking for boostlib >= 1.55.0 (105500)
configure:19305: g++ -std=gnu++14 -c -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG  -I/usr/include conftest.cpp >&5
configure:19305: $? = 0
configure:19307: result: yes
configure:19498: checking whether the Boost::Python library is available
configure:19516: g++ -std=gnu++14 -c -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -I/usr/include -I/home/sam/anaconda2/include/python2.7 -DNDEBUG  conftest.cpp >&5
configure:19516: $? = 0
configure:19524: result: yes
configure:19543: checking whether boost_python is the correct library
configure:19562: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -I/usr/include -I/home/sam/anaconda2/include/python2.7 -DNDEBUG  -L/usr/lib/x86_64-linux-gnu  conftest.cpp -lboost_python  -L/home/sam/anaconda2/lib -lpython2.7 >&5
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::range_error::range_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_construct(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
configure:19562: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_CXX14 1
| #define OPENMP_MIN_THRESH 300
| #define HAVE_OPENMP 1
| #define HAVE_PYTHON "2.7"
| #define HAVE_BOOST /**/
| #define HAVE_BOOST_PYTHON /**/
| /* end confdefs.h.  */
| 
| #include <boost/python/module.hpp>
| BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:19571: result: no
configure:19543: checking whether boost_python-py27 is the correct library
configure:19562: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -I/usr/include -I/home/sam/anaconda2/include/python2.7 -DNDEBUG  -L/usr/lib/x86_64-linux-gnu  conftest.cpp -lboost_python-py27  -L/home/sam/anaconda2/lib -lpython2.7 >&5
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::range_error::range_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_construct(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
configure:19562: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_CXX14 1
| #define OPENMP_MIN_THRESH 300
| #define HAVE_OPENMP 1
| #define HAVE_PYTHON "2.7"
| #define HAVE_BOOST /**/
| #define HAVE_BOOST_PYTHON /**/
| /* end confdefs.h.  */
| 
| #include <boost/python/module.hpp>
| BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:19571: result: no
configure:19543: checking whether boost_python-py27 is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python-py27 is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python-py35 is the correct library
configure:19562: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -I/usr/include -I/home/sam/anaconda2/include/python2.7 -DNDEBUG  -L/usr/lib/x86_64-linux-gnu  conftest.cpp -lboost_python-py35  -L/home/sam/anaconda2/lib -lpython2.7 >&5
/tmp/ccq3vX65.o: In function `inittest':
conftest.cpp:(.text+0x3b): undefined reference to `boost::python::detail::init_module(char const*, void (*)())'
collect2: error: ld returned 1 exit status
configure:19562: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_CXX14 1
| #define OPENMP_MIN_THRESH 300
| #define HAVE_OPENMP 1
| #define HAVE_PYTHON "2.7"
| #define HAVE_BOOST /**/
| #define HAVE_BOOST_PYTHON /**/
| /* end confdefs.h.  */
| 
| #include <boost/python/module.hpp>
| BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:19571: result: no
configure:19543: checking whether boost_python-py35 is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python-py35 is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python is the correct library
configure:19571: result: no
configure:19543: checking whether boost_python3 is the correct library
configure:19562: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -I/usr/include -I/home/sam/anaconda2/include/python2.7 -DNDEBUG  -L/usr/lib/x86_64-linux-gnu  conftest.cpp -lboost_python3  -L/home/sam/anaconda2/lib -lpython2.7 >&5
/usr/bin/ld: cannot find -lboost_python3
collect2: error: ld returned 1 exit status
configure:19562: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.26"
| #define PACKAGE_STRING "graph-tool 2.26"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
| #define PACKAGE_URL "http://graph-tool.skewed.de";
| #define PACKAGE "graph-tool"
| #define VERSION "2.26"
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_CXX14 1
| #define OPENMP_MIN_THRESH 300
| #define HAVE_OPENMP 1
| #define HAVE_PYTHON "2.7"
| #define HAVE_BOOST /**/
| #define HAVE_BOOST_PYTHON /**/
| /* end confdefs.h.  */
| 
| #include <boost/python/module.hpp>
| BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:19571: result: no
configure:19590: error: No usable boost::python found

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_boost_python=yes
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CAIROMM_CFLAGS_set=
ac_cv_env_CAIROMM_CFLAGS_value=
ac_cv_env_CAIROMM_LIBS_set=
ac_cv_env_CAIROMM_LIBS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PYTHON_VERSION_set=
ac_cv_env_PYTHON_VERSION_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_SPARSEHASH_CFLAGS_set=
ac_cv_env_SPARSEHASH_CFLAGS_value=
ac_cv_env_SPARSEHASH_LIBS_set=
ac_cv_env_SPARSEHASH_LIBS_value=
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_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
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_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_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_PYTHON=/home/sam/anaconda2/bin/python
ac_cv_path_SED=/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
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=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_c99=no
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
ac_cv_search_strerror='none required'
ac_cv_target=x86_64-pc-linux-gnu
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_pathless_PYTHON=python
am_cv_prog_cc_c_o=yes
am_cv_prog_tar_pax=gnutar
am_cv_python_platform=linux2
am_cv_python_pyexecdir='${exec_prefix}/lib/python2.7/site-packages'
am_cv_python_pythondir='${prefix}/lib/python2.7/site-packages'
am_cv_python_version=2.7
ax_cv_cxx_compile_cxx14=no
ax_cv_cxx_compile_cxx14__std_gnupp14=yes
ax_cv_cxx_openmp=-fopenmp
ax_cv_lib_boost_python3___BOOST_PYTHON_MODULE=no
ax_cv_lib_boost_python___BOOST_PYTHON_MODULE=no
ax_cv_lib_boost_python_py27___BOOST_PYTHON_MODULE=no
ax_cv_lib_boost_python_py35___BOOST_PYTHON_MODULE=no
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 -B'
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=1572864
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'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/sam/Downloads/graph-tool-2.26/build-aux/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='ar'
AUTOCONF='${SHELL} /home/sam/Downloads/graph-tool-2.26/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /home/sam/Downloads/graph-tool-2.26/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /home/sam/Downloads/graph-tool-2.26/build-aux/missing automake-1.15'
AWK='gawk'
BOOST_CONTEXT_LIB=''
BOOST_COROUTINE_LIB=''
BOOST_CPPFLAGS='-I/usr/include'
BOOST_GRAPH_LIB=''
BOOST_IOSTREAMS_LIB=''
BOOST_LDFLAGS='-L/usr/lib/x86_64-linux-gnu'
BOOST_PYTHON_LIB=''
BOOST_REGEX_LIB=''
BOOST_THREAD_LIB=''
CAIROMM_CFLAGS=''
CAIROMM_LIBS=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CGAL_CPPFLAGS=''
CGAL_FLAGS=''
CGAL_LDFLAGS=''
CPP='gcc -E'
CPPFLAGS='-DNDEBUG '
CXX='g++ -std=gnu++14'
CXXCPP='g++ -E -std=gnu++14'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0 '
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
EXPAT_CFLAGS='-I/usr/include'
EXPAT_LDFLAGS='-L/usr/lib'
EXPAT_LIBS='-lexpat'
EXPAT_VERSION=''
FGREP='/bin/grep -F'
GRAPH_TOOL_VERSION_MAJOR='2'
GRAPH_TOOL_VERSION_MINOR='26'
GREP='/bin/grep'
HAVE_CXX14='1'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /home/sam/Downloads/graph-tool-2.26/build-aux/missing makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/bin/mkdir -p'
MOD_CPPFLAGS=''
MOD_DIR='/home/sam/anaconda2/lib/python2.7/site-packages/graph_tool'
MOD_LDFLAGS=''
MOD_LIBADD=''
NM='/usr/bin/nm -B'
NMEDIT=''
NO_PREFIX_PACKAGE_DATA_DIR=''
NO_PREFIX_PACKAGE_DOC_DIR=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='graph-tool'
PACKAGE_BUGREPORT='http://graph-tool.skewed.de/issues'
PACKAGE_DATA_DIR=''
PACKAGE_DOC_DIR=''
PACKAGE_NAME='graph-tool'
PACKAGE_STRING='graph-tool 2.26'
PACKAGE_TARNAME='graph-tool'
PACKAGE_URL='http://graph-tool.skewed.de'
PACKAGE_VERSION='2.26'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PYTHON='/home/sam/anaconda2/bin/python'
PYTHON_CPPFLAGS='-I/home/sam/anaconda2/include/python2.7'
PYTHON_EXEC_PREFIX='${exec_prefix}'
PYTHON_EXTRA_LDFLAGS='-Xlinker -export-dynamic'
PYTHON_EXTRA_LIBS='-lpthread -ldl  -lutil -lm'
PYTHON_FULL_VERSION='2.7.12'
PYTHON_LIBS='-L/home/sam/anaconda2/lib -lpython2.7'
PYTHON_PLATFORM='linux2'
PYTHON_PREFIX='${prefix}'
PYTHON_SITE_PKG='/home/sam/anaconda2/lib/python2.7/site-packages'
PYTHON_VERSION='2.7'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
SPARSEHASH_CFLAGS=''
SPARSEHASH_LIBS=''
STRIP='strip'
VERSION='2.26'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
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='_no'
am__quote=''
am__tar='tar --format=posix -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
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/sam/Downloads/graph-tool-2.26/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfig_libdir=''
pkgconfig_libfile=''
pkgconfigdir='${libdir}/pkgconfig'
pkgpyexecdir='${pyexecdir}/graph-tool'
pkgpythondir='${pythondir}/graph-tool'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir='${exec_prefix}/lib/python2.7/site-packages'
pythondir='${prefix}/lib/python2.7/site-packages'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "graph-tool"
#define PACKAGE_TARNAME "graph-tool"
#define PACKAGE_VERSION "2.26"
#define PACKAGE_STRING "graph-tool 2.26"
#define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/issues";
#define PACKAGE_URL "http://graph-tool.skewed.de";
#define PACKAGE "graph-tool"
#define VERSION "2.26"
#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 __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define STDC_HEADERS 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_CXX14 1
#define OPENMP_MIN_THRESH 300
#define HAVE_OPENMP 1
#define HAVE_PYTHON "2.7"
#define HAVE_BOOST /**/
#define HAVE_BOOST_PYTHON /**/

configure: exit 1
_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to