Changeset 741 for trunk/configure.ac


Ignore:
Timestamp:
Dec 19, 2008, 2:20:44 PM (12 years ago)
Author:
Peter Johansson
Message:

fixes #364: propagate selected configure options to DISTCHECK_CONFIGURE_FLAGS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r740 r741  
    5858# Set default programming language
    5959AC_LANG(C++)
     60
     61# propagate selected configure variables to DISTCHECK_CONFIGURE_FLAGS
     62for var in CPPFLAGS CXX CXXFLAGS CXXCPP LDFLAGS LIBS; do
     63  eval isset=\${$var+set}
     64  if test "$isset" = 'set' ; then
     65    eval val=$`echo $var`
     66    DISTCHECK_CONFIGURE_FLAGS="${DISTCHECK_CONFIGURE_FLAGS}'${var}=${val}' "
     67  fi
     68done
     69AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
    6070
    6171# Let user overide default CXXFLAGS
Note: See TracChangeset for help on using the changeset viewer.