summaryrefslogtreecommitdiff
path: root/configure.in
blob: c141be0c5082cc6392e69a9ee86b81d4efac1d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dnl Process this file with autoconf to create configure.

AC_INIT

AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE(librfid, 0.0.1)

AC_PROG_CC
AC_EXEEXT
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

AC_ARG_WITH(ccid,
	[  --with-ccid		Include internal CCID driver],
	[MY_CCID=1], [MY_CCID=0])

# AC_SUBST(MY_CCID)
AM_CONDITIONAL(MY_CCID, test "$MY_CCID" == "1")

#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.]) ])

AC_CHECK_LIB(usb, usb_close,,)
AM_CONDITIONAL(HAVE_LIBUSB, test "x$have_libusb" = "xyes")

dnl Output the makefile
AC_OUTPUT(Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile)
personal git repositories of Harald Welte. Your mileage may vary