comparison configure @ 19634:7ec9c72264bc

-lm needs to come before -laudio to avoid link errors in the NAS check. patch by Bernd Ernesti, mplayer-dev-eng [{at}] lists [{dot}] veego [{dot}] de
author diego
date Sat, 02 Sep 2006 15:48:21 +0000
parents 18a538908577
children 4af3191b288d
comparison
equal deleted inserted replaced
19633:7f1da6f584c0 19634:7ec9c72264bc
4590 cat > $TMPC << EOF 4590 cat > $TMPC << EOF
4591 #include <audio/audiolib.h> 4591 #include <audio/audiolib.h>
4592 int main(void) { return 0; } 4592 int main(void) { return 0; }
4593 EOF 4593 EOF
4594 _nas=no 4594 _nas=no
4595 cc_check -laudio -lXt $_ld_x11 $_ld_lm && _nas=yes 4595 cc_check $_ld_lm -laudio -lXt $_ld_x11 && _nas=yes
4596 fi 4596 fi
4597 if test "$_nas" = yes ; then 4597 if test "$_nas" = yes ; then
4598 _def_nas='#define HAVE_NAS 1' 4598 _def_nas='#define HAVE_NAS 1'
4599 _ld_nas="-laudio -lXt $_ld_x11" 4599 _ld_nas="-laudio -lXt $_ld_x11"
4600 _aosrc="$_aosrc ao_nas.c" 4600 _aosrc="$_aosrc ao_nas.c"