configure: disable debug by default, turn off maintainer mode

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/106/head^2
Marc Kleine-Budde 2010-10-25 13:28:31 +02:00
parent 36328666b6
commit 9f1be156e4
1 changed files with 2 additions and 4 deletions

View File

@ -10,8 +10,6 @@ AC_CONFIG_AUX_DIR([config/autoconf])
AC_CANONICAL_BUILD AC_CANONICAL_BUILD
AC_CANONICAL_HOST AC_CANONICAL_HOST
AM_MAINTAINER_MODE
CFLAGS="${CFLAGS} -Wall" CFLAGS="${CFLAGS} -Wall"
# #
@ -92,12 +90,12 @@ AC_CHECK_FUNCS([gethostbyaddr gethostbyname gethostname gettimeofday memset mkdi
# #
AC_MSG_CHECKING([whether to enable debugging]) AC_MSG_CHECKING([whether to enable debugging])
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=yes@:>@]), AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=no@:>@]),
[case "$enableval" in [case "$enableval" in
y | yes) CONFIG_DEBUG=yes ;; y | yes) CONFIG_DEBUG=yes ;;
*) CONFIG_DEBUG=no ;; *) CONFIG_DEBUG=no ;;
esac], esac],
[CONFIG_DEBUG=yes]) [CONFIG_DEBUG=no])
AC_MSG_RESULT([${CONFIG_DEBUG}]) AC_MSG_RESULT([${CONFIG_DEBUG}])
if test "${CONFIG_DEBUG}" = "yes"; then if test "${CONFIG_DEBUG}" = "yes"; then
CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1"