source: trunk/config.tests/mac/xarch.test@ 353

Last change on this file since 353 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

  • Property svn:executable set to *
File size: 516 bytes
Line 
1#!/bin/sh
2
3XARCH_SUPPORT=no
4COMPILER=$1
5VERBOSE=$2
6WORKDIR=$3
7
8touch xarch.c
9
10if "$COMPILER" -c xarch.c -Xarch_i386 -mmmx 2>/dev/null 1>&2; then
11 if "$COMPILER" -c xarch.c -Xarch_i386 -mmmx 2>&1 | grep "unrecognized" >/dev/null ; then
12 true
13 else
14 XARCH_SUPPORT=yes
15 fi
16fi
17rm -f xarch.c xarch.o
18
19# done
20if [ "$XARCH_SUPPORT" != "yes" ]; then
21 [ "$VERBOSE" = "yes" ] && echo "Xarch is not supported"
22 exit 0
23else
24 [ "$VERBOSE" = "yes" ] && echo "Xarch support detected"
25 exit 1
26fi
Note: See TracBrowser for help on using the repository browser.