Changeset 1686:8d2422383725 in roaraudio


Ignore:
Timestamp:
05/13/09 13:25:57 (10 years ago)
Author:
phi
Branch:
default
Message:

added a basic support for logging, only on tool and lib test for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1685 r1686  
    363363 echo > $TF_C 
    364364 
    365  echo -n "checking for $1... " 
     365 name="$1" 
     366 echo -n "checking for $name... " 
     367 echo "TEST LIB: $name" >&5 
    366368 shift; 
    367369 
     
    378380 LIBS=$(echo "$LIBS" | sed 's/-l-l/-l/g; s/-l-L/-L/g;') 
    379381 
     382 echo "LIB($name) IS TESTED USING LIBS: $LIBS" >&5 
     383 
    380384 while [ "$1" != '' ] 
    381385 do 
     
    386390 echo 'int main (void) { return 0; }' >> $TF_C 
    387391 
    388  $CCTF $LIBS 2> /dev/null; 
     392 echo "LIB($name) IS TESTED USING TEST CODE:" >&5 
     393 echo "--- BEGIN OF CODE BLOCK ---" >&5 
     394 cat $TF_C >&5 
     395 echo "--- END OF CODE BLOCK ---" >&5 
     396 
     397 echo "LIB($name) HAS COMPILER/LINKER OUTPUT:" >&5 
     398 echo "--- BEGIN OF CHILD OUTPUT BLOCK ---" >&5 
     399 $CCTF $LIBS >&5 2>&5; 
     400 echo "--- END OF CHILD OUTPUT BLOCK ---" >&5 
    389401 
    390402 R=$? 
     
    393405 then 
    394406  echo 'yes' 
     407  echo "LIB($name) WAS FOUND" >&5 
    395408 else 
    396409  echo 'no' 
     410  echo "LIB($name) NOT FOUND" >&5 
    397411 fi 
    398412 
     
    409423 shift 
    410424 
     425 echo "TEST LIB: $name" >&5 
     426 
    411427 [ "$subdir" = '%' ] && subdir='' 
    412428 
     
    419435  then 
    420436    echo "checking for $name... disabled by user" 
     437    echo "LIB($name) IS DISABLED BY USER" >&5 
    421438   [ "$subdir" != '' ] && \ 
    422439    echo "subdir_$subdir=" >&4 
     
    431448  LIBS="-l$lib" 
    432449 fi 
     450 
     451 echo "LIB($name) HAS LIBS: $LIBS" >&5 
    433452 
    434453 if test_lib "$name" $LIBS "$@" 
     
    446465   echo "lib_$lib=" >&4 
    447466 fi 
     467 echo >&5 
     468 echo >&5 
    448469} 
    449470 
     
    455476 echo -n "checking for $NAME... " 
    456477 
     478 echo "TEST TOOL: $NAME" >&5 
     479 
    457480 if $RUNTIME_DETECT 
    458481 then 
    459482  echo "$1 (runtime detect)" 
    460  echo "#define $DEF "\""$1"\" >&3 
     483  echo "TOOL($NAME) WILL BE RUNTIME DETECTED" >&5 
     484  echo "#define $DEF "\""$1"\" >&3 
    461485 elif $MINIMAL 
    462486 then 
    463487  echo "disabled by user (minimalstic build)" 
     488  echo "TOOL($NAME) IS DISABLED BY USER" >&5 
    464489 else 
    465490 
     
    469494  then 
    470495   echo 'no' 
     496   echo "TOOL($NAME) NOT FOUND" >&5 
    471497  else 
    472498   echo $LIST 
    473499   echo "#define $DEF "\""$LIST"\" >&3 
     500   echo "TOOL($NAME) IS AT $LIST" >&5 
    474501  fi 
    475502 fi 
    476503} 
    477504 
    478 exec 3> config.h 4> Makefile.conf 
     505exec 3> config.h 4> Makefile.conf 5> config.log 
    479506 
    480507TARGET_CYGWIN=`echo "$SYSNAME" | if grep CYGWIN > /dev/null; then echo true; else echo false; fi` 
     
    546573 
    547574CCTF="$CC $LDPATH $INCPATH -Iinclude/ -o $TF_E $TF_C" 
     575 
     576{ 
     577 cat <<'EOF' 
     578//config.log: 
     579 
     580/* 
     581 * Logfile for configure script $Revision$ of RoarAudio 
     582 */ 
     583 
     584EOF 
     585 echo '/* uname: ' $(uname -a) '*/' 
     586 echo '/* Date : ' $(date)  '*/' 
     587 echo 
     588 
     589 echo 
     590 echo 
     591} >&5 
    548592 
    549593cat >&3 << EOF 
     
    615659 
    616660echo >&3 
     661echo >&5 
     662echo >&5 
     663echo >&5 
    617664 
    618665#                #define                 subdir       name           -lxxx      -- header 
     
    13071354EOF 
    13081355 
     1356echo >&5 
     1357echo '//ll' >&5 
     1358 
    13091359cd plugins 
    13101360 
Note: See TracChangeset for help on using the changeset viewer.