From 1ef62ace2c5f339faaf055d1bff347cf45de0591 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 1 Mar 2004 23:31:02 +0000 Subject: [PATCH] make KBUILD_BASENAME and KBUILD_MODNAME hacks more robust --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index e8307dd7..7eece8ba 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ -AC_INIT(comedi/comedi_fops.c) - -AM_CONFIG_HEADER(config.h) +AC_INIT +AC_CONFIG_SRCDIR([comedi/comedi_fops.c]) +AC_CONFIG_HEADERS(config.h) AC_CANONICAL_TARGET([]) @@ -55,8 +55,8 @@ CC=$LINUX_CC #ERROR_CFLAGS="-Werror" [COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/\ - -DKBUILD_MODNAME=\$(shell echo \$@ | sed 's/\(.*\)\.o/\1/g' | sed 's/\(.*\)_ko.*/\1/g')\ - -DKBUILD_BASENAME=\$(shell echo \$< | sed 's/\(.*\)\.c/\1/g')"] + -DKBUILD_MODNAME=\$(shell basename \$@ .o | sed 's/\(.*\)_ko.*/\1/g')\ + -DKBUILD_BASENAME=\$(shell basename \$< .c)"] AC_SUBST(COMEDI_CFLAGS) AC_ARG_ENABLE([pcmcia],[ --disable-pcmcia Disable support for PCMCIA devices], -- 2.26.2