231 |
231 |
232 AC_MSG_RESULT([$kernelforcedeth]) |
232 AC_MSG_RESULT([$kernelforcedeth]) |
233 fi |
233 fi |
234 |
234 |
235 #------------------------------------------------------------------------------ |
235 #------------------------------------------------------------------------------ |
|
236 # e1000 driver |
|
237 #------------------------------------------------------------------------------ |
|
238 |
|
239 AC_ARG_ENABLE([e1000], |
|
240 AS_HELP_STRING([--enable-e1000], |
|
241 [Enable e1000 driver]), |
|
242 [ |
|
243 case "${enableval}" in |
|
244 yes) enablee1000=1 |
|
245 ;; |
|
246 no) enablee1000=0 |
|
247 ;; |
|
248 *) AC_MSG_ERROR([Invalid value for --enable-e1000]) |
|
249 ;; |
|
250 esac |
|
251 ], |
|
252 [enablee1000=0] # disabled by default |
|
253 ) |
|
254 |
|
255 AM_CONDITIONAL(ENABLE_E1000, test "x$enablee1000" = "x1") |
|
256 |
|
257 AC_ARG_WITH([e1000-kernel], |
|
258 AC_HELP_STRING( |
|
259 [--with-e1000-kernel=<X.Y.Z>], |
|
260 [e1000 kernel (only if differing)] |
|
261 ), |
|
262 [ |
|
263 kernele1000=[$withval] |
|
264 ], |
|
265 [ |
|
266 kernele1000=$linuxversion |
|
267 ] |
|
268 ) |
|
269 |
|
270 if test "x${enablee1000}" = "x1"; then |
|
271 AC_MSG_CHECKING([for kernel for e1000 driver]) |
|
272 |
|
273 kernels=`ls -1 devices/e1000/ | grep -oE "^e1000_main-.*" | cut -d "-" -f 2 | uniq` |
|
274 found=0 |
|
275 for k in $kernels; do |
|
276 if test "$kernele1000" = "$k"; then |
|
277 found=1 |
|
278 fi |
|
279 done |
|
280 if test $found -ne 1; then |
|
281 AC_MSG_ERROR([kernel $kernele1000 not available for e1000 driver!]) |
|
282 fi |
|
283 |
|
284 AC_MSG_RESULT([$kernele1000]) |
|
285 fi |
|
286 |
|
287 #------------------------------------------------------------------------------ |
236 # RTAI path (optional) |
288 # RTAI path (optional) |
237 #------------------------------------------------------------------------------ |
289 #------------------------------------------------------------------------------ |
238 |
290 |
239 AC_ARG_WITH([rtai-dir], |
291 AC_ARG_WITH([rtai-dir], |
240 AC_HELP_STRING( |
292 AC_HELP_STRING( |
327 EC_8139TOO_KERNEL := ${kernel8139too} |
379 EC_8139TOO_KERNEL := ${kernel8139too} |
328 EC_ENABLE_E100 := ${enablee100} |
380 EC_ENABLE_E100 := ${enablee100} |
329 EC_E100_KERNEL := ${kernele100} |
381 EC_E100_KERNEL := ${kernele100} |
330 EC_ENABLE_FORCEDETH := ${enableforcedeth} |
382 EC_ENABLE_FORCEDETH := ${enableforcedeth} |
331 EC_FORCEDETH_KERNEL := ${kernelforcedeth} |
383 EC_FORCEDETH_KERNEL := ${kernelforcedeth} |
|
384 EC_ENABLE_E1000 := ${enablee1000} |
|
385 EC_E1000_KERNEL := ${kernele1000} |
332 EC_RTAI_DIR := "${rtaidir}" |
386 EC_RTAI_DIR := "${rtaidir}" |
333 EC_MSR_DIR := "${msrdir}" |
387 EC_MSR_DIR := "${msrdir}" |
334 EOF |
388 EOF |
335 |
389 |
336 #------------------------------------------------------------------------------ |
390 #------------------------------------------------------------------------------ |
337 |
391 |
338 AC_CONFIG_FILES([ |
392 AC_CONFIG_FILES([ |
339 Makefile |
393 Makefile |
340 master/Makefile |
394 master/Makefile |
341 devices/Makefile |
395 devices/Makefile |
|
396 devices/e1000/Makefile |
342 script/Makefile |
397 script/Makefile |
343 script/init.d/Makefile |
398 script/init.d/Makefile |
344 script/sysconfig/Makefile |
399 script/sysconfig/Makefile |
345 include/Makefile |
400 include/Makefile |
346 examples/Makefile |
401 examples/Makefile |