1AC_PREREQ(2.60) 2AC_INIT(bluez, 4.93) 3 4AM_INIT_AUTOMAKE([foreign subdir-objects]) 5AM_CONFIG_HEADER(config.h) 6 7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 8 9AM_MAINTAINER_MODE 10 11PKG_PROG_PKG_CONFIG 12 13AC_INIT_BLUEZ 14 15COMPILER_FLAGS 16 17AC_LANG_C 18 19AC_PROG_CC 20AM_PROG_CC_C_O 21AC_PROG_CC_PIE 22AC_PROG_INSTALL 23AC_PROG_YACC 24AM_PROG_LEX 25AM_PROG_MKDIR_P 26 27m4_define([_LT_AC_TAGCONFIG], []) 28m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])]) 29 30AC_DISABLE_STATIC 31AC_PROG_LIBTOOL 32 33AC_FUNC_PPOLL 34 35AC_CHECK_LIB(dl, dlopen, dummy=yes, 36 AC_MSG_ERROR(dynamic linking loader is required)) 37 38AC_PATH_DBUS 39AC_PATH_GLIB 40AC_PATH_ALSA 41AC_PATH_GSTREAMER 42AC_PATH_USB 43AC_PATH_UDEV 44AC_PATH_SNDFILE 45AC_PATH_OUI 46AC_PATH_READLINE 47 48AC_ARG_BLUEZ 49 50AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng], 51 [enable capabilities support]), [enable_capng=${enableval}]) 52if (test "${enable_capng}" = "yes"); then 53 PKG_CHECK_MODULES(CAPNG, libcap-ng, dummy=yes, 54 AC_MSG_ERROR(Capabilities library is required)) 55 AC_SUBST(CAPNG_CFLAGS) 56 AC_SUBST(CAPNG_LIBS) 57 AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.]) 58fi 59 60AC_OUTPUT(Makefile scripts/bluetooth.rules doc/version.xml 61 src/bluetoothd.8 bluez.pc) 62