configure.ac 2.58 KB
Newer Older
1
AC_INIT(libvirt-sandbox, 0.0.2)
2
AC_CONFIG_SRCDIR(libvirt-sandbox/libvirt-sandbox.h)
3 4 5
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
6 7
dnl Make automake keep quiet about wildcards & other GNUmake-isms
AM_INIT_AUTOMAKE([-Wno-portability])
8
AM_MAINTAINER_MODE([enable])
9 10 11 12
AC_CANONICAL_HOST

AM_SILENT_RULES([yes])

13
GIO_UNIX_REQUIRED=2.28.0
14
GOBJECT_REQUIRED=2.28.0
15
LIBVIRT_GLIB_REQUIRED=0.0.4
16
LIBVIRT_GOBJECT_REQUIRED=0.0.7
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
GOBJECT_INTROSPECTION_REQUIRED=0.10.8

LIBVIRT_SANDBOX_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
LIBVIRT_SANDBOX_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
LIBVIRT_SANDBOX_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'`
LIBVIRT_SANDBOX_VERSION=$LIBVIRT_SANDBOX_MAJOR_VERSION.$LIBVIRT_SANDBOX_MINOR_VERSION.$LIBVIRT_SANDBOX_MICRO_VERSION$LIBVIRT_SANDBOX_MICRO_VERSION_SUFFIX
LIBVIRT_SANDBOX_VERSION_INFO=`expr $LIBVIRT_SANDBOX_MAJOR_VERSION + $LIBVIRT_SANDBOX_MINOR_VERSION`:$LIBVIRT_SANDBOX_MICRO_VERSION:$LIBVIRT_SANDBOX_MINOR_VERSION
LIBVIRT_SANDBOX_VERSION_NUMBER=`expr $LIBVIRT_SANDBOX_MAJOR_VERSION \* 1000000 + $LIBVIRT_SANDBOX_MINOR_VERSION \* 1000 + $LIBVIRT_SANDBOX_MICRO_VERSION`

AC_SUBST([LIBVIRT_SANDBOX_MAJOR_VERSION])
AC_SUBST([LIBVIRT_SANDBOX_MINOR_VERSION])
AC_SUBST([LIBVIRT_SANDBOX_MICRO_VERSION])
AC_SUBST([LIBVIRT_SANDBOX_VERSION])
AC_SUBST([LIBVIRT_SANDBOX_VERSION_INFO])
AC_SUBST([LIBVIRT_SANDBOX_VERSION_NUMBER])

AC_PROG_CC
AM_PROG_CC_C_O

AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL

AC_CONFIG_LIBOBJ_DIR([libvirt-sandbox])

41
LIBVIRT_SANDBOX_COMPILE_WARNINGS
42

43
PKG_CHECK_MODULES(GIO_UNIX, gio-unix-2.0 >= $GIO_UNIX_REQUIRED)
44
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED)
45
PKG_CHECK_MODULES(LIBVIRT_GLIB, libvirt-glib-1.0 >= $LIBVIRT_GOBJECT_REQUIRED)
46 47
PKG_CHECK_MODULES(LIBVIRT_GOBJECT, libvirt-gobject-1.0 >= $LIBVIRT_GOBJECT_REQUIRED)

48 49 50 51 52 53
LIBVIRT_SANDBOX_CAPNG
LIBVIRT_SANDBOX_GETTEXT
LIBVIRT_SANDBOX_GTK_MISC
LIBVIRT_SANDBOX_WIN32
LIBVIRT_SANDBOX_COVERAGE
LIBVIRT_SANDBOX_INTROSPECTION
54
LIBVIRT_SANDBOX_RPCGEN
55 56 57 58


AC_OUTPUT(Makefile
          libvirt-sandbox/Makefile
59
          libvirt-sandbox/tests/Makefile
60 61
          bin/Makefile
          examples/Makefile
62 63
          docs/Makefile
          docs/libvirt-sandbox/Makefile
64 65 66 67 68 69 70 71 72 73
          libvirt-sandbox.spec
          libvirt-sandbox-1.0.pc)

AC_MSG_NOTICE([])
AC_MSG_NOTICE([Configuration summary])
AC_MSG_NOTICE([=====================])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([ Libraries:])
AC_MSG_NOTICE([])
74
AC_MSG_NOTICE([         GOBJECT: $GOBJECT_CFLAGS $GOBJECT_LIBS])
75 76
AC_MSG_NOTICE([ LIBVIRT_GOBJECT: $LIBVIRT_GOBJECT_CFLAGS $LIBVIRT_GOBJECT_LIBS])
AC_MSG_NOTICE([])