dnl The following is the directory where the binary will be installed
BIN_DIR=$RESOLVED_EXEC_PREFIX/bin
+AC_PATH_PROG(PERL_BINARY,perl,no)
+if test $PERL_BINARY = no ; then
+ AC_MSG_ERROR(Could not find perl)
+fi
+
dnl MISSING CHECKS:
-dnl ocaml, ocaml-findlib, ocaml-netstring, ocaml-pxp, lablgtk_20001129
-dnl lablgtk-20001129_gtkmathview
+dnl ocaml-findlib, ocaml-netstring, ocaml-pxp
dnl Check for Ocaml
AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
let uris = ref [] in
try
while true do
- uris := (input_line fd) :: !uris
+ let (uri,comp) =
+ match (Str.split (Str.regexp "[ \t]+") (input_line fd)) with
+ [uri] -> (uri,"")
+ | [uri;comp] -> (uri,".gz")
+ in
+ uris := (uri,comp) :: !uris
done ;
[] (* only to make the compiler happy *)
with
| he::tl ->
let map = mk_urls_of_uris tl in
let uris = read_index he in
- let url_of_uri uri =
- let url = uri ^ ".xml" in
+ let url_of_uri (uri,comp) =
+ let url = uri ^ ".xml" ^ comp in
let url' = Str.replace_first (Str.regexp "cic:") he url in
let url'' = Str.replace_first (Str.regexp "theory:") he url' in
url''
in
List.fold_right
- (fun uri m -> MapOfStrings.add uri (url_of_uri uri) m)
+ (fun (uri,comp) m -> MapOfStrings.add uri (url_of_uri (uri,comp)) m)
uris map
;;
ignore(output#connect#selection_changed (choose_selection self)) ;
ignore(nextb#connect#clicked (next self)) ;
ignore(prevb#connect#clicked (prev self)) ;
- ignore(checkb#connect#clicked (check self)) ;
+ (* LUCA: check disabled while compression is not fully implemented *)
+ (* ignore(checkb#connect#clicked (check self)) ; *)
+ checkb#misc#set_sensitive false ;
ignore(closeb#connect#clicked window#misc#hide) ;
ignore(annotateb#connect#clicked (annotateb_pressed self annotation_window)) ;
let settings_window = new settings_window output scrolled_window0