configure.ac
branchstable-1.1
changeset 1731 60b2aad9d40b
parent 1727 861f4715ed6f
child 1732 1cc865ba17c2
equal deleted inserted replaced
1730:27a1aee7e254 1731:60b2aad9d40b
     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])
       
     7 AC_CONFIG_AUX_DIR([autoconf])
     6 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
     8 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
     7 AC_PREFIX_DEFAULT([/opt/etherlab])
     9 AC_PREFIX_DEFAULT([/opt/etherlab])
     8 AC_CONFIG_FILES([Makefile master/Makefile devices/Makefile \
    10 AC_CONFIG_HEADERS([config.h])
     9 	         examples/mini/Makefile \
    11 AC_CONFIG_SRCDIR([config.h.in])
    10 		 examples/rtai/Makefile \
       
    11 		 examples/msr/Makefile])
       
    12 
    12 
    13 #------------------------------------------------------------------------------
    13 #------------------------------------------------------------------------------
    14 # Linux sources
    14 # Linux sources
    15 #------------------------------------------------------------------------------
    15 #------------------------------------------------------------------------------
    16 
    16 
    50 if test -z "$DEPMOD"; then
    50 if test -z "$DEPMOD"; then
    51    AC_MSG_WARN([depmod was not found!]);
    51    AC_MSG_WARN([depmod was not found!]);
    52 fi
    52 fi
    53 
    53 
    54 #------------------------------------------------------------------------------
    54 #------------------------------------------------------------------------------
       
    55 # Debug interface
       
    56 #------------------------------------------------------------------------------
    55 
    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 #------------------------------------------------------------------------------
       
    76 
       
    77 AC_CONFIG_FILES([
       
    78         Makefile
       
    79         master/Makefile
       
    80         devices/Makefile
       
    81         script/Makefile
       
    82         include/Makefile
       
    83         examples/Makefile
       
    84         examples/mini/Makefile
       
    85         examples/rtai/Makefile
       
    86         examples/msr/Makefile
       
    87 ])
    56 AC_OUTPUT
    88 AC_OUTPUT
    57 
    89 
    58 #------------------------------------------------------------------------------
    90 #------------------------------------------------------------------------------