From: Dan Nicholson Date: Wed, 12 Dec 2007 17:12:15 +0000 (-0800) Subject: autoconf: Report the compiler options in the summary X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16a07fb5569a7e4d471a389f292a8b245fc12cba;p=mesa.git 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. --- 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 ""