183 |
183 |
184 AC_MSG_RESULT([$kernele100]) |
184 AC_MSG_RESULT([$kernele100]) |
185 fi |
185 fi |
186 |
186 |
187 AC_SUBST(KERNEL_E100,[$kernele100]) |
187 AC_SUBST(KERNEL_E100,[$kernele100]) |
188 |
|
189 #------------------------------------------------------------------------------ |
|
190 # forcedeth driver |
|
191 #------------------------------------------------------------------------------ |
|
192 |
|
193 AC_ARG_ENABLE([forcedeth], |
|
194 AS_HELP_STRING([--enable-forcedeth], |
|
195 [Enable forcedeth driver]), |
|
196 [ |
|
197 case "${enableval}" in |
|
198 yes) enableforcedeth=1 |
|
199 ;; |
|
200 no) enableforcedeth=0 |
|
201 ;; |
|
202 *) AC_MSG_ERROR([Invalid value for --enable-forcedeth]) |
|
203 ;; |
|
204 esac |
|
205 ], |
|
206 [enableforcedeth=0] # disabled by default! |
|
207 ) |
|
208 |
|
209 AM_CONDITIONAL(ENABLE_FORCEDETH, test "x$enableforcedeth" = "x1") |
|
210 AC_SUBST(ENABLE_FORCEDETH,[$enableforcedeth]) |
|
211 |
|
212 AC_ARG_WITH([forcedeth-kernel], |
|
213 AC_HELP_STRING( |
|
214 [--with-forcedeth-kernel=<X.Y.Z>], |
|
215 [forcedeth kernel (only if differing)] |
|
216 ), |
|
217 [ |
|
218 kernelforcedeth=[$withval] |
|
219 ], |
|
220 [ |
|
221 kernelforcedeth=$linuxversion |
|
222 ] |
|
223 ) |
|
224 |
|
225 if test "x${enableforcedeth}" = "x1"; then |
|
226 AC_MSG_CHECKING([for kernel for forcedeth driver]) |
|
227 |
|
228 kernels=`ls -1 devices/ | grep -oE "^forcedeth-.*-" | cut -d "-" -f 2 | uniq` |
|
229 found=0 |
|
230 for k in $kernels; do |
|
231 if test "$kernelforcedeth" = "$k"; then |
|
232 found=1 |
|
233 fi |
|
234 done |
|
235 if test $found -ne 1; then |
|
236 AC_MSG_ERROR([kernel $kernelforcedeth not available for forcedeth driver!]) |
|
237 fi |
|
238 |
|
239 AC_MSG_RESULT([$kernelforcedeth]) |
|
240 fi |
|
241 |
|
242 AC_SUBST(KERNEL_FORCEDETH,[$kernelforcedeth]) |
|
243 |
188 |
244 #------------------------------------------------------------------------------ |
189 #------------------------------------------------------------------------------ |
245 # e1000 driver |
190 # e1000 driver |
246 #------------------------------------------------------------------------------ |
191 #------------------------------------------------------------------------------ |
247 |
192 |