This is the mail archive of the automake@gnu.org mailing list for the automake project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
I habitually do something like this anyway (duplicated for every variable I mangle in configure):
orig_CFLAGS="$CFLAGS"
[detect some stuff...]
CFLAGS="$foo_CFLAGS $bar_CFLAGS $orig_CFLAGS"
[detect some more stuff...]
CFLAGS="$foo_CFLAGS $bar_CFLAGS $baz_CFLAGS $orig_CFLAGS"
Since that's the only sane way I can come up with to make 'CFLAGS=foo ./configure' work, and still keep a complicated configure.ac readable. So I'd just AC_SUBST(orig_CFLAGS) and stuff that into DISTCHECK_CONFIGURE_FLAGS, under the assumption that the configure script is supposed to sort it out given that input.
for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
eval isset=$\{`echo $var`'+set'\}
if test "$isset" = 'set' ; then
eval val=$`echo $var`
DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
fi
done
AC_SUBST(DISTCHECK_CONFIG_FLAGS)Bob ====================================== Bob Friesenhahn bfriesen@simple.dallas.tx.us http://www.simplesystems.org/users/bfriesen
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |