Changeset 748:cd6aeea28945 in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
configure
r730 r748 166 166 } 167 167 168 test_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 168 186 exec 3> config.h 4> Makefile.conf 169 187 … … 201 219 echo 202 220 } >&3 221 222 # #define name cmds... 223 test_tool_defmake ROAR_HAVE_BIN_OGG123 ogg123 ogg123 224 test_tool_defmake ROAR_HAVE_BIN_FLAC flac flac 225 test_tool_defmake ROAR_HAVE_BIN_TIMIDITY TiMidity++ timidity 226 227 echo >&3 203 228 204 229 test_lib 'Math Library' m -- math.h && echo '#define ROAR_HAVE_LIBM' >&3
Note: See TracChangeset
for help on using the changeset viewer.