0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

Add --disable-pch configuration option.

This commit is contained in:
Jason Volk 2016-07-23 18:42:24 -07:00
parent 31f4d0d699
commit 02119375b1
2 changed files with 16 additions and 0 deletions

View file

@ -190,6 +190,19 @@ AC_ARG_ENABLE(profile, AC_HELP_STRING([--enable-profile], [Enable profiling]),
])
AC_MSG_CHECKING(if you want to disable precompiled headers)
AC_ARG_ENABLE(pch, AC_HELP_STRING([--disable-pch], [Disable precompiled header generation]),
[
build_pch="no"
AC_MSG_RESULT([no])
], [
build_pch="yes"
AC_MSG_RESULT([yes])
])
AM_CONDITIONAL([BUILD_PCH], [[[[ "$build_pch" = "yes" ]]]])
CWARNS=""
AC_MSG_CHECKING(if you want to disable warnings)
AC_ARG_ENABLE(warnings,
@ -1247,6 +1260,7 @@ echo "Compiler .......................... $CXX"
echo "Compiler flags (CXXFLAGS) ......... $CXXFLAGS"
echo "Building boost .................... $with_included_boost"
echo "Building libltdl .................. $with_included_ltdl"
echo "Precompiled headers ............... $build_pch"
echo "Developer debug ................... $debug"
echo "IPv6 support ...................... $ipv6"
echo "SSL type........................... $SSL_TYPE"

View file

@ -6,7 +6,9 @@ if GCC
AM_CXXFLAGS = -fpch-deps
endif
if BUILD_PCH
BUILT_SOURCES = rb.h.gch
endif
rb.h.gch:
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o rb.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) rb.h