3 AC_CANONICAL_TARGET([])
6 AS_VERSION(comedilib, COMEDILIB, 0, 7, 21)
7 #COMEDILIB_DEBUG="-Wall -Werror"
8 COMEDILIB_DEBUG="-Wall"
9 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
10 AS_LIBTOOL(COMEDILIB, 0, 7, 18, yes)
12 AM_CONFIG_HEADER(config.h)
14 ACLOCAL="$ACLOCAL -I m4"
26 COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include $COMEDILIB_DEBUG"
27 COMEDILIB_LIBS="$COMEDILIB_LIBS \$(top_builddir)/lib/libcomedi.la -lm"
28 AC_SUBST(COMEDILIB_CFLAGS)
29 AC_SUBST(COMEDILIB_LIBS)
31 AC_PATH_PROG(SWIG, swig, no)
32 if test "x$SWIG" == xno ; then
33 AC_MSG_WARN([swig not found, will not be able to regenerate code for swig bindings])
35 AM_CONDITIONAL(HAVE_SWIG, [test "x$SWIG" != xno])
38 AM_CHECK_PYTHON_HEADERS(HAVE_PYTHON=yes,[HAVE_PYTHON=no;AC_MSG_WARN([python headers not found, disabling python binding])])
39 AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = xyes])
41 AS_COMPILER_FLAG([-fno-strict-aliasing],[PYTHON_QUIET="$PYTHON_QUIET -fno-strict-aliasing"], true )
42 AS_COMPILER_FLAG([-Wno-unused-function],[PYTHON_QUIET="$PYTHON_QUIET -Wno-unused-function"], true )
43 AC_SUBST(PYTHON_QUIET)
45 AC_PATH_PROG(RUBY, ruby, no)
46 if test "x$RUBY" == xno ; then
47 AC_MSG_WARN([ruby not found, disabling ruby binding])
49 AM_CONDITIONAL(HAVE_RUBY, [test "x$RUBY" != xno])
51 AC_PATH_PROG(DOCBOOK2MAN, docbook2man, no)
52 if test x$DOCBOOK2MAN = xno ; then
53 AC_MSG_WARN([docbook2man not found, will not be able to rebuild man pages])
55 AM_CONDITIONAL(HAVE_DOCBOOK2MAN, [test "x$DOCBOOK2MAN" != xno])
57 AC_PATH_PROG(DOCBOOK2PDF, docbook2pdf, no)
58 if test x$DOCBOOK2PDF = xno ; then
59 AC_MSG_WARN([docbook2pdf not found, will not be able to rebuild pdf documentation])
61 AM_CONDITIONAL(HAVE_DOCBOOK2PDF, [test "x$DOCBOOK2PDF" != xno])
63 AC_PATH_PROG(DOCBOOK2HTML, docbook2html, no)
64 if test x$DOCBOOK2HTML = xno ; then
65 AC_MSG_WARN([docbook2html not found, will not be able to rebuild html documentation])
67 AM_CONDITIONAL(HAVE_DOCBOOK2HTML, [test "x$DOCBOOK2HTML" != xno])
69 pcmciadir="\${sysconfdir}/pcmcia"
72 #see: http://linux-hotplug.sourceforge.net/
73 #the hotplug expects the device dependent scripts here:
74 usbhotplugdir="/etc/hotplug/usb"
75 AC_SUBST(usbhotplugdir)
77 #firmware for the hotplug script
78 #see: http://linux-hotplug.sourceforge.net/
79 usbfirmwaredir="/usr/share/usb"
80 AC_SUBST(usbfirmwaredir)
84 comedi_calibrate/Makefile
85 comedi_config/Makefile
89 etc/hotplug/usb/Makefile
90 etc/hotplug/usb/usbdux/Makefile