From 16a07fb5569a7e4d471a389f292a8b245fc12cba Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 12 Dec 2007 09:12:15 -0800 Subject: [PATCH] autoconf: Report the compiler options in the summary Report the compiler flags and macros that will be used in the build. This just provides a quick way to see what configure has silently been doing. --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 6330cf85e0a..94d84ec6c31 100644 --- a/configure.ac +++ b/configure.ac @@ -804,6 +804,18 @@ else echo " Demos: $program_dirs" fi +dnl Compiler options +# cleanup the CFLAGS/CXXFLAGS/DEFINES vars +cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \ + $SED 's/^ *//;s/ */ /;s/ *$//'` +cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \ + $SED 's/^ *//;s/ */ /;s/ *$//'` +defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/ */ /;s/ *$//'` +echo "" +echo " CFLAGS: $cflags" +echo " CXXFLAGS: $cxxflags" +echo " Macros: $defines" + echo "" echo " Run 'make' to build Mesa" echo ""