# HG changeset patch # User Rik # Date 1355422639 28800 # Node ID 4456ad3d8a5617b38750d7daeb605f7f41bd0c41 # Parent 2c6b00c03329c70eefeb73dca168a72709eea289 configure.ac: Ensure that all AC_DEFINEs are captured by UGLY_DEFS variable. * configure.ac: Move AC_OUTPUT_MAKE_DEFS to the bottom of configure.ac so that all AC_DEFINEs have taken place before snapshot of DEFS is taken. diff -r 2c6b00c03329 -r 4456ad3d8a56 configure.ac --- a/configure.ac Wed Dec 12 20:19:28 2012 -0800 +++ b/configure.ac Thu Dec 13 10:17:19 2012 -0800 @@ -2133,20 +2133,6 @@ fi AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"]) -### Even though we include config.h, we need to have the preprocessor -### defines available in a variable for the testif feature of the -### scripts/testfun/test.m function. Use UGLY_DEFS to hold all the -D -### options. These are ultimately placed in the DEFS field of the -### struct returned by octave_config_info, which is used by test.m. - -AC_OUTPUT_MAKE_DEFS - -### We have to insert extra levels of backslash quoting here so that -### the right thing ends up in oct-conf.h. -UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` -AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS]) -AC_SUBST(UGLY_DEFS) - ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're ### done feature testing. @@ -2455,7 +2441,6 @@ ### GUI/Qt related tests. -HAVE_QT=false QT_CPPFLAGS= QT_LDFLAGS= QT_LIBS= @@ -2489,7 +2474,6 @@ AC_MSG_ERROR([Qt utility programs moc, uic, and rcc are required to build the GUI]) fi - HAVE_QT=true AC_DEFINE(HAVE_QT, 1, [Define to 1 if Qt is available (libraries, developer header files, utility programs (moc, uic, and rcc))]) @@ -2727,6 +2711,21 @@ dnl end of AH_BOTTOM dnl ------------------------------------------------------------ +### Make all AC_DEFINES available to testif feature of test.m function. +### This must reside at the bottom of configure.ac after all AC_DEFINES +### have been made. +### Use UGLY_DEFS to hold all the -D options. These are ultimately placed +### in the DEFS field of the struct returned by octave_config_info, which +### is used by test.m. + +AC_OUTPUT_MAKE_DEFS + +## We have to insert extra levels of backslash quoting here so that +## the right thing ends up in oct-conf.h. +UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` +AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS]) +AC_SUBST(UGLY_DEFS) + ### Do the substitutions in all the Makefiles. AC_SUBST(ac_config_files)