summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-12 01:01:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-12 01:01:23 +0000
commiteab2dbc8066b39874da3726adbd5d836df626cbe (patch)
treee8ebc38f27e5adf964778cc53f3be2608d0219ae /eclass
parentfix cracklib DEPEND #88241 (diff)
downloadgentoo-2-eab2dbc8066b39874da3726adbd5d836df626cbe.tar.gz
gentoo-2-eab2dbc8066b39874da3726adbd5d836df626cbe.tar.bz2
gentoo-2-eab2dbc8066b39874da3726adbd5d836df626cbe.zip
move ecpu_check to mplayer
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass46
1 files changed, 1 insertions, 45 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index dbe851ca9ac5..2e208d90c3af 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.164 2005/03/30 14:12:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.165 2005/04/12 01:01:23 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -17,50 +17,6 @@ DEPEND="!bootstrap? ( sys-devel/patch )"
DESCRIPTION="Based on the ${ECLASS} eclass"
-# ecpu_check
-# Usage:
-#
-# ecpu_check array_of_cpu_flags
-#
-# array_of_cpu_flags - An array of cpu flags to check against USE flags
-#
-# Checks user USE related cpu flags against /proc/cpuinfo. If user enables a
-# cpu flag that is not supported in their processor flags, it will warn the
-# user if CROSSCOMPILE is not set to 1 ( because cross compile users are
-# obviously using different cpu flags than their own cpu ). Examples:
-#
-# CPU_FLAGS=(mmx mmx2 sse sse2)
-# ecpu_check CPU_FLAGS
-# Chris White <chriswhite@gentoo.org> (03 Feb 2005)
-
-ecpu_check() {
- # Think about changing below to: if [ "${CROSSCOMPILE}" -ne 1 -a -e "/proc/cpuinfo" ]
- # and dropping the else if you do not plan on adding anything to that
- # empty block ....
- # PS: also try to add some quoting, and consider rather using ${foo} than $foo ...
- if [ "${CROSSCOMPILE}" != "1" -a -e "/proc/cpuinfo" ]
- then
- CPU_FLAGS=${1}
- USER_CPU=`grep "flags" /proc/cpuinfo`
-
- for flags in `seq 1 ${#CPU_FLAGS[@]}`
- do
- if has ${CPU_FLAGS[${flags} - 1]} ${USER_CPU} && ! has ${CPU_FLAGS[${flags} - 1]} ${USE}
- then
- ewarn "Your system is ${CPU_FLAGS[${flags} - 1]} capable but you don't have it enabled!"
- ewarn "You might be cross compiling (in this case set CROSSCOMPILE to 1 to disable this warning."
- fi
-
- if ! has ${CPU_FLAGS[${flags} - 1]} ${USER_CPU} && has ${CPU_FLAGS[${flags} -1]} ${USE}
- then
- ewarn "You have ${CPU_FLAGS[${flags} - 1]} support enabled but your processor doesn't"
- ewarn "Seem to support it! You might be cross compiling or do not have /proc filesystem"
- ewarn "enabled. If either is the case, set CROSSCOMPILE to 1 to disable this warning."
- fi
- done
- fi
-}
-
# Wait for the supplied number of seconds. If no argument is supplied, defaults
# to five seconds. If the EPAUSE_IGNORE env var is set, don't wait. If we're not
# outputting to a terminal, don't wait. For compatability purposes, the argument