From: Yasuhiro Ikeda Date: Sun, 24 Apr 2011 06:33:45 +0000 (+0900) Subject: Support more recent GPAC versions X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=e41a777626c95c97e14451c221688447187fa48b;p=x264.git Support more recent GPAC versions --- diff --git a/configure b/configure index 29b6e854..ca4f4495 100755 --- a/configure +++ b/configure @@ -780,12 +780,12 @@ if [ "$swscale" = "yes" ]; then fi fi -GPAC_LIBS="-lgpac_static" -if [ $SYS = WINDOWS ]; then - GPAC_LIBS="$GPAC_LIBS -lwinmm" -fi if [ "$gpac" = "auto" ] ; then gpac="no" + cc_check "" -lz && GPAC_LIBS="-lgpac_static -lz" || GPAC_LIBS="-lgpac_static" + if [ "$SYS" = "WINDOWS" ] ; then + GPAC_LIBS="$GPAC_LIBS -lwinmm" + fi if cc_check gpac/isomedia.h "$GPAC_LIBS" ; then if cc_check gpac/isomedia.h "$GPAC_LIBS" "gf_isom_set_pixel_aspect_ratio(0,0,0,0,0);" ; then gpac="yes"