]> git.lyx.org Git - features.git/commitdiff
Warn user that build will fail if bc is not installed.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 23 Oct 2011 15:35:36 +0000 (15:35 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 23 Oct 2011 15:35:36 +0000 (15:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39945 a592a061-630c-0410-9148-cb99ea01b6c8

config/qt4.m4
configure.ac

index be2a21ebf92fec80c5472454d90e624e6b3fcef6..eea6fdf4f8723d9c56afcef1f34ae3692d345c80 100644 (file)
@@ -142,6 +142,7 @@ AC_DEFUN([QT4_DO_IT_ALL],
        AC_PATH_PROGS(MOC4, [moc-qt4 moc],[],$qt4_cv_bin:$PATH)
        AC_PATH_PROGS(UIC4, [uic-qt4 uic],[],$qt4_cv_bin:$PATH)
        AC_PATH_PROGS(RCC4, [rcc-qt4 rcc],[],$qt4_cv_bin:$PATH)
+       AC_CHECK_PROG(bc_found,[bc],[yes],[no],$PATH)
 ])
 
 AC_DEFUN([QT4_DO_PKG_CONFIG],
index e0890eb3614aee2cddf480a7b3de438f64416372..700f6ff712b8739b01dafed560b47e8f2aedeb7b 100644 (file)
@@ -130,7 +130,7 @@ for frontend in $FRONTENDS ; do
          FRONTEND_INFO="${FRONTEND_INFO}\
   Qt 4 Frontend:\n\
       Qt 4 version:\t\t${QT4_VERSION}\n"
-dnl qt 4 build will fail without moc or uic
+dnl qt 4 build will fail without moc, uic, or bc
          if test -z "$MOC4"; then
            LYX_ERROR([moc 4 binary not found !])
          fi
@@ -140,6 +140,9 @@ dnl qt 4 build will fail without moc or uic
          if test -z "$QT4_LIB"; then
            LYX_ERROR([qt 4 library not found !])
          fi
+         if test "$bc_found" = "no"; then
+           LYX_ERROR([bc binary not found !])
+         fi
       ;;
     *)
          LYX_ERROR(Unknown frontend '$frontend');;