2008-12-22 05:26:32 +08:00
|
|
|
AC_PREREQ(2.60)
|
2012-10-07 00:31:07 +08:00
|
|
|
AC_INIT(bluez, 5.x)
|
2002-12-25 09:05:59 +08:00
|
|
|
|
2011-10-19 06:48:36 +08:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
|
2004-04-03 13:13:53 +08:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2012-12-05 19:22:49 +08:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2009-07-01 09:39:45 +08:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2004-04-02 07:28:53 +08:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2009-07-07 16:28:07 +08:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2004-08-13 00:00:35 +08:00
|
|
|
AC_INIT_BLUEZ
|
2002-03-23 03:45:46 +08:00
|
|
|
|
2008-12-23 13:04:54 +08:00
|
|
|
COMPILER_FLAGS
|
|
|
|
|
2004-04-02 07:28:53 +08:00
|
|
|
AC_LANG_C
|
|
|
|
|
2002-03-09 05:10:06 +08:00
|
|
|
AC_PROG_CC
|
2009-08-23 15:40:59 +08:00
|
|
|
AM_PROG_CC_C_O
|
2008-06-16 08:49:28 +08:00
|
|
|
AC_PROG_CC_PIE
|
2002-03-09 05:10:06 +08:00
|
|
|
AC_PROG_INSTALL
|
2012-10-04 14:37:09 +08:00
|
|
|
AC_PROG_MKDIR_P
|
2003-03-31 18:05:12 +08:00
|
|
|
|
2004-07-07 23:56:21 +08:00
|
|
|
m4_define([_LT_AC_TAGCONFIG], [])
|
2004-04-02 07:28:53 +08:00
|
|
|
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
|
2004-03-03 11:56:18 +08:00
|
|
|
|
2005-02-10 08:21:01 +08:00
|
|
|
AC_DISABLE_STATIC
|
2004-03-03 11:56:18 +08:00
|
|
|
AC_PROG_LIBTOOL
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2008-10-19 01:03:30 +08:00
|
|
|
AC_CHECK_LIB(dl, dlopen, dummy=yes,
|
|
|
|
AC_MSG_ERROR(dynamic linking loader is required))
|
|
|
|
|
2011-06-28 17:21:24 +08:00
|
|
|
AC_CHECK_HEADER([sys/inotify.h],
|
|
|
|
[AC_DEFINE([HAVE_SYS_INOTIFY_H], 1,
|
|
|
|
[Define to 1 if you have <sys/inotify.h>.])],
|
|
|
|
[AC_MSG_ERROR(inotify headers are required and missing)])
|
2008-08-06 03:52:39 +08:00
|
|
|
AC_PATH_DBUS
|
2006-08-21 08:55:17 +08:00
|
|
|
AC_PATH_GLIB
|
2004-07-16 02:29:31 +08:00
|
|
|
AC_PATH_USB
|
2011-04-28 17:08:47 +08:00
|
|
|
AC_PATH_UDEV
|
2010-09-06 22:43:48 +08:00
|
|
|
AC_PATH_OUI
|
2011-02-16 01:09:43 +08:00
|
|
|
AC_PATH_READLINE
|
2004-08-13 00:03:09 +08:00
|
|
|
|
2004-08-13 00:00:35 +08:00
|
|
|
AC_ARG_BLUEZ
|
|
|
|
|
2011-07-02 11:35:12 +08:00
|
|
|
AC_ARG_WITH([systemdunitdir], AC_HELP_STRING([--with-systemdunitdir=DIR],
|
|
|
|
[path to systemd system service directory]), [path_systemdunit=${withval}],
|
|
|
|
[path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
|
|
|
|
if (test -n "${path_systemdunit}"); then
|
|
|
|
SYSTEMD_UNITDIR="${path_systemdunit}"
|
|
|
|
AC_SUBST(SYSTEMD_UNITDIR)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
|
|
|
|
|
2012-05-04 06:21:53 +08:00
|
|
|
AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc)
|