Changeset 725:a072974497c7 in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
configure
r714 r725 19 19 SYSNAME='unknown' 20 20 SHARED='-shared' 21 PKG_CONFIG=false 21 22 22 23 echo -n "checking for C compiler... " … … 28 29 fi 29 30 echo $CC 31 32 echo -n "checking for pkg-config... " 33 PKG_CONFIG=$(which pkg-config false 2> /dev/null | head -n 1) 34 if $PKG_CONFIG --help > /dev/null 2> /dev/null 35 then 36 echo $PKG_CONFIG 37 else 38 echo no 39 fi 30 40 31 41 #Makefile.conf not yet open, write it later … … 87 97 shift; 88 98 99 LIBS=$(echo "$LIBS" | sed 's/-l-l/-l/g') 100 89 101 while [ "$1" != '' ] 90 102 do … … 114 126 shift 115 127 shift 128 name="$1" 116 129 lib="$2" 130 shift 117 131 118 132 [ "$subdir" = '%' ] && subdir='' … … 132 146 fi 133 147 134 if test_lib $@ 148 LIBS=$($PKG_CONFIG --silence-errors --libs $lib) 149 if [ "$?" != '0' ] 150 then 151 LIBS="-l$lib" 152 fi 153 154 if test_lib "$name" $LIBS "$@" 135 155 then 136 156 echo "#define $def" >&3 137 157 [ "$subdir" != '' ] && \ 138 158 echo "subdir_$subdir=$subdir" >&4 139 echo "lib_$lib= -l$lib" >&4159 echo "lib_$lib=$LIBS" >&4 140 160 else 141 161 [ "$subdir" != '' ] && \ … … 207 227 test_lib_defmake ROAR_HAVE_LIBARTSC libroararts libartsc artsc -- kde/artsc/artsc.h 208 228 test_lib_defmake ROAR_HAVE_LIBDNET % libdnet dnet -- sys/socket.h netdnet/dn.h netdnet/dnetdb.h 209 test_lib_defmake ROAR_HAVE_IPX % IPX 229 test_lib_defmake ROAR_HAVE_IPX % IPX c -- netipx/ipx.h 210 230 211 231 # add a better test here
Note: See TracChangeset
for help on using the changeset viewer.