From 3a0ac60cee614501d2f1e35232fc5487c1017424 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 5 Aug 2003 03:34:52 +0000 Subject: [PATCH] automake! --- autogen.sh | 11 +++++++++++ configure.ac | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100755 autogen.sh create mode 100644 configure.ac diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000..b2888cdd --- /dev/null +++ b/autogen.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +aclocal-1.7 -I m4 +autoheader +autoconf +automake-1.7 --add-missing --copy + +rm -f config.cache + +./configure --enable-maintainer-mode + diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..727c87c6 --- /dev/null +++ b/configure.ac @@ -0,0 +1,45 @@ + +AC_INIT(comedi/comedi_fops.c) + +AM_CONFIG_HEADER(config.h) + +AC_CANONICAL_TARGET([]) + +PACKAGE=comedi +VERSION=0.7.67 + +AM_INIT_AUTOMAKE($PACKAGE,$VERSION) +AM_MAINTAINER_MODE + +AC_SUBST(PACKAGE) +AC_SUBST(VERSION) + +AC_PROG_CC + +LINUX="/home/ds/linux/condor-kernel-2.4.20/linux-2.4.21" + +LINUX_LD="ld -m elf_i386 -r -e stext" +LINUX_CFLAGS="-D__KERNEL__ -I/home/ds/linux/condor-kernel-2.4.20/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE" + +AC_SUBST(LINUX_LD) +AC_SUBST(LINUX_CFLAGS) + + +COMEDI_CFLAGS="-Werror -I\$(top_srcdir)/include/" +AC_SUBST(COMEDI_CFLAGS) + +moduledir="\$(libdir)/comedi" + +AC_SUBST(moduledir) + + +AC_OUTPUT([ +Makefile +modtool +comedi/Makefile +comedi/drivers/Makefile +comedi/kcomedilib/Makefile +]) + +chmod +x modtool + -- 2.26.2