Changeset 7470 in vbox
- Timestamp:
- Mar 17, 2008 9:19:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r7395 r7470 64 64 INCPNG="" 65 65 LIBPNG="-lpng" 66 QTDIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt" 66 QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt" 67 QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr" 68 QT4UIC3DIR="/usr/bin" 67 69 KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild" 68 70 DEVDIR="`cd \`dirname $0\`; pwd`/tools" … … 1084 1086 1085 1087 # 1086 # Check for the Q Tlibrary, needed by VirtualBox1088 # Check for the Qt3 library, needed by VirtualBox 1087 1089 # 1088 1090 check_qt3() … … 1109 1111 libs="lib" 1110 1112 [ "$LIB" = "lib64" ] && libs="$libs lib64" 1111 for q in $QT DIR; do1113 for q in $QT3DIR; do 1112 1114 for l in $libs; do 1113 1115 echo "compiling the following source file:" >> $LOG … … 1118 1120 if [ $? -eq 0 ]; then 1119 1121 if test_execute; then 1120 cnf_append "QT DIR" "`cd $q ; pwd`"1122 cnf_append "QT3DIR" "`cd $q ; pwd`" 1121 1123 found_qt=1 1122 1124 break … … 1130 1132 if [ $found_qt -ne 1 ]; then 1131 1133 echo 1132 echo " Qt not found at \"$QTDIR\" or Qtheaders not found"1134 echo " Qt3 not found at \"$QT3DIR\" or Qt3 headers not found" 1133 1135 echo " Check the file $LOG for detailed error information." 1134 1136 fail 1135 1137 return 1 1136 1138 fi 1137 test_header "Qt devtools"1138 if check_avail "$q/bin/moc" QT DIR/bin; then1139 test_header "Qt3 devtools" 1140 if check_avail "$q/bin/moc" QT3DIR/bin; then 1139 1141 moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'` 1140 1142 if [ $? -ne 0 ]; then … … 1148 1150 1149 1151 # 1150 # Check for the Q Tlibrary, needed by VirtualBox41152 # Check for the Qt4 library, needed by VirtualBox4 1151 1153 # 1152 1154 # Currently not fatal. … … 1170 1172 { 1171 1173 printf("found version %s", QT_VERSION_STR); 1172 #if QT_VERSION >= 0x0 303051174 #if QT_VERSION >= 0x040200 1173 1175 printf(", OK.\n"); 1174 1176 return 0; 1175 #elif QT_VERSION >= 0x030300 1176 printf("\n ** WARNING: QT < 3.3.5 has known problems!\n"); 1177 #else 1178 printf(", expected version 3.3.0 or higher\n"); 1177 printf(", expected version 4.2.0 or higher\n"); 1179 1178 return 1; 1180 1179 #endif … … 1184 1183 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4" qt4 qt4 nofatal; then 1185 1184 if test_execute; then 1186 cnf_append "SDK_VBOX_LIBQT4_INCS" "$INCQT4" 1187 cnf_append "SDK_VBOX_LIBQT4_LIBS" "`strip_l "$LIBQT4"`" 1185 # cnf_append "SDK_VBOX_LIBQT4_INCS" "$INCQT4" 1186 # cnf_append "SDK_VBOX_LIBQT4_LIBS" "`strip_l "$LIBQT4"`" 1187 test_header "Qt4 devtools" 1188 for q in $QT4DIR; do 1189 if which_wrapper "$q/bin/moc" > /dev/null; then 1190 moc_ver=`$q/bin/moc -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'` 1191 if [ $? -ne 0 ]; then 1192 log_failure "not found" 1193 fail 1194 else 1195 log_success "found version $moc_ver" 1196 cnf_append "VBOX_PATH_QT4" "$q" 1197 test_header "Qt4 uic3" 1198 for q in $QT4UIC3DIR; do 1199 if check_avail "$q/uic3" QT4UIC3DIR; then 1200 uic3_ver=`$q/uic3 -version 2>&1|sed 's+^.*version \(.*\)+\1+'` 1201 if [ $? -ne 0 ]; then 1202 log_failure "not found" 1203 fail 1204 else 1205 log_success "found version $uic3_ver" 1206 cnf_append "VBOX_UIC3" "$q/uic3" 1207 fi 1208 fi 1209 done 1210 fi 1211 break 1212 fi 1213 done 1188 1214 fi 1189 1215 fi … … 1191 1217 else 1192 1218 log_failure "pkg-config not found" 1219 # not yet 1193 1220 # fail 1194 1221 fi … … 1429 1456 --with-linux=DIR Linux kernel source directory [$LINUX] 1430 1457 --with-mkisofs=PATH location of mkisofs [$MKISOFS] 1431 --with-qt-dir=DIR directory for QT headers/libraries [$QTDIR] 1458 --with-qt-dir=DIR directory for Qt3 headers/libraries [$QT3DIR] 1459 --with-qt4-dir=DIR directory for Qt4 headers/libraries [$QT4DIR] 1432 1460 1433 1461 Build type: … … 1467 1495 ;; 1468 1496 --with-qt-dir=*) 1469 QTDIR=`echo $option | cut -d'=' -f2` 1497 QT3DIR=`echo $option | cut -d'=' -f2` 1498 ;; 1499 --with-qt4-dir=*) 1500 QT4DIR=`echo $option | cut -d'=' -f2` 1470 1501 ;; 1471 1502 --with-iasl=*)
Note:
See TracChangeset
for help on using the changeset viewer.