gentoo: use /var/run for new /run compatibility
[util-vserver.git] / m4 / ensc_dietlibc.m4
index bbbb031..62e6641 100644 (file)
@@ -1,16 +1,16 @@
 dnl $Id$
 
 dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl  
+dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; version 2 of the License.
-dnl  
+dnl
 dnl This program is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
-dnl  
+dnl
 dnl You should have received a copy of the GNU General Public License
 dnl along with this program; if not, write to the Free Software
 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -110,11 +110,11 @@ AC_DEFUN([ENSC_ENABLE_DIETLIBC],
            _dietlibc_ver=${_dietlibc_ver##*diet version }
            _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
            _dietlibc_ver_maj=${_dietlibc_ver%%.*}
-           _dietlibc_ver_min=${_dietlibc_ver##*.}
+           _dietlibc_ver_min=${_dietlibc_ver#*.}
            _dietlibc_ver_min=${_dietlibc_ver_min%%[[!0-9]]*}
            _dietlibc_cmp="$2"
            _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
-           _dietlibc_cmp_min=${_dietlibc_cmp##*.}
+           _dietlibc_cmp_min=${_dietlibc_cmp#*.}
 
            ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
 
@@ -125,7 +125,7 @@ AC_DEFUN([ENSC_ENABLE_DIETLIBC],
        else
            ENSC_VERSION_DIETLIBC=
            _dietlibc_ver=-1
-        fi
+       fi
 
        ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
        ensc_have_dietlibc=no
@@ -163,19 +163,3 @@ AC_DEFUN([ENSC_ENABLE_DIETLIBC],
                _ENSC_DIETLIBC_SYSCALL
        fi
 ])
-
-
-dnl Usage: ENSC_DIETLIBC_SANITYCHECK
-AC_DEFUN([ENSC_DIETLIBC_SANITYCHECK],
-[
-       AC_REQUIRE([AC_CANONICAL_HOST])
-       AC_REQUIRE([ENSC_ENABLE_DIETLIBC])
-
-       if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
-               AC_MSG_WARN([***                                                             ***])
-               AC_MSG_WARN([*** dietlibc<=0.27 is known to be broken for x86_64 systems     ***])
-               AC_MSG_WARN([*** please make sure that at least the environ.S fix is applied ***])
-               AC_MSG_WARN([*** and lib/__nice.c added                                      ***])
-               AC_MSG_WARN([***                                                             ***])
-       fi
-])