equal
deleted
inserted
replaced
778 |
778 |
779 if test "x${wildcards}" = "x1"; then |
779 if test "x${wildcards}" = "x1"; then |
780 AC_DEFINE([EC_IDENT_WILDCARDS], [1], |
780 AC_DEFINE([EC_IDENT_WILDCARDS], [1], |
781 [Use vendor id / product code wildcards]) |
781 [Use vendor id / product code wildcards]) |
782 fi |
782 fi |
|
783 |
|
784 #------------------------------------------------------------------------------ |
|
785 # Redundancy (number of devices) |
|
786 #------------------------------------------------------------------------------ |
|
787 |
|
788 AC_ARG_WITH([devices], |
|
789 AC_HELP_STRING( |
|
790 [--with-devices=<NUMBER>], |
|
791 [Number of Ethernet devices per master. Default: 1] |
|
792 ), |
|
793 [ |
|
794 devices=[$withval] |
|
795 ], |
|
796 [ |
|
797 devices=1 |
|
798 ] |
|
799 ) |
|
800 |
|
801 AC_MSG_CHECKING([for number of Ethernet devices]) |
|
802 |
|
803 if test "${devices}" -lt 1; then |
|
804 AC_MSG_ERROR([Number must be greater zero!]) |
|
805 else |
|
806 if test "${devices}" -gt 1; then |
|
807 AC_MSG_RESULT([$devices (Redundancy enabled)]) |
|
808 else |
|
809 AC_MSG_RESULT([$devices (Redundancy disabled)]) |
|
810 fi |
|
811 fi |
|
812 |
|
813 AC_DEFINE_UNQUOTED([EC_MAX_NUM_DEVICES], $devices, |
|
814 [Max. number of Ethernet devices per master]) |
783 |
815 |
784 #------------------------------------------------------------------------------ |
816 #------------------------------------------------------------------------------ |
785 |
817 |
786 AC_CONFIG_FILES([ |
818 AC_CONFIG_FILES([ |
787 Doxyfile |
819 Doxyfile |