DescriptionIssue 5720: Add enabling extension definitions for `-std=c++11` option
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.
Patch Set 1 #Patch Set 2 : use AC_USE_SYSTEM_EXTENSIONS #
MessagesTotal messages: 13
|