#see: http://linux-hotplug.sourceforge.net/
#the hotplug expects the device dependent scripts here:
-usbhotplugdir="/etc/hotplug/usb"
+usbhotplugdir="\${sysconfdir}/hotplug/usb"
AC_SUBST(usbhotplugdir)
#firmware for the hotplug script
#see: http://linux-hotplug.sourceforge.net/
-usbfirmwaredir="/usr/share/usb"
+usbfirmwaredir="\${datadir}/usb"
AC_SUBST(usbfirmwaredir)
AC_CONFIG_FILES(
-EXTRA_DIST = demo ext lib
+EXTRA_DIST = demo lib
-BUILT_SOURCES = ext/comedi_ruby_wrap.c
+#BUILT_SOURCES = ext/comedi_ruby_wrap.c
if HAVE_SWIG
-ext/comedi_ruby_wrap.c: ../comedi.i
- $(SWIG) -ruby -o ./ext/comedi_ruby_wrap.c ../comedi.i
+ext/comedi_ruby_wrap.c: $(srcdir)/../comedi.i
+ mkdir -p ext
+ cp $(srcdir)/../comedi.i ext/comedi.i
+ $(SWIG) -ruby -o ext/comedi_ruby_wrap.c ext/comedi.i
else
ext/comedi_ruby_wrap.c:
+ mkdir -p ext
echo WARNING: creating bogus comedi_ruby_wrap.c because you don\'t have swig.
touch ext/comedi_ruby_wrap.c
endif