Commit ace04a4f authored by Roland Levillain's avatar Roland Levillain
Browse files

Add variables for C++ compiler flags for Scribo.

	* configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
	New configure variables.
parent 51c347f9
2010-04-23 Roland Levillain <roland@lrde.epita.fr>
Add variables for C++ compiler flags for Scribo.
* configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
New configure variables.
2010-06-04 Roland Levillain <roland@lrde.epita.fr>
Set decent compiler flags when the Intel C++ compiler is used.
......
......@@ -309,6 +309,15 @@ AC_CONFIG_FILES([
scribo/tests/text/Makefile
scribo/tests/unit_test/Makefile
])
# Flags for Scribo
AC_ARG_VAR([SCRIBO_CXXFLAGS], [C++ compiler flags for Scribo binaries])
AC_ARG_VAR([SCRIBO_TESTS_CXXFLAGS], [C++ compiler flags for Scribo tests])
if test "$GXX" = yes || test "$ICPC" = yes; then
test -z "$SCRIBO_CXXFLAGS" && SCRIBO_CXXFLAGS="-DNDEBUG -O2"
# FIXME: We might want to use -ggdb when g++ is used.
test -z "$SCRIBO_TESTS_CXXFLAGS" && SCRIBO_TESTS_CXXFLAGS="-g -O0"
fi
dnl>>
## --------------- ##
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment