Changeset 1742:4fbe8cb28680 in roaraudio for plugins/ao/configure
- Timestamp:
- 05/17/09 22:47:42 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/ao/configure
r1740 r1742 45 45 } 46 46 47 echo -n 'testing for C compiler... ' 48 CC=$(which gcc cc 2> /dev/null | head -n 1) 49 if [ -x "$CC" ] 50 then 51 echo $CC 52 else 53 echo no. 54 on_error; 55 fi 56 57 echo -n "checking for pkg-config... " 58 if [ "$PKG_CONFIG" = '' ] 59 then 60 PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1) 61 if $PKG_CONFIG --help > /dev/null 2> /dev/null 62 then 63 echo $PKG_CONFIG 64 else 65 PKG_CONFIG='' 66 echo no 67 on_error; 68 fi 69 else 70 echo $PKG_CONFIG '(forced)' 71 fi 47 check_cc; 48 check_pkg_config; 72 49 73 50 echo -n 'testing for libao... ' … … 103 80 fi 104 81 105 echo -n 'testing for libroar... ' 106 if $HAVE_ROAR 107 then 108 echo 'yes (forced)' 109 else 110 cat > tests.c << EOF 111 #include <roaraudio.h> 112 int main (void) { return 0; } 113 EOF 82 check_libroar; 114 83 115 $CC -o tests tests.c -lroar 2> /dev/null116 ./tests 2> /dev/null117 118 if [ "$?" = '0' ]119 then120 echo yes121 else122 echo no.123 on_error124 fi125 fi126 84 rm -f tests tests.c 127 85
Note: See TracChangeset
for help on using the changeset viewer.