Add manpages for all executables (Uwe Hermann)
[librfid] / configure.in
index 4c28a2a..e65cdbd 100644 (file)
@@ -1,16 +1,30 @@
 dnl Process this file with autoconf to create configure.
 
 AC_INIT
-
 AC_CANONICAL_SYSTEM
-
 AM_INIT_AUTOMAKE(librfid, 0.1.0)
 
 AC_PROG_CC
+AM_PROG_CC_C_O
+AC_C_CONST
 AC_EXEEXT
+AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
+AC_MSG_CHECKING([for build environment])
+case "$target_alias" in
+*-mingw*)      BUILDENV=WIN32;;
+*-cygwin*)     BUILDENV=WIN32;;
+*)             BUILDENV=UNIX;;
+esac
+AC_MSG_RESULT($BUILDENV)
+AC_SUBST(BUILDENV)
+AM_CONDITIONAL(ENABLE_WIN32, test "$BUILDENV" == "WIN32")
+AM_CONDITIONAL(DISABLE_WIN32, test "$BUILDENV" != "WIN32")
+
+AC_C_BIGENDIAN(AC_DEFINE(RFID_BIG_ENDIAN_BITFIELD, 1, [Big-endian bitfield]),,)
+
 AC_ARG_ENABLE(ccid,
        [  --enable-ccid        Include internal CCID driver for CM5121],
        [MY_CCID=1], [MY_CCID=0])
@@ -40,28 +54,17 @@ AC_ARG_WITH(firmware,
        [  --with-firmware=PATH Compile for running inside firmware],
        [FIRMWARE_PATH="$withval"], [FIRMWARE_PATH=""])
 AC_SUBST(FIRMWARE_PATH)
+AM_CONDITIONAL(ENABLE_FIRMWARE, test "$FIRMWARE_PATH" != "")
 
 AC_ARG_ENABLE(static,
        [  --enable-static      Don't use dynamic allocations at all],
        [ENABLE_STATIC=1], [ENABLE_STATIC=0]) 
 AM_CONDITIONAL(ENABLE_STATIC, test "$ENABLE_STATIC" == "1")
 
-AC_ARG_ENABLE(firmware,
-       [  --enable-firmware    Don't use dynamic allocations at all],
-       [ENABLE_FIRMWARE=1], [ENABLE_FIRMWARE=0]) 
-AM_CONDITIONAL(ENABLE_FIRMWARE, test "$ENABLE_FIRMWARE" == "1")
-
-AC_ARG_ENABLE(reader-cm5x21,
-       [  --enable-reader-cm5x21 Support for Omnikey Cardman 5121/5321],
-       [ENABLE_CM5121=1], [ENABLE_CM5121=0])
-AM_CONDITIONAL(ENABLE_CM5121, test "$ENABLE_CM5121" == "1")
-
-
 AC_ARG_WITH()
-#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 etc/Makefile etc/udev/Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile src/librfid.pc)
+AC_OUTPUT(Makefile etc/Makefile etc/udev/Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile src/librfid.pc win32/Makefile)