1 diff -urN VirtualBox-2.0.0.orig/configure VirtualBox-2.0.0/configure
2 --- VirtualBox-2.0.0.orig/configure 2008-09-03 16:59:10.000000000 +0200
3 +++ VirtualBox-2.0.0/configure 2008-09-04 20:04:52.000000000 +0200
7 PYTHONDIR="/usr /usr/local"
8 -QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3"
9 -QT3DIR="$QT3DIR /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"
10 -QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr"
12 -QT4UIC3DIR="/usr/bin"
13 KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild"
14 DEVDIR="`cd \`dirname $0\`; pwd`/tools"
15 if [ -d "/lib/modules/`uname -r`/build" ]; then
17 echo "compiling the following source file:" >> $LOG
18 cat .tmp_src.cc >> $LOG
19 echo "using the following command line:" >> $LOG
20 - echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"$1\"" >> $LOG
21 - $CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
22 + echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib \"$1\"" >> $LOG
23 + $CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib $1 >> $LOG 2>&1
27 @@ -1236,37 +1232,25 @@
32 - [ "$LIB" = "lib64" ] && libs="$libs lib64"
33 - for q in $QT3DIR; do
35 - echo "compiling the following source file:" >> $LOG
36 - cat .tmp_src.cc >> $LOG
37 - echo "using the following command line:" >> $LOG
38 - echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD" >> $LOG
39 - $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&1
40 - if [ $? -eq 0 ]; then
41 - if test_execute; then
42 - cnf_append "QTDIR" "`cd $q ; pwd`"
48 - if [ $found_qt -eq 1 ]; then
50 + echo "compiling the following source file:" >> $LOG
51 + cat .tmp_src.cc >> $LOG
52 + echo "using the following command line:" >> $LOG
53 + echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD" >> $LOG
54 + $CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD >> $LOG 2>&1
55 + if [ $? -eq 0 ]; then
56 + if test_execute; then
61 if [ $found_qt -ne 1 ]; then
63 - echo " Qt3 not found at \"$QT3DIR\" or Qt3 headers not found"
64 echo " Check the file $LOG for detailed error information."
68 test_header "Qt3 devtools"
69 - if check_avail "$q/bin/moc" QT3DIR/bin; then
70 - moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
71 + if check_avail "/usr/bin/moc"; then
72 + moc_ver=`/usr/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
74 log_failure "not found"
76 @@ -1343,21 +1327,19 @@
80 - for q in $QT4DIR; do
81 - INCQT4="$q/include $q/include/QtCore"
82 - FLGQT4="-DQT_SHARED"
83 - I_INCQT4=`prefix_I "$INCQT4"`
84 - LIBQT4="-L$q/lib -lVBoxQtCore"
85 - if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
89 - LIBQT4="-L$q/lib -lQtCore"
90 - if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
95 + INCQT4="/usr/include/qt4 /usr/include/qt/QtCore"
96 + FLGQT4="-DQT_SHARED"
97 + I_INCQT4=`prefix_I "$INCQT4"`
98 + LIBQT4="-L/usr/lib/qt4 -lVBoxQtCore"
99 + if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
103 + LIBQT4="-L/usr/lib/qt4 -lQtCore"
104 + if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
110 if [ -n "$foundqt4" ]; then
111 @@ -1393,21 +1375,19 @@
112 cnf_append "VBOX_WITH_QT4_SUN" "1"
114 test_header "Qt4 devtools"
115 - for q in $QT4DIR; do
116 - if which_wrapper "$q/bin/moc" > /dev/null; then
117 - moc_ver=`$q/bin/moc -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`
118 - if [ $? -ne 0 ]; then
119 - log_failure "not found"
122 - log_success "found version $moc_ver"
123 - cnf_append "VBOX_PATH_QT4" "$q"
124 - cnf_append "PATH_SDK_QT4" "$q"
125 - cnf_append "PATH_TOOL_QT4" "$q"
128 + if which_wrapper "/usr/bin/moc-qt4" > /dev/null; then
129 + moc_ver=`/usr/bin/moc-qt4 -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`
130 + if [ $? -ne 0 ]; then
131 + log_failure "not found"
134 + log_success "found version $moc_ver"
135 + cnf_append "VBOX_PATH_QT4" "$q"
136 + cnf_append "PATH_SDK_QT4" "$q"
137 + cnf_append "PATH_TOOL_QT4" "$q"
145 @@ -1765,8 +1745,6 @@
146 --with-iasl=PATH location of the iasl compiler [$IASL]
147 --with-linux=DIR Linux kernel source directory [$LINUX]
148 --with-mkisofs=PATH location of mkisofs [$MKISOFS]
149 - --with-qt-dir=DIR directory for Qt3 headers/libraries [$QT3DIR]
150 - --with-qt4-dir=DIR directory for Qt4 headers/libraries [pkgconfig]
153 -d, --build-debug build with debugging symbols and assertions
154 @@ -1809,13 +1787,6 @@
159 - QT3DIR=`echo $option | cut -d'=' -f2`
162 - QT4DIR=`echo $option | cut -d'=' -f2`
166 IASL=`echo $option | cut -d'=' -f2`