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

« back to all changes in this revision

Viewing changes to config.tests/unix/precomp.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
PRECOMP_SUPPORT=no
 
4
XPLATFORM=`basename $1`
 
5
XCONFIG=$1/qmake.conf
 
6
VERBOSE=$2
 
7
 
 
8
>precomp_header.h
 
9
COMPILER=`grep QMAKE_CC $XCONFIG | sed "s,.*= *,,"`
 
10
if $COMPILER -x c-header precomp_header.h >/dev/null 2>&1; then
 
11
   $COMPILER -x c++-header precomp_header.h && PRECOMP_SUPPORT=yes
 
12
fi
 
13
rm -f precomp_header.h precomp_header.h.gch
 
14
 
 
15
# done
 
16
if [ "$PRECOMP_SUPPORT" != "yes" ]; then
 
17
    [ "$VERBOSE" = "yes" ] && echo "Precompiled-headers support disabled."
 
18
    exit 0
 
19
else
 
20
    [ "$VERBOSE" = "yes" ] && echo "Precompiled-headers support enabled."
 
21
    exit 1
 
22
fi