Changeset 11735 in vbox for trunk/configure
- Timestamp:
- Aug 28, 2008 6:17:38 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 35481
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r11454 r11735 33 33 TARGET_CPU="" 34 34 WITH_XPCOM=1 35 WITH_PYTHON=1 35 36 WITH_LIBIDL=1 36 37 WITH_QT3=1 … … 67 68 INCPNG="" 68 69 LIBPNG="-lpng" 69 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" 70 PYTHONDIR="/usr /usr/local" 71 QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3" 72 QT3DIR="$QT3DIR /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt" 70 73 QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr" 71 74 QT4DIR_PKGCONFIG=1 … … 181 184 } 182 185 186 183 187 check_avail() 184 188 { … … 196 200 } 197 201 202 198 203 # Prepare a test 199 204 test_header() … … 202 207 $ECHO_N "Checking for $1: " 203 208 } 209 204 210 205 211 # Compile a test … … 227 233 } 228 234 235 229 236 # Execute a compiled test binary 230 237 test_execute() … … 243 250 } 244 251 252 245 253 # Execute a compiled test binary 246 254 test_execute_path() … … 258 266 return 0 259 267 } 268 260 269 261 270 # … … 455 464 } 456 465 466 457 467 # 458 468 # Check for the bcc compiler, needed for compiling the BIOS … … 494 504 } 495 505 506 496 507 # 497 508 # Check for the as86 assembler, needed for compiling the BIOS … … 511 522 fi 512 523 } 524 513 525 514 526 # … … 538 550 } 539 551 552 540 553 # 541 554 # Check for the iasl ACPI compiler, needed to compile vbox.dsl … … 556 569 } 557 570 571 558 572 # 559 573 # Check for xsltproc, needed by Main … … 574 588 } 575 589 590 576 591 # 577 592 # Check for mkisofs, needed to build the CDROM image containing the additions … … 600 615 fi 601 616 } 617 602 618 603 619 # … … 681 697 } 682 698 699 683 700 # 684 701 # Check for libxslt, needed by VBoxSettings. For now we depend on 1.1.17. … … 762 779 } 763 780 781 764 782 # 765 783 # Check for libIDL, needed by xpcom … … 791 809 } 792 810 811 793 812 # 794 813 # Check for openssl, needed for RDP … … 819 838 fi 820 839 } 840 821 841 822 842 # … … 854 874 } 855 875 876 856 877 # 857 878 # Check for zlib, needed by VBoxSVC, Runtime, ... … … 884 905 } 885 906 907 886 908 # 887 909 # Check for libpng, needed by kchmviewer … … 915 937 fi 916 938 } 939 917 940 918 941 # … … 1040 1063 } 1041 1064 1065 1042 1066 # 1043 1067 # Check for the SDL_ttf library, needed by VBoxSDL (secure label) … … 1076 1100 } 1077 1101 1102 1078 1103 # 1079 1104 # Check for libasound, needed by the ALSA audio backend … … 1103 1128 } 1104 1129 1130 1105 1131 # 1106 1132 # Check for PulseAudio … … 1129 1155 } 1130 1156 1157 1131 1158 # 1132 1159 # Check for the Xcursor library, needed by VBoxSDL and VBoxBFE … … 1153 1180 } 1154 1181 1182 1155 1183 # 1156 1184 # Check for the X libraries (Xext, X11) … … 1182 1210 fi 1183 1211 } 1212 1184 1213 1185 1214 # … … 1247 1276 } 1248 1277 1278 1249 1279 # 1250 1280 # Check for the Qt4 library, needed by VirtualBox4 … … 1254 1284 check_qt4() 1255 1285 { 1286 foundqt4= 1256 1287 test_header Qt4 1257 1288 if [ "$OS" = "darwin" ]; then … … 1411 1442 } 1412 1443 1444 1413 1445 # 1414 1446 # Check for Linux sources … … 1451 1483 } 1452 1484 1485 1453 1486 # 1454 1487 # Check for kchmviewer, needed to display the online help 1488 # (unused as we ship kchmviewer) 1455 1489 # 1456 1490 check_kchmviewer() … … 1467 1501 fi 1468 1502 } 1503 1469 1504 1470 1505 # … … 1551 1586 } 1552 1587 1588 1589 # 1590 # Check for Python 1591 # 1592 check_python() 1593 { 1594 test_header "python support" 1595 cat > .tmp_src.cc << EOF 1596 #include <cstdio> 1597 #include <Python.h> 1598 extern "C" int main(void) 1599 { 1600 Py_Initialize(); 1601 printf("found version %s", PY_VERSION); 1602 #if PY_VERSION_HEX >= 0x02030000 1603 printf(", OK.\n"); 1604 return 0; 1605 #else 1606 printf(", expected version 2.3 or higher\n"); 1607 return 1; 1608 #endif 1609 } 1610 EOF 1611 found= 1612 for p in $PYTHONDIR; do 1613 for d in python2.5 python2.4 python2.3; do 1614 for b in lib64 lib; do 1615 echo "compiling the following source file:" >> $LOG 1616 cat .tmp_src.cc >> $LOG 1617 echo "using the following command line:" >> $LOG 1618 echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$p/include/$d $p/$b/lib$d.so" >> $LOG 1619 $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$p/include/$d $p/$b/lib$d.so >> $LOG 2>&1 1620 if [ $? -eq 0 ]; then 1621 found=1 1622 break 1623 fi 1624 done 1625 if [ -n "$found" ]; then break; fi 1626 done 1627 if [ -n "$found" ]; then break; fi 1628 done 1629 if [ -n "$found" ]; then 1630 if test_execute; then 1631 cnf_append "VBOX_WITH_PYTHON" "1" 1632 cnf_append "VBOX_PATH_PYTHON_INC" "$p/include/$d" 1633 cnf_append "VBOX_LIB_PYTHON" "$p/$b/lib$d.so" 1634 else 1635 log_failure "not found" 1636 fail 1637 fi 1638 else 1639 log_failure "not found" 1640 fail 1641 fi 1642 } 1643 1644 1553 1645 # 1554 1646 # Setup wine … … 1655 1747 --nofatal don't abort on errors 1656 1748 --disable-xpcom disable XPCOM and related stuff 1749 --disable-python disable python bindings 1657 1750 --disable-sdl-ttf disable SDL_ttf detection 1658 1751 --disable-alsa disable the ALSA sound backend … … 1733 1826 --disable-xpcom) 1734 1827 WITH_XPCOM=0 1828 ;; 1829 --disable-python) 1830 WITH_PYTHON=0 1735 1831 ;; 1736 1832 --disable-sdl-ttf) … … 1914 2010 [ $WITH_SDL -eq 1 ] && check_sdl 1915 2011 [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf 1916 [ $WITH_X11 -eq 1 ] && check_x 1917 [ $WITH_X11 -eq 1 ] && check_xcursor 1918 [ $WITH_QT3 -eq 1 ] && check_qt3 1919 [ $WITH_QT4 -eq 1 ] && check_qt4 2012 [ $WITH_X11 -eq 1 ] && check_x 2013 [ $WITH_X11 -eq 1 ] && check_xcursor 2014 [ $WITH_QT3 -eq 1 ] && check_qt3 2015 [ $WITH_QT4 -eq 1 ] && check_qt4 2016 [ $WITH_PYTHON -eq 1 ] && check_python 1920 2017 1921 2018 # Linux-specific
Note:
See TracChangeset
for help on using the changeset viewer.