From: Philippe E. <ph...@us...> - 2003-09-06 16:59:36
|
Update of /cvsroot/oprofile/oprofile/m4 In directory sc8-pr-cvs1:/tmp/cvs-serv10324/m4 Modified Files: Makefile.am Added Files: precompiledheader.m4 Log Message: build stuff: add --enable-pch (off by default) which enable precompiled header if compiler support it. --- NEW FILE: precompiledheader.m4 --- dnl AX_CXXFLAGS_OPTIONS(var-name, option) dnl add option to var-name if $CXX support it. AC_DEFUN(AX_CHECK_PRECOMPILED_HEADER, [ AC_MSG_CHECKING([whether ${CXX} support precompiled header]) AC_LANG_SAVE AC_LANG_CPLUSPLUS SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-Winvalid-pch AC_TRY_COMPILE(,[;],AC_MSG_RESULT([yes]); $1="${$1} -Winvalid-pch -include pch-c++.h"; $2=yes,AC_MSG_RESULT([no]); $2=no) CXXFLAGS=$SAVE_CXXFLAGS AC_LANG_RESTORE ]) Index: Makefile.am =================================================================== RCS file: /cvsroot/oprofile/oprofile/m4/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -d -r1.6 -r1.7 --- Makefile.am 9 May 2003 11:46:14 -0000 1.6 +++ Makefile.am 6 Sep 2003 16:59:32 -0000 1.7 @@ -13,6 +13,7 @@ EXTRA_DIST = \ kernelversion.m4 \ mallocattribute.m4 \ poptconst.m4 \ + precompiledheader.m4 \ qt.m4 \ resultyn.m4 \ sstream.m4 \ |