Changeset 1050:f822683268ac in roaraudio for plugins/ao


Ignore:
Timestamp:
12/23/08 23:35:17 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --force-have-roar, include roaraudio/lib to gcc lib search path

Location:
plugins/ao
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/ao/Makefile

    r1049 r1050  
    1212 
    1313libroar.so: ao_roar.c 
    14         cc -shared -lroar -o libroar.so ao_roar.c 
     14        cc -shared -L../../lib -lroar -o libroar.so ao_roar.c 
    1515 
    1616ao_roar.c: 
  • plugins/ao/configure

    r1048 r1050  
    22 
    33INSTALL_DIR=/usr/lib/ao/plugins-2/ 
     4 
     5HAVE_ROAR=false 
    46 
    57while [ "$1" != '' ] 
     
    911   INSTALL_DIR="$2" 
    1012   shift; 
     13  ;; 
     14  --force-have-roar) 
     15   HAVE_ROAR=true 
    1116  ;; 
    1217  --help|-h) 
     
    6671 on_error 
    6772fi 
    68 rm -f tests tests.c 
    6973 
    7074echo -n 'testing for libroar... ' 
    71 cat > tests.c << EOF 
     75if $HAVE_ROAR 
     76then 
     77 echo 'yes (forced)' 
     78else 
     79 cat > tests.c << EOF 
    7280#include <roaraudio.h> 
    7381int main (void) { return 0; } 
    7482EOF 
    7583 
    76 $CC -lroar -o tests tests.c 2> /dev/null 
    77 ./tests 2> /dev/null 
     84 $CC -lroar -o tests tests.c 2> /dev/null 
     85 ./tests 2> /dev/null 
    7886 
    79 if [ "$?" = '0' ] 
    80 then 
    81  echo yes 
    82 else 
    83  echo no. 
    84  on_error 
     87 if [ "$?" = '0' ] 
     88 then 
     89  echo yes 
     90 else 
     91  echo no. 
     92  on_error 
     93 fi 
    8594fi 
    8695rm -f tests tests.c 
Note: See TracChangeset for help on using the changeset viewer.