X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=configure.ac;h=168da83bec8045b9decce4a3924384140bf6985a;hp=682fa11675af4002eff7f66bf99517f8e92407fe;hb=8ea322aba3041e67cf32b43101a3299f89c9b0dc;hpb=e79f1431803f68d66fe6086b3ea7a5ab298d67e0 diff --git a/configure.ac b/configure.ac index 682fa11..168da83 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ # major/minor/release must be numbers m4_define([libguestfs_major], [1]) m4_define([libguestfs_minor], [7]) -m4_define([libguestfs_release], [19]) +m4_define([libguestfs_release], [20]) # extra can be any string m4_define([libguestfs_extra], []) @@ -53,16 +53,6 @@ please see the section "LIBGUESTFS VERSION NUMBERS" in guestfs(3). ***]) ]) -dnl Die if the user tries to configure as root, see: -dnl https://www.redhat.com/archives/libguestfs/2010-April/msg00098.html -AC_MSG_CHECKING([if you are trying to configure as root]) -AS_IF([test "`id -u`" = 0 ],[ - AC_MSG_RESULT([yes]) - AC_MSG_FAILURE([Don't run './configure' or 'make' as root.]) - ],[ - AC_MSG_RESULT([no]) - ]) - dnl Early gnulib initialization. gl_EARLY gl_INIT @@ -200,19 +190,15 @@ if test "x$enable_appliance" = "xyes"; then $FEBOOTSTRAP --version >/dev/null 2>&1 || AC_MSG_ERROR([febootstrap >= 3.0 must be installed, your version is too old]) - dnl Build from local package files, used when building with no network - dnl access, ie. under Koji. - AC_MSG_CHECKING([if we should build the appliance from local packages]) - AC_ARG_WITH([local-package-directory], - [AS_HELP_STRING([--with-local-package-directory], - [build from local packages in dir @<:@default=no@:>@])], - [local_package_directory=$withval], - [local_package_directory=no]) - AC_MSG_RESULT([$local_package_directory]) - PACKAGE_DIRECTORY= - test "x$local_package_directory" != "xno" && - PACKAGE_DIRECTORY="$local_package_directory" - AC_SUBST([PACKAGE_DIRECTORY]) + dnl Pass a febootstrap --yum-config option. + AC_MSG_CHECKING([if user requested febootstrap --yum-config option]) + AC_ARG_WITH([febootstrap-yum-config], + [AS_HELP_STRING([--with-febootstrap-yum-config=FILE], + [pass febootstrap --yum-config option @<:@default=no@:>@])], + [FEBOOTSTRAP_YUM_CONFIG="$withval"], + [FEBOOTSTRAP_YUM_CONFIG=no]) + AC_MSG_RESULT([$FEBOOTSTRAP_YUM_CONFIG]) + AC_SUBST([FEBOOTSTRAP_YUM_CONFIG]) dnl Which distro? dnl @@ -385,7 +371,6 @@ AS_IF([test "x$with_readline" != xno], dnl For i18n. AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION([0.17]) dnl libmagic (highly recommended) AC_CHECK_LIB([magic],[magic_file], @@ -506,8 +491,14 @@ AS_IF([test "x$enable_python" != "xno"], AC_CHECK_PROG([PYTHON],[python],[python],[no]) if test "x$PYTHON" != "xno"; then + AC_MSG_CHECKING([Python prefix]) PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` + AC_MSG_RESULT([$PYTHON_PREFIX]) + + AC_MSG_CHECKING([Python version]) PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` + AC_MSG_RESULT([$PYTHON_VERSION]) + for d in \ $PYTHON_PREFIX/include/python$PYTHON_VERSION \ /usr/include/python$PYTHON_VERSION \