302 fi |
302 fi |
303 |
303 |
304 AC_SUBST(KERNEL_E1000,[$kernele1000]) |
304 AC_SUBST(KERNEL_E1000,[$kernele1000]) |
305 |
305 |
306 #------------------------------------------------------------------------------ |
306 #------------------------------------------------------------------------------ |
|
307 # e1000e driver |
|
308 #------------------------------------------------------------------------------ |
|
309 |
|
310 AC_ARG_ENABLE([e1000e], |
|
311 AS_HELP_STRING([--enable-e1000e], |
|
312 [Enable e1000e driver]), |
|
313 [ |
|
314 case "${enableval}" in |
|
315 yes) enablee1000e=1 |
|
316 ;; |
|
317 no) enablee1000e=0 |
|
318 ;; |
|
319 *) AC_MSG_ERROR([Invalid value for --enable-e1000e]) |
|
320 ;; |
|
321 esac |
|
322 ], |
|
323 [enablee1000e=0] # disabled by default |
|
324 ) |
|
325 |
|
326 AM_CONDITIONAL(ENABLE_E1000E, test "x$enablee1000e" = "x1") |
|
327 AC_SUBST(ENABLE_E1000E,[$enablee1000e]) |
|
328 |
|
329 AC_ARG_WITH([e1000e-kernel], |
|
330 AC_HELP_STRING( |
|
331 [--with-e1000e-kernel=<X.Y.Z>], |
|
332 [e1000e kernel (only if differing)] |
|
333 ), |
|
334 [ |
|
335 kernele1000e=[$withval] |
|
336 ], |
|
337 [ |
|
338 kernele1000e=$linuxversion |
|
339 ] |
|
340 ) |
|
341 |
|
342 if test "x${enablee1000e}" = "x1"; then |
|
343 AC_MSG_CHECKING([for kernel for e1000e driver]) |
|
344 |
|
345 kernels=`ls -1 ${srcdir}/devices/e1000e/ | grep -oE "^netdev-.*" | cut -d "-" -f 2 | uniq` |
|
346 found=0 |
|
347 for k in $kernels; do |
|
348 if test "$kernele1000e" = "$k"; then |
|
349 found=1 |
|
350 fi |
|
351 done |
|
352 if test $found -ne 1; then |
|
353 AC_MSG_ERROR([kernel $kernele1000e not available for e1000e driver!]) |
|
354 fi |
|
355 |
|
356 AC_MSG_RESULT([$kernele1000e]) |
|
357 fi |
|
358 |
|
359 AC_SUBST(KERNEL_E1000E,[$kernele1000e]) |
|
360 |
|
361 #------------------------------------------------------------------------------ |
307 # r8169 driver |
362 # r8169 driver |
308 #------------------------------------------------------------------------------ |
363 #------------------------------------------------------------------------------ |
309 |
364 |
310 AC_ARG_ENABLE([r8169], |
365 AC_ARG_ENABLE([r8169], |
311 AS_HELP_STRING([--enable-r8169], |
366 AS_HELP_STRING([--enable-r8169], |
363 #------------------------------------------------------------------------------ |
418 #------------------------------------------------------------------------------ |
364 |
419 |
365 AC_ARG_WITH([rtai-dir], |
420 AC_ARG_WITH([rtai-dir], |
366 AC_HELP_STRING( |
421 AC_HELP_STRING( |
367 [--with-rtai-dir=<DIR>], |
422 [--with-rtai-dir=<DIR>], |
368 [RTAI path (only for RTAI examples)] |
423 [RTAI path (only for RTDM Interface or RTAI examples)] |
369 ), |
424 ), |
370 [ |
425 [ |
371 rtaidir=[$withval] |
426 rtaidir=[$withval] |
|
427 rtai=1 |
372 ], |
428 ], |
373 [ |
429 [ |
374 rtaidir="" |
430 rtaidir="" |
|
431 rtai=0 |
375 ] |
432 ] |
376 ) |
433 ) |
377 |
434 |
378 AC_MSG_CHECKING([for RTAI path]) |
435 AC_MSG_CHECKING([for RTAI path]) |
379 |
436 |
385 fi |
442 fi |
386 AC_MSG_RESULT([$rtaidir]) |
443 AC_MSG_RESULT([$rtaidir]) |
387 fi |
444 fi |
388 |
445 |
389 AC_SUBST(RTAI_DIR,[$rtaidir]) |
446 AC_SUBST(RTAI_DIR,[$rtaidir]) |
|
447 AM_CONDITIONAL(ENABLE_RTAI, test "x$rtai" = "x1") |
|
448 AC_SUBST(ENABLE_RTAI,[$rtai]) |
|
449 |
|
450 #------------------------------------------------------------------------------ |
|
451 # Xenomai path (optional) |
|
452 #------------------------------------------------------------------------------ |
|
453 |
|
454 AC_ARG_WITH([xenomai-dir], |
|
455 AC_HELP_STRING( |
|
456 [--with-xenomai-dir=<DIR>], |
|
457 [Xenomai path (only for RTDM Interface)] |
|
458 ), |
|
459 [ |
|
460 xenomaidir=[$withval] |
|
461 xeno=1 |
|
462 ], |
|
463 [ |
|
464 xenomaidir="" |
|
465 xeno=0 |
|
466 ] |
|
467 ) |
|
468 |
|
469 AC_MSG_CHECKING([for Xenomai path]) |
|
470 |
|
471 if test -z "${xenomaidir}"; then |
|
472 AC_MSG_RESULT([not specified.]) |
|
473 else |
|
474 if test \! -r ${xenomaidir}/include/xeno_config.h; then |
|
475 AC_MSG_ERROR([no Xenomai installation found in ${xenomaidir}!]) |
|
476 fi |
|
477 AC_MSG_RESULT([$xenomaidir]) |
|
478 fi |
|
479 |
|
480 AC_SUBST(XENOMAI_DIR,[$xenomaidir]) |
|
481 AM_CONDITIONAL(ENABLE_XENOMAI, test "x$xeno" = "x1") |
|
482 AC_SUBST(ENABLE_XENOMAI,[$xeno]) |
|
483 |
|
484 #------------------------------------------------------------------------------ |
|
485 # RTDM Interface (optional) |
|
486 #------------------------------------------------------------------------------ |
|
487 |
|
488 AC_ARG_ENABLE([rtdm], |
|
489 AC_HELP_STRING( |
|
490 [--enable-rtdm], |
|
491 [Enable RTDM Interface, depends on RTAI or Xenomai] |
|
492 ), |
|
493 [ |
|
494 case "${enableval}" in |
|
495 yes) rtdm=1 |
|
496 ;; |
|
497 no) rtdm=0 |
|
498 ;; |
|
499 *) AC_MSG_ERROR([Invalid value for --enable-rtdm]) |
|
500 ;; |
|
501 esac |
|
502 ], |
|
503 [rtdm=0] |
|
504 ) |
|
505 |
|
506 if test "x${rtdm}" = "x1"; then |
|
507 AC_DEFINE([EC_RTDM], [1], [RTDM interfaces enabled]) |
|
508 fi |
|
509 AM_CONDITIONAL(ENABLE_RTDM, test "x$rtdm" = "x1") |
|
510 AC_SUBST(ENABLE_RTDM,[$rtdm]) |
|
511 |
390 |
512 |
391 #------------------------------------------------------------------------------ |
513 #------------------------------------------------------------------------------ |
392 # Debug interface |
514 # Debug interface |
393 #------------------------------------------------------------------------------ |
515 #------------------------------------------------------------------------------ |
394 |
516 |
511 if test "x${hrtimer}" = "x1"; then |
633 if test "x${hrtimer}" = "x1"; then |
512 AC_DEFINE([EC_USE_HRTIMER], [1], [Use hrtimer for scheduling]) |
634 AC_DEFINE([EC_USE_HRTIMER], [1], [Use hrtimer for scheduling]) |
513 fi |
635 fi |
514 |
636 |
515 #------------------------------------------------------------------------------ |
637 #------------------------------------------------------------------------------ |
|
638 # Use 2 datagrams (payload+last-byte) when sending to mailbox (reduces frame size) |
|
639 #------------------------------------------------------------------------------ |
|
640 |
|
641 AC_ARG_ENABLE([mboxframesize], |
|
642 AS_HELP_STRING([--enable-mboxframesize], |
|
643 [Reduced frame size when sending to mailbox, uses 2 datagrams (default: no)]), |
|
644 [ |
|
645 case "${enableval}" in |
|
646 yes) mboxframesize=1 |
|
647 ;; |
|
648 no) mboxframesize=0 |
|
649 ;; |
|
650 *) AC_MSG_ERROR([Invalid value for --enable-mboxframesize]) |
|
651 ;; |
|
652 esac |
|
653 ], |
|
654 [mboxframesize=0] |
|
655 ) |
|
656 |
|
657 if test "x${mboxframesize}" = "x1"; then |
|
658 AC_DEFINE([EC_REDUCE_MBOXFRAMESIZE], [1], [Reduced frame size when sending to mailbox]) |
|
659 fi |
|
660 |
|
661 |
|
662 #------------------------------------------------------------------------------ |
516 # Read alias address from register |
663 # Read alias address from register |
517 #------------------------------------------------------------------------------ |
664 #------------------------------------------------------------------------------ |
518 |
665 |
519 AC_ARG_ENABLE([regalias], |
666 AC_ARG_ENABLE([regalias], |
520 AS_HELP_STRING([--enable-regalias], |
667 AS_HELP_STRING([--enable-regalias], |
533 ) |
680 ) |
534 |
681 |
535 if test "x${regalias}" = "x1"; then |
682 if test "x${regalias}" = "x1"; then |
536 AC_DEFINE([EC_REGALIAS], [1], [Read alias adresses from register]) |
683 AC_DEFINE([EC_REGALIAS], [1], [Read alias adresses from register]) |
537 fi |
684 fi |
|
685 |
538 |
686 |
539 #------------------------------------------------------------------------------ |
687 #------------------------------------------------------------------------------ |
540 # Command-line tool |
688 # Command-line tool |
541 #----------------------------------------------------------------------------- |
689 #----------------------------------------------------------------------------- |
542 |
690 |