mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Add ./configure --with-extra-packages="..." option.
This adds extra packages to the appliance. It's useful for adding debugging packages.
This commit is contained in:
@@ -49,9 +49,9 @@ superminfs_DATA += \
|
||||
supermin.d/hostfiles
|
||||
endif
|
||||
|
||||
# This used to be a configure-generated file (as is update.sh still).
|
||||
# However config.status always touches the destination file, which
|
||||
# means the appliance got rebuilt too often.
|
||||
# This used to be a configure-generated file. However config.status
|
||||
# always touches the destination file, which means the appliance got
|
||||
# rebuilt too often.
|
||||
make.sh: make.sh.in $(top_builddir)/config.log $(top_builddir)/config.status
|
||||
cd $(top_builddir) && \
|
||||
./config.status --file=appliance/$@-t:appliance/$<
|
||||
@@ -59,7 +59,7 @@ make.sh: make.sh.in $(top_builddir)/config.log $(top_builddir)/config.status
|
||||
cmp -s $@ $@-t || mv $@-t $@
|
||||
rm -f $@-t
|
||||
|
||||
PACKAGELIST_CPP_FLAGS = -D$(DISTRO)=1
|
||||
PACKAGELIST_CPP_FLAGS = -D$(DISTRO)=1 -DEXTRA_PACKAGES="$(EXTRA_PACKAGES)"
|
||||
if VALGRIND_DAEMON
|
||||
PACKAGELIST_CPP_FLAGS += -DVALGRIND_DAEMON=1
|
||||
endif
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
*
|
||||
* There is also a list of packages which are excluded if they appear
|
||||
* as dependencies of the packages below. See: excludelist.in
|
||||
*
|
||||
* To add arbitrary extra packages, use:
|
||||
*
|
||||
* ./configure --with-extra-packages="gdb valgrind [etc]"
|
||||
*/
|
||||
|
||||
/* Basically the same with a few minor tweaks. */
|
||||
@@ -160,7 +164,5 @@ zerofree
|
||||
valgrind
|
||||
#endif
|
||||
|
||||
/* Enable this to add useful debugging tools to the appliance. */
|
||||
#if 0
|
||||
gdb
|
||||
#endif
|
||||
/* Define this by doing: ./configure --with-extra-packages="..." */
|
||||
EXTRA_PACKAGES
|
||||
|
||||
@@ -489,6 +489,14 @@ fi
|
||||
AC_MSG_RESULT([$DISTRO])
|
||||
AC_SUBST([DISTRO])
|
||||
|
||||
dnl Add extra packages to the appliance.
|
||||
AC_ARG_WITH([extra-packages],
|
||||
[AS_HELP_STRING([--with-extra-packages],
|
||||
[add extra packages to the appliance])],
|
||||
[EXTRA_PACKAGES="$withval"],
|
||||
[EXTRA_PACKAGES=])
|
||||
AC_SUBST([EXTRA_PACKAGES])
|
||||
|
||||
dnl Check for rpcgen and XDR library. rpcgen is optional.
|
||||
AC_CHECK_PROG([RPCGEN],[rpcgen],[rpcgen],[no])
|
||||
AM_CONDITIONAL([HAVE_RPCGEN],[test "x$RPCGEN" != "xno"])
|
||||
|
||||
Reference in New Issue
Block a user