]> matita.cs.unibo.it Git - helm.git/blobdiff - configure.ac
changed location of version.txt
[helm.git] / configure.ac
index 90d14f49f821f0b6515771015fe1e42682fa09d8..00ae3a37d36a697491096ba52c29acff3e96df91 100644 (file)
@@ -1,12 +1,15 @@
 AC_INIT(matita/matitaTypes.ml)
 
-# Distribution settings (i.e. settings to be manipulated before a release)
-DEBUG_DEFAULT="false"
-DEFAULT_DBHOST="localhost"
-RT_BASE_DIR_DEFAULT="/usr/local/share/matita/"
+# Distribution settings
+# (i.e. settings (automatically) manipulated before a release)
+DEBUG_DEFAULT="true"
+DEFAULT_DBHOST="mowgli.cs.unibo.it"
+RT_BASE_DIR_DEFAULT="`pwd`/matita"
 MATITA_VERSION="0.1.0"
+DISTRIBUTED="no"  # "yes" for distributed tarballs
 # End of distribution settings
 
+SRCROOT=`pwd`
 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
 if test $HAVE_OCAMLC = "no"; then
   AC_MSG_ERROR(could not find ocamlc)
@@ -36,19 +39,8 @@ fi
 
 # look for METAS dir
 
-OCAMLPATH=""
-LIBSPATH=""
-if test -d libs ; then
-  OCAMLPATH=`pwd`/libs/METAS
-  LIBSPATH=`pwd`/libs
-fi
-if test -d ocaml ; then
-  OCAMLPATH=`pwd`/ocaml/METAS
-  LIBSPATH=`pwd`/ocaml
-fi
-if test -z $OCAMLPATH; then
-  AC_MSG_ERROR(could not find METAS directory)
-fi
+LIBSPATH="`pwd`/components"
+OCAMLPATH="$LIBSPATH/METAS"
 
 # creating META.*
 
@@ -164,22 +156,25 @@ AC_MSG_RESULT($DBHOST)
 AC_SUBST(CAMLP4O)
 AC_SUBST(DBHOST)
 AC_SUBST(DEBUG)
-AC_SUBST(TRANSFORMER_MODULE)
-AC_SUBST(FINDLIB_REQUIRES)
+AC_SUBST(DISTRIBUTED)
 AC_SUBST(FINDLIB_CREQUIRES)
+AC_SUBST(FINDLIB_REQUIRES)
 AC_SUBST(HAVE_OCAMLOPT)
 AC_SUBST(LABLGLADECC)
+AC_SUBST(MATITA_VERSION)
 AC_SUBST(OCAMLFIND)
 AC_SUBST(OCAMLPATH)
 AC_SUBST(RT_BASE_DIR)
-AC_SUBST(MATITA_VERSION)
+AC_SUBST(SRCROOT)
+AC_SUBST(TRANSFORMER_MODULE)
 
 AC_OUTPUT([
-  $LIBSPATH/extlib/componentsConf.ml
+  components/extlib/componentsConf.ml
   matita/matita.conf.xml.devel
   matita/matita.conf.xml.user
   matita/matita.conf.xml.build
   matita/buildTimeConf.ml
   matita/gtkmathview.matita.conf.xml
+  matita/help/C/version.txt
   Makefile.defs
 ])