The compiler option -std=c++11 means
to follow the strict C++11 standard,
and cannot use several extensions
such as POSIX functions/definitions
(e.g. M_PI, strdup, putenv, and chroot).
With the option, some environments (e.g. Linux)
can use the extensions as it is,
but other environments require definitions (e.g. _GNU_SOURCE)
to enable the extensions.
This commit makes
configure script checks the environments and adds the definitions.
Diff:
Passes make, make test-baseline and a full make doc.
-std=c++11option The compiler option-std=c++11means to follow the strict C++11 standard, and cannot use several extensions such as POSIX functions/definitions (e.g. M_PI, strdup, putenv, and chroot). With the option, some environments (e.g. Linux) can use the extensions as it is, but other environments require definitions (e.g._GNU_SOURCE) to enable the extensions. This commit makes configure script checks the environments and adds the definitions.Diff:
use AC_USE_SYSTEM_EXTENSIONS
Reply
http://codereview.appspot.com/579270051
-std=c++11option The compiler option-std=c++11means to follow the strict C++11 standard, and cannot use several extensions such as POSIX functions/definitions (e.g. M_PI, strdup, putenv, and chroot). With the option, some environments (e.g. Linux) can use the extensions as it is, but other environments require definitions (e.g._GNU_SOURCE) to enable the extensions. This commit makes configure script checks the environments and adds the definitions. --> Add enabling extension definitions for-std=c++11optionPasses make, make test-baseline and a full make doc.
Patch on countdown for Feb 6th.
Patch counted down - please push.
I've pushed.
commit 7396a28bde310c5f43d7dcbd3dfc8f708726f3de