Compare with Previous | Blame | View Log
AC_PREREQ(2.61)AC_INIT(blueman, 1.22)AC_CONFIG_HEADERS(config.h)AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)AM_MAINTAINER_MODEAC_PROG_CCAC_PROG_LIBTOOLPKG_PROG_PKG_CONFIGGETTEXT_PACKAGE="blueman"AC_SUBST(GETTEXT_PACKAGE)AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package])AM_GLIB_GNU_GETTEXTIT_PROG_INTLTOOL([0.35.0])AM_PATH_PYTHON(2.5)AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(Could not find Python headers)])AC_ARG_VAR([PYREXC], [Pyrex compiler])if test "x$PYREXC" = "x"; thenAC_PATH_PROG([PYREXC],[pyrexc])fiAC_SUBST([PYREXC])AC_MSG_CHECKING([for pyrexc executable])AC_MSG_RESULT([${PYREXC}])if test "x$PYREXC" = "x"; thenAC_MSG_ERROR([Fatal: pyrexc not found.Get Pyrex from* your system's packages (recommended)* upstream at http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/])fiif test "$sysconfdir" = "\${prefix}/etc" \&& { test "$prefix" = "NONE" || test "$prefix" = "/usr" \|| test "$prefix" = "/usr/" ; } ; thenif test "$( (uname -s) )" = "Linux" ; thensysconfdir=/etcfi(prefix=$ac_default_prefixsysconfdir=`eval echo "$sysconfdir"`AC_MSG_NOTICE([configuration directory is "$sysconfdir".])AC_MSG_NOTICE([use --sysconfdir to override.]))fidnl ----------------------------------dnl - Various paths and other definesdnl ----------------------------------AC_SUBST(VERSION)AC_SUBST(PACKAGE)AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)AC_SUBST(SYSCONFDIR)AS_AC_EXPAND(BINDIR, $bindir)AC_SUBST(BINDIR)AS_AC_EXPAND(DATADIR, $datarootdir)AC_SUBST(DATADIR)AS_AC_EXPAND(PYTHONDIR, $pythondir)AC_SUBST(PYTHONDIR)AS_AC_EXPAND(PKGLIBDIR, $libdir/blueman)AC_SUBST(PKGLIBDIR)AS_AC_EXPAND(LIBEXECDIR, $libexecdir)AC_SUBST(LIBEXECDIR)dnl AS_AC_EXPAND([PREFIX], $prefix)AC_SUBST(prefix)pkgdatadir="${DATADIR}/${PACKAGE}"AC_SUBST(pkgdatadir)AS_AC_EXPAND(LOCALEDIR, $datarootdir/locale)AC_SUBST(LOCALEDIR)dnl ---------------------------------dnl dhcp config file locationdnl ---------------------------------dhconfig='/etc/dhcp3/dhcpd.conf'AC_ARG_WITH(dhcp_config,[ --with-dhcp-config=PATH set dhcp3 server configuration path],dhconfig="$with_dhcp_config")AC_SUBST(dhconfig)dnl ---------------------------------deps_check=1AC_ARG_WITH(no_runtime_deps_check,[ --with-no-runtime-deps-check disable runtime dependency check (for package maintainers)],deps_check=0)polkit_val="yes"AC_ARG_ENABLE(polkit,[ --enable-polkit=[yes/no] Enable policykit support],,enable_polkit=yes)if test "x$enable_polkit" = "xyes"; thenpolkit_val="yes"elsepolkit_val="no"fiAC_SUBST(polkit_val)hal_en="no"AC_ARG_ENABLE(hal,[ --enable-hal=[yes/no] Enable/disable Hal support],,enable_hal=no)if test "x$enable_hal" = "xyes"; thenhal_en="yes"elsehal_en="no"fiAC_SUBST(hal_en)AM_CONDITIONAL(ENABLE_HAL, test "x$hal_en" = "xyes")dnl ----------------------------if test $deps_check = 1; thenPKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.12.0)PKG_CHECK_MODULES(PYNOTIFY, notify-python)AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])AM_CHECK_PYMOD(gobject,,,[AC_MSG_ERROR(Could not find Python module gobject)])fiPKG_CHECK_MODULES(BLUEZ,bluez >= 4.21libstartup-notification-1.0 >= 0.9gdk-2.0 >= 2.12pygobject-2.0 >= 2.12gobject-2.0 >= 2.12glib-2.0 >= 2.16gthread-2.0 >= 2.16)AC_SUBST(BLUEZ_CFLAGS)AC_SUBST(BLUEZ_LIBS)AC_OUTPUT([Makefileapps/Makefileblueman/Makefileblueman/Constants.pyblueman/bluez/Makefileblueman/gui/Makefileblueman/gui/applet/Makefileblueman/gui/manager/Makefileblueman/plugins/Makefileblueman/plugins/services/Makefileblueman/plugins/applet/Makefileblueman/plugins/config/Makefileblueman/main/Makefileblueman/main/applet/Makefileblueman/ods/Makefiledata/Makefiledata/configs/Makefiledata/icons/Makefiledata/icons/hicolor/Makefiledata/icons/hicolor/16x16/Makefiledata/icons/hicolor/16x16/actions/Makefiledata/icons/hicolor/16x16/devices/Makefiledata/icons/hicolor/16x16/status/Makefiledata/icons/hicolor/32x32/Makefiledata/icons/hicolor/32x32/actions/Makefiledata/icons/hicolor/48x48/Makefiledata/icons/hicolor/48x48/actions/Makefiledata/icons/hicolor/48x48/devices/Makefiledata/icons/hicolor/48x48/status/Makefiledata/icons/hicolor/scalable/Makefiledata/icons/hicolor/scalable/devices/Makefiledata/icons/hicolor/scalable/actions/Makefiledata/icons/hicolor/scalable/status/Makefiledata/icons/main_icon/Makefiledata/ui/Makefiledata/man/Makefiledata/configs/blueman-applet.servicedata/configs/org.blueman.Mechanism.servicemodule/Makefilepo/Makefile.in])echoecho $PACKAGE $VERSIONechoecho Prefix : $prefixecho sysconfig dir : $sysconfdirecho "HAL support enabled (deprecated): $hal_en"echo Policykit-1 Enabled: $polkit_valecho Dhcpd 3 configuration file: $dhconfigecho