configure.ac
branchstable-1.5
changeset 2216 37c77787ea29
parent 2192 1c7c546ac08c
child 2228 71ebc81c6e43
equal deleted inserted replaced
2215:1b881194a4d8 2216:37c77787ea29
   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],
   636         Makefile
   691         Makefile
   637         devices/Kbuild
   692         devices/Kbuild
   638         devices/Makefile
   693         devices/Makefile
   639         devices/e1000/Kbuild
   694         devices/e1000/Kbuild
   640         devices/e1000/Makefile
   695         devices/e1000/Makefile
       
   696         devices/e1000e/Kbuild
       
   697         devices/e1000e/Makefile
   641         ethercat.spec
   698         ethercat.spec
   642         examples/Kbuild
   699         examples/Kbuild
   643         examples/Makefile
   700         examples/Makefile
   644         examples/dc_rtai/Kbuild
   701         examples/dc_rtai/Kbuild
   645         examples/dc_rtai/Makefile
   702         examples/dc_rtai/Makefile