diff options
-rwxr-xr-x | configure | 12 | ||||
-rw-r--r-- | configure.in | 12 |
2 files changed, 21 insertions, 3 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 13685 2007-04-18 20:36:56Z koziol . +# From configure.in Id: configure.in 13692 2007-04-23 14:55:02Z hdftest . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for HDF5 1.8.0-beta1post1. # @@ -48137,10 +48137,18 @@ if test "${enable_debug+set}" = set; then fi +if test "X-$DEBUG_PKG" = X- ; then + if test "$enable_production" = yes ; then + DEBUG_PKG=no + else + DEBUG_PKG=yes + fi +fi + all_packages="ac,b,b2,d,e,f,g,hg,hl,i,mf,mm,o,p,s,t,v,z" case "X-$DEBUG_PKG" in - X-|X-yes) + X-yes) DEBUG_PKG="d,e,f,g,hg,i,mm,o,p,s,t,v,z" H5_CPPFLAGS="$H5_CPPFLAGS -UNDEBUG" { echo "$as_me:$LINENO: result: default ($DEBUG_PKG)" >&5 diff --git a/configure.in b/configure.in index c52a386..56cbd9a 100644 --- a/configure.in +++ b/configure.in @@ -2027,6 +2027,7 @@ esac dnl ---------------------------------------------------------------------- dnl Turn on debugging by setting compiler flags +dnl This must come after the enable-production since it depends on production. dnl AC_MSG_CHECKING(for debug flags) AC_ARG_ENABLE([debug], @@ -2038,10 +2039,19 @@ AC_ARG_ENABLE([debug], packages.])], [DEBUG_PKG=$enableval]) +dnl Default to no if producton is enabled +if test "X-$DEBUG_PKG" = X- ; then + if test "$enable_production" = yes ; then + DEBUG_PKG=no + else + DEBUG_PKG=yes + fi +fi + AC_SUBST([DEBUG_PKG]) all_packages="ac,b,b2,d,e,f,g,hg,hl,i,mf,mm,o,p,s,t,v,z" case "X-$DEBUG_PKG" in - X-|X-yes) + X-yes) DEBUG_PKG="d,e,f,g,hg,i,mm,o,p,s,t,v,z" H5_CPPFLAGS="$H5_CPPFLAGS -UNDEBUG" AC_MSG_RESULT([default ($DEBUG_PKG)]) |