configure revision 4db9e373447f5361d2fd715b2b2396121a66548b
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard# The purpose of this script is to check for all external tools, headers, and
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# libraries VBox OSE depends on.
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# Copyright (C) 2006 InnoTek Systemberatung GmbH
af4c982a7cf4515f124935f99a329744035fc699slive# This file is part of VirtualBox Open Source Edition (OSE), as
af4c982a7cf4515f124935f99a329744035fc699slive# available from http://www.virtualbox.org. This file is free software;
af4c982a7cf4515f124935f99a329744035fc699slive# you can redistribute it and/or modify it under the terms of the GNU
af4c982a7cf4515f124935f99a329744035fc699slive# General Public License as published by the Free Software Foundation,
af4c982a7cf4515f124935f99a329744035fc699slive# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
af4c982a7cf4515f124935f99a329744035fc699slive# distribution. VirtualBox OSE is distributed in the hope that it will
af4c982a7cf4515f124935f99a329744035fc699slive# be useful, but WITHOUT ANY WARRANTY of any kind.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# If you received this file as part of a commercial VirtualBox
abdf88f96a56cf5c242d3195c493dbb8a7355d03wrowe# distribution, then only the terms of your commercial VirtualBox
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# license agreement apply instead of the previous paragraph.
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickCFLAGSHAL="-I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickQTDIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3"
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb# the restricting tool is ar (mri mode).
bca5b27d271b6e1690134a83963424b9825d93bdstrikerif (cd $(dirname $0); pwd)|grep -q "$INVALID_CHARS"; then
7718f3d5b4da70eb063877f5300ee361435910f4nd echo "Error: VBox base path contains invalid characters!"
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz# Wrapper for ancient /usr/bin/which on darwin that always returns 0
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe if which /bin/___cErTaINly_a_nOn_eXisTing_fIle___ 2> /dev/null > /dev/null; then
56b2562cb4041a21bc313fde3204beabdb758800jwoolley elif which_wrapper $1 > /dev/null; then
f881b8be216de36c6b964324c772450bca38a4e6trawick# Prepare a test
b05930e6008f69bd323abe0c10f81f40ffd27983brianp# Compile a test
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley echo "compiling the following source file:" >> $LOG
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"$1\"" >> $LOG
bb2a72a6e2327ae4f177c9d26e9d433033cfc27eaaron $CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
8c8fbb8546af54582539898be704411a60058d85trawick echo -e "\n $2 not found at $1 or $3 headers not found"
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard echo " Check the file $LOG for detailed error information."
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# Execute a compiled test binary
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb# Check for OS, MACHINE, CPU
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz i[3456789]86|x86)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe # on AMD64 systems, 64bit libs are usually located in /usr/lib64
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz # see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64
dc098c7ce5d36179c504d09fc722d190683d0262aaron OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr 'A-Z' 'a-z'`
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz if [ "$OS" = "darwin" -a $WITH_XPCOM -eq 1 ]; then
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick echo "Disabling checks for XPCOM related components."
54e1babd5a5a56c576eeeace54110150769cc916coar# Check for gcc with version >= 3.2.
54e1babd5a5a56c576eeeace54110150769cc916coar# We depend on a working gcc, if we fail terminate in every case.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe log_failure "gcc version $cc_ver does not match g++ version $cxx_ver"
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz log_failure "gcc version $cc_ver found, expected at least gcc version 3.2"
109faf633e12ab0bbdd602c7addc795cce59e8addreid# Check for the bcc compiler, needed for compiling the BIOS
109faf633e12ab0bbdd602c7addc795cce59e8addreid bcc_ver=`$BCC -v 2>&1|grep version|sed 's+^bcc: version \(.*\)+\1+'`
48c0c81cd6fabac9d3386406d97633780365b839coar echo "$BCC -B $bcc_dir -C-c -3 -S -o .tmp_out .tmp_src.c" >> $LOG
48c0c81cd6fabac9d3386406d97633780365b839coar $BCC -B $bcc_dir -C-c -3 -S -o .tmp_out .tmp_src.c >> $LOG 2>&1
cc22a72861c58dda7f3768613aec864e4c4e0353striker# Check for the as86 assembler, needed for compiling the BIOS
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe as86_ver=`$AS86 -v 2>&1|grep version|sed 's+^as86 version: \(.*\)+\1+'`
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# Check for yasm, needed to compile assembler files
ff849e4163ed879288f0df15f78b6c9d278ec804fanf yasm_ver=`$YASM --version|grep "^yasm"|sed 's+^yasm \(.*\)+\1+'`
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe yasm_ver_mul=$(($yasm_maj*10000+$yasm_min*100+$yasm_rev))
db3ccce11afac4fc1d4f51a65424412f7480c46cgstein log_failure "found version $yasm_ver, expected at least 0.5.1"
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# Check for the iasl ACPI compiler, needed to compile vbox.dsl
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgstein iasl_ver=`$IASL|grep version|sed 's+^ASL.*version \([0-9]*\).*+\1+'`
2f728b2e8555fee1b7cc11e886488692f2575fbddougm# Check for xsltproc, needed by Main
b3b4e853e4958357ee2d50e2fe41effecfde9eedwrowe cnf_append "VBOX_XSLTPROC" "`which_wrapper $XSLTPROC`"
21e01f13f717faeca3e498d7d9c9b4d3af98ae27trawick# Check for mkisofs, needed to build the CDROM image containing the additions
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe cnf_append "VBOX_MKISOFS" "`which_wrapper $GENISOIMAGE`"
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe# Check for xalan, needed by VBoxXML
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe#include <cstdio>
28c4fe67d75f8f26504d75b7aa8dc5d868032888wroweextern "C" int main(void)
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe printf("found version %d.%d.%d",
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe XALAN_VERSION_MAJOR, XALAN_VERSION_MINOR, XALAN_VERSION_REVISION);
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe#if _XALAN_VERSION >= 10800
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe printf(", OK.\n");
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe printf(", expected version 1.8.0 or higher\n");
28c4fe67d75f8f26504d75b7aa8dc5d868032888wrowe if test_compile "$LIBXALAN ${INCXALAN:+-I$INCXALAN}" xalan xalanc; then
afbd720d176856630fed7c6576cdd3ae25a407edstoddard cnf_append "SDK_VBOX_XALAN_LIBS" `echo $LIBXALAN|sed 's+-l++'`
afbd720d176856630fed7c6576cdd3ae25a407edstoddard echo -e "Building xalan from shipped sources.\n\n" >> $LOG
afbd720d176856630fed7c6576cdd3ae25a407edstoddard# Check for xerces, needed by VBoxXML
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard#include <cstdio>
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddardextern "C" int main(void)
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard printf("found version %d.%d.%d",
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard XERCES_VERSION_MAJOR, XERCES_VERSION_MINOR, XERCES_VERSION_REVISION);
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard#if _XERCES_VERSION >= 20500
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard printf(", OK.\n");
afbd720d176856630fed7c6576cdd3ae25a407edstoddard printf(", expected version 2.5.0 or higher");
c408915e2a85fedc520e97e96abda8f61aafc804stoddard if test_compile "$LIBXERCES ${INCXERCES:+-I$INCXERCES}" xerces xercesc; then
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard cnf_append "SDK_VBOX_XERCES_LIBS" `echo $LIBXERCES|sed 's+-l++'`
ddd44b06b04507cae083c52451e28f54f0bdb5afstoddard echo -e "Building xerces from shipped sources.\n\n" >> $LOG
a32ddb6cabb635ca29ccff87f8bf5c6af3b78ecfstoddard# Check for libIDL, needed by xpcom
64ad864fa0f4493eebb181e393b40a8a90beccb9coar "PKG_CONFIG_PATH=`libIDL-config-2 --prefix`/$LIB/pkgconfig `which_wrapper libIDL-config-2`"
64ad864fa0f4493eebb181e393b40a8a90beccb9coar cnf_append "VBOX_LIBIDL_CONFIG" `which_wrapper libIDL-config`
7787343a549c7309035b3b7836e00edb6e3a915ewrowe# Check for openssl, needed for RDP
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf("found version %s", OPENSSL_VERSION_TEXT);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#if OPENSSL_VERSION_NUMBER >= 0x0090700
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 0.9.7 or higher\n");
64ad864fa0f4493eebb181e393b40a8a90beccb9coar cnf_append "SDK_VBOX_OPENSSL_LIBS" `echo $LIBCRYPTO|sed 's+-l++'`
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Check for pthread, needed by VBoxSVC, frontends, ...
64ad864fa0f4493eebb181e393b40a8a90beccb9coar#include <cstdio>
48c0c81cd6fabac9d3386406d97633780365b839coarextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe pthread_mutex_t mutex;
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if (pthread_mutex_init(&mutex, NULL)) {
48c0c81cd6fabac9d3386406d97633780365b839coar printf("pthread_mutex_init() failed\n");
48c0c81cd6fabac9d3386406d97633780365b839coar if (pthread_mutex_lock(&mutex)) {
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf("pthread_mutex_lock() failed\n");
64ad864fa0f4493eebb181e393b40a8a90beccb9coar if (pthread_mutex_unlock(&mutex)) {
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("pthread_mutex_unlock() failed\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("found, OK.\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe cnf_append "LIB_PTHREAD" `echo $LIBPTHREAD|sed 's+-l++'`
48c0c81cd6fabac9d3386406d97633780365b839coar# Check for zlib, needed by VBoxSVC, Runtime, ...
48c0c81cd6fabac9d3386406d97633780365b839coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("found version %s", ZLIB_VERSION);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#if ZLIB_VERNUM >= 0x1210
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 1.2.1 or higher\n");
64ad864fa0f4493eebb181e393b40a8a90beccb9coar if test_compile "$LIBZ ${INCZ:+-I$INCZ}" zlib zlib; then
7787343a549c7309035b3b7836e00edb6e3a915ewrowe cnf_append "SDK_VBOX_ZLIB_LIBS" `echo $LIBZ|sed 's+-l++'`
48c0c81cd6fabac9d3386406d97633780365b839coar# Check for libpng, needed by kchmviewer
48c0c81cd6fabac9d3386406d97633780365b839coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf("found version %s", PNG_LIBPNG_VER_STRING);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#if PNG_LIBPNG_VER >= 10205
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 1.2.5 or higher\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if test_compile "$LIBPNG ${INCPNG:+-I$INCPNG}" libpng libpng nofatal; then
64ad864fa0f4493eebb181e393b40a8a90beccb9coar cnf_append "SDK_VBOX_LIBPNG_LIBS" `echo $LIBPNG|sed 's+-l++'`
48c0c81cd6fabac9d3386406d97633780365b839coar# Check for pam, needed by VRDPAuth
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Version 79 was introduced in 9/2005, do we support older versions?
48c0c81cd6fabac9d3386406d97633780365b839coar# OpenSUSE comes with 0.99.xxx where they changed the versioning scheme.
48c0c81cd6fabac9d3386406d97633780365b839coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("found version %d", __LIBPAM_VERSION);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if (__LIBPAM_VERSION >= 76)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf(", OK.\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf(", expected version 76 or higher\n");
64ad864fa0f4493eebb181e393b40a8a90beccb9coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf("found version %d.%d", __LINUX_PAM__, __LINUX_PAM_MINOR__);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if (__LINUX_PAM__ >= 1)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar printf(", OK.\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf(", expected version 1.0 or higher\n");
48c0c81cd6fabac9d3386406d97633780365b839coar# Check for the SDL library, needed by VBoxSDL and VirtualBox
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# We depend at least on version 1.2.7
48c0c81cd6fabac9d3386406d97633780365b839coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("found version %d.%d.%d",
48c0c81cd6fabac9d3386406d97633780365b839coar SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
64ad864fa0f4493eebb181e393b40a8a90beccb9coar#if SDL_VERSION_ATLEAST(1,2,7)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 1.2.7 or higher\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if test_compile "$LIBSDL $LIBSDLMAIN ${INCSDL:+-I$INCSDL}" SDL SDL; then
64ad864fa0f4493eebb181e393b40a8a90beccb9coar cnf_append "LIB_SDK_LIBSDL_SDL" `echo $LIBSDL|sed 's+-l++'`
7787343a549c7309035b3b7836e00edb6e3a915ewrowe cnf_append "LIB_SDK_LIBSDL_SDLMAIN" `echo $LIBSDLMAIN|sed 's+-l++'`
48c0c81cd6fabac9d3386406d97633780365b839coar [ -n "$INCSDL" ] && cnf_append "SDK_LIBSDL_INCS" "$INCSDL"
48c0c81cd6fabac9d3386406d97633780365b839coar# Check for the SDL_ttf library, needed by VBoxSDL (secure label)
48c0c81cd6fabac9d3386406d97633780365b839coar#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#ifndef SDL_TTF_MAJOR_VERSION
48c0c81cd6fabac9d3386406d97633780365b839coar#define SDL_TTF_MAJOR_VERSION TTF_MAJOR_VERSION
64ad864fa0f4493eebb181e393b40a8a90beccb9coar#define SDL_TTF_MINOR_VERSION TTF_MINOR_VERSION
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#define SDL_TTF_PATCHLEVEL TTF_PATCHLEVEL
64ad864fa0f4493eebb181e393b40a8a90beccb9coarextern "C" int main(void)
48c0c81cd6fabac9d3386406d97633780365b839coar printf("found version %d.%d.%d",
64ad864fa0f4493eebb181e393b40a8a90beccb9coar SDL_TTF_MAJOR_VERSION, SDL_TTF_MINOR_VERSION, SDL_TTF_PATCHLEVEL);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#if 10000*SDL_TTF_MAJOR_VERSION + 100*SDL_TTF_MINOR_VERSION + SDL_TTF_PATCHLEVEL >= 20006
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 2.0.6 or higher\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe# Check for libasound, needed by the ALSA audio backend
48c0c81cd6fabac9d3386406d97633780365b839coarextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe printf("found version %d.%d.%d",
7787343a549c7309035b3b7836e00edb6e3a915ewrowe SND_LIB_MAJOR, SND_LIB_MINOR, SND_LIB_SUBMINOR);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#if 10000*SND_LIB_MAJOR + 100*SND_LIB_MINOR + SND_LIB_SUBMINOR >= 10006
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", OK.\n");
48c0c81cd6fabac9d3386406d97633780365b839coar printf(", expected version 1.0.6 or higher\n");
7787343a549c7309035b3b7836e00edb6e3a915ewrowe# Check for the Xcursor library, needed by VBoxSDL and VBoxBFE
64ad864fa0f4493eebb181e393b40a8a90beccb9coar#include <cstdio>
64ad864fa0f4493eebb181e393b40a8a90beccb9coarextern "C" int main(void)
48c0c81cd6fabac9d3386406d97633780365b839coar XcursorImage *cursor = XcursorImageCreate (10, 10);
64ad864fa0f4493eebb181e393b40a8a90beccb9coar XcursorImageDestroy(cursor);
7787343a549c7309035b3b7836e00edb6e3a915ewrowe if test_compile "$LIBX11 $LIBXCURSOR" Xcursor Xcursor; then
64ad864fa0f4493eebb181e393b40a8a90beccb9coar cnf_append "LIB_XCURSOR" `echo $LIBXCURSOR|sed 's+-l++'`
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Check for the X libraries (Xext, X11)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe#include <cstdio>
7787343a549c7309035b3b7836e00edb6e3a915ewroweextern "C" int main(void)
7787343a549c7309035b3b7836e00edb6e3a915ewrowe Display *dpy;
48c0c81cd6fabac9d3386406d97633780365b839coar int scrn_num;
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe Screen *scrn;
64ad864fa0f4493eebb181e393b40a8a90beccb9coar Window win;
28d1da9ca818f831ea491f110dafcc10f7f07050coar dpy = XOpenDisplay(NULL);
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj scrn_num = DefaultScreen(dpy);
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj scrn = ScreenOfDisplay(dpy, scrn_num);
b865b179e150aae40ff75e580dce6ec4b5294ebdfielding win = XCreateWindow(dpy, RootWindowOfScreen(scrn), 0, 0, 100, 100,
b865b179e150aae40ff75e580dce6ec4b5294ebdfielding 0, 16, InputOutput, CopyFromParent, 0, NULL);
b865b179e150aae40ff75e580dce6ec4b5294ebdfielding XDestroyWindow(dpy, win);
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe# Check for the QT library, needed by VirtualBox
0bff2f28ef945280c17099c142126178a78e1e54manoj#include <cstdio>
ec0315cdf832eac2b78e50ad636af84fe4c9118cgsteinextern "C" int main(void)
ec0315cdf832eac2b78e50ad636af84fe4c9118cgstein printf("found version %s", QT_VERSION_STR);
ec0315cdf832eac2b78e50ad636af84fe4c9118cgstein#if QT_VERSION >= 0x030305
ec0315cdf832eac2b78e50ad636af84fe4c9118cgstein printf(", OK.\n");
ec0315cdf832eac2b78e50ad636af84fe4c9118cgstein#elif QT_VERSION >= 0x030300
ec0315cdf832eac2b78e50ad636af84fe4c9118cgstein printf("\n ** WARNING: QT < 3.3.5 has known problems!\n");
c330021bf3f45cbf187fa644781e67f7e470a58awrowe printf(", expected version 3.3.0 or higher\n");
9a93784d34c322d1996e8a7b794a75230eac81a4wrowe echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt" >> $LOG
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt >> $LOG 2>&1
cat .tmp_src.c >> $LOG
if test_execute; then
# Check for compiler.h
# Some Linux distributions include "compiler.h" in their libc linux
function check_compiler_h
#include <libhal.h>
cat << EOF
for option; do
--nofatal)
--with-g++=*)
--ose)
--odir=*)
echo "Unrecognized option \"$option\""
echo >> $LOG
echo >> $CNF
echo "Source '$ENV' once before you start to build VBox:"
echo " source $ENV"
echo " cd ./out/$OS.$MACHINE/$BUILD_TYPE/bin/src"