2010-03-15 08:29:56 +00:00
|
|
|
dnl
|
|
|
|
dnl Precompiled headers
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([precompiled_headers],
|
|
|
|
AC_HELP_STRING([--enable-precompiled-headers],[enable the generation and use of precompiled headers (auto)]),
|
2010-08-14 19:18:57 +00:00
|
|
|
[],
|
2010-03-15 08:29:56 +00:00
|
|
|
[enable_precompiled_headers=auto])
|
|
|
|
|
|
|
|
if test x"$enable_precompiled_headers" = x"auto"; then
|
2010-03-24 12:35:42 +00:00
|
|
|
if ! check_version 4.1.0 $ac_cv_gcc_version ; then
|
2010-03-15 08:29:56 +00:00
|
|
|
enable_precompiled_headers=no
|
|
|
|
else
|
|
|
|
enable_precompiled_headers=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$enable_precompiled_headers" = x"yes"; then
|
|
|
|
AC_DEFINE(USE_PRECOMPILED_HEADERS, 1, [Define if precompiled headers are generated and used])
|
|
|
|
USE_PRECOMPILED_HEADERS=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(USE_PRECOMPILED_HEADERS)
|