1 dnl Process this file with autoconf to create configure.
7 AM_INIT_AUTOMAKE(librfid, 0.0.1)
12 AC_SUBST(LIBTOOL_DEPS)
15 [ --enable-ccid Include internal CCID driver for CM5121],
16 [MY_CCID=1], [MY_CCID=0])
18 AM_CONDITIONAL(ENABLE_CCID, test "$MY_CCID" == "1")
21 [ --with-openct Use (patched) OpenCT for CM5121 CCID access],
22 [OPENCT_PATH="$withval"], [OPENCT_PATH=""])
24 AM_CONDITIONAL(ENABLE_OPENCT, test "$OPENCT_PATH" != "")
27 [ --with-firmware=PATH Compile for running inside firmware],
28 [FIRMWARE_PATH="$withval"], [FIRMWARE_PATH=""])
29 AC_SUBST(FIRMWARE_PATH)
32 [ --enable-static Don't use dynamic allocations at all],
33 [ENABLE_STATIC=1], [ENABLE_STATIC=0])
34 AM_CONDITIONAL(ENABLE_STATIC, test "$ENABLE_STATIC" == "1")
36 AC_ARG_ENABLE(firmware,
37 [ --enable-firmware Don't use dynamic allocations at all],
38 [ENABLE_FIRMWARE=1], [ENABLE_FIRMWARE=0])
39 AM_CONDITIONAL(ENABLE_FIRMWARE, test "$ENABLE_FIRMWARE" == "1")
41 AC_ARG_ENABLE(reader-cm5x21,
42 [ --enable-reader-cm5x21 Support for Omnikey Cardman 5121/5321],
43 [ENABLE_CM5121=1], [ENABLE_CM5121=0])
44 AM_CONDITIONAL(ENABLE_CM5121, test "$ENABLE_CM5121" == "1")
48 #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.]) ])
50 AC_CHECK_LIB(usb, usb_close,,)
51 AM_CONDITIONAL(HAVE_LIBUSB, test "x$have_libusb" = "xyes")
53 dnl Output the makefile
54 AC_OUTPUT(Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile)