4
XPLATFORM=`basename $1`
10
[ "$VERBOSE" = "yes" ] && echo "Detecting broken X11 headers... ($*)"
12
# Detect broken X11 headers when using GCC 2.95 or later
13
# Xsun on Solaris 2.5.1:
14
# Patches are available for Solaris 2.6, 7, and 8 but
15
# not for Solaris 2.5.1.
17
# Patches are available for HP-UX 10.20, 11.00, and 11.11.
18
# AIX 4.3.3 and AIX 5.1:
19
# Headers are clearly broken on all AIX versions, and we
20
# don't know of any patches. The strange thing is that we
21
# did not get any reports about this issue until very
22
# recently, long after gcc 3.0.x was released. It seems to
23
# work for us with gcc 2.95.2.
26
if [ $XPLATFORM = "solaris-g++" -o $XPLATFORM = "hpux-g++" -o $XPLATFORM = "aix-g++" -o $XPLATFORM = "aix-g++-64" ]; then
29
test -d "$OUTDIR/config.tests/x11/notype" || mkdir -p "$OUTDIR/config.tests/x11/notype"
30
"$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "QT_BUILD_TREE=$OUTDIR" "$SRCDIR/config.tests/x11/notype/notypetest.pro" -o "$OUTDIR/config.tests/x11/notype/Makefile" >/dev/null 2>&1
31
cd "$OUTDIR/config.tests/x11/notype"
33
if [ "$VERBOSE" = "yes" ]; then
39
[ -x notypetest ] && NOTYPE=no
43
if [ "$NOTYPE" = "yes" ]; then
44
[ "$VERBOSE" = "yes" ] && echo "Broken X11 headers detected."
47
[ "$VERBOSE" = "yes" ] && echo "X11 headers look good."