[svn-r13703] Feature:

Change --enable-debug default to no if producton is enabled.

Platform tested:
kagiso just doing configure with various combinations of option and varified the
output.
This commit is contained in:
Albert Cheng 2007-04-27 09:56:33 -05:00
parent 71c29a007f
commit 2b807f7fdd
2 changed files with 21 additions and 3 deletions

12
configure vendored
View File

@ -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

View File

@ -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)])