~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to config.tests/unix/largefile.test

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
LARGEFILE=0
 
4
QMKSPEC=$1
 
5
VERBOSE=$2
 
6
SRCDIR=$3
 
7
OUTDIR=$4
 
8
 
 
9
# debuggery
 
10
[ "$VERBOSE" = "yes" ] && echo "Testing Large File support... ($*)"
 
11
 
 
12
# build and run a test program
 
13
test -d $OUTDIR/config.tests/unix/largefile || mkdir -p $OUTDIR/config.tests/unix/largefile
 
14
$OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" $SRCDIR/config.tests/unix/largefile/largefiletest.pro -o $OUTDIR/config.tests/unix/largefile/Makefile >/dev/null 2>&1
 
15
cd $OUTDIR/config.tests/unix/largefile
 
16
 
 
17
if [ "$VERBOSE" = "yes" ]; then
 
18
  (make && ./largefiletest)
 
19
else
 
20
  (make && ./largefiletest) >/dev/null 2>&1
 
21
fi
 
22
LARGEFILE=$?
 
23
 
 
24
# done
 
25
if [ "$LARGEFILE" -ne 0 ]; then
 
26
    [ "$VERBOSE" = "yes" ] && echo "Large File support disabled."
 
27
    exit 0
 
28
else
 
29
    [ "$VERBOSE" = "yes" ] && echo "Large File support enabled."
 
30
    exit 1
 
31
fi