1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
dnl
dnl $Id$
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT()
AM_INIT_AUTOMAKE(bluez-hcidump, 1.8)
CFLAGS="-Wall -g -O2"
AC_PREFIX_DEFAULT(/usr)
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_ARG_WITH(bluez-libs,
--with-bluez-libs=DIR BlueZ libraries,
BLUEZ_LIBDIR="$withval",
BLUEZ_LIBDIR='../libs/src /usr/lib'
)
AC_ARG_WITH(bluez-includes,
--with-bluez-includes=DIR BlueZ header files,
BLUEZ_INCDIR="$withval",
BLUEZ_INCDIR='../libs/include /usr/include'
)
AC_SEARCH_HEADERS(bluetooth/bluetooth.h, $BLUEZ_INCDIR,,
AC_MSG_ERROR(Bluetooth headers not found.
Please install bluez-libs package.)
)
AC_SEARCH_LIB(bluetooth, hci_open_dev, $BLUEZ_LIBDIR,,
AC_MSG_ERROR(Bluetooth library not found.
Please compile and install bluez-libs package.)
)
AC_OUTPUT(Makefile parser/Makefile)
|