From: Sebastian Dröge Date: Mon, 26 Aug 2013 11:48:02 +0000 (+0200) Subject: configure.ac: Don't set BZ2_LIBS if bz2 is not found X-Git-Tag: 1.19.3~507^2~13143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f69cdad17510c7d91ea3ac9d9441f66b057ab2db;p=platform%2Fupstream%2Fgstreamer.git configure.ac: Don't set BZ2_LIBS if bz2 is not found --- diff --git a/configure.ac b/configure.ac index fbf8f655b8..ecc2eb9cfc 100644 --- a/configure.ac +++ b/configure.ac @@ -1090,7 +1090,9 @@ AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[const char *version = BZ2_bzlibVersion ();]])],[HAVE_BZ2=yes],[HAVE_BZ2=no]) AC_MSG_RESULT($HAVE_BZ2) LIBS=$save_LIBS - BZ2_LIBS="-lbz2" + if test "x$HAVE_BZ2" = "xyes"; then + BZ2_LIBS="-lbz2" + fi AC_SUBST(BZ2_LIBS):w ])