mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 11:28:31 +00:00
Each subdir (common, client and server) can "make dist". This commit adds configure.ac.shared and autogen.sh to the tar file. Above files are copied from .. (spice/ directory) Also added configure.ac.shared (which is not part of "distribution" tarball) that only imports ../configure.ac.shared such that ./autogen.sh still works (on "git directories"). Signed-off-by: Uri Lublin <uril@redhat.com>
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
AC_PREREQ([2.57])
|
|
|
|
m4_define([SPICE_MAJOR], 0)
|
|
m4_define([SPICE_MINOR], 4)
|
|
m4_define([SPICE_MICRO], 1)
|
|
|
|
AC_INIT(spice-server, [SPICE_MAJOR.SPICE_MINOR.SPICE_MICRO], [], spice-server)
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
# Define default SPICE_COMMON_SRCDIR
|
|
# Maybe overwritten by ../configure.ac.shared
|
|
SPICE_COMMON_SRCDIR='$(top_srcdir)'/../common
|
|
|
|
m4_include(configure.ac.shared)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
SPICE_LT_VERSION=m4_format("%d:%d:%d", SPICE_MAJOR, SPICE_MINOR, SPICE_MICRO)
|
|
AC_SUBST(SPICE_LT_VERSION)
|
|
|
|
# Support only x86_64 arch
|
|
echo " ************** host cpu is $host_cpu "
|
|
if test $host_cpu != x86_64; then
|
|
echo "Only x86_64 arch is supported"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
AC_SUBST(SPICE_COMMON_SRCDIR)
|
|
AC_SUBST(SPICE_REQUIRES)
|
|
AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS)
|
|
AC_SUBST(SPICE_NONPKGCONFIG_LIBS)
|
|
|
|
AC_CONFIG_FILES([Makefile spice.pc])
|
|
AC_OUTPUT
|
|
|
|
dnl ==========================================================================
|
|
echo "
|
|
|
|
Spice Server $VERSION
|
|
==============
|
|
|
|
prefix: ${prefix}
|
|
c compiler: ${CC}
|
|
c++ compiler: ${CXX}
|
|
|
|
Now type 'make' to build $PACKAGE
|
|
"
|