]> git.lyx.org Git - lyx.git/blobdiff - config/lyxinclude.m4
Make the standard paragraph an empty paragraph if its content allows it.
[lyx.git] / config / lyxinclude.m4
index 6a723fd469abda68cd2d2aeb89c453920be0bb64..983397ff99bfa2dadfb6b8d8dac6c49a46bd4376 100644 (file)
@@ -7,10 +7,10 @@ dnl         Allan Rae (rae@lyx.org)
 dnl Usage LYX_CHECK_VERSION   Displays version of LyX being built and
 dnl sets variables "lyx_devel_version" and "lyx_prerelease"
 AC_DEFUN([LYX_CHECK_VERSION],[
-changequote(, ) dnl
 echo "configuring LyX version $VERSION"
 if echo "$VERSION" | grep 'cvs' >/dev/null ; then
   lyx_devel_version=yes
+  AC_DEFINE(DEVEL_VERSION, 1, [Define if you are building a development version of LyX])
   echo "WARNING: This is a development version. Expect bugs."
 else
   lyx_devel_version=no
@@ -21,11 +21,7 @@ if echo "$VERSION" | grep 'pre' > /dev/null ; then
 else
     lyx_prerelease=no
 fi
-changequote([, ]) dnl
-AC_SUBST(lyx_devel_version)
-if test $lyx_devel_version = yes ; then
-  AC_DEFINE(DEVEL_VERSION, 1, [Define if you are building a development version of LyX])
-fi])
+AC_SUBST(lyx_devel_version)])
 
 
 dnl Define the option to set a LyX version on installed executables and directories
@@ -33,6 +29,7 @@ dnl
 dnl
 AC_DEFUN([LYX_VERSION_SUFFIX],[
 AC_MSG_CHECKING([for install target ... ])
+RPM_VERSION_SUFFIX='""'
 AC_ARG_WITH(version-suffix,
   [  --with-version-suffix[=<version>]  install lyx files as lyx<version>],
   [if test "x$withval" = "xyes";
@@ -41,8 +38,10 @@ AC_ARG_WITH(version-suffix,
      ac_configure_args=`echo $ac_configure_args | sed "s,--with-version-suffix,--with-version-suffix=$withval,"`
    fi
    lyxname="lyx$withval"
-   program_suffix=$withval],
+   program_suffix=$withval
+   RPM_VERSION_SUFFIX="--with-version-suffix=$withval"],
   [lyxname=lyx])
+AC_SUBST(RPM_VERSION_SUFFIX)
 AC_MSG_RESULT([$lyxname])
 ])
 
@@ -195,6 +194,8 @@ case $enable_optimization in
     *) lyx_opt=${enable_optimization};;
 esac
 
+lyx_pch_comp=no
+
 # set the debug flags correctly.
 if test x$GXX = xyes; then
   dnl Useful for global version info
@@ -212,7 +213,9 @@ if test x$GXX = xyes; then
       3.1*)    CXXFLAGS="$lyx_opt -finline-limit=500 -fno-exceptions";;
       3.2*)    CXXFLAGS="$lyx_opt -fno-exceptions";;
       3.3*)    CXXFLAGS="$lyx_opt -fno-exceptions";;
-      3.4*|3.5*)    CXXFLAGS="$lyx_opt -fno-exceptions";;
+      3.4*|3.5*)
+           CXXFLAGS="$lyx_opt -fno-exceptions"
+           lyx_pch_comp=yes;;
       *)       CXXFLAGS="$lyx_opt";;
     esac
     if test x$enable_debug = xyes ; then
@@ -235,7 +238,9 @@ if test x$GXX = xyes; then
        *)    CXXFLAGS="$CXXFLAGS -Wextra -Wall";;
     esac
   fi
-fi])dnl
+fi
+AM_CONDITIONAL(LYX_BUILD_PCH, test "$lyx_pch_comp" = yes)
+])dnl
 
 
 dnl NOT USED CURRENTLY*************************************
@@ -521,7 +526,7 @@ AC_DEFUN([LYX_USE_FRONTENDS],
 [AC_MSG_CHECKING([what frontend should be used for the GUI])
 AC_ARG_WITH(frontend,
   [  --with-frontend=THIS    Use THIS frontend as main GUI:
-                           Possible values: xforms, qt],
+                           Possible values: xforms, qt, gtk(EXPERIMENTAL)],
   [FRONTENDS="$withval"], [FRONTENDS="xforms"])
 AC_MSG_RESULT($FRONTENDS)
 AC_SUBST(FRONTENDS)