0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

configure.ac: Minor cleanup / remove extra result.

This commit is contained in:
Jason Volk 2018-05-21 16:56:20 -07:00
parent a2b80db1ad
commit e5bec58152

View file

@ -157,7 +157,9 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging suite fo
AM_CONDITIONAL([DEBUG], [[[[ "$DEBUG" = "1" ]]]]) AM_CONDITIONAL([DEBUG], [[[[ "$DEBUG" = "1" ]]]])
dnl
dnl Explicit assert switch for still using assert() without --enable-debug dnl Explicit assert switch for still using assert() without --enable-debug
dnl
AC_MSG_CHECKING(whether to explicitly enable assertions) AC_MSG_CHECKING(whether to explicitly enable assertions)
AC_ARG_ENABLE(assert, AC_HELP_STRING([--enable-assert], [Enable assertions without --enable-debug]), AC_ARG_ENABLE(assert, AC_HELP_STRING([--enable-assert], [Enable assertions without --enable-debug]),
@ -165,7 +167,6 @@ AC_ARG_ENABLE(assert, AC_HELP_STRING([--enable-assert], [Enable assertions witho
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_SUBST(ASSERT, 1) AC_SUBST(ASSERT, 1)
], [ ], [
AC_MSG_RESULT([no])
AM_COND_IF(DEBUG, AM_COND_IF(DEBUG,
[ [
AC_MSG_RESULT([no, but assertions are enabled anyway]) AC_MSG_RESULT([no, but assertions are enabled anyway])
@ -184,7 +185,9 @@ AM_COND_IF(ASSERT,
CPPDEFINE([NDEBUG]) CPPDEFINE([NDEBUG])
]) ])
dnl
dnl Explicit optimize switch for enabling optimization when using --enable-debug dnl Explicit optimize switch for enabling optimization when using --enable-debug
dnl
AC_MSG_CHECKING(whether to explicitly enable optimized build) AC_MSG_CHECKING(whether to explicitly enable optimized build)
AC_ARG_ENABLE(optimize, AC_HELP_STRING([--enable-optimize], [Enable optimization even with --enable-debug]), AC_ARG_ENABLE(optimize, AC_HELP_STRING([--enable-optimize], [Enable optimization even with --enable-debug]),
@ -1516,6 +1519,7 @@ else
assert="no" assert="no"
fi fi
dnl Make it look sexay! dnl Make it look sexay!
echo echo
echo "Configured ........................ $PACKAGE_NAME $PACKAGE_VERSION" echo "Configured ........................ $PACKAGE_NAME $PACKAGE_VERSION"