Commit 9899fc74 authored by florent's avatar florent
Browse files

If CXXFLAGS and CFLAGS are not defined at configuration, they are set to "-Wall".

parent 0ff6fabe
......@@ -9,12 +9,29 @@ dnl
AC_INIT([hppCore],[1.3.99],[openrobots@laas.fr])
AC_PREREQ(2.59)
if test "$CFLAGS$CXXFLAGS" = ""; then
setdefaultflags=yes
else
setdefaultflags=no
fi
AM_INIT_AUTOMAKE([foreign no-define])
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_CXX
if test "$setdefaultflags" = "yes"; then
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wall"
AC_MSG_NOTICE([adding default "-Wall" c flags])
fi
if test "$GXX" = "yes"; then
CXXFLAGS="$CXXFLAGS -Wall"
AC_MSG_NOTICE([adding default "-Wall" c++ flags])
fi
fi
define(kwplus_reqd, [kwsPlus >= 1.1])
AC_SUBST(KWPLUS_REQD, "kwplus_reqd")
PKG_CHECK_MODULES(KWSPLUS, kwplus_reqd)
......
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