X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure;h=9af719f4b772d0f83af8abda4890f98451199fe2;hb=986d60fc6068356477327f742c0e41827e76a3fa;hp=314cd954d2bb90c26c85bf3d4a92697dc86c3484;hpb=fc11dd059b5c7369a51ddcca532505b588bd0030;p=picodrive.git diff --git a/configure b/configure index 314cd95..9af719f 100755 --- a/configure +++ b/configure @@ -280,7 +280,7 @@ check_libavcodec() #include void main() { avcodec_decode_audio3(0, 0, 0, 0); } EOF - compile_binary "$@" -lavcodec + compile_object "$@" } #MAIN_LDLIBS="$MAIN_LDLIBS -lz" @@ -291,7 +291,11 @@ check_libpng || fail "please install libpng (libpng-dev)" if check_libavcodec; then have_libavcodec="yes" - MAIN_LDLIBS="-lavcodec $MAIN_LDLIBS" + # add -ldl if needed + case "$MAIN_LDLIBS" in + *"-ldl"*) ;; + *) MAIN_LDLIBS="-ldl $MAIN_LDLIBS" ;; + esac fi # find what audio support we can compile