Commit 04a0e93c authored by Richard W.M. Jones's avatar Richard W.M. Jones

Initial import from old virt-top repository.

parents
syntax: glob
META
ocaml-libvirt-*.tar.gz
ocaml-libvirt-*.exe
html
configure
config.log
config.status
config.h
config.cache
Makefile
Make.rules
*/Makefile
autom4te.cache
core
core.*
*.cmi
*.cmo
*.cmx
*.cma
*.cmxa
*.o
*.so
*.a
*.opt
*.dll
*.exe
*~
libvirt/libvirt_version.ml
examples/list_domains
examples/node_info
mlvirsh/mlvirsh
virt-ctrl/virt-ctrl
virt-top/virt-top
virt-df/virt-df
wininstaller.nsis
*.orig
mlvirsh/mlvirsh_gettext.ml
virt-ctrl/virt_ctrl_gettext.ml
virt-df/virt_df_gettext.ml
virt-top/virt_top_gettext.ml
po/*.mo
po/*.po.bak
virt-df/virt_df_lvm2_lexer.ml
virt-df/virt_df_lvm2_parser.ml
virt-df/virt_df_lvm2_parser.mli
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
2008-01-20 Richard Jones <rjones@redhat.com>
Fix Volume.lookup_by_key and Volume.lookup_by_path
* libvirt/libvirt.mli, libvirt/libvirt.ml: These functions take
a connection object, not a pool, as first parameter.
Version 0.4.0.2 released.
2008-01-18 Richard Jones <rjones@redhat.com>
Move to autogeneration of many C bindings.
* configure.ac, libvirt/libvirt_c.c, libvirt/generator.pl: Many
C bindings can now be autogenerated using a Perl script.
Also includes preliminary support for the experimental
storage API.
2008-01-08 Richard Jones <rjones@redhat.com>
Get node_info just once for each connection.
* vc_connections.ml: Get node_info just once for each connection,
which is more efficient.
* vc_connections.mli: Tidy up.
Type Vc_domain_ops.dops_callback_fn for clarity.
* virt-ctrl/vc_domain_ops.mli, virt-ctrl/vc_domain_ops.ml,
virt-ctrl/vc_mainwindow.mli: Give a type name to the domain_ops
callback type, for extra clarity.
Change comments virt-manager -> virt-ctrl.
* virt-ctrl/*.ml, virt-ctrl/*.mli: Change comments virt-manager ->
virt-ctrl.
Move programming information to libvirt generated doc.
* README, libvirt/libvirt.mli: Moved programming information to
libvirt generated documentation, greatly expanded examples and
other issues.
* examples/Makefile.in, examples/node_info.ml, examples/.depend:
Added node_info example program.
* .hgignore, Makefile.in: Ignore, clean up node_info binary.
* examples/list_domains.ml: Make a read-only connection.
Clean up *.exe files.
* Makefile.in: Clean up *.exe files.
Version 0.4.0.1 released.
* Makefile.in: Provide a 'winupload' target.
Rename some dialogs in virt-ctrl.
* virt-ctrl/vc_mainwindow.ml: Fix some "virtual machine manager" ->
"virt-ctrl" dialogs in main window.
Fix bad paths in wininstaller.nsis.in.
* wininstaller.nsis.in:
* .hgignore: Ignore *.orig files.
Fix native virt-ctrl on Windows.
* virt-ctrl/Makefile.in, virt-ctrl/mingw-gcc-wrapper.ml: Wrapper
around 'gcc' to fix native virt-ctrl builds on Windows/MinGW.
* .hgignore: Ignore *.exe files.
2008-01-07 Richard Jones <rjones@redhat.com>
Updated MANIFEST.
* MANIFEST: Bring the MANIFEST file up to date.
mlvirtmanager renamed as virt-ctrl.
* .hgignore, Makefile.in, configure.ac: Rename
mlvirtmanager as virt-ctrl to avoid any confusion with
the real virt-manager.
* mlvirtmanager/, virt-ctrl/: Subdirectory moved.
* README: Supporting documentation updated.
Include mlvirtmanager in the Windows installer.
* wininstaller.nsis.in: Include mlvirtmanager in the Windows
installer.
* Makefile.in: Re-enable native code builds for Windows installer.
* mlvirtmanager/Makefile.in: Pass $(LDFLAGS) when building on
Windows - you need to specify the location of $GTK/lib.
Bundle Gtk DLLs and support files in the Windows installer.
* configure.ac: Detect library paths instead of hard-
coding them.
* wininstaller.nsis (removed): This file is now autogenerated.
* wininstaller.nsis.in: Bundle Gtk DLLs and support files.
* Makefile.in: More verbose messages from NSIS.
Include required libraries in the Windows installer.
* wininstaller.nsis: Include *.dll files.
Windows installer.
* Makefile.in, configure.ac: Add --with-nsis[=path/to/nsis] and
call out to 'makensis.exe'.
* wininstaller.nsis, winlicense.rtf: Configuration and support
files for NSIS-based Windows installer.
* README: Update documentation to reflect.
2008-01-05 Richard Jones <rjones@redhat.com>
mlvirtmanager compiles and runs on Windows (MinGW).
* configure.ac: Directories to search for optional modules were
specified incorrectly - fixed.
* mlvirtmanager/Makefile.in: Changed so can build without
ocamlfind, and checked it can build on Windows.
mlvirsh can compile without extlib
* mlvirsh/mlvirsh.ml: mlvirsh only needed three functions from
extlib, so copy them in here to avoid the dependency.
* configure.ac: No dependency on extlib for mlvirsh.
* mlvirsh/Makefile.in: Changed so can build without ocamlfind.
* README: Updated documentation.
Update documentation for Windows.
* README: Update documentation for Windows.
Build libvirt and examples on Windows (MinGW).
* aclocal.m4: Add AC_CHECK_OCAML_MODULE to check for OCaml
modules directly (without ocamlfind being needed).
* configure.ac: Remove requirement for ocamlfind.
* config.guess, config.sub: Ship these files to guess host,
build and target.
* libvirt/Makefile.in, examples/Makefile.in: Change these
so they don't require ocamlfind, do the right thing on MinGW.
* Make.rules.in: Make.rules is now generated from this file.
File can use ocamlfind or direct ocaml commands as available.
* .hgignore: Ignore some generated files on Windows.
2008-01-04 Richard Jones <rjones@redhat.com>
Make extlib an optional dependency.
* Makefile.in, README, configure.ac, examples/Makefile.in,
libvirt/Makefile.in, mlvirtmanager/Makefile.in: Much code
doesn't really need extlib, so make it optional.
Bail earlier in configure step if we don't have ocamlfind.
2007-12-20 Richard Jones <rjones@redhat.com>
* libvirt/libvirt_c.c: Use enter/leave_blocking_section around
synchronous libvirt API calls, so that multithreaded OCaml
programs can be used.
* configure.ac: Version 0.4.0.0 for release.
* libvirt/libvirt.ml, libvirt/libvirt.mli, libvirt/libvirt_c.c:
Change the ad-hoc "foo not supported" exception into a
specific Libvirt.Not_supported "foo" exception.
* virt-top/virt_top.ml: Change virt-top to understand new
exception type.
2007-11-20 Richard Jones <rjones@redhat.com>
* libvirt/libvirt.mli, libvirt/libvirt.ml: New error numbers
in base libvirt.
* libvirt/libvirt_c.c: Gracefully handle the case where libvirt
throws an error number we have not heard of before (eg. when
dynamic linking with newer libvirt).
* configure.ac: Check <libvirt/virterror.h> exists.
* configure.ac: Version 0.3.3.4.
* virt-top/virt-top.pod: Fixed ocaml libvirt website URI in manpage.
2007-11-19 Richard Jones <rjones@redhat.com>
* virt-top/virt-top.pod: Example connection URIs in virt-top manpage
(bug 390691).
2007-11-14 Richard Jones <rjones@redhat.com>
* libvirt/libvirt.mli: Added filename = string type to clarify
some function signatures which take a filename. Added lots
of function documentation.
* libvirt/libvirt.ml: Added VIR_FROM_OPENVZ.
* configure.ac: Version 0.3.3.3 for release.
2007-11-14 Richard Jones <rjones@redhat.com>
* Makefile.in: New rules for releasing and uploading.
2007-11-14 Richard Jones <rjones@redhat.com>
* libvirt/libvirt.mli, libvirt/libvirt.ml, libvirt/libvirt_c.c:
Added support for virNodeGetFreeMemory and virNodeGetCellsFreeMemory
* mlvirsh/mlvirsh.ml: Added 'freecell' command.
2007-10-19 Richard Jones <rjones@redhat.com>
* virt-top/virt_top_calendar.ml: Added --end-time option.
Extra optional dep on ocaml-calendar.
* virt-top/virt-top.pod: Document how to compress and split
CSV files. Document --end-time option and time formats.
* virt-top/virt_top.ml: Allow sub-second delays when in batch
and script mode.
* virt-top/virt_top_utils.mli, virt-top/virt_top.mli: Reorganise
the code and add some interfaces.
2007-10-17 Richard Jones <rjones@redhat.com>
* virt-top/virt_top.ml: Added --script option.
* virt-top/virt_top.ml: Log domain data to CSV file.
* virt-top/virt_top.ml: Added --no-csv-cpu, --no-csv-block and
--no-csv-net flags.
* virt-top/*.ml: Much code clean-up and restructuring.
* *: Added GNU GPL/LGPL copyright messages to all files.
2007-09-27 Richard Jones <rjones@redhat.com>
* configure.ac: Changed version to 0.3.2.9.
* Makefile.in: Re-enable virt-df.
* virt-df/virt_df*.ml: Mostly finished off the core of virt-df.
Ext2/3 support. No LVM as yet.
* virt-df/README: Added README file.
2007-09-24 Richard Jones <rjones@redhat.com>
* configure.ac: Version 0.3.2.8 for release.
* virt-top/virt-top.ml, virt-top/virt-top.pod: Support for
$HOME/.virt-toprc init file, modelled after top.
* virt-top/virt_top_utils.ml: Split out string utilities
into a separate file.
2007-09-20 Richard Jones <rjones@redhat.com>
* virt-top/virt_top.ml: qemu:/// URIs (and others) don't support
virConnectGetHostname. Catch this exception.
* Makefile.in: Disable virt-df in this release until I have
time to fix it properly.
* Makefile.in: Fix 'check-manifest' rule. Added 'make release'.
* MANIFEST: Updated MANIFEST.
2007-09-19 Richard Jones <rjones@redhat.com>
* virt-top/virt_top.ml: Ignore transient error from
C.num_of_defined_domains when it cannot contact xend; that
was causing virt-top to exit when xend was restarted.
2007-09-18 Richard Jones <rjones@redhat.com>
* virt-df/virt_df.ml: Handle domains with partition-backed
block devices.
* virt-top/virt_top.ml: Don't fail on older libvirt which would
give an error if list_domains or list_defined_domains was called
with n = 0.
* ChangeLog: Start tracking changes.
aclocal.m4
ChangeLog
config.guess
config.h.in
config.sub
configure.ac
COPYING
COPYING.LIB
examples/.depend
examples/list_domains.ml
examples/node_info.ml
examples/Makefile.in
.hgignore
install-sh
libvirt/.depend
libvirt/generator.pl
libvirt/libvirt_c.c
libvirt/libvirt_c_epilogue.c
libvirt/libvirt_c_oneoffs.c
libvirt/libvirt_c_prologue.c
libvirt/libvirt.ml
libvirt/libvirt.mli
libvirt/libvirt_version.ml.in
libvirt/libvirt_version.mli
libvirt/Makefile.in
libvirt/README
Makefile.in
Make.rules.in
MANIFEST
META.in
mlvirsh/.depend
mlvirsh/Makefile.in
mlvirsh/mlvirsh.ml
po/ja.po
po/LINGUAS
po/Makefile.in
po/pl.po
po/POTFILES
po/virt-top.pot
README
TODO.libvirt
wininstaller.nsis.in
winlicense.rtf
name="libvirt"
version="@PACKAGE_VERSION@"
description="libvirt bindings for OCaml"
archive(byte)="mllibvirt.cma"
archive(native)="mllibvirt.cmxa"
# ocaml-libvirt
# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# This file is included by Makefiles in subdirectories.
OCAMLFIND = @OCAMLFIND@
OCAMLDEP = @OCAMLDEP@
OCAMLC = @OCAMLC@
OCAMLOPT = @OCAMLOPT@
# Common rules for building OCaml objects.
ifneq ($(OCAMLFIND),)
.mli.cmi:
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
.ml.cmo:
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
.ml.cmx:
$(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) -c $<
else
.mli.cmi:
$(OCAMLC) $(OCAMLCFLAGS) $(OCAMLCINCS) -c $<
.ml.cmo:
$(OCAMLC) $(OCAMLCFLAGS) $(OCAMLCINCS) -c $<
.ml.cmx:
$(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLOPTINCS) -c $<
endif
%.ml %.mli: %.mly
ocamlyacc $<
.mll.ml:
ocamllex $<
# Dependencies.
depend: .depend
ifneq ($(OCAMLFIND),)
.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f .depend
$(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $(OCAMLDEPFLAGS) $^ > $@
else
.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f .depend
$(OCAMLDEP) $(OCAMLCINCS) $(OCAMLDEPFLAGS) $^ > $@
endif
ifeq ($(wildcard .depend),.depend)
include .depend
endif
.PHONY: depend dist check-manifest dpkg doc
.SUFFIXES: .cmo .cmi .cmx .ml .mli .mll .mly
# ocaml-libvirt
# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
PACKAGE = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
INSTALL = @INSTALL@
MAKENSIS = @MAKENSIS@
OCAMLDOC = @OCAMLDOC@
OCAMLDOCFLAGS := -html -sort
SUBDIRS = @subdirs@
all opt depend install:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
done
clean:
for d in . $(SUBDIRS); do \
(cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
done
rm -f examples/list_domains
rm -f examples/node_info
rm -f mlvirsh/mlvirsh
rm -f virt-ctrl/virt-ctrl
rm -f virt-top/virt-top
rm -f virt-df/virt-df
distclean: clean
rm -f config.h config.log config.status configure
rm -rf autom4te.cache
rm -f META
rm -f libvirt/libvirt_version.ml
rm -f Makefile
rm -f libvirt/Makefile
rm -f examples/Makefile
rm -f mlvirsh/Makefile
rm -f virt-ctrl/Makefile
rm -f virt-top/Makefile
rm -f virt-df/Makefile
# Developer documentation (in html/ subdirectory).
ifneq ($(OCAMLDOC),)
doc:
rm -rf html
mkdir html
-cd libvirt; \
$(OCAMLDOC) $(OCAMLDOCFLAGS) -d ../html \
libvirt.{ml,mli} libvirt_version.{ml,mli}
endif
# Windows installer (requires NSIS).
WININSTALLER := $(PACKAGE)-$(VERSION).exe
ifneq ($(MAKENSIS),)
wininstaller: $(WININSTALLER)
$(WININSTALLER): wininstaller.nsis all opt
"$(MAKENSIS)" \
//DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
//DOUTFILE=$@ $<
ls -l $@
endif
# Update configure and rerun.
configure: force
autoreconf
CFLAGS=-g \
./configure \
--enable-debug=yes --with-libvirt=/home/rjones/local
# Distribution.
dist:
$(MAKE) check-manifest
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
$(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
ls -l $(PACKAGE)-$(VERSION).tar.gz
check-manifest:
hg manifest | sort > .check-manifest; \
sort MANIFEST > .orig-manifest; \
diff -u .orig-manifest .check-manifest; rv=$$?; \
rm -f .orig-manifest .check-manifest; \
exit $$rv
# Do a release (update the website).
release: configure
$(MAKE) release_stage_2
release_stage_2: clean all opt doc dist
$(MAKE) release_stage_3
WEBSITE = ../redhat/websites
release_stage_3:
rm -f $(WEBSITE)/ocaml-libvirt/html/*.{html,css}
cp html/*.{html,css} $(WEBSITE)/ocaml-libvirt/html/
cp README $(WEBSITE)/ocaml-libvirt/README.txt
cp ChangeLog $(WEBSITE)/ocaml-libvirt/ChangeLog.txt
# cp virt-top/virt-top.txt $(WEBSITE)/virt-top/
# cp ChangeLog $(WEBSITE)/virt-top/ChangeLog.txt
# Upload to main website.
upload:
cd $(WEBSITE)/ocaml-libvirt && \
scp ChangeLog.txt index.html README.txt Screenshot*.png \
libvirt.org:/data/www/libvirt.org/ocaml && \
scp css/*.css \
libvirt.org:/data/www/libvirt.org/ocaml/css/ && \
scp html/*.html html/*.css \
libvirt.org:/data/www/libvirt.org/ocaml/html/
scp $(PACKAGE)-$(VERSION).tar.gz libvirt.org:/data/ftp/libvirt/ocaml/
# Upload Windows binary installer to main website.
winupload:
scp $(WININSTALLER) libvirt.org:/data/ftp/libvirt/ocaml/
force:
.PHONY: all opt depend install clean distclean configure dist check-manifest \
release release_stage_2 release_stage_3 force
\ No newline at end of file
This diff is collapsed.
Turn VIR_ERR_NO_DOMAIN and NO_NETWORK errors into Not_found exceptions.
dnl autoconf macros for OCaml
dnl by Olivier Andrieu
dnl modified by Richard W.M. Jones
dnl from a configure.in by Jean-Christophe Fillitre,
dnl from a first script by Georges Mariano
dnl
dnl defines AC_PROG_OCAML that will check the OCaml compiler
dnl and set the following variables :
dnl OCAMLC "ocamlc" if present in the path, or a failure
dnl or "ocamlc.opt" if present with same version number as ocamlc
dnl OCAMLOPT "ocamlopt" (or "ocamlopt.opt" if present), or "no"
dnl OCAMLBEST either "byte" if no native compiler was found,
dnl or "opt" otherwise
dnl OCAMLDEP "ocamldep"
dnl OCAMLLIB the path to the ocaml standard library
dnl OCAMLVERSION the ocaml version number
AC_DEFUN(AC_PROG_OCAML,
[dnl
# checking for ocamlc
AC_CHECK_PROG(OCAMLC,ocamlc,ocamlc,AC_MSG_ERROR(Cannot find ocamlc.))
OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
AC_MSG_RESULT(OCaml version is $OCAMLVERSION)
OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
AC_MSG_RESULT(OCaml library path is $OCAMLLIB)
# checking for ocamlopt
AC_CHECK_PROG(OCAMLOPT,ocamlopt,ocamlopt)
OCAMLBEST=byte
if test -z "$OCAMLOPT"; then
AC_MSG_WARN(Cannot find ocamlopt; bytecode compilation only.)
else
TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
if test "$TMPVERSION" != "$OCAMLVERSION" ; then
AC_MSG_RESULT(versions differs from ocamlc; ocamlopt discarded.)
unset OCAMLOPT
else
OCAMLBEST=opt
fi
fi
# checking for ocamlc.opt
AC_CHECK_PROG(OCAMLCDOTOPT,ocamlc.opt,ocamlc.opt)
if test -z "$OCAMLCDOTOPT"; then
TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
if test "$TMPVERSION" != "$OCAMLVERSION" ; then
AC_MSG_RESULT(versions differs from ocamlc; ocamlc.opt discarded.)
else
OCAMLC=$OCAMLCDOTOPT
fi
fi
# checking for ocamlopt.opt
if test "$OCAMLOPT" ; then
AC_CHECK_PROG(OCAMLOPTDOTOPT,ocamlopt.opt,ocamlopt.opt)
if test "$OCAMLOPTDOTOPT"; then
TMPVER=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
if test "$TMPVER" != "$OCAMLVERSION" ; then
AC_MSG_RESULT(version differs from ocamlc; ocamlopt.opt discarded.)
else
OCAMLOPT=$OCAMLOPTDOTOPT
fi
fi
fi
# checking for ocamldep
AC_CHECK_PROG(OCAMLDEP,ocamldep,ocamldep,AC_MSG_ERROR(Cannot find ocamldep.))
#checking for ocamlmktop
AC_CHECK_PROG(OCAMLMKTOP,ocamlmktop,ocamlmktop, AC_MSG_WARN(Cannot find ocamlmktop.))
#checking for ocamlmklib
AC_CHECK_PROG(OCAMLMKLIB,ocamlmklib,ocamlmklib, AC_MSG_WARN(Cannot find ocamlmklib.))
# checking for ocamldoc
AC_CHECK_PROG(OCAMLDOC,ocamldoc,ocamldoc, AC_MSG_WARN(Cannot find ocamldoc.))
AC_SUBST(OCAMLC)
AC_SUBST(OCAMLOPT)
AC_SUBST(OCAMLDEP)
AC_SUBST(OCAMLBEST)
AC_SUBST(OCAMLVERSION)
AC_SUBST(OCAMLLIB)
AC_SUBST(OCAMLMKLIB)
AC_SUBST(OCAMLDOC)
])
dnl macro AC_PROG_OCAML_TOOLS will check OCamllex and OCamlyacc :
dnl OCAMLLEX "ocamllex" or "ocamllex.opt" if present
dnl OCAMLYACC "ocamlyac"
AC_DEFUN(AC_PROG_OCAML_TOOLS,
[dnl
# checking for ocamllex and ocamlyacc
AC_CHECK_PROG(OCAMLLEX,ocamllex,ocamllex)
if test "$OCAMLLEX"; then
AC_CHECK_PROG(OCAMLLEXDOTOPT,ocamllex.opt,ocamllex.opt)
if test "$OCAMLLEXDOTOPT"; then
OCAMLLEX=$OCAMLLEXDOTOPT
fi
else
AC_MSG_ERROR(Cannot find ocamllex.)
fi
AC_CHECK_PROG(OCAMLYACC,ocamlyacc,ocamlyacc,AC_MSG_ERROR(Cannot find ocamlyacc.))
AC_SUBST(OCAMLLEX)
AC_SUBST(OCAMLYACC)
])
dnl AC_PROG_CAMLP4 checks for Camlp4
AC_DEFUN(AC_PROG_CAMLP4,
[dnl
AC_REQUIRE([AC_PROG_OCAML])
# checking for camlp4
AC_CHECK_PROG(CAMLP4,camlp4,camlp4)
if test "$CAMLP4"; then
TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'`
if test "$TMPVERSION" != "$OCAMLVERSION" ; then
AC_MSG_RESULT(versions differs from ocamlc)
fi
fi
])
dnl macro AC_PROG_FINDLIB will check for the presence of
dnl ocamlfind
AC_DEFUN(AC_PROG_FINDLIB,
[dnl
# checking for ocamlfind
AC_CHECK_PROG(OCAMLFIND,ocamlfind,ocamlfind,
AC_MSG_WARN([ocamlfind not found]))
AC_SUBST(OCAMLFIND)
])
dnl AC_CHECK_OCAML_PKG checks wether a findlib package is present
dnl defines pkg_name to "yes"
AC_DEFUN(AC_CHECK_OCAML_PKG,
[dnl
AC_REQUIRE([AC_PROG_FINDLIB])
AC_MSG_CHECKING(findlib package $1)
if $OCAMLFIND query $1 >/dev/null 2>/dev/null; then
AC_MSG_RESULT(found)
eval "pkg_`echo $1 | tr - _`=yes"
else
AC_MSG_RESULT(not found)
eval "pkg_`echo $1 | tr - _`=no"
fi
])
dnl AC_CHECK_OCAML_MODULE looks for a module in a given path
dnl 1st arg -> name (just for printing messages)
dnl 2nd arg -> env var name (set to include path, or "no" if not found)
dnl 3rd arg -> module to check
dnl 4th arg -> default include dirs to check
AC_DEFUN([AC_CHECK_OCAML_MODULE],
[dnl
AC_MSG_CHECKING(for module $1)
cat > conftest.ml <<EOF
open $3
EOF
unset found
for $2 in $$2 $4 ; do
if $OCAMLC -c -I "$$2" conftest.ml >&5 2>&5 ; then
found=yes
break
fi
done
if test "$found" ; then
AC_MSG_RESULT($$2)
else
AC_MSG_RESULT(not found)
$2=no
fi
AC_SUBST($2)])
This diff is collapsed.
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `ncurses' library (-lncurses). */
#undef HAVE_LIBNCURSES
/* Define to 1 if you have the `virt' library (-lvirt). */
#undef HAVE_LIBVIRT
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `virConnectGetHostname' function. */