aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-06-03 11:31:35 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-06 08:33:51 +0200
commit83ef16821a41e540cec7a282374dcbfc1b2b0851 (patch)
treea4a23857c72f372d1aaf2f503c5eeb405573f25d /configure
parent587d59d6ccd0e73bfe5689d9232804339aa09bdf (diff)
configure, meson: convert libdaxctl detection to meson
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 4 insertions, 24 deletions
diff --git a/configure b/configure
index 895192e0de..5b18f4fac3 100755
--- a/configure
+++ b/configure
@@ -433,7 +433,7 @@ plugins="no"
fuzzing="no"
rng_none="no"
secret_keyring="$default_feature"
-libdaxctl="$default_feature"
+libdaxctl="auto"
meson=""
ninja=""
skip_meson=no
@@ -1534,9 +1534,9 @@ for opt do
;;
--disable-keyring) secret_keyring="no"
;;
- --enable-libdaxctl) libdaxctl=yes
+ --enable-libdaxctl) libdaxctl=disabled
;;
- --disable-libdaxctl) libdaxctl=no
+ --disable-libdaxctl) libdaxctl=enabled
;;
--enable-fuse) fuse="enabled"
;;
@@ -4950,22 +4950,6 @@ if test "$libpmem" != "no"; then
fi
##########################################
-# check for libdaxctl
-
-if test "$libdaxctl" != "no"; then
- if $pkg_config --atleast-version=57 "libdaxctl"; then
- libdaxctl="yes"
- libdaxctl_libs=$($pkg_config --libs libdaxctl)
- libdaxctl_cflags=$($pkg_config --cflags libdaxctl)
- else
- if test "$libdaxctl" = "yes" ; then
- feature_not_found "libdaxctl" "Install libdaxctl"
- fi
- libdaxctl="no"
- fi
-fi
-
-##########################################
# check for slirp
case "$slirp" in
@@ -5738,11 +5722,6 @@ if test "$libpmem" = "yes" ; then
echo "LIBPMEM_CFLAGS=$libpmem_cflags" >> $config_host_mak
fi
-if test "$libdaxctl" = "yes" ; then
- echo "CONFIG_LIBDAXCTL=y" >> $config_host_mak
- echo "LIBDAXCTL_LIBS=$libdaxctl_libs" >> $config_host_mak
-fi
-
if test "$bochs" = "yes" ; then
echo "CONFIG_BOCHS=y" >> $config_host_mak
fi
@@ -6108,6 +6087,7 @@ if test "$skip_meson" = no; then
-Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
-Dlibnfs=$libnfs -Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev\
-Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse \
+ -Dlibdaxctl=$libdaxctl \
-Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
-Dattr=$attr -Ddefault_devices=$default_devices -Dvirglrenderer=$virglrenderer \