author | Florian Pose <fp@igh-essen.com> |
Tue, 26 Jan 2010 11:35:58 +0100 | |
changeset 1793 | 651f6ba216c5 |
parent 1773 | 5371f3e5f6a1 |
child 1809 | 586be70ff70a |
permissions | -rw-r--r-- |
365 | 1 |
#------------------------------------------------------------------------------ |
1363
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
2 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
3 |
# $Id$ |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
4 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
5 |
# Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
6 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
7 |
# This file is part of the IgH EtherCAT Master. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
8 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
9 |
# The IgH EtherCAT Master is free software; you can redistribute it and/or |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
10 |
# modify it under the terms of the GNU General Public License version 2, as |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
11 |
# published by the Free Software Foundation. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
12 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
13 |
# The IgH EtherCAT Master is distributed in the hope that it will be useful, |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
16 |
# Public License for more details. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
17 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
18 |
# You should have received a copy of the GNU General Public License along |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
19 |
# with the IgH EtherCAT Master; if not, write to the Free Software |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
20 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
21 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
22 |
# --- |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
23 |
# |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
24 |
# The license mentioned above concerns the source code only. Using the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
25 |
# EtherCAT technology and brand is only permitted in compliance with the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
26 |
# industrial property and similar rights of Beckhoff Automation GmbH. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1353
diff
changeset
|
27 |
# |
365 | 28 |
#------------------------------------------------------------------------------ |
29 |
||
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
30 |
AC_PREREQ(2.59) |
1208
026e35646ab4
Changed version to 'devel'.
Florian Pose <fp@igh-essen.com>
parents:
1191
diff
changeset
|
31 |
AC_INIT([ethercat],[devel],[fp@igh-essen.com]) |
387 | 32 |
AC_CONFIG_AUX_DIR([autoconf]) |
479
610ddcf35d5c
Removed --foreign switch for autotools.
Florian Pose <fp@igh-essen.com>
parents:
477
diff
changeset
|
33 |
AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2]) |
387 | 34 |
AC_PREFIX_DEFAULT([/opt/etherlab]) |
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
35 |
AC_CONFIG_HEADERS([config.h]) |
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
36 |
AC_CONFIG_SRCDIR([config.h.in]) |
1432 | 37 |
AC_CONFIG_MACRO_DIR([m4]) |
365 | 38 |
|
39 |
#------------------------------------------------------------------------------ |
|
444
31223539fc00
Compiler flag -DSVNREV only for module.c to avoid unnecessary recompiling.
Florian Pose <fp@igh-essen.com>
parents:
440
diff
changeset
|
40 |
# Global |
31223539fc00
Compiler flag -DSVNREV only for module.c to avoid unnecessary recompiling.
Florian Pose <fp@igh-essen.com>
parents:
440
diff
changeset
|
41 |
#------------------------------------------------------------------------------ |
31223539fc00
Compiler flag -DSVNREV only for module.c to avoid unnecessary recompiling.
Florian Pose <fp@igh-essen.com>
parents:
440
diff
changeset
|
42 |
|
922
fede1d8f5b71
Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
897
diff
changeset
|
43 |
AC_PROG_CXX |
1242
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
44 |
AC_PROG_LIBTOOL |
1302 | 45 |
AM_PROG_CC_C_O |
922
fede1d8f5b71
Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
897
diff
changeset
|
46 |
|
444
31223539fc00
Compiler flag -DSVNREV only for module.c to avoid unnecessary recompiling.
Florian Pose <fp@igh-essen.com>
parents:
440
diff
changeset
|
47 |
#------------------------------------------------------------------------------ |
365 | 48 |
# Linux sources |
49 |
#------------------------------------------------------------------------------ |
|
50 |
||
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
51 |
AC_ARG_WITH([linux-dir], |
365 | 52 |
AC_HELP_STRING( |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
53 |
[--with-linux-dir=<DIR>], |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
54 |
[Linux kernel sources @<:@running kernel@:>@] |
367
e85e3143dc8d
Autotools "--with-linux" switch; "mydist" target
Florian Pose <fp@igh-essen.com>
parents:
365
diff
changeset
|
55 |
), |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
56 |
[ |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
57 |
sourcedir=[$withval] |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
58 |
], |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
59 |
[ |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
60 |
version=[`uname -r`] |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
61 |
modulesdir=/lib/modules/${version} |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
62 |
if test \! -d ${modulesdir} || test \! -d ${modulesdir}/build; then |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
63 |
echo |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
64 |
AC_MSG_ERROR([Failed to find Linux sources. Use --with-linux-dir!]) |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
65 |
fi |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
66 |
sourcedir=`cd ${modulesdir}/build && pwd -P` |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
67 |
] |
367
e85e3143dc8d
Autotools "--with-linux" switch; "mydist" target
Florian Pose <fp@igh-essen.com>
parents:
365
diff
changeset
|
68 |
) |
365 | 69 |
|
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
70 |
AC_MSG_CHECKING([for Linux kernel sources]) |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
71 |
|
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
72 |
if test \! -r ${sourcedir}/.config; then |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
73 |
echo |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
74 |
AC_MSG_ERROR([No configured Linux kernel sources in $sourcedir]) |
365 | 75 |
fi |
76 |
||
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
77 |
# Try to get kernel release string |
537
c715766e0f81
Fixed bad configure behavior with complex kernel version strings.
Florian Pose <fp@igh-essen.com>
parents:
507
diff
changeset
|
78 |
if test -r ${sourcedir}/include/config/kernel.release; then |
c715766e0f81
Fixed bad configure behavior with complex kernel version strings.
Florian Pose <fp@igh-essen.com>
parents:
507
diff
changeset
|
79 |
kernelrelease=`cat $sourcedir/include/config/kernel.release` |
c715766e0f81
Fixed bad configure behavior with complex kernel version strings.
Florian Pose <fp@igh-essen.com>
parents:
507
diff
changeset
|
80 |
elif test -r ${sourcedir}/.kernelrelease; then |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
81 |
kernelrelease=`cat $sourcedir/.kernelrelease` |
507
4687f9d8254e
Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
Florian Pose <fp@igh-essen.com>
parents:
506
diff
changeset
|
82 |
elif test -r ${sourcedir}/include/linux/utsrelease.h; then |
4687f9d8254e
Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
Florian Pose <fp@igh-essen.com>
parents:
506
diff
changeset
|
83 |
hdr=${sourcedir}/include/linux/utsrelease.h |
4687f9d8254e
Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
Florian Pose <fp@igh-essen.com>
parents:
506
diff
changeset
|
84 |
kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"` |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
85 |
elif test -r ${sourcedir}/include/linux/version.h; then |
507
4687f9d8254e
Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
Florian Pose <fp@igh-essen.com>
parents:
506
diff
changeset
|
86 |
hdr=${sourcedir}/include/linux/version.h |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
87 |
kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"` |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
88 |
fi |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
89 |
|
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
90 |
if test -z "$kernelrelease"; then |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
91 |
echo |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
92 |
AC_MSG_ERROR([Failed to extract Linux kernel version!]) |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
93 |
fi |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
94 |
|
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
95 |
# Extract three numbers from kernel release string |
537
c715766e0f81
Fixed bad configure behavior with complex kernel version strings.
Florian Pose <fp@igh-essen.com>
parents:
507
diff
changeset
|
96 |
linuxversion=`echo $kernelrelease | grep -oE "^[[0-9]]+\.[[0-9]]+\.[[0-9]]+"` |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
97 |
|
367
e85e3143dc8d
Autotools "--with-linux" switch; "mydist" target
Florian Pose <fp@igh-essen.com>
parents:
365
diff
changeset
|
98 |
AC_SUBST(LINUX_SOURCE_DIR,[$sourcedir]) |
477
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
99 |
AC_SUBST(LINUX_KERNEL_RELEASE,[$kernelrelease]) |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
100 |
AC_SUBST(LINUX_KERNEL_VERSION,[$linuxversion]) |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
101 |
AC_SUBST(LINUX_MOD_PATH,[/lib/modules/$kernelrelease/ethercat]) |
69d05643041f
Improved installation, added quick modules_install target.
Florian Pose <fp@igh-essen.com>
parents:
471
diff
changeset
|
102 |
AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $LINUX_KERNEL_RELEASE)]) |
367
e85e3143dc8d
Autotools "--with-linux" switch; "mydist" target
Florian Pose <fp@igh-essen.com>
parents:
365
diff
changeset
|
103 |
|
e85e3143dc8d
Autotools "--with-linux" switch; "mydist" target
Florian Pose <fp@igh-essen.com>
parents:
365
diff
changeset
|
104 |
#------------------------------------------------------------------------------ |
1540
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
105 |
# Generic Ethernet driver |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
106 |
#------------------------------------------------------------------------------ |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
107 |
|
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
108 |
AC_ARG_ENABLE([generic], |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
109 |
AS_HELP_STRING([--enable-generic], |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
110 |
[Enable generic Ethernet driver]), |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
111 |
[ |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
112 |
case "${enableval}" in |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
113 |
yes) enablegeneric=1 |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
114 |
;; |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
115 |
no) enablegeneric=0 |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
116 |
;; |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
117 |
*) AC_MSG_ERROR([Invalid value for --enable-generic]) |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
118 |
;; |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
119 |
esac |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
120 |
], |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
121 |
[enablegeneric=0] |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
122 |
) |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
123 |
|
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
124 |
AM_CONDITIONAL(ENABLE_GENERIC, test "x$enablegeneric" = "x1") |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
125 |
AC_SUBST(ENABLE_GENERIC,[$enablegeneric]) |
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
126 |
|
49430a3fe73d
Basic generic Ethernet device module.
Florian Pose <fp@igh-essen.com>
parents:
1440
diff
changeset
|
127 |
#------------------------------------------------------------------------------ |
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
128 |
# 8139too driver |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
129 |
#------------------------------------------------------------------------------ |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
130 |
|
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
131 |
AC_ARG_ENABLE([8139too], |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
132 |
AS_HELP_STRING([--enable-8139too], |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
133 |
[Enable 8139too driver]), |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
134 |
[ |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
135 |
case "${enableval}" in |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
136 |
yes) enable8139too=1 |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
137 |
;; |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
138 |
no) enable8139too=0 |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
139 |
;; |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
140 |
*) AC_MSG_ERROR([Invalid value for --enable-8139too]) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
141 |
;; |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
142 |
esac |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
143 |
], |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
144 |
[enable8139too=1] |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
145 |
) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
146 |
|
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
147 |
AM_CONDITIONAL(ENABLE_8139TOO, test "x$enable8139too" = "x1") |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
148 |
AC_SUBST(ENABLE_8139TOO,[$enable8139too]) |
485
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
149 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
150 |
AC_ARG_WITH([8139too-kernel], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
151 |
AC_HELP_STRING( |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
152 |
[--with-8139too-kernel=<X.Y.Z>], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
153 |
[8139too kernel (only if differing)] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
154 |
), |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
155 |
[ |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
156 |
kernel8139too=[$withval] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
157 |
], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
158 |
[ |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
159 |
kernel8139too=$linuxversion |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
160 |
] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
161 |
) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
162 |
|
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
163 |
if test "x${enable8139too}" = "x1"; then |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
164 |
AC_MSG_CHECKING([for kernel for 8139too driver]) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
165 |
|
945
a5907351e13e
Improved out-of-place build.
Florian Pose <fp@igh-essen.com>
parents:
922
diff
changeset
|
166 |
kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^8139too-.*-" | cut -d "-" -f 2 | uniq` |
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
167 |
found=0 |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
168 |
for k in $kernels; do |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
169 |
if test "$kernel8139too" = "$k"; then |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
170 |
found=1 |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
171 |
fi |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
172 |
done |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
173 |
if test $found -ne 1; then |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
174 |
AC_MSG_ERROR([kernel $kernel8139too not available for 8139too driver!]) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
175 |
fi |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
176 |
|
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
177 |
AC_MSG_RESULT([$kernel8139too]) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
178 |
fi |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
179 |
|
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
180 |
AC_SUBST(KERNEL_8139TOO,[$kernel8139too]) |
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
181 |
|
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
182 |
#------------------------------------------------------------------------------ |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
183 |
# e100 driver |
569
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
184 |
#------------------------------------------------------------------------------ |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
185 |
|
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
186 |
AC_ARG_ENABLE([e100], |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
187 |
AS_HELP_STRING([--enable-e100], |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
188 |
[Enable e100 driver]), |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
189 |
[ |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
190 |
case "${enableval}" in |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
191 |
yes) enablee100=1 |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
192 |
;; |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
193 |
no) enablee100=0 |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
194 |
;; |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
195 |
*) AC_MSG_ERROR([Invalid value for --enable-e100]) |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
196 |
;; |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
197 |
esac |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
198 |
], |
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
199 |
[enablee100=0] # disabled by default |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
200 |
) |
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
201 |
|
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
202 |
AM_CONDITIONAL(ENABLE_E100, test "x$enablee100" = "x1") |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
203 |
AC_SUBST(ENABLE_E100,[$enablee100]) |
568
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
204 |
|
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
205 |
AC_ARG_WITH([e100-kernel], |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
206 |
AC_HELP_STRING( |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
207 |
[--with-e100-kernel=<X.Y.Z>], |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
208 |
[e100 kernel (only if differing)] |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
209 |
), |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
210 |
[ |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
211 |
kernele100=[$withval] |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
212 |
], |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
213 |
[ |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
214 |
kernele100=$linuxversion |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
215 |
] |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
216 |
) |
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
217 |
|
582
39f1704b0c99
Added --enable-8139too; cleaned up configure.ac and devices/Kbuild.
Florian Pose <fp@igh-essen.com>
parents:
581
diff
changeset
|
218 |
if test "x${enablee100}" = "x1"; then |
569
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
219 |
AC_MSG_CHECKING([for kernel for e100 driver]) |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
220 |
|
945
a5907351e13e
Improved out-of-place build.
Florian Pose <fp@igh-essen.com>
parents:
922
diff
changeset
|
221 |
kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^e100-.*-" | cut -d "-" -f 2 | uniq` |
569
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
222 |
found=0 |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
223 |
for k in $kernels; do |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
224 |
if test "$kernele100" = "$k"; then |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
225 |
found=1 |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
226 |
fi |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
227 |
done |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
228 |
if test $found -ne 1; then |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
229 |
AC_MSG_ERROR([kernel $kernele100 not available for e100 driver!]) |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
230 |
fi |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
231 |
|
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
232 |
AC_MSG_RESULT([$kernele100]) |
87dd7f374593
Added --enable-e100 switch to configure.
Florian Pose <fp@igh-essen.com>
parents:
568
diff
changeset
|
233 |
fi |
568
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
234 |
|
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
235 |
AC_SUBST(KERNEL_E100,[$kernele100]) |
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
236 |
|
568
3edb8f45bdc1
First experimental version of e100 driver.
Florian Pose <fp@igh-essen.com>
parents:
565
diff
changeset
|
237 |
#------------------------------------------------------------------------------ |
667
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
238 |
# e1000 driver |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
239 |
#------------------------------------------------------------------------------ |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
240 |
|
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
241 |
AC_ARG_ENABLE([e1000], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
242 |
AS_HELP_STRING([--enable-e1000], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
243 |
[Enable e1000 driver]), |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
244 |
[ |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
245 |
case "${enableval}" in |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
246 |
yes) enablee1000=1 |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
247 |
;; |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
248 |
no) enablee1000=0 |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
249 |
;; |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
250 |
*) AC_MSG_ERROR([Invalid value for --enable-e1000]) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
251 |
;; |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
252 |
esac |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
253 |
], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
254 |
[enablee1000=0] # disabled by default |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
255 |
) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
256 |
|
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
257 |
AM_CONDITIONAL(ENABLE_E1000, test "x$enablee1000" = "x1") |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
258 |
AC_SUBST(ENABLE_E1000,[$enablee1000]) |
667
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
259 |
|
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
260 |
AC_ARG_WITH([e1000-kernel], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
261 |
AC_HELP_STRING( |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
262 |
[--with-e1000-kernel=<X.Y.Z>], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
263 |
[e1000 kernel (only if differing)] |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
264 |
), |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
265 |
[ |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
266 |
kernele1000=[$withval] |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
267 |
], |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
268 |
[ |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
269 |
kernele1000=$linuxversion |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
270 |
] |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
271 |
) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
272 |
|
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
273 |
if test "x${enablee1000}" = "x1"; then |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
274 |
AC_MSG_CHECKING([for kernel for e1000 driver]) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
275 |
|
945
a5907351e13e
Improved out-of-place build.
Florian Pose <fp@igh-essen.com>
parents:
922
diff
changeset
|
276 |
kernels=`ls -1 ${srcdir}/devices/e1000/ | grep -oE "^e1000_main-.*" | cut -d "-" -f 2 | uniq` |
667
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
277 |
found=0 |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
278 |
for k in $kernels; do |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
279 |
if test "$kernele1000" = "$k"; then |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
280 |
found=1 |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
281 |
fi |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
282 |
done |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
283 |
if test $found -ne 1; then |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
284 |
AC_MSG_ERROR([kernel $kernele1000 not available for e1000 driver!]) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
285 |
fi |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
286 |
|
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
287 |
AC_MSG_RESULT([$kernele1000]) |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
288 |
fi |
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
289 |
|
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
290 |
AC_SUBST(KERNEL_E1000,[$kernele1000]) |
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
291 |
|
667
9feff35c9617
First version with e1000 driver (to be continued...)
Florian Pose <fp@igh-essen.com>
parents:
665
diff
changeset
|
292 |
#------------------------------------------------------------------------------ |
1353
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
293 |
# r8169 driver |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
294 |
#------------------------------------------------------------------------------ |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
295 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
296 |
AC_ARG_ENABLE([r8169], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
297 |
AS_HELP_STRING([--enable-r8169], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
298 |
[Enable r8169 driver]), |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
299 |
[ |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
300 |
case "${enableval}" in |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
301 |
yes) enable_r8169=1 |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
302 |
;; |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
303 |
no) enable_r8169=0 |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
304 |
;; |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
305 |
*) AC_MSG_ERROR([Invalid value for --enable-r8169]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
306 |
;; |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
307 |
esac |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
308 |
], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
309 |
[enable_r8169=0] # disabled by default |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
310 |
) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
311 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
312 |
AM_CONDITIONAL(ENABLE_R8169, test "x$enable_r8169" = "x1") |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
313 |
AC_SUBST(ENABLE_R8169,[$enable_r8169]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
314 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
315 |
AC_ARG_WITH([r8169-kernel], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
316 |
AC_HELP_STRING( |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
317 |
[--with-r8169-kernel=<X.Y.Z>], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
318 |
[r8169 kernel (only if differing)] |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
319 |
), |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
320 |
[ |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
321 |
kernel_r8169=[$withval] |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
322 |
], |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
323 |
[ |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
324 |
kernel_r8169=$linuxversion |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
325 |
] |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
326 |
) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
327 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
328 |
if test "x${enable_r8169}" = "x1"; then |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
329 |
AC_MSG_CHECKING([for kernel for r8169 driver]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
330 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
331 |
kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^r8169-.*-" | cut -d "-" -f 2 | uniq` |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
332 |
found=0 |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
333 |
for k in $kernels; do |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
334 |
if test "$kernel_r8169" = "$k"; then |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
335 |
found=1 |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
336 |
fi |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
337 |
done |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
338 |
if test $found -ne 1; then |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
339 |
AC_MSG_ERROR([kernel $kernel_r8169 not available for r8169 driver!]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
340 |
fi |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
341 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
342 |
AC_MSG_RESULT([$kernel_r8169]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
343 |
fi |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
344 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
345 |
AC_SUBST(KERNEL_R8169,[$kernel_r8169]) |
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
346 |
|
22b1de4c74e4
First version of r8169 driver.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
347 |
#------------------------------------------------------------------------------ |
485
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
348 |
# RTAI path (optional) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
349 |
#------------------------------------------------------------------------------ |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
350 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
351 |
AC_ARG_WITH([rtai-dir], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
352 |
AC_HELP_STRING( |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
353 |
[--with-rtai-dir=<DIR>], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
354 |
[RTAI path (only for RTAI examples)] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
355 |
), |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
356 |
[ |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
357 |
rtaidir=[$withval] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
358 |
], |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
359 |
[ |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
360 |
rtaidir="" |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
361 |
] |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
362 |
) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
363 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
364 |
AC_MSG_CHECKING([for RTAI path]) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
365 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
366 |
if test -z "${rtaidir}"; then |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
367 |
AC_MSG_RESULT([not specified.]) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
368 |
else |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
369 |
if test \! -r ${rtaidir}/include/rtai.h; then |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
370 |
AC_MSG_ERROR([no RTAI installation found in ${rtaidir}!]) |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
371 |
fi |
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
372 |
AC_MSG_RESULT([$rtaidir]) |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
373 |
fi |
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
374 |
|
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
375 |
AC_SUBST(RTAI_DIR,[$rtaidir]) |
485
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
376 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
377 |
#------------------------------------------------------------------------------ |
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
378 |
# Debug interface |
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
379 |
#------------------------------------------------------------------------------ |
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
380 |
|
679
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
381 |
AC_ARG_ENABLE([debug-if], |
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
382 |
AS_HELP_STRING([--enable-debug-if], |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
383 |
[Create a debug interface for each master @<:@NO@:>@]), |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
384 |
[ |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
385 |
case "${enableval}" in |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
386 |
yes) dbg=1 |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
387 |
;; |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
388 |
no) dbg=0 |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
389 |
;; |
679
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
390 |
*) AC_MSG_ERROR([Invalid value for --enable-debug-if]) |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
391 |
;; |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
392 |
esac |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
393 |
], |
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
394 |
[dbg=0] |
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
395 |
) |
440
16fddae16c94
Altered configure --with-linux parameter to --with-linux-dir; removed depmod call.
Florian Pose <fp@igh-essen.com>
parents:
393
diff
changeset
|
396 |
|
679
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
397 |
if test "x${dbg}" = "x1"; then |
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
398 |
AC_DEFINE([EC_DEBUG_IF], [1], [Debug interfaces enabled]) |
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
399 |
fi |
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
400 |
AM_CONDITIONAL(ENABLE_DEBUG_IF, test "x$dbg" = "x1") |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
401 |
AC_SUBST(ENABLE_DEBUG_IF,[$dbg]) |
679
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
402 |
|
62fc387ec928
Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
Florian Pose <fp@igh-essen.com>
parents:
667
diff
changeset
|
403 |
#------------------------------------------------------------------------------ |
692
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
404 |
# Debug ring |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
405 |
#------------------------------------------------------------------------------ |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
406 |
|
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
407 |
AC_ARG_ENABLE([debug-ring], |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
408 |
AS_HELP_STRING([--enable-debug-ring], |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
409 |
[Create a debug ring to record frames @<:@NO@:>@]), |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
410 |
[ |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
411 |
case "${enableval}" in |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
412 |
yes) debugring=1 |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
413 |
;; |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
414 |
no) debugring=0 |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
415 |
;; |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
416 |
*) AC_MSG_ERROR([Invalid value for --enable-debug-ring]) |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
417 |
;; |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
418 |
esac |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
419 |
], |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
420 |
[debugring=0] |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
421 |
) |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
422 |
|
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
423 |
if test "x${debugring}" = "x1"; then |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
424 |
AC_DEFINE([EC_DEBUG_RING], [1], [Debug ring enabled]) |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
425 |
fi |
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
426 |
|
fe7cf37c33f1
Implemented debug frame ring to output the last n frames for debugging
Florian Pose <fp@igh-essen.com>
parents:
686
diff
changeset
|
427 |
#------------------------------------------------------------------------------ |
1327
4d179b06dd3c
merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms.
Florian Pose <fp@igh-essen.com>
parents:
1302
diff
changeset
|
428 |
# Ethernet over EtherCAT support |
715
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
429 |
#------------------------------------------------------------------------------ |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
430 |
|
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
431 |
AC_ARG_ENABLE([eoe], |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
432 |
AS_HELP_STRING([--enable-eoe], |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
433 |
[Enable EoE support (default: yes)]), |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
434 |
[ |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
435 |
case "${enableval}" in |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
436 |
yes) eoe=1 |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
437 |
;; |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
438 |
no) eoe=0 |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
439 |
;; |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
440 |
*) AC_MSG_ERROR([Invalid value for --enable-eoe]) |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
441 |
;; |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
442 |
esac |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
443 |
], |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
444 |
[eoe=1] |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
445 |
) |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
446 |
|
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
447 |
if test "x${eoe}" = "x1"; then |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
448 |
AC_DEFINE([EC_EOE], [1], [EoE support enabled]) |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
449 |
fi |
f12ff7c08623
Added --enable-eoe conditional.
Florian Pose <fp@igh-essen.com>
parents:
709
diff
changeset
|
450 |
AM_CONDITIONAL(ENABLE_EOE, test "x$eoe" = "x1") |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
451 |
AC_SUBST(ENABLE_EOE,[$eoe]) |
485
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
452 |
|
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
453 |
#------------------------------------------------------------------------------ |
1040
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
454 |
# CPU timestamp counter support |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
455 |
#------------------------------------------------------------------------------ |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
456 |
|
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
457 |
AC_ARG_ENABLE([cycles], |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
458 |
AS_HELP_STRING([--enable-cycles], |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
459 |
[Use CPU timestamp counter (default: no)]), |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
460 |
[ |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
461 |
case "${enableval}" in |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
462 |
yes) cycles=1 |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
463 |
;; |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
464 |
no) cycles=0 |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
465 |
;; |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
466 |
*) AC_MSG_ERROR([Invalid value for --enable-cycles]) |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
467 |
;; |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
468 |
esac |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
469 |
], |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
470 |
[cycles=0] |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
471 |
) |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
472 |
|
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
473 |
if test "x${cycles}" = "x1"; then |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
474 |
AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter]) |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
475 |
fi |
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
476 |
|
d2527675cdd5
Disable use of CPU timestamp counter by default.
Florian Pose <fp@igh-essen.com>
parents:
945
diff
changeset
|
477 |
#------------------------------------------------------------------------------ |
1773
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
478 |
# High-resolution timer support |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
479 |
#------------------------------------------------------------------------------ |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
480 |
|
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
481 |
AC_ARG_ENABLE([hrtimer], |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
482 |
AS_HELP_STRING([--enable-hrtimer], |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
483 |
[Use high-resolution timer for scheduling (default: no)]), |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
484 |
[ |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
485 |
case "${enableval}" in |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
486 |
yes) hrtimer=1 |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
487 |
;; |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
488 |
no) hrtimer=0 |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
489 |
;; |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
490 |
*) AC_MSG_ERROR([Invalid value for --enable-hrtimer]) |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
491 |
;; |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
492 |
esac |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
493 |
], |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
494 |
[hrtimer=0] |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
495 |
) |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
496 |
|
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
497 |
if test "x${hrtimer}" = "x1"; then |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
498 |
AC_DEFINE([EC_USE_HRTIMER], [1], [Use hrtimer for scheduling]) |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
499 |
fi |
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
500 |
|
5371f3e5f6a1
Disable use of hrtimer for scheduling by default. Does not work on some PPC targets.
Florian Pose <fp@igh-essen.com>
parents:
1567
diff
changeset
|
501 |
#------------------------------------------------------------------------------ |
1253
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
502 |
# Command-line tool |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
503 |
#----------------------------------------------------------------------------- |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
504 |
|
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
505 |
AC_ARG_ENABLE([tool], |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
506 |
AS_HELP_STRING([--enable-tool], |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
507 |
[Build command-line tool (default: yes)]), |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
508 |
[ |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
509 |
case "${enableval}" in |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
510 |
yes) tool=1 |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
511 |
;; |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
512 |
no) tool=0 |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
513 |
;; |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
514 |
*) AC_MSG_ERROR([Invalid value for --enable-tool]) |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
515 |
;; |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
516 |
esac |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
517 |
], |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
518 |
[tool=1] |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
519 |
) |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
520 |
|
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
521 |
AM_CONDITIONAL(BUILD_TOOL, test "x$tool" = "x1") |
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
522 |
|
8a081444a89a
Added configure switch for disabling the command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1242
diff
changeset
|
523 |
#------------------------------------------------------------------------------ |
1242
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
524 |
# Userspace library generation |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
525 |
#------------------------------------------------------------------------------ |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
526 |
|
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
527 |
AC_ARG_ENABLE([userlib], |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
528 |
AS_HELP_STRING([--enable-userlib], |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
529 |
[Generation of the userspace library (default: yes)]), |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
530 |
[ |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
531 |
case "${enableval}" in |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
532 |
yes) userlib=1 |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
533 |
;; |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
534 |
no) userlib=0 |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
535 |
;; |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
536 |
*) AC_MSG_ERROR([Invalid value for --enable-userlib]) |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
537 |
;; |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
538 |
esac |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
539 |
], |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
540 |
[userlib=1] |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
541 |
) |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
542 |
|
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
543 |
AM_CONDITIONAL(ENABLE_USERLIB, test "x$userlib" = "x1") |
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
544 |
|
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
545 |
#------------------------------------------------------------------------------ |
1565
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
546 |
# TTY driver |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
547 |
#------------------------------------------------------------------------------ |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
548 |
|
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
549 |
AC_ARG_ENABLE([tty], |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
550 |
AS_HELP_STRING([--enable-tty], |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
551 |
[Generation of the ec_tty module (default: no)]), |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
552 |
[ |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
553 |
case "${enableval}" in |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
554 |
yes) tty=1 |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
555 |
;; |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
556 |
no) tty=0 |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
557 |
;; |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
558 |
*) AC_MSG_ERROR([Invalid value for --enable-tty]) |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
559 |
;; |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
560 |
esac |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
561 |
], |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
562 |
[tty=0] |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
563 |
) |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
564 |
|
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
565 |
AM_CONDITIONAL(ENABLE_TTY, test "x$tty" = "x1") |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
566 |
AC_SUBST(ENABLE_TTY,[$tty]) |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
567 |
|
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
568 |
#------------------------------------------------------------------------------ |
485
8354ddf38481
Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel.
Florian Pose <fp@igh-essen.com>
parents:
479
diff
changeset
|
569 |
|
385
c33367851350
Added file ./bootstrap; Added $(DESTDIR) to */Makefile.am make alternate root installs possible
Richard Hacker <ha@igh-essen.com>
parents:
373
diff
changeset
|
570 |
AC_CONFIG_FILES([ |
757
6210c4260899
Added Doxyfile to configuration files.
Florian Pose <fp@igh-essen.com>
parents:
732
diff
changeset
|
571 |
Doxyfile |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
572 |
Kbuild |
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
573 |
Makefile |
882 | 574 |
devices/Kbuild |
575 |
devices/Makefile |
|
576 |
devices/e1000/Kbuild |
|
577 |
devices/e1000/Makefile |
|
1286
88e573e033f1
Build examples by default.
Florian Pose <fp@igh-essen.com>
parents:
1253
diff
changeset
|
578 |
examples/Kbuild |
882 | 579 |
examples/Makefile |
1414 | 580 |
examples/dc_rtai/Kbuild |
581 |
examples/dc_rtai/Makefile |
|
582 |
examples/dc_user/Makefile |
|
882 | 583 |
examples/mini/Kbuild |
584 |
examples/mini/Makefile |
|
585 |
examples/rtai/Kbuild |
|
586 |
examples/rtai/Makefile |
|
1567 | 587 |
examples/tty/Makefile |
588 |
examples/tty/Kbuild |
|
1242
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
589 |
examples/user/Makefile |
882 | 590 |
include/Makefile |
1242
632a6b91f8e4
First version of userspace library with requesting/releasing.
Florian Pose <fp@igh-essen.com>
parents:
1234
diff
changeset
|
591 |
lib/Makefile |
1440
1b32fe09c689
Added deummy Makefile.am for m4 directory.
Florian Pose <fp@igh-essen.com>
parents:
1432
diff
changeset
|
592 |
m4/Makefile |
732
0e6e1ef2b6bc
Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
Florian Pose <fp@igh-essen.com>
parents:
726
diff
changeset
|
593 |
master/Kbuild |
392
eaee3c8d6ae0
Debug interfaces not compiled by default.
Florian Pose <fp@igh-essen.com>
parents:
387
diff
changeset
|
594 |
master/Makefile |
385
c33367851350
Added file ./bootstrap; Added $(DESTDIR) to */Makefile.am make alternate root installs possible
Richard Hacker <ha@igh-essen.com>
parents:
373
diff
changeset
|
595 |
script/Makefile |
563
d113b63c55c4
Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
546
diff
changeset
|
596 |
script/init.d/Makefile |
1185
337ce4fc2383
Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents:
1120
diff
changeset
|
597 |
script/init.d/ethercat |
563
d113b63c55c4
Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
546
diff
changeset
|
598 |
script/sysconfig/Makefile |
1120 | 599 |
tool/Makefile |
1565
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
600 |
tty/Makefile |
8c526cfe1399
Base files for new TTY driver.
Florian Pose <fp@igh-essen.com>
parents:
1540
diff
changeset
|
601 |
tty/Kbuild |
385
c33367851350
Added file ./bootstrap; Added $(DESTDIR) to */Makefile.am make alternate root installs possible
Richard Hacker <ha@igh-essen.com>
parents:
373
diff
changeset
|
602 |
]) |
365 | 603 |
AC_OUTPUT |
604 |
||
605 |
#------------------------------------------------------------------------------ |