enable PCH in configure only for msvc/clang

Change-Id: I83a5a2cc6a673165a230ac0c916fdd533a4ccaae
This commit is contained in:
Luboš Luňák
2012-07-02 17:50:55 +02:00
parent f2d96655e0
commit f24bae90c0

View File

@@ -4475,21 +4475,20 @@ AC_SUBST(DICT_SYSTEM_DIR)
AC_SUBST(HYPH_SYSTEM_DIR)
AC_SUBST(THES_SYSTEM_DIR)
dnl ===================================================================
dnl ENABLE_PCH i now a no-op
dnl ===================================================================
AC_MSG_CHECKING([whether to enable pch feature])
if test -n "$enable_pch" && test "$enable_pch" != "no"; then
if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
dnl There is no PCH support in GCC versions prior to this
elif test "$GCC" = "yes"; then
# GCC PCH support is reportedly a hack that's not very reliable,
# so support only Clang.
elif test "$GCC" = "yes" -a "$COM_GCC_IS_CLANG" = "TRUE"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
else
ENABLE_PCH=""
AC_MSG_WARN([Precompiled header not yet supported for your platform/compiler])
AC_MSG_ERROR([Precompiled header not yet supported for your platform/compiler])
fi
else
ENABLE_PCH=""