configure.ac
branchredundancy
changeset 2133 74dbd0b7d6aa
parent 2064 2ab48cb3a5b4
child 2295 4e4c018573c0
equal deleted inserted replaced
2129:78efdac9ee87 2133:74dbd0b7d6aa
   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],
   611         Makefile
   666         Makefile
   612         devices/Kbuild
   667         devices/Kbuild
   613         devices/Makefile
   668         devices/Makefile
   614         devices/e1000/Kbuild
   669         devices/e1000/Kbuild
   615         devices/e1000/Makefile
   670         devices/e1000/Makefile
       
   671         devices/e1000e/Kbuild
       
   672         devices/e1000e/Makefile
   616         ethercat.spec
   673         ethercat.spec
   617         examples/Kbuild
   674         examples/Kbuild
   618         examples/Makefile
   675         examples/Makefile
   619         examples/dc_rtai/Kbuild
   676         examples/dc_rtai/Kbuild
   620         examples/dc_rtai/Makefile
   677         examples/dc_rtai/Makefile