configure.ac: Organize all added CFLAGs.
This commit is contained in:
parent
01a675eb5f
commit
d73291959b
38
configure.ac
38
configure.ac
@ -1364,25 +1364,6 @@ fi
|
|||||||
|
|
||||||
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
|
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl build options
|
|
||||||
dnl
|
|
||||||
|
|
||||||
|
|
||||||
if test "x$enable_werror" = xyes; then
|
|
||||||
AM_CFLAGS="$AM_CFLAGS -Werror -pedantic-errors"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#if test "x$enable_debug" = xno; then
|
|
||||||
# don't set NDEBUG for now, until MPD is stable
|
|
||||||
#AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if test "x$enable_gprof" = xyes; then
|
|
||||||
MPD_CFLAGS="$MPD_CFLAGS -pg"
|
|
||||||
MPD_LIBS="$MPD_LIBS -pg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl test suite
|
dnl test suite
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@ -1391,6 +1372,14 @@ AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
|
|||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl CFLAGS
|
dnl CFLAGS
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
dnl ---------------------------------- debug ----------------------------------
|
||||||
|
#if test "x$enable_debug" = xno; then
|
||||||
|
# don't set NDEBUG for now, until MPD is stable
|
||||||
|
#AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
|
||||||
|
#fi
|
||||||
|
|
||||||
|
dnl ----------------------------------- GCC -----------------------------------
|
||||||
if test x$GCC = xyes
|
if test x$GCC = xyes
|
||||||
then
|
then
|
||||||
MPD_CHECK_FLAG([-Wall])
|
MPD_CHECK_FLAG([-Wall])
|
||||||
@ -1405,6 +1394,17 @@ then
|
|||||||
MPD_CHECK_FLAG([-pedantic])
|
MPD_CHECK_FLAG([-pedantic])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl ------------------------------ gprof profiler -----------------------------
|
||||||
|
if test "x$enable_gprof" = xyes; then
|
||||||
|
MPD_CFLAGS="$MPD_CFLAGS -pg"
|
||||||
|
MPD_LIBS="$MPD_LIBS -pg"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ---------------------------- warnings as errors ---------------------------
|
||||||
|
if test "x$enable_werror" = xyes; then
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -Werror -pedantic-errors"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl Pretty-Print Results
|
dnl Pretty-Print Results
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user