]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: disable dtrace on non-Linux builds
authorEric Blake <eblake@redhat.com>
Fri, 16 Dec 2011 15:35:17 +0000 (08:35 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 16 Dec 2011 15:46:41 +0000 (08:46 -0700)
Using dtrace (and systemtap in general) is Linux-specific.
Running ./autobuild.sh shows that attempting a cross-build to
target mingw was mistakenly trying to build dtrace code, merely
because it was present on the compilation host.

* configure.ac (with_dtrace): Don't attempt to use dtrace when
doing a cross-build hosted on Linux but targetting elsewhere.
Reported by Daniel P. Berrange.

configure.ac

index 01a2baeeb8ff2e3f2f4493ecc540247906f13782..46a91290675e2a1b5b08c1fb0cff4e9c8916ef5d 100644 (file)
@@ -269,9 +269,10 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then
 fi
 
 dnl Make some notes about which OS we're compiling for, as the lxc and qemu
-dnl drivers require linux headers, while storage_mpath and nwfilter are also
-dnl linux specific.  The "network" and storage_fs drivers are known to not
-dnl work on MacOS X presently, so we also make a note if compiling for that
+dnl drivers require linux headers, and storage_mpath, dtrace, and nwfilter
+dnl are also linux specific.  The "network" and storage_fs drivers are known
+dnl to not work on MacOS X presently, so we also make a note if compiling
+dnl for that
 
 with_linux=no with_osx=no
 case $host in
@@ -288,6 +289,7 @@ if test $with_linux = no; then
     then
         with_qemu=no
     fi
+    with_dtrace=no
 fi
 
 AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"])