-AC_PATH_PROG(PERL_BINARY,perl,no)
-if test $PERL_BINARY = no ; then
- AC_MSG_ERROR(Could not find perl)
+dnl Check for lablgtkmathview
+AC_CHECK_FILE($OCAML_ROOT/lablgtkmathview/gtkMathView.ml,
+ RES="yes"
+ LABLGTKMATHVIEW_LIB_DIR=$OCAML_ROOT/lablgtkmathview,
+ RES="no"
+)
+
+if test $RES = "no"; then
+ echo
+ echo "It seems that lablgtkmathview isn't installed in the default directory"
+ echo "$OCAML_ROOT/lablgtkmathview. Where can I find it?"
+ echo
+ AC_CACHE_VAL(mmlinterface_cv_LABLGTKMATHVIEW_LIB_DIR,
+ read mmlinterface_cv_LABLGTKMATHVIEW_LIB_DIR
+ )
+ LABLGTKMATHVIEW_LIB_DIR=$mmlinterface_cv_LABLGTKMATHVIEW_LIB_DIR
+fi
+
+dnl Check for HELM
+AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no)
+if test $HAVE_HELM_CONFIG = "no"; then
+ AC_MSG_ERROR(Could not find helm-config)