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.
This commit is contained in:
Dan Nicholson 2007-12-12 09:12:15 -08:00
parent 23656c47c9
commit 16a07fb556
1 changed files with 12 additions and 0 deletions

View File

@ -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 ""