comparison configure @ 24649:aa3ba702dec5

Fix Theora check without pkgconfig, -ltheora will not link on its own, -logg is needed as well. patch by Gianluigi Tiesi
author diego
date Sat, 29 Sep 2007 22:19:54 +0000
parents ce126ce0362f
children f4143e50206d
comparison
equal deleted inserted replaced
24648:ce126ce0362f 24649:aa3ba702dec5
5911 theora_clear (&st); 5911 theora_clear (&st);
5912 5912
5913 return 0; 5913 return 0;
5914 } 5914 }
5915 EOF 5915 EOF
5916 for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora"; do 5916 for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora -logg"; do
5917 cc_check $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" \ 5917 cc_check $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" \
5918 && _theora=yes && break 5918 && _theora=yes && break
5919 done 5919 done
5920 if test "$_theora" = no && test "$_tremor_internal" = yes; then 5920 if test "$_theora" = no && test "$_tremor_internal" = yes; then
5921 for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora"; do 5921 for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora -logg"; do
5922 cc_check -I. tremor/bitwise.c $_ld_theora \ 5922 cc_check -I. tremor/bitwise.c $_ld_theora \
5923 && _ld_extra="$_ld_extra $_ld_theora" && theora=yes && break 5923 && _ld_extra="$_ld_extra $_ld_theora" && theora=yes && break
5924 done 5924 done
5925 fi 5925 fi
5926 fi 5926 fi