Changeset 484:f5f98f005601 in roaraudio


Ignore:
Timestamp:
08/13/08 15:07:02 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated configure script to search for cc and add a way to add -Ls to ld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r475 r484  
    55TF_C=testit.c 
    66TF_E=./testit 
    7 CC=cc 
    8  
    9 CCTF="$CC -o $TF_E $TF_C" 
     7LDPATH='' 
     8 
     9echo -n "checking for C compiler... " 
     10CC=$(which gcc cc 2> /dev/null | head -n 1) 
     11if [ "$CC" = '' ] 
     12then 
     13 echo 'none' 
     14 exit 1; 
     15fi 
     16echo $CC 
     17 
     18#Makefile.conf not yet open, write it later 
     19 
     20 
     21while [ "$1" != '' ] 
     22do 
     23 case "$1" in 
     24  '--help') 
     25   echo '--help' 
     26   echo '--ldpath DIR' 
     27   exit 0; 
     28  ;; 
     29  '--ldpath') 
     30   LDPATH="$LDPATH -L$2" 
     31   shift; 
     32  ;; 
     33 esac; 
     34 
     35 shift; 
     36done 
     37 
     38 
     39CCTF="$CC $LDPATH -o $TF_E $TF_C" 
    1040 
    1141test_lib () { 
     
    71101exec 3> config.h 4> Makefile.conf 
    72102 
     103# now write the cc name to Makefile.conf 
     104echo "CC=$CC" >&4 
     105echo "LDPATH=$LDPATH" >&4 
     106 
    73107cat >&3 << EOF 
    74108//config.h: 
Note: See TracChangeset for help on using the changeset viewer.