Changeset 16202 in vbox
- Timestamp:
- Jan 23, 2009 4:16:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r16174 r16202 127 127 cleanup() 128 128 { 129 rm -f .tmp_src.cc .tmp_src.c .tmp_out.test_execute.log129 rm -f $ODIR.tmp_src.cc $ODIR.tmp_src.c $ODIR.tmp_out $ODIR.test_execute.log 130 130 } 131 131 … … 215 215 { 216 216 echo "compiling the following source file:" >> $LOG 217 cat .tmp_src.cc >> $LOG217 cat $ODIR.tmp_src.cc >> $LOG 218 218 echo "using the following command line:" >> $LOG 219 echo "$CXX -O -Wall -o .tmp_out.tmp_src.cc \"$1\"" >> $LOG220 $CXX -O -Wall -o .tmp_out.tmp_src.cc $1 >> $LOG 2>&1219 echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc \"$1\"" >> $LOG 220 $CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1 221 221 if [ $? -ne 0 ]; then 222 222 if [ -z "$4" ]; then … … 240 240 { 241 241 echo "executing the binary" >> $LOG 242 ./.tmp_out >.test_execute.log242 $ODIR.tmp_out > $ODIR.test_execute.log 243 243 rc=$? 244 cat .test_execute.log | tee -a $LOG244 cat $ODIR.test_execute.log | tee -a $LOG 245 245 if [ $rc -ne 0 ]; then 246 246 fail $1 … … 257 257 { 258 258 echo "executing the binary (LD_LIBRARY_PATH=$1)" >> $LOG 259 LD_LIBRARY_PATH=$1 ./.tmp_out >.test_execute.log259 LD_LIBRARY_PATH=$1 $ODIR.tmp_out > $ODIR.test_execute.log 260 260 rc=$? 261 cat .test_execute.log | tee -a $LOG261 cat $ODIR.test_execute.log | tee -a $LOG 262 262 if [ $rc -ne 0 ]; then 263 263 fail … … 448 448 else 449 449 echo "compiling the following source file:" >> $LOG 450 cat > .tmp_src.c << EOF450 cat > $ODIR.tmp_src.c << EOF 451 451 int foo(a) 452 452 int a; … … 455 455 } 456 456 EOF 457 cat .tmp_src.c >> $LOG457 cat $ODIR.tmp_src.c >> $LOG 458 458 bcc_path=`which_wrapper $BCC` 459 459 bcc_dir="`dirname $bcc_path`/" 460 460 echo "using the following command line:" >> $LOG 461 echo "$BCC -B $bcc_dir -C-c -3 -S -o .tmp_out.tmp_src.c" >> $LOG462 $BCC -B $bcc_dir -C-c -3 -S -o .tmp_out.tmp_src.c >> $LOG 2>&1461 echo "$BCC -B $bcc_dir -C-c -3 -S -o $ODIR.tmp_out $ODIR.tmp_src.c" >> $LOG 462 $BCC -B $bcc_dir -C-c -3 -S -o $ODIR.tmp_out $ODIR.tmp_src.c >> $LOG 2>&1 463 463 if [ $? -ne 0 ]; then 464 464 log_failure "not found" … … 604 604 INCXML2=`strip_I "$FLGXML2"` 605 605 LIBXML2=`pkg-config libxml-2.0 --libs` 606 cat > .tmp_src.cc << EOF606 cat > $ODIR.tmp_src.cc << EOF 607 607 #include <cstdio> 608 608 #include <libxml/xmlversion.h> … … 637 637 INCXML2=`strip_I "$FLGXML2"` 638 638 LIBXML2=`xml2-config --libs` 639 cat > .tmp_src.cc << EOF639 cat > $ODIR.tmp_src.cc << EOF 640 640 #include <cstdio> 641 641 #include <libxml/xmlversion.h> … … 686 686 INCXSLT=`strip_I "$FLGXSLT"` 687 687 LIBXSLT=`pkg-config libxslt --libs` 688 cat > .tmp_src.cc << EOF688 cat > $ODIR.tmp_src.cc << EOF 689 689 #include <cstdio> 690 690 #include <libxslt/xsltconfig.h> … … 719 719 INCXSLT=`strip_I "$FLGXSLT"` 720 720 LIBXSLT=`xslt-config --libs` 721 cat > .tmp_src.cc << EOF721 cat > $ODIR.tmp_src.cc << EOF 722 722 #include <cstdio> 723 723 #include <libxslt/xsltconfig.h> … … 786 786 { 787 787 test_header ssl 788 cat > .tmp_src.cc << EOF788 cat > $ODIR.tmp_src.cc << EOF 789 789 #include <cstdio> 790 790 #include <openssl/opensslv.h> … … 816 816 { 817 817 test_header pthread 818 cat > .tmp_src.cc << EOF818 cat > $ODIR.tmp_src.cc << EOF 819 819 #include <cstdio> 820 820 #include <pthread.h> … … 851 851 { 852 852 test_header zlib 853 cat > .tmp_src.cc << EOF853 cat > $ODIR.tmp_src.cc << EOF 854 854 #include <cstdio> 855 855 #include <zlib.h> … … 882 882 { 883 883 test_header libpng 884 cat > .tmp_src.cc << EOF884 cat > $ODIR.tmp_src.cc << EOF 885 885 #include <cstdio> 886 886 #include <png.h> … … 918 918 { 919 919 test_header pam 920 cat > .tmp_src.cc << EOF920 cat > $ODIR.tmp_src.cc << EOF 921 921 #include <cstdio> 922 922 #include <security/pam_appl.h> … … 942 942 fi 943 943 test_header linux_pam 944 cat > .tmp_src.cc << EOF944 cat > $ODIR.tmp_src.cc << EOF 945 945 #include <cstdio> 946 946 #include <security/pam_appl.h> … … 999 999 [ "$OS" = "linux" -o "$OS" = "darwin" -o "$OS" = "solaris" ] && LIBSDLMAIN="" 1000 1000 if [ -n "$foundsdl" ]; then 1001 cat > .tmp_src.cc << EOF1001 cat > $ODIR.tmp_src.cc << EOF 1002 1002 #include <cstdio> 1003 1003 #include <SDL.h> … … 1040 1040 { 1041 1041 test_header SDL_ttf 1042 cat > .tmp_src.cc << EOF1042 cat > $ODIR.tmp_src.cc << EOF 1043 1043 #include <cstdio> 1044 1044 #include <SDL_ttf.h> … … 1077 1077 { 1078 1078 test_header ALSA 1079 cat > .tmp_src.cc << EOF1079 cat > $ODIR.tmp_src.cc << EOF 1080 1080 #include <cstdio> 1081 1081 #include <alsa/asoundlib.h> … … 1105 1105 { 1106 1106 test_header "PulseAudio" 1107 cat > .tmp_src.cc << EOF1107 cat > $ODIR.tmp_src.cc << EOF 1108 1108 #include <cstdio> 1109 1109 #include <pulse/version.h> … … 1132 1132 { 1133 1133 test_header Xcursor 1134 cat > .tmp_src.cc << EOF1134 cat > $ODIR.tmp_src.cc << EOF 1135 1135 #include <cstdio> 1136 1136 #include <X11/Xlib.h> … … 1157 1157 { 1158 1158 test_header "X libraries" 1159 cat > .tmp_src.cc << EOF1159 cat > $ODIR.tmp_src.cc << EOF 1160 1160 #include <cstdio> 1161 1161 #include <X11/Xlib.h> … … 1234 1234 else 1235 1235 # do it the old way (e.g. user has specified QT4DIR) 1236 cat > .tmp_src.cc << EOF1236 cat > $ODIR.tmp_src.cc << EOF 1237 1237 #include <cstdio> 1238 1238 #include <QtGlobal> … … 1267 1267 fi 1268 1268 if [ -n "$foundqt4" ]; then 1269 cat > .tmp_src.cc << EOF1269 cat > $ODIR.tmp_src.cc << EOF 1270 1270 #include <cstdio> 1271 1271 #include <QtGlobal> … … 1336 1336 test_header "static stc++ library" 1337 1337 libstdcxx=`$CXX -print-file-name=libstdc++.a` 1338 cat > .tmp_src.cc << EOF1338 cat > $ODIR.tmp_src.cc << EOF 1339 1339 #include <string> 1340 1340 … … 1357 1357 { 1358 1358 test_header "Linux kernel sources" 1359 cat > .tmp_src.c << EOF1359 cat > $ODIR.tmp_src.c << EOF 1360 1360 #include <linux/version.h> 1361 1361 int printf(const char *format, ...); … … 1375 1375 EOF 1376 1376 echo "compiling the following source file:" >> $LOG 1377 cat .tmp_src.c >> $LOG1377 cat $ODIR.tmp_src.c >> $LOG 1378 1378 echo "using the following command line:" >> $LOG 1379 echo "$CC -O -Wall -o .tmp_out.tmp_src.c -nostdinc -I$LINUX/include" >> $LOG1380 $CC -O -Wall -o .tmp_out.tmp_src.c -nostdinc -I$LINUX/include >> $LOG 2>&11379 echo "$CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include" >> $LOG 1380 $CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include >> $LOG 2>&1 1381 1381 if [ $? -ne 0 ]; then 1382 1382 echo … … 1474 1474 { 1475 1475 test_header "libcap library" 1476 cat > .tmp_src.cc << EOF1476 cat > $ODIR.tmp_src.cc << EOF 1477 1477 #include <cstdio> 1478 1478 #include <sys/capability.h> … … 1499 1499 { 1500 1500 test_header "32-bit support" 1501 cat > .tmp_src.c << EOF1501 cat > $ODIR.tmp_src.c << EOF 1502 1502 #include <stdint.h> 1503 1503 int main(void) … … 1507 1507 EOF 1508 1508 echo "compiling the following source file:" >> $LOG 1509 cat .tmp_src.c >> $LOG1509 cat $ODIR.tmp_src.c >> $LOG 1510 1510 echo "using the following command line:" >> $LOG 1511 echo "$CC -m32 -O -Wall -o .tmp_out.tmp_src.c" >> $LOG1512 $CC -m32 -O -Wall -o .tmp_out.tmp_src.c >> $LOG 2>&11511 echo "$CC -m32 -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c" >> $LOG 1512 $CC -m32 -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c >> $LOG 2>&1 1513 1513 if [ $? -ne 0 ]; then 1514 1514 echo … … 1527 1527 { 1528 1528 test_header "python support" 1529 cat > .tmp_src.cc << EOF1529 cat > $ODIR.tmp_src.cc << EOF 1530 1530 #include <cstdio> 1531 1531 #include <Python.h> … … 1548 1548 for b in lib64 lib/64 lib; do 1549 1549 echo "compiling the following source file:" >> $LOG 1550 cat .tmp_src.cc >> $LOG1550 cat $ODIR.tmp_src.cc >> $LOG 1551 1551 echo "using the following command line:" >> $LOG 1552 echo "$CXX -O -Wall -o .tmp_out.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so" >> $LOG1553 $CXX -O -Wall -o .tmp_out.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so >> $LOG 2>&11552 echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so" >> $LOG 1553 $CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so >> $LOG 2>&1 1554 1554 if [ $? -eq 0 ]; then 1555 1555 found=1
Note:
See TracChangeset
for help on using the changeset viewer.