equal
deleted
inserted
replaced
1 #------------------------------------------------------------------------------ |
1 #------------------------------------------------------------------------------ |
2 # $Id$ |
2 # $Id$ |
3 #------------------------------------------------------------------------------ |
3 #------------------------------------------------------------------------------ |
4 |
4 |
|
5 AC_PREREQ(2.59) |
5 AC_INIT([ethercat],[1.1],[fp@igh-essen.com]) |
6 AC_INIT([ethercat],[1.1],[fp@igh-essen.com]) |
6 AC_CONFIG_AUX_DIR([autoconf]) |
7 AC_CONFIG_AUX_DIR([autoconf]) |
|
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2]) |
7 AC_PREFIX_DEFAULT([/opt/etherlab]) |
9 AC_PREFIX_DEFAULT([/opt/etherlab]) |
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2]) |
10 AC_CONFIG_HEADERS([config.h]) |
|
11 AC_CONFIG_SRCDIR([config.h.in]) |
9 |
12 |
10 #------------------------------------------------------------------------------ |
13 #------------------------------------------------------------------------------ |
11 # Linux sources |
14 # Linux sources |
12 #------------------------------------------------------------------------------ |
15 #------------------------------------------------------------------------------ |
13 |
16 |
47 if test -z "$DEPMOD"; then |
50 if test -z "$DEPMOD"; then |
48 AC_MSG_WARN([depmod was not found!]); |
51 AC_MSG_WARN([depmod was not found!]); |
49 fi |
52 fi |
50 |
53 |
51 #------------------------------------------------------------------------------ |
54 #------------------------------------------------------------------------------ |
|
55 # Debug interface |
|
56 #------------------------------------------------------------------------------ |
|
57 |
|
58 AC_ARG_ENABLE([debug-if], |
|
59 AS_HELP_STRING([--enable-dbg-if], |
|
60 [Create a debug interface for each master @<:@NO@:>@]), |
|
61 [case "${enableval}" in |
|
62 yes) dbg=1 |
|
63 AC_DEFINE([EC_DBG_IF], [1], [Debug interfaces enabled]) |
|
64 ;; |
|
65 no) dbg=0 |
|
66 ;; |
|
67 *) AC_MSG_ERROR([Invalid value for --enable-dbg-if]) |
|
68 ;; |
|
69 esac], |
|
70 [dbg=0] |
|
71 ) |
|
72 AM_CONDITIONAL(EC_DBG_IF, test "x$dbg" = x1) |
|
73 AC_SUBST([EC_DBG_IF],${dbg}) |
|
74 |
|
75 #------------------------------------------------------------------------------ |
52 |
76 |
53 AC_CONFIG_FILES([ |
77 AC_CONFIG_FILES([ |
54 Makefile |
78 Makefile |
55 master/Makefile |
79 master/Makefile |
56 devices/Makefile |
80 devices/Makefile |
57 script/Makefile |
81 script/Makefile |
58 include/Makefile |
82 include/Makefile |
59 examples/mini/Makefile |
83 examples/mini/Makefile |
60 examples/rtai/Makefile |
84 examples/rtai/Makefile |
61 examples/msr/Makefile |
85 examples/msr/Makefile |