configure.ac
branchstable-1.5
changeset 2549 933a1b36b05f
parent 2526 2eff7c993a63
child 2553 b0c2762a1a83
equal deleted inserted replaced
2526:2eff7c993a63 2549:933a1b36b05f
   210 fi
   210 fi
   211 
   211 
   212 AC_SUBST(KERNEL_8139TOO,[$kernel8139too])
   212 AC_SUBST(KERNEL_8139TOO,[$kernel8139too])
   213 
   213 
   214 #------------------------------------------------------------------------------
   214 #------------------------------------------------------------------------------
       
   215 # CCAT driver
       
   216 #------------------------------------------------------------------------------
       
   217 
       
   218 AC_ARG_ENABLE([ccat],
       
   219     AS_HELP_STRING([--enable-ccat],
       
   220                    [Enable CCAT driver]),
       
   221     [
       
   222         case "${enableval}" in
       
   223             yes) enableccat=1
       
   224                 ;;
       
   225             no) enableccat=0
       
   226                 ;;
       
   227             *) AC_MSG_ERROR([Invalid value for --enable-ccat])
       
   228                 ;;
       
   229         esac
       
   230     ],
       
   231     [enableccat=0] # disabled by default
       
   232 )
       
   233 
       
   234 AM_CONDITIONAL(ENABLE_CCAT, test "x$enableccat" = "x1")
       
   235 AC_SUBST(ENABLE_CCAT,[$enableccat])
       
   236 
       
   237 AC_ARG_WITH([ccat-kernel],
       
   238     AC_HELP_STRING(
       
   239         [--with-ccat-kernel=<X.Y.Z>],
       
   240         [ccat kernel (only if differing)]
       
   241     ),
       
   242     [
       
   243         kernelccat=[$withval]
       
   244     ],
       
   245     [
       
   246         kernelccat=$linuxversion
       
   247     ]
       
   248 )
       
   249 
       
   250 if test "x${enableccat}" = "x1"; then
       
   251     AC_MSG_CHECKING([for kernel for ccat driver])
       
   252 
       
   253     kernels=`ls -1 ${srcdir}/devices/ccat/ | grep -oE "^netdev-.*" | cut -d "-" -f 2 | uniq`
       
   254     found=0
       
   255     for k in $kernels; do
       
   256         if test "$kernelccat" = "$k"; then
       
   257             found=1
       
   258         fi
       
   259     done
       
   260     if test $found -ne 1; then
       
   261         AC_MSG_ERROR([kernel $kernelccat not available for ccat driver!])
       
   262     fi
       
   263 
       
   264     AC_MSG_RESULT([$kernelccat])
       
   265 fi
       
   266 
       
   267 AC_SUBST(KERNEL_CCAT,[$kernelccat])
       
   268 
       
   269 #------------------------------------------------------------------------------
   215 # e100 driver
   270 # e100 driver
   216 #------------------------------------------------------------------------------
   271 #------------------------------------------------------------------------------
   217 
   272 
   218 AC_ARG_ENABLE([e100],
   273 AC_ARG_ENABLE([e100],
   219     AS_HELP_STRING([--enable-e100],
   274     AS_HELP_STRING([--enable-e100],
   937         Doxyfile
   992         Doxyfile
   938         Kbuild
   993         Kbuild
   939         Makefile
   994         Makefile
   940         devices/Kbuild
   995         devices/Kbuild
   941         devices/Makefile
   996         devices/Makefile
       
   997         devices/ccat/Kbuild
       
   998         devices/ccat/Makefile
   942         devices/e1000/Kbuild
   999         devices/e1000/Kbuild
   943         devices/e1000/Makefile
  1000         devices/e1000/Makefile
   944         devices/e1000e/Kbuild
  1001         devices/e1000e/Kbuild
   945         devices/e1000e/Makefile
  1002         devices/e1000e/Makefile
   946         ethercat.spec
  1003         ethercat.spec