]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Build with --without-capng if capng is disabled
authorMark McLoughlin <markmc@redhat.com>
Tue, 28 Jul 2009 16:35:32 +0000 (17:35 +0100)
committerMark McLoughlin <markmc@redhat.com>
Tue, 28 Jul 2009 18:29:59 +0000 (19:29 +0100)
* libvirt.spec: pass --without-capng if appropriate

libvirt.spec.in

index 8f118f7722786700071cd8738ff20460c8bc3f90..2cc1639383b357e7b654945430e85aba9762a5e9 100644 (file)
@@ -318,6 +318,10 @@ of recent versions of Linux (and other OSes).
 %define _without_numactl --without-numactl
 %endif
 
+%if ! %{with_capng}
+%define _without_capng --without-capng
+%endif
+
 %configure %{?_without_xen} \
            %{?_without_qemu} \
            %{?_without_openvz} \
@@ -337,6 +341,7 @@ of recent versions of Linux (and other OSes).
            %{?_without_storage_iscsi} \
            %{?_without_storage_disk} \
            %{?_without_numactl} \
+           %{?_without_capng} \
            --with-qemu-user=%{qemu_user} \
            --with-qemu-group=%{qemu_group} \
            --with-init-script=redhat \