2008-12-04 16:15:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (c) 2003,2004 SuSE Linux AG, Germany. All rights reserved.
|
|
|
|
#
|
|
|
|
# Authors: Thorsten Kukuk <kukuk@suse.de>
|
|
|
|
#
|
|
|
|
# this script use the following variable(s):
|
|
|
|
#
|
|
|
|
# - $BUILD_BASENAME
|
|
|
|
#
|
|
|
|
|
|
|
|
case `uname -m` in
|
|
|
|
*ppc*)
|
|
|
|
# Our biarch 32-bit compiler needs to be build on a 64-bit machine,
|
|
|
|
# otherwise some configure checks fail.
|
|
|
|
# Note that we cannot use uname here since powerpc32 was invoked
|
|
|
|
# already.
|
2009-09-15 14:32:57 +00:00
|
|
|
grep -E "Linux version.*(series64|pmac64|ppc64)" /proc/version > /dev/null
|
2008-12-04 16:15:40 +00:00
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
echo "build does not work on ("`hostname`" for gcc)"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*x86_64*)
|
|
|
|
if [ `getconf _NPROCESSORS_CONF` -lt 2 ] ; then
|
|
|
|
echo "build does not work on ("`hostname`" for gcc)"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|