X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fmatita%2Fconfigure.ac;h=4f8c991d1082d380e1fd4fe6bdcd089360e5d87e;hb=6fa89cef6aa8fc1774db065a9fcfc47867579054;hp=28d17a004a68f705fcf5fd5050f07e8d8c0049de;hpb=fd96ce8e13f4f9adbeef2d9feb32f94dfcfaadad;p=helm.git diff --git a/helm/matita/configure.ac b/helm/matita/configure.ac index 28d17a004..4f8c991d1 100644 --- a/helm/matita/configure.ac +++ b/helm/matita/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(matita.ml) +AC_INIT(matitaTypes.ml) AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no) if test $HAVE_OCAMLC = "no"; then @@ -26,24 +26,41 @@ if test $HAVE_CAMLP4O = "yes"; then else AC_MSG_ERROR(could not find camlp4o) fi - +FINDLIB_COMREQUIRES="\ +pcre \ +mysql \ +helm-registry \ +helm-extlib \ +helm-hmysql \ +helm-cic_notation \ +helm-tactics \ +helm-cic_disambiguation \ +" +FINDLIB_CLEANREQUIRES="$FINDLIB_COMREQUIRES" +FINDLIB_DEPREQUIRES="$FINDLIB_COMREQUIRES" +FINDLIB_MAKEREQUIRES=" \ +helm-registry \ +helm-extlib \ +" +FINDLIB_CREQUIRES=" \ +$FINDLIB_COMREQUIRES \ +helm-paramodulation \ +" FINDLIB_REQUIRES="\ +$FINDLIB_CREQUIRES \ lablgtk2.glade \ lablgtkmathview \ -pcre \ -helm-cic_omdoc \ +lablgtksourceview \ +helm-xmldiff \ helm-cic_transformations \ -helm-registry \ helm-tactics \ -helm-xml \ -helm-xmldiff \ -helm-disambiguator \ -helm-mathql_interpreter \ +helm-cic_disambiguation \ +helm-paramodulation \ " for r in $FINDLIB_REQUIRES do AC_MSG_CHECKING(for $r ocaml library) - if $OCAMLFIND query $r &> /dev/null; then + if OCAMLPATH=../ocaml/METAS $OCAMLFIND query $r &> /dev/null; then AC_MSG_RESULT(yes) else AC_MSG_ERROR(could not find $r ocaml library) @@ -51,22 +68,22 @@ do done OCAMLFIND_COMMANDS="" -AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no) -if test $HAVE_OCAMLC_OPT = "yes"; then - if test "$OCAMLFIND_COMMANDS" = ""; then - OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt" - else - OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt" - fi -fi -AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no) -if test $HAVE_OCAMLOPT_OPT = "yes"; then - if test "$OCAMLFIND_COMMANDS" = ""; then - OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt" - else - OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt" - fi -fi +# AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no) +# if test $HAVE_OCAMLC_OPT = "yes"; then +# if test "$OCAMLFIND_COMMANDS" = ""; then +# OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt" +# else +# OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt" +# fi +# fi +# AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no) +# if test $HAVE_OCAMLOPT_OPT = "yes"; then +# if test "$OCAMLFIND_COMMANDS" = ""; then +# OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt" +# else +# OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt" +# fi +# fi if test "$OCAMLFIND_COMMANDS" != ""; then OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND" fi @@ -82,18 +99,28 @@ if test "$DEBUG" = "true"; then echo "debugging enabled" fi -MATITA_GTKRC="matita.gtkrc" +RT_BASE_DIR=`pwd` +USER_HOME=`pwd` #should be `echo $HOME` +USER_NAME=`echo $USER` AC_SUBST(CAMLP4O) AC_SUBST(DEBUG) AC_SUBST(TRANSFORMER_MODULE) AC_SUBST(FINDLIB_REQUIRES) +AC_SUBST(FINDLIB_CREQUIRES) +AC_SUBST(FINDLIB_DEPREQUIRES) +AC_SUBST(FINDLIB_CLEANREQUIRES) +AC_SUBST(FINDLIB_MAKEREQUIRES) AC_SUBST(HAVE_OCAMLOPT) AC_SUBST(LABLGLADECC) AC_SUBST(OCAMLFIND) -AC_SUBST(MATITA_GTKRC) +AC_SUBST(RT_BASE_DIR) +AC_SUBST(USER_HOME) +AC_SUBST(USER_NAME) AC_OUTPUT([ + matita.conf.xml.sample buildTimeConf.ml Makefile + gtkmathview.matita.conf.xml ])