mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
configure: Define program name if not found
AC_CHECK_PROG checks for program in given path. However, if it doesn't exists, [variable] is set to [value-if-not-found]. We don't want this to be the empty string in case of 'modprobe' and 'scrub' as we want to fallback to runtime detection.
This commit is contained in:
parent
b90d4722a5
commit
2b38e59bd8
@ -211,11 +211,11 @@ AC_PATH_PROG([UDEVADM], [udevadm], [],
|
|||||||
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
||||||
AC_PATH_PROG([UDEVSETTLE], [udevsettle], [],
|
AC_PATH_PROG([UDEVSETTLE], [udevsettle], [],
|
||||||
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
||||||
AC_PATH_PROG([MODPROBE], [modprobe], [],
|
AC_PATH_PROG([MODPROBE], [modprobe], [modprobe],
|
||||||
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
||||||
AC_PATH_PROG([OVSVSCTL], [ovs-vsctl], [ovs-vsctl],
|
AC_PATH_PROG([OVSVSCTL], [ovs-vsctl], [ovs-vsctl],
|
||||||
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
||||||
AC_PATH_PROG([SCRUB], [scrub], [],
|
AC_PATH_PROG([SCRUB], [scrub], [scrub],
|
||||||
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
[/sbin:/usr/sbin:/usr/local/sbin:$PATH])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"],
|
AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"],
|
||||||
|
@ -40,11 +40,6 @@
|
|||||||
#include "virterror_internal.h"
|
#include "virterror_internal.h"
|
||||||
#include "virfile.h"
|
#include "virfile.h"
|
||||||
|
|
||||||
/* avoid compilation breakage on some systems */
|
|
||||||
#ifndef MODPROBE
|
|
||||||
# define MODPROBE "modprobe"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PCI_SYSFS "/sys/bus/pci/"
|
#define PCI_SYSFS "/sys/bus/pci/"
|
||||||
#define PCI_ID_LEN 10 /* "XXXX XXXX" */
|
#define PCI_ID_LEN 10 /* "XXXX XXXX" */
|
||||||
#define PCI_ADDR_LEN 13 /* "XXXX:XX:XX.X" */
|
#define PCI_ADDR_LEN 13 /* "XXXX:XX:XX.X" */
|
||||||
|
Loading…
Reference in New Issue
Block a user