Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
dad932d5
Commit
dad932d5
authored
Oct 24, 2016
by
Francis Dupont
Browse files
[master] Merged trac5049 (configure displays C++ standard)
parents
6731bd9e
05e30403
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
dad932d5
...
...
@@ -116,6 +116,17 @@ if test $? -eq 0; then
GNU_SED=yes
fi
# Display the C++ version
AC_MSG_CHECKING([C++ version])
cat > conftest.cpp << EOF
long v = __cplusplus;
EOF
CXX_STANDARD=`$CXX $CXXFLAGS -E -o - conftest.cpp | grep '^long v = ' | $SED -e 's/^long v = //' -e 's/[[^0-9]]*$//' 2> /dev/null`
if test -z "$CXX_STANDARD"; then
CXX_STANDARD="unknown"
fi
AC_MSG_RESULT([$CXX_STANDARD])
# Linker options
# check -R, "-Wl,-R" or -rpath
...
...
@@ -1622,6 +1633,7 @@ Package:
C++ Compiler:
CXX: ${CXX}
CXX_VERSION: ${CXX_VERSION}
CXX_STANDARD: ${CXX_STANDARD}
DEFS: ${DEFS}
CPPFLAGS: ${CPPFLAGS}
CXXFLAGS: ${CXXFLAGS}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment