mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Remove really outdated M4 file
This commit is contained in:
parent
f5f61c23d7
commit
f57c2d54ff
@ -3,8 +3,6 @@ SUBDIRS = include lib sbc gdbus common \
|
||||
plugins network serial input audio src \
|
||||
client tools rfcomm compat cups test scripts doc
|
||||
|
||||
EXTRA_DIST = bluez.m4
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
pkgconfig_DATA = bluez.pc
|
||||
|
40
bluez.m4
40
bluez.m4
@ -1,40 +0,0 @@
|
||||
AC_DEFUN([AM_PATH_BLUEZ], [
|
||||
if (test "${prefix}" = "NONE"); then
|
||||
bluez_prefix=${ac_default_prefix}
|
||||
else
|
||||
bluez_prefix=${prefix}
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(bluez, AC_HELP_STRING([--with-bluez=DIR], [BlueZ library is installed in DIR]), [
|
||||
if (test "${withval}" != "yes"); then
|
||||
bluez_prefix=${withval}
|
||||
fi
|
||||
])
|
||||
|
||||
ac_save_CPPFLAGS=$CPPFLAGS
|
||||
ac_save_LDFLAGS=$LDFLAGS
|
||||
|
||||
BLUEZ_CFLAGS=""
|
||||
test -d "${bluez_prefix}/include" && BLUEZ_CFLAGS="$BLUEZ_CFLAGS -I${bluez_prefix}/include"
|
||||
|
||||
CPPFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
|
||||
AC_CHECK_HEADER(bluetooth/bluetooth.h,, AC_MSG_ERROR(Bluetooth header files not found))
|
||||
|
||||
BLUEZ_LIBS=""
|
||||
if (test "${ac_default_prefix}" = "${bluez_prefix}"); then
|
||||
test -d "${libdir}" && BLUEZ_LIBS="$BLUEZ_LIBS -L${libdir}"
|
||||
else
|
||||
test -d "${bluez_prefix}/lib64" && BLUEZ_LIBS="$BLUEZ_LIBS -L${bluez_prefix}/lib64"
|
||||
test -d "${bluez_prefix}/lib" && BLUEZ_LIBS="$BLUEZ_LIBS -L${bluez_prefix}/lib"
|
||||
fi
|
||||
|
||||
LDFLAGS="$LDFLAGS $BLUEZ_LIBS"
|
||||
AC_CHECK_LIB(bluetooth, hci_open_dev, BLUEZ_LIBS="$BLUEZ_LIBS -lbluetooth", AC_MSG_ERROR(Bluetooth library not found))
|
||||
AC_CHECK_LIB(bluetooth, sdp_connect,, AC_CHECK_LIB(sdp, sdp_connect, BLUEZ_LIBS="$BLUEZ_LIBS -lsdp"))
|
||||
|
||||
CPPFLAGS=$ac_save_CPPFLAGS
|
||||
LDFLAGS=$ac_save_LDFLAGS
|
||||
|
||||
AC_SUBST(BLUEZ_CFLAGS)
|
||||
AC_SUBST(BLUEZ_LIBS)
|
||||
])
|
Loading…
Reference in New Issue
Block a user