X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=config%2Flyxinclude.m4;h=4eb93d755b4b0a6095fc36f5cf10406265494660;hb=e54ae72e5fac6f750c3f7972c74bb42b57f3a049;hp=777e782d216a2ebbf09cf778b1c8f993718a16a5;hpb=0be696bff0994edfb1524f7150783b0faf6d1f63;p=lyx.git diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 777e782d21..4eb93d755b 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -8,19 +8,16 @@ 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],[ echo "configuring LyX version" AC_PACKAGE_VERSION -if echo AC_PACKAGE_VERSION | grep 'svn' >/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 -fi -if echo AC_PACKAGE_VERSION | grep 'pre' > /dev/null ; then - lyx_prerelease=yes - echo "WARNING: This is a prerelease. Be careful and backup your documents." -else - lyx_prerelease=no -fi +lyx_devel_version=no +lyx_prerelease=no +case AC_PACKAGE_VERSION in + *svn*) lyx_devel_version=yes + AC_DEFINE(DEVEL_VERSION, 1, [Define if you are building a development version of LyX]) + LYX_DATE="not released yet" + echo "WARNING: This is a development version. Expect bugs.";; + *pre*|*alpha*|*beta*|*rc*) lyx_prerelease=yes + echo "WARNING: This is a prerelease. Be careful and backup your documents.";; +esac AC_SUBST(lyx_devel_version)]) @@ -38,7 +35,7 @@ AC_ARG_WITH(version-suffix, withval="-"AC_PACKAGE_VERSION ac_configure_args=`echo $ac_configure_args | sed "s,--with-version-suffix,--with-version-suffix=$withval,"` fi - version_suffix=$withval + AC_SUBST(version_suffix,$withval) RPM_VERSION_SUFFIX="--with-version-suffix=$withval"]) AC_SUBST(RPM_VERSION_SUFFIX) AC_MSG_RESULT([$withval]) @@ -73,6 +70,14 @@ LYX_ERROR([Cannot find $1. Please check that the $2 library dnl Usage: LYX_CHECK_ERRORS Displays a warning message if a LYX_ERROR dnl has occured previously. AC_DEFUN([LYX_CHECK_ERRORS],[ +if test x$lyx_warning = xyes; then +cat <