1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(led.c, 0.1, julien@jdanjou.org)
3 AC_CONFIG_HEADER([parportled.h])
8 # Checks for libraries.
9 # FIXME: Replace `main' with a function in `-lpthread':
10 AC_CHECK_LIB([pthread], [pthread_create])
12 # Checks for header files.
14 AC_CHECK_HEADERS([stdlib.h unistd.h sys/io.h])
16 # Checks for typedefs, structures, and compiler characteristics.
18 # Checks for library functions.
19 AC_CHECK_FUNCS(malloc)
22 AC_DEFINE(MAXLED,8,[maxled])
23 AC_DEFINE(BASEPORT,0x378,[baseport])
26 [--with-maxled=MAXLED Set the number of connected LED (Default is 8)],
27 [ if test "x$withval" != "xno" ; then
28 if test "x$withval" != "xyes" ; then
29 AC_DEFINE_UNQUOTED(MAXLED,$withval,[maxled])
34 [--with-port=BASEPORT Set the IO address of parralel port (Default is 0x378)],
35 [ if test "x$withval" != "xno" ; then
36 if test "x$withval" != "xyes" ; then
37 AC_DEFINE_UNQUOTED(BASEPORT,$withval,[baseport])
43 dnl Checks for programs.
46 dnl AC_CONFIG_FILES([Makefile])
47 AC_CONFIG_HEADER(config.h)