aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ensure autogen.sh exists if bootstrap failsDaniel P. Berrange2012-09-201-0/+2
| | | | | | | | If any of the bootstrap tasks (autoconf/automake/etc) failed, autogen.sh carried on running any pre-existing configure anyway. Use 'set -e' to ensure autogen.sh immediately exists on error. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Allow NOCONFIGURE=1 to make autogen.sh skip ./configureDaniel P. Berrange2012-06-251-2/+6
| | | | | | | | Sometimes it is useful to re-bootstrap libvirt without running through a ./configure invocation immediately. eg if you want to run ./configure for Mingw32 rather than native. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* autogen: Always abide --systemCole Robinson2012-06-151-1/+1
| | | | | | If we do ./autogen.sh && ./configure, then later try ./autogen.sh --system, configure isn't invoked with the requested params. Instead config.status --recheck is run.
* build: allow for local gnulib diffsEric Blake2011-11-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Commit f7bd00c12 pulled in a gnulib module that fails to compile on mingw. While it would be nice to pull in a newer version of .gnulib that fixes this, it is difficult to backport any .gnulib update to older releases. So, it makes sense to take advantage of gnulib-tool's ability to support local diffs, where we can apply specific diffs in our use of gnulib without waiting for upstream gnulib to pick up those changes, as well as avoiding a wholesale .gnulib update. The existence of local diffs will also make it easier to backport fixes against a tarball (as long as a tarball and libvirt.git share the same .gnulib commit, then the tarball can be patched by applying the same local diffs as a post-release libvirt.git commit, without having to rerun an entire gnulib-tool bootstrap). This patch introduces the framework for supporting local diffs, without actually introducing any. * bootstrap.conf (local_gl_dir): New variable. * autogen.sh (bootstrap_hash): Hash any local diffs, to force a re-bootstrap if just diffs change. * cfg.mk (_update_required): Likewise.
* build: avoid problems with autogen.sh runs from tarballEric Blake2011-02-121-12/+15
| | | | | | | | | Introduced by commit fac97c65c distributing cfg.mk, which previously could blindly assume it was in a git checkout. * cfg.mk (_update_required): Also check for .git. * autogen.sh: Don't run bootstrap from a tarball. Reported by Daniel Veillard.
* Fix setup of lib directory with autogen.sh --systemDaniel P. Berrange2011-01-261-1/+8
| | | | | | | | On x86_64 hosts, /usr/lib64 must be used instead of /usr/lib Rather than attempt to whitelist architectures, just check for existance of /usr/lib64 * autogen.sh: Fix to use /usr/lib64 if it exists
* maint: support --no-git option during autogen.shEric Blake2011-01-211-2/+7
| | | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=562743 Also, fixes gnulib bug in dealing with strerror_r from glibc 2.13. * .gnulib: Update to latest, for improved bootstrap. * bootstrap: Resync from gnulib. * autogen.sh (bootstrap): Add --bootstrap-sync, to make it easier to keep bootstrap up-to-date. Pass optional --no-git through. Reported by Aleksey Avdeev.
* build: require pkg-config for bootstrapEric Blake2010-10-051-1/+1
| | | | | | | | * .gnulib: Update to latest, for bootstrap fixes. * bootstrap: Synchronize with upstream. * bootstrap.conf: Add pkg-config pre-requisite. * autogen.sh: Tweak wording message. Reported by Justin Clift, and with feedback from Bruno Haible.
* build: fix example build on MacOS XEric Blake2010-09-301-37/+0
| | | | | | | | | | | | | | Partial reversion of commit 76d87a59, now that bootstrap is smarter. * .gnulib: Update to latest, for poll and bootstrap fixes. * bootstrap: Resync from gnulib. * autogen.sh: Drop redundant tool checks; bootstrap does them better, by honoring environment variables. * examples/domain-events/events-c/Makefile.am (INCLUDES) (event_test_LDADD): Use gnulib library during build. * bootstrap.conf (gnulib_tool_option_extras): Revert --libtool addition, now that updated bootstrap does it for us. Reported by Justin Clift.
* Avoid unnecessary bootstrap runs in VPATH buildsJiri Denemark2010-08-111-1/+1
|
* build: rerun bootstrap if po/Makevars got nukedEric Blake2010-08-041-2/+6
| | | | | | | | | | | | | | | | | | | There has been a frequent complaint of: make[2]: Entering directory `/home/remote/eblake/libvirt/po' make[2]: *** No rule to make target `/config.status', needed by `Makefile'. Stop. It happens after nuking and regenerating the po directory, which is a common action after running anything like 'make dist' or 'make rpm' that dirties all the .po files. Teach autogen.sh that it must regenerate po/Makevars to avoid the missing variable declaration, and teach cfg.mk to recognize that a nuked po directory is cause to rerun autogen.sh. * cfg.mk (_update_required): Check for po/Makevars. * autogen.sh (bootstrap): Run bootstrap if it got lost. Diagnosed by Justin Clift.
* build: improve check for out-of-date .gnulib submoduleEric Blake2010-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git reset --hard 96e5a2d4d5b13bf2cc887562dc11d146b78d5950 ./autogen.sh make -s git pull make -s <-- expecting auto-bootstrap here, doesn't happen Use git diff to expose whether the submodule has untracked changes, which are typical on an incremental pull if .gnulib was updated but the user did not manually run 'git submodule update'. After this patch is applied, I encountered a new problem when following the reproducing pattern. Basically, the change to .gnulib between libvirt's commit 96e5a2d4 and this patch introduced a change to sys_ioctl.in.h, but gnulib (intentionally) does not make the replacement headers depend on Makefile changes. Therefore, I ended up with the generated replacement header being broken: gnulib/lib/sys/ioctl.h complained about a use of @. But that seems like something that should be fixed upstream in gnulib's bootstrap script (that is, when doing a gnulib update, all files created from .in.h file should probably be deleted). Without the benefit of that proposed gnulib fix, I worked around the problem by manually removing the stale gnulib/lib/sys/ioctl.h. * autogen.sh (t): Also run bootstrap if the gnulib submodule needs to be updated. * cfg.mk (_autogen): Likewise. Reported by Matthias Bolte.
* build: don't lose prior configure args on autogen.shEric Blake2010-03-261-3/+7
| | | | | | | | | | My prior patch forced an autogen.sh run, and I was surprised that the suggested './autogen.sh' lost the fact that I had previously used './autogen.sh -C' for speed. * autogen.sh: Use config.status, if present and there were no arguments. Signed-off-by: Eric Blake <eblake@redhat.com>
* do not require two ./autogen.sh runs to permit "make"Jim Meyering2010-03-161-7/+14
| | | | | | | | | * autogen.sh (bootstrap_hash): New function. Running bootstrap may update the gnulib SHA1, yet we were computing t=$(git submodule status ...) *prior* to running bootstrap, and then recording that sometimes-stale value in the stamp file upon a successful bootstrap run. That would require two (lengthy!) bootstrap runs to update the stamp file.
* build: change to gnulib module list should rerun bootstrapEric Blake2010-03-101-1/+2
| | | | | | * autogen.sh (curr_status): Also include hash of bootstrap.conf when checking for changes that require bootstrap rerun. * cfg.mk (_update_required): Likewise.
* build: make git submodule checking more reliableJim Meyering2010-02-251-1/+1
| | | | | | * cfg.mk (_curr_status): Accommodate leading "+" or "-" in the output of git submodule status. * autogen.sh: Likewise.
* maint: import modern bootstrapEric Blake2010-02-231-6/+2
| | | | | | | | | | | | | | | | Copy the latest gnulib bootstrap, which runs autoreconf and generates po/Makevars for us. Other improvements include some improved prerequisite tool checking. This also fixes a bug in the .pot files, regarding the copyright holder. * bootstrap: Update to version in .gnulib/build-aux. * bootstrap.conf (MSGID_BUGS_ADDRESS, COPYRIGHT_HOLDER, SKIP_PO) (gnulib_mk, ACLOCAL, bootstrap_epilogue): Provide overrides. * autogen.sh (autoreconf): Avoid redundant autoreconf if bootstrap was run. * po/Makevars: Delete, now that bootstrap creates it. * po/.gitignore: Update.
* maint: fix quoting in autogen.shEric Blake2010-02-231-5/+8
| | | | | * autogen.sh (srcdir, THEDIR, OBJ_DIR): Use proper quoting. (.git-module-status): Abort if bootstrap fails.
* Add --system flag to autogen.sh to make it easy to build with right prefixDaniel P. Berrange2009-12-071-2/+10
| | | | | | | | Add a --system flag to autogen.sh which gets turned into the args --prefix=/usr --sysconfdir=/etc --localstatedir=/var to make it easy to build with settings that match an RPM build * autogen.sh: Add --system flag
* build: automatically rerun ./bootstrap when neededJim Meyering2009-07-101-0/+11
| | | | | | | | | | | | | | | When "git pull" (or any other operation) brings in a new version of the gnulib git submodule, you must rerun the autogen.sh script. With this change, "make" now fails and tells you to run ./autogen.sh, when needed. * autogen.sh: Maintain a new file, .git-module-status, containing the current submodule status. If it doesn't exist or its content is different from what "git submodule status" prints, then run ./bootstrap * .gitignore: Add .git-module-status * cfg.mk: Diagnose out of date submodule and fail. * README-hacking: Update not to mention bootstrap. * Makefile.am (MAINTAINERCLEANFILES): Add .git-module-status, so that "make maintainerclean" will remove it.
* build: make autogen.sh use autoreconf -ifJim Meyering2009-07-101-7/+1
| | | | | * autogen.sh: Use "autoreconf -if" instead of open-coding it with manual and unconditional invocation of each separate tool.
* generate ChangeLog from git logs into distribution tarballJim Meyering2009-07-081-0/+3
| | | | | | | | | | | | No longer maintain a version-controlled ChangeLog file, but do continue to include a ChangeLog file in distribution tarball. * Makefile.am (gen-ChangeLog): New rule. (dist-hook): Depend on it. (EXTRA_DIST): Add ChangeLog-old. * bootstrap (modules): Add gitlog-to-changelog. * ChangeLog: Remove file. Renamed to... * ChangeLog-old: ...this. New file. * autogen.sh: Touch ChangeLog, to ensure it exists. For automake.
* Remove all trailing blanks; turn on the rule to detect them.Jim Meyering2008-02-051-2/+2
| | | | | * Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank. * .x-sc_trailing_blank: New file, to exempt the few binary files.
* Use gnulib, starting with its physmem and getaddrinfo modules.Jim Meyering2007-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New files go into these directories: gnulib/lib gnulib/m4 gnulib/tests * bootstrap: A wrapper around gnulib-tool. * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY before any macro that uses AC_COMPILE_IFELSE. (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile. Remove m4/Makefile. * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4. Add gnulib/tests early enough that those tests run before any libvirt unit tests. * m4/Makefile.am: Remove file. Not needed. * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib. (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la. * src/nodeinfo.c: Include "physmem.h". * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h". (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions. (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate. * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib. (LDADDS): Add ../gnulib/lib/libgnu.la. * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la. * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total memory from a file. Update expected output not to include "Memory: NNNN" * tests/nodeinfodata/linux-nodeinfo-1.txt: * tests/nodeinfodata/linux-nodeinfo-2.txt: * tests/nodeinfodata/linux-nodeinfo-3.txt: * tests/nodeinfodata/linux-nodeinfo-4.txt: * tests/nodeinfodata/linux-nodeinfo-5.txt: * tests/nodeinfodata/linux-nodeinfo-6.txt: * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that would conflict with the one now in "config.h". * autogen.sh: Add -I gnulib/m4. * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE. Instead, include "config.h". * qemud/qemud.c: Remove definition of _GNU_SOURCE. * src/openvz_driver.c: Likewise. * src/qemu_driver.c: Likewise. * src/remote_internal.c: Likewise. * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch of gettextize-generated files go into build-aux/, rather than in the top-level directory. * .cvsignore: Adjust. * build-aux/.cvsignore: New file. Author: Jim Meyering <meyering@redhat.com>
* Tue Feb 14 16:35:56 IST 2007 Mark McLoughlin <markmc@redhat.com>Mark McLoughlin2007-02-141-1/+1
| | | | * autogen.sh: run autoheader before automake
* Tue Feb 14 14:33:22 EST 2007 Mark McLoughlin <markmc@redhat.comMark McLoughlin2007-02-141-0/+1
| | | | | | * autogen.sh: run autoheader * config.h.in: remove
* Added code coverage testing enabled via --enable-test-coverageDaniel P. Berrange2007-02-141-1/+1
|
* * autogen.sh: applied patch from Richard W.M. Jones to notDaniel Veillard2007-01-261-4/+4
| | | | | output instructions if configure failed Daniel
* Added support for i18n translation with gettextDaniel P. Berrange2006-09-211-0/+10
|
* * src/xend_internal.c: fixed xenDaemonOpen() to try both unix andDaniel Veillard2006-07-061-4/+4
| | | | | | | http accesses by default and to use the provided URI otherwise, applied Jim Fehlig patch working around xend connection close bug * autogen.sh: fixed package name Daniel
* * autogen.sh configure.in: fixed snapshot autogeneration, had toDaniel Veillard2006-02-101-2/+2
| | | | | tweak a few things Daniel
* * Makefile.am README TODO autogen.sh configure.in libvir.pc.inDaniel Veillard2005-12-051-2/+2
| | | | | | | | libvir.spec.in docs/Makefile.am docs/apibuild.py docs/structures.fig include/Makefile.am include/libvir.h src/Makefile.am src/hash.c src/hash.h src/internal.h src/libvir.c src/libvir_sym.version src/virsh.c: renamed to libvir Daniel
* * AUTHORS NEWS README autogen.sh configure.in: allow autogen.sh andDaniel Veillard2005-11-021-0/+64
configure to start working * src/Makefile.am src/internal.h src/libxen.c: make the first compile Daniel