Changeset 16166 in vbox for trunk/configure
- Timestamp:
- Jan 22, 2009 1:58:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r16144 r16166 57 57 WITH_LIBIDL=1 58 58 WITH_GSOAP=0 59 WITH_QT3=160 59 WITH_QT4=1 61 60 WITH_SDL=1 … … 95 94 PKGCONFIG="`which_wrapper pkg-config`" 96 95 PYTHONDIR="/usr /usr/local" 97 QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3"98 QT3DIR="$QT3DIR /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"99 96 QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr" 100 97 QT4DIR_PKGCONFIG=1 … … 1186 1183 1187 1184 # 1188 # Check for the Qt3 library, needed by VirtualBox1189 #1190 check_qt3()1191 {1192 test_header Qt31193 cat > .tmp_src.cc << EOF1194 #include <cstdio>1195 #include <qglobal.h>1196 extern "C" int main(void)1197 {1198 printf("found version %s", QT_VERSION_STR);1199 #if QT_VERSION >= 0x0303051200 printf(", OK.\n");1201 return 0;1202 #elif QT_VERSION >= 0x0303001203 printf("\n ** WARNING: QT < 3.3.5 has known problems!\n");1204 #else1205 printf(", expected version 3.3.0 or higher\n");1206 return 1;1207 #endif1208 }1209 EOF1210 found_qt=01211 libs="lib"1212 [ "$LIB" = "lib64" ] && libs="$libs lib64"1213 for q in $QT3DIR; do1214 for l in $libs; do1215 echo "compiling the following source file:" >> $LOG1216 cat .tmp_src.cc >> $LOG1217 echo "using the following command line:" >> $LOG1218 echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD" >> $LOG1219 $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&11220 if [ $? -eq 0 ]; then1221 if test_execute; then1222 cnf_append "PATH_SDK_QT3" "`cd $q ; pwd`"1223 found_qt=11224 break1225 fi1226 fi1227 done1228 if [ $found_qt -eq 1 ]; then1229 break1230 fi1231 done1232 if [ $found_qt -ne 1 ]; then1233 echo1234 echo " Qt3 not found at \"$QT3DIR\" or Qt3 headers not found"1235 echo " Check the file $LOG for detailed error information."1236 fail1237 return 11238 fi1239 test_header "Qt3 devtools"1240 if check_avail "$q/bin/moc" QT3DIR/bin; then1241 moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`1242 if [ $? -ne 0 ]; then1243 log_failure "not found"1244 fail1245 else1246 log_success "found version $moc_ver"1247 # cnf_append "VBOX_PATH_QT3" "$q" - later/never?1248 cnf_append "PATH_SDK_QT3" "$q"1249 cnf_append "PATH_SDK_QT3_LIB" "$q/$l"1250 cnf_append "PATH_SDK_QT3_INC" "$q/include"1251 cnf_append "PATH_TOOL_QT3_BIN" "$q/bin"1252 fi1253 fi1254 }1255 1256 1257 #1258 1185 # Check for the Qt4 library, needed by VirtualBox4 1259 1186 # … … 1276 1203 FLGQT4="-framework QtCore" 1277 1204 else 1278 log_failure "Qt4 framework not found (can be disable using --disable-qt4)"1205 log_failure "Qt4 framework not found (can be disabled using --disable-qt4)" 1279 1206 fail 1280 1207 fi … … 1797 1724 --with-linux=DIR Linux kernel source directory [$LINUX] 1798 1725 --with-mkisofs=PATH location of mkisofs [$MKISOFS] 1799 --with-qt-dir=DIR directory for Qt3 headers/libraries [$QT3DIR] 1800 --with-qt4-dir=DIR directory for Qt4 headers/libraries [pkgconfig] 1726 --with-qt-dir=DIR directory for Qt4 headers/libraries [pkgconfig] 1801 1727 --with-gsoap-dir=PATH directory for SOAP compiler (soapcpp2 and wsdl2h) 1802 1728 … … 1839 1765 fi 1840 1766 ;; 1841 --with-qt-dir=*) 1842 QT3DIR=`echo $option | cut -d'=' -f2` 1843 ;; 1844 --with-qt4-dir=*) 1767 --with-qt-dir=*|--with-qt4-dir=*) 1845 1768 QT4DIR=`echo $option | cut -d'=' -f2` 1846 1769 QT4DIR_PKGCONFIG=0 … … 1868 1791 ;; 1869 1792 --disable-qt) 1870 WITH_QT3=01871 1793 WITH_QT4=0 1872 ;;1873 --disable-qt3)1874 WITH_QT3=01875 1794 ;; 1876 1795 --disable-qt4) … … 1915 1834 WITH_SDL_TTF=0 1916 1835 WITH_X11=0 1917 WITH_QT3=01918 1836 WITH_QT4=0 1919 1837 ;; … … 2021 1939 # (Qt3 builds for Intel Macs are usually not threaded or for X11. And they 2022 1940 # don't contain our patches, which means the result isn't really usable.) 2023 WITH_QT3=02024 1941 BUILD_LIBXSLT=1 2025 1942 BUILD_LIBXML2=1 2026 1943 fi 2027 1944 2028 if [ "$OS" = "freebsd" ]; then2029 # Qt3 will be gone before the FreeBSD port is completed, so just drop it.2030 WITH_QT3=02031 fi2032 2033 1945 # emit disable directives corresponding to any --disable-xxx options. 2034 1946 [ $WITH_XPCOM -eq 0 ] && cnf_append "VBOX_WITH_MAIN" "" 2035 [ $WITH_QT3 -eq 0 ] && cnf_append "VBOX_WITH_QTGUI" ""2036 1947 [ $WITH_QT4 -eq 0 ] && cnf_append "VBOX_WITH_QT4GUI" "" 2037 1948 [ $WITH_SDL_TTF -eq 0 ] && cnf_append "VBOX_WITH_SECURELABEL" "" … … 2066 1977 # TODO check for libglu1-mesa-dev (GL/glu.h) 2067 1978 [ $WITH_X11 -eq 1 ] && check_xcursor 2068 [ $WITH_QT3 -eq 1 ] && check_qt32069 1979 [ $WITH_QT4 -eq 1 ] && check_qt4 2070 1980 [ $WITH_PYTHON -eq 1 -a "$OS" != "darwin" ] && check_python
Note:
See TracChangeset
for help on using the changeset viewer.