add -DKBUILD_MODNAME=... to COMEDI_CFLAGS (required by linux/module.h
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jan 2004 00:09:59 +0000 (00:09 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jan 2004 00:09:59 +0000 (00:09 +0000)
to make modprobe recognize modules under 2.6

configure.ac

index 9b4a802840149b74227365f6b55f9ae159b6f877..6df0aa4e1ff023daa6201ca08c34c7b0e39cd2a4 100644 (file)
@@ -50,7 +50,7 @@ CC=$LINUX_CC
 
 #ERROR_CFLAGS="-Werror"
 
-COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/"
+[COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/ -DKBUILD_MODNAME=\$(shell echo \$@ | sed 's/\(.*\)\.o/\1/g' | sed 's/\(.*\)_ko.*/\1/g')"]
 AC_SUBST(COMEDI_CFLAGS)
 
 AC_ARG_ENABLE([pcmcia],[  --disable-pcmcia     Disable support for PCMCIA devices],