Changeset 3876


Ignore:
Timestamp:
Oct 27, 2018 9:22:29 AM (11 months ago)
Author:
stefan
Message:

disable debug output, unless BUILDTOOLS_DEBUG=1 is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3875 r3876  
    719719       m4_toupper(myvar)_CFLAGS="$m4_toupper(myvar)_CFLAGS $m4_toupper($1)_CFLAGS"
    720720
    721 # Change the test to enable / disable debugging output
    722 
    723        if test 1 = 1 ; then
     721# Define BUILDTOOLS_DEBUG to enable debugging output
     722
     723       if test "$BUILDTOOLS_DEBUG" = 1 ; then
    724724         AC_MSG_NOTICE([CHK_HERE adding $1 to myvar:])
    725725         AC_MSG_NOTICE([m4_toupper(myvar)_PCFILES: "${m4_toupper(myvar)_PCFILES}"])
     
    993993# from pkgconfig. Note that we haven't run a useability test!
    994994
    995 # Change the test to enable / disable debugging output
    996 
    997     if test 1 = 1 ; then
     995# Define BUILDTOOLS_DEBUG to enable debugging output
     996
     997    if test "$BUILDTOOLS_DEBUG" = 1 ; then
    998998      AC_MSG_NOTICE([FIND_PRIM_PKG result for $1: "$m4_tolower(coin_has_$1)"])
    999999      AC_MSG_NOTICE([Collected values for package '$1'])
     
    13481348# check was performed. Skipping means the user said `don't use.'
    13491349
    1350 # Change the test to enable / disable debugging output
    1351 
    1352     if test 1 = 1 ; then
     1350# Define BUILDTOOLS_DEBUG to enable debugging output
     1351
     1352    if test "$BUILDTOOLS_DEBUG" = 1 ; then
    13531353      AC_MSG_NOTICE([FIND_PRIM_LIB result for $1: "$m4_tolower(coin_has_$1)"])
    13541354      AC_MSG_NOTICE([Collected values for package '$1'])
     
    19091909[
    19101910  m4_foreach_w([myvar],[$1],
    1911     [ if test 1 = 1 ; then
     1911    [ if test "$BUILDTOOLS_DEBUG" = 1 ; then
    19121912        AC_MSG_NOTICE([FINALIZE_FLAGS for myvar:])
    19131913      fi
     
    19211921      fi
    19221922
    1923 # Change the test to enable / disable debugging output
    1924 
    1925       if test 1 = 1 ; then
     1923# Define BUILDTOOLS_DEBUG to enable debugging output
     1924
     1925      if test "$BUILDTOOLS_DEBUG" = 1 ; then
    19261926        AC_MSG_NOTICE(
    19271927          [m4_toupper(myvar)_LFLAGS_NOPC: "${m4_toupper(myvar)_LFLAGS_NOPC}"])
Note: See TracChangeset for help on using the changeset viewer.