]> arthur.barton.de Git - netatalk.git/commitdiff
patch from Yoshinobu Ishizaki for Linux 2.0.x builds
authorrufustfirefly <rufustfirefly>
Wed, 14 Mar 2001 17:31:57 +0000 (17:31 +0000)
committerrufustfirefly <rufustfirefly>
Wed, 14 Mar 2001 17:31:57 +0000 (17:31 +0000)
configure.in

index 4b1611a7e816c5affa29591a6e83beeb844db511..f6f0de6b1a9e6ad06125f552ea2dda501f45fb7d 100644 (file)
@@ -398,7 +398,7 @@ fi
 dnl ----- Linux specific -----
 if test x"$this_os" = "xlinux"; then 
        AC_MSG_RESULT([ * Linux specific configuration])
-       AC_DEFINE(SENDFILE_FLAVOR_LINUX)
+       dnl AC_DEFINE(SENDFILE_FLAVOR_LINUX)
 
        dnl ----- check if we need the quotactl wrapper
        AC_CHECK_HEADER(sys/quota.h,,
@@ -406,6 +406,21 @@ if test x"$this_os" = "xlinux"; then
                AC_DEFINE(NEED_QUOTACTL_WRAPPER)
        )
 
+       dnl --- added by Yoshinobu Ishizaki (2001.03.13) ---
+       dnl ----- check if version is newer than 2.2.x
+       changequote(<<,>>)
+       majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
+       minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
+       if [ $majorvers -ge 2 ]; then
+               if [ $minorvers -ge 2 ]; then
+                       changequote([,])
+                       AC_MSG_RESULT([ * found Linux 2.2.x or higher])
+                       AC_DEFINE(SENDFILE_FLAVOR_LINUX)
+               else
+                       AC_MSG_RESULT([ * found Linux 2.0.x ]) 
+               fi
+       fi
+
        dnl ----- Linux/alpha specific -----
        if test x"$this_cpu" = "xalpha"; then 
                AC_MSG_RESULT([enabling gcc memcpy bug workaround])