Commit Graph

20 Commits

Author SHA1 Message Date
Richard W.M. Jones
f6c4026f85 build: xml-light is no longer required (thanks Maxim Koltsov).
At some point we removed the last thing that required
xml-light, but were still testing for it at various places
in the build.  This removes all traces.
2010-11-11 18:03:12 +00:00
Richard Jones
ed2bd31f91 Revert "autogen: Touch ocaml/.depend"
This reverts commit a0f85ba643.
2010-11-08 22:36:24 +00:00
Richard Jones
a0f85ba643 autogen: Touch ocaml/.depend 2010-10-29 10:15:02 +01:00
Richard Jones
264629b9f0 syntax: Replace -a and -o with && and || for portability. 2010-09-11 08:11:43 +01:00
Jim Meyering
9e5fabbe01 accommodate leading "+" in git submodule output
* cfg.mk (_submodule_hash): Also filter out "+".
* autogen.sh: Likewise.
2009-12-07 11:13:12 +00:00
Jim Meyering
e1b48287eb build: correct sed transformation to work also on .git-module-status
My patch was wrong.
I kept the sed transformation the same in the two places,
but it wasn't strict enough to also work on the file contents.
Sorry about that.  This fixes it.

>From 93927cc7b9f63c414e5bfeb7eba393fde3295601 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Fri, 20 Nov 2009 16:23:17 +0100
Subject: [PATCH libguestfs] build: correct sed transformation to work also on .git-module-status

* autogen.sh: Use a more strict sed transformation so it works also
on the contents of .git-module-status, which has no prefix.
* cfg.mk (_submodule_hash): Use a stricter sed regexp.
2009-11-20 15:40:19 +00:00
Jim Meyering
1b4bab6db2 build: make autogen.sh update .git-module-status, as it should
I ran autogen.sh, but then make was always failing like this:

    $ make
    cfg.mk:141: *** gnulib update required; run ./autogen.sh first.  Stop.

Here's the fix:

>From f743f32079fea2e8a17c7f5b59305e584c75dba0 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Fri, 20 Nov 2009 14:29:55 +0100
Subject: [PATCH libguestfs] build: make autogen.sh update .git-module-status, as it should

* autogen.sh: Without this, "make" would always say "gnulib update
required; run ./autogen.sh first", even after you'd run autogen.sh
successfully.
2009-11-20 14:11:08 +00:00
Jim Meyering
825d855b22 build: revive the ocaml package tests
* autogen.sh: Generalize the ocaml-package-existence test.
Remove the git-related part of the old test.
2009-11-12 11:34:08 +01:00
Richard Jones
62288e7118 autogen.sh: Remove test for ocaml etc from this script.
This test seems to cause a lot of trouble.  We need to go back to
the drawing-board on this one.
2009-11-11 13:40:04 +00:00
Richard Jones
3ca69d9db3 Check for ocaml-xml-light-devel (xml-light.cmxa)
Also unquote $pkg since OCaml package names can never contain
spaces or other unfriendly characters.
2009-11-10 18:44:37 +00:00
Jim Meyering
15821057d4 build: die early if we lack ocaml, ocamlfind or ocaml-xml-light
* autogen.sh: Ensure that we fail very early when not building
from a tarball and when one of those is not installed.
2009-11-10 16:56:50 +01:00
Jim Meyering
0fc0e4bd73 build: use only one m4/ directory
* Makefile.am (ACLOCAL_AMFLAGS): Specify only one include dir: m4.
* bootstrap: Tell gnulib-tool to put .m4 files in m4/, not gnulib/m4.
* autogen.sh: Move autoreconf from here into...
* bootstrap: ...here, so that it is run only when gnulib-tool is.
Also, tell it to skip the usual autopoint and libtoolize runs.
* m4/.gitignore: Update.
2009-08-25 18:44:27 +02:00
Jim Meyering
f482e7ea66 build: invoke autopoint with --force
* bootstrap: Invoke autopoint with --force, to avoid warning
about existing build-aux/config.rpath.
Invoke libtoolize before gnulib-tool, to avoid spurious warnings.
* autogen.sh: Add comments.
Remove build-aux/config.rpath before running autoreconf.
2009-08-25 18:44:27 +02:00
Jim Meyering
480a489ee4 maint: use a git submodule for gnulib
* .gitmodules: New file, to track gnulib.
* .gnulib: Submodule directory.
* Makefile.am (EXTRA_DIST): Don't list config.rpath or
gitlog-to-changelog.
* autogen.sh: Adapt to use the new submodule.
* cfg.mk: New file.
(SUBDIRS): Add gnulib/lib and gnulib/tests.
(dist-hook): Reflect new location of getlog-to-changelog.
* configure.ac: Set build-aux/ as AUX_DIR.
Invoke gl_EARLY and gl_INIT.
(AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
2009-08-03 15:14:30 +02:00
Matthew Booth
349814e9d9 Make it possible to build in a separate directory
This patch allows you to do:
mkdir build
cd build
../configure ...
make

This will output all generated files to the build directory. Given that
autogen automatically runs configure, you can also do:

BUILDDIR=./build ./autogen.sh

which will do the right thing.

Also:

* Fix a dependency bug which means that guestfs_protocol.h
  isn't automatically rebuilt.
* Re-running autogen.sh with no arguments won't blow away your previous
  configure arguments.
2009-07-03 16:16:51 +01:00
Richard Jones
bccbfe5ab5 Fix: "aclocal: couldn't open directory `m4': No such file or directory" 2009-04-07 13:51:12 +01:00
Richard Jones
002cdf48fe Run autoreconf with -i parameter. 2009-04-01 12:57:25 +01:00
rjones
91df7a164b Now using febootstrap. 2009-03-24 09:38:31 +00:00
rjones
b6233d1fff Running qemu as a subprocess. 2009-03-03 15:35:50 +00:00
rjones
407caabfd0 Final fixes to build environment, and added autogen.sh. 2009-03-03 09:08:12 +00:00