summaryrefslogtreecommitdiffstats
path: root/kandy/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'kandy/configure.in.in')
-rw-r--r--kandy/configure.in.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/kandy/configure.in.in b/kandy/configure.in.in
new file mode 100644
index 000000000..c21c2e307
--- /dev/null
+++ b/kandy/configure.in.in
@@ -0,0 +1,12 @@
+# check for lockdev, optionally used to lock serial device
+AH_TEMPLATE(HAVE_LOCKDEV)
+AC_CHECK_HEADERS(lockdev.h, HAVE_LOCKDEV_H=1, HAVE_LOCKDEV_H=)
+AC_SUBST(HAVE_LOCKDEV_H)
+# we check for dev_unlock since kmobile checks dev_lock, caches it
+# and the variables are fucked up then... *sigh*
+if test -n "$HAVE_LOCKDEV_H"; then
+ AC_CHECK_LIB(lockdev, dev_unlock,
+ [KANDY_LIBLOCKDEV="-llockdev $KANDY_LIBLOCKDEV"
+AC_DEFINE(HAVE_LOCKDEV)], , $KANDY_LIBLOCKDEV)
+fi
+AC_SUBST(KANDY_LIBLOCKDEV)