mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-06 13:17:45 +03:00
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
|
|
AC_INIT(virt-viewer, 0.0.3)
|
|
AC_CONFIG_SRCDIR(src/main.c)
|
|
AM_CONFIG_HEADER(config.h)
|
|
dnl Make automake keep quiet about wildcards & other GNUmake-isms
|
|
AM_INIT_AUTOMAKE([-Wno-portability])
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_PROG_CC
|
|
AM_PROG_CC_C_O
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions])
|
|
|
|
VIRT_VIEWER_COMPILE_WARNINGS(maximum)
|
|
|
|
PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.0)
|
|
PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.2.0)
|
|
PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.10.0)
|
|
PKG_CHECK_MODULES(GTKVNC, gtk-vnc-1.0 >= 0.0.1)
|
|
|
|
dnl --enable-plugin to enable the browser plugin.
|
|
NSPR_REQUIRED=4.0.0
|
|
FIREFOX_PLUGIN_REQUIRED=1.5.0
|
|
MOZILLA_PLUGIN_REQUIRED=1.8
|
|
AC_ARG_ENABLE(plugin,
|
|
[ --enable-plugin=[no/yes] enable browser plugin [default=no]],,
|
|
enable_plugin=no)
|
|
if test "x$enable_plugin" = "xyes"; then
|
|
dnl Check for Netscape Portable Runtime development package.
|
|
PKG_CHECK_MODULES(NSPR, nspr >= $NSPR_REQUIRED)
|
|
dnl Check for Firefox plugin package (also includes NSPR cflags/libs).
|
|
PKG_CHECK_MODULES(FIREFOX_PLUGIN,
|
|
firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED, ,[
|
|
PKG_CHECK_MODULES(MOZILLA_PLUGIN,
|
|
mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED)
|
|
FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
|
|
FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
|
|
])
|
|
AC_SUBST(FIREFOX_PLUGIN_CFLAGS)
|
|
AC_SUBST(FIREFOX_PLUGIN_LIBS)
|
|
fi
|
|
AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"])
|
|
|
|
AC_OUTPUT(Makefile
|
|
src/Makefile
|
|
man/Makefile
|
|
plugin/Makefile
|
|
virt-viewer.spec)
|