Changeset 748:cd6aeea28945 in roaraudio


Ignore:
Timestamp:
09/05/08 01:33:59 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to check for addition tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r730 r748  
    166166} 
    167167 
     168test_tool_defmake () { 
     169 DEF="$1" 
     170 NAME="$2" 
     171 shift; 
     172 shift; 
     173 echo -n "checking for $NAME... " 
     174 
     175 LIST=$(which "$@" 2> /dev/null | grep ^/ | head -n 1) 
     176 
     177 if [ "$LIST" = '' ] 
     178 then 
     179  echo 'no' 
     180 else 
     181  echo $LIST 
     182  echo "#define $DEF "\""$LIST"\" >&3 
     183 fi 
     184} 
     185 
    168186exec 3> config.h 4> Makefile.conf 
    169187 
     
    201219 echo 
    202220} >&3 
     221 
     222#                 #define                 name         cmds... 
     223test_tool_defmake ROAR_HAVE_BIN_OGG123    ogg123       ogg123 
     224test_tool_defmake ROAR_HAVE_BIN_FLAC      flac         flac 
     225test_tool_defmake ROAR_HAVE_BIN_TIMIDITY  TiMidity++   timidity 
     226 
     227echo >&3 
    203228 
    204229test_lib 'Math Library' m          -- math.h                         && echo '#define ROAR_HAVE_LIBM' >&3 
Note: See TracChangeset for help on using the changeset viewer.