summaryrefslogtreecommitdiffstats
path: root/kmobile/configure.in.in
blob: cf47242d25bd74bb42eb47b8515edfb0f888dcef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DO_NOT_COMPILE="$DO_NOT_COMPILE kmobile"

AC_CHECK_HEADERS(baudboy.h,,,
[
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define inline __inline__
])
AC_CHECK_HEADERS(lockdev.h)
AC_CHECK_LIB(lockdev, dev_lock, [ LIB_LOCKDEV="-llockdev" ])
dnl We don't need liblockdev if we have baudboy working
if [[ -n "$HAVE_BAUDBOY_H" ]]; then
  LIB_LOCKDEV=""
fi
AC_SUBST(LIB_LOCKDEV)