X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=config%2Flyxinclude.m4;h=f2def9918244e2b9dce7770092661ecc681477e5;hb=8e23cfdbdc8fb06999ba2c964c86704d15131ecc;hp=e532c54d87e17a576784b0a3ab8a6a3d6e9e7f15;hpb=20359572ed1e68b65c689ae84bc46321dc54a04e;p=lyx.git diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index e532c54d87..f2def99182 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -19,7 +19,7 @@ AC_ARG_ENABLE(build-type, prof*) build_type=profiling;; gprof*) build_type=gprof;; rel*) build_type=release;; - *) AC_ERROR([Bad build type specification \"$enableval\". Please use one of rel(ease), pre(release), dev(elopment), prof(iling), or gprof]);; + *) AC_MSG_ERROR([bad build type specification \"$enableval\". Please use one of rel(ease), pre(release), dev(elopment), prof(iling), or gprof]);; esac], [case AC_PACKAGE_VERSION in *svn*|*dev*) build_type=development;; @@ -34,7 +34,7 @@ case $build_type in LYX_DATE="not released yet" ;; prerelease) lyx_prerelease=yes ;; esac - + AC_SUBST(lyx_devel_version) ]) @@ -61,15 +61,6 @@ AC_MSG_RESULT([$withval]) ]) -dnl Usage: LYX_ERROR(message) Displays the warning "message" and sets the -dnl flag lyx_error to yes. -AC_DEFUN([LYX_ERROR],[ -lyx_error_txt="$lyx_error_txt -** $1 -" -lyx_error=yes]) - - dnl Usage: LYX_WARNING(message) Displays the warning "message" and sets the dnl flag lyx_warning to yes. AC_DEFUN([LYX_WARNING],[ @@ -82,36 +73,20 @@ lyx_warning=yes]) dnl Usage: LYX_LIB_ERROR(file,library) Displays an error message indication dnl that 'file' cannot be found because 'lib' may be uncorrectly installed. AC_DEFUN([LYX_LIB_ERROR],[ -LYX_ERROR([Cannot find $1. Please check that the $2 library +AC_MSG_ERROR([cannot find $1. Please check that the $2 library is correctly installed on your system.])]) -dnl Usage: LYX_CHECK_ERRORS Displays a warning message if a LYX_ERROR +dnl Usage: LYX_CHECK_WARNINGS Displays a warning message if a LYX_WARNING dnl has occured previously. -AC_DEFUN([LYX_CHECK_ERRORS],[ +AC_DEFUN([LYX_CHECK_WARNINGS],[ if test x$lyx_warning = xyes; then cat <