diff options
author | crunchy <crunchy> | 2002-09-15 14:55:57 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-15 14:55:57 +0000 |
commit | 38734679e4a63712715368e95081cd21a2d0d1d1 (patch) | |
tree | 2e463277ffb0a829402970879a7ddb288e264618 /configure.in | |
parent | a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1 (diff) | |
download | mpiosh-38734679e4a63712715368e95081cd21a2d0d1d1.tar.gz mpiosh-38734679e4a63712715368e95081cd21a2d0d1d1.tar.bz2 mpiosh-38734679e4a63712715368e95081cd21a2d0d1d1.zip |
spec file; fixes
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 560d488..061f826 100644 --- a/configure.in +++ b/configure.in @@ -26,8 +26,19 @@ echo $kernel_version if test "$_k_verc_fail" ; then echo " Your kernel version is to old." echo " Please update your system to a kernel version of 2.2.x or higher." + AC_ERROR("too old") fi +MODULE_PATH="/lib/modules/${kernel_version}" +if test -d "${MODULE_PATH}/kernel/drivers/usb"; then + MODULE_PATH="${MODULE_PATH}/kernel/drivers/usb" +else + MODULE_PATH="${MODULE_PATH}/misc" +fi +AC_MSG_RESULT(Using module path ${MODULE_PATH}.) + +AC_SUBST(MODULE_PATH) + dnl Checks for header files. AC_CHECK_HEADER(getopt.h,HAVE_GETOPT_H=1,HAVE_GETOPT_H=0) |