c141be0c5082cc6392e69a9ee86b81d4efac1d9c
[librfid] / configure.in
1 dnl Process this file with autoconf to create configure.
2
3 AC_INIT
4
5 AC_CANONICAL_SYSTEM
6
7 AM_INIT_AUTOMAKE(librfid, 0.0.1)
8
9 AC_PROG_CC
10 AC_EXEEXT
11 AM_PROG_LIBTOOL
12 AC_SUBST(LIBTOOL_DEPS)
13
14 AC_ARG_WITH(ccid,
15         [  --with-ccid          Include internal CCID driver],
16         [MY_CCID=1], [MY_CCID=0])
17
18 # AC_SUBST(MY_CCID)
19 AM_CONDITIONAL(MY_CCID, test "$MY_CCID" == "1")
20
21 #AC_CHECK_HEADERS(usb.h, [have_libusb="yes"], [ AC_MSG_WARN([usb.h not found, use --enable-libusb=PATH. Otherwise, INDI will compile without Apogee USB support.]) ])
22
23 AC_CHECK_LIB(usb, usb_close,,)
24 AM_CONDITIONAL(HAVE_LIBUSB, test "x$have_libusb" = "xyes")
25
26 dnl Output the makefile
27 AC_OUTPUT(Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile)