mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 02:41:52 +00:00
spice: configure.ac.shared: add option to use spice-common package (subdir config)
Run ./configure --with-spice-common to use spice-common sources from spice-common package, instead of source in spice/common/ directory. This is usefull when building the spice client or spice server out of a "distribution" tarball, when ../common directory does not exist.
This commit is contained in:
parent
c8c1837809
commit
766bd244dc
@ -165,6 +165,21 @@ AC_ARG_ENABLE(static-linkage,
|
||||
AC_SUBST([SPICEC_STATIC_LINKAGE_BSTATIC])
|
||||
AC_SUBST([SPICEC_STATIC_LINKAGE_BDYNAMIC])
|
||||
|
||||
#
|
||||
# Upon user request (./configure --with-spice-common) to use spice-common package
|
||||
# Then check for spice-common package, and overwrite SPICE_COMMON_SRCDIR
|
||||
# (with a directory specified in spice-common.pc).
|
||||
#
|
||||
AC_ARG_WITH(spice-common,
|
||||
[AS_HELP_STRING([--with-spice-common],
|
||||
[use sources found by spice-common.pc (default is no)])],
|
||||
[use_spice_common=$withval],
|
||||
[use_spice_common=no])
|
||||
|
||||
if test "x$use_spice_common" != "xno"; then
|
||||
PKG_CHECK_MODULES(SPICE_COMMON, spice-common = 0.4.1)
|
||||
SPICE_COMMON_SRCDIR=$(pkg-config --variable=common_src_dir spice-common)
|
||||
fi
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl check compiler flags
|
||||
|
||||
Loading…
Reference in New Issue
Block a user