comparison configure @ 35612:488b3fea696d

Allow libmng autodetection to test for "-lmng" and "-lmng -ljpeg". Patch by Josh, joshf87 live com
author cehoyos
date Sat, 22 Dec 2012 17:53:30 +0000
parents 187738d40b0b
children cd707857326e
comparison
equal deleted inserted replaced
35611:a4741058bb40 35612:488b3fea696d
5002 fi 5002 fi
5003 5003
5004 echocheck "MNG support" 5004 echocheck "MNG support"
5005 if test "$_mng" = auto ; then 5005 if test "$_mng" = auto ; then
5006 _mng=no 5006 _mng=no
5007 return_statement_check libmng.h 'const char * p_ver = mng_version_text()' '!p_ver || p_ver[0] == 0' -lmng -lz && _mng=yes 5007 for mnglibs in '-lmng -lz' '-lmng -ljpeg -lz' ; do
5008 return_statement_check libmng.h 'const char * p_ver = mng_version_text()' '!p_ver || p_ver[0] == 0' $mnglibs && _mng=yes
5009 done
5008 fi 5010 fi
5009 echores "$_mng" 5011 echores "$_mng"
5010 if test "$_mng" = yes ; then 5012 if test "$_mng" = yes ; then
5011 def_mng='#define CONFIG_MNG 1' 5013 def_mng='#define CONFIG_MNG 1'
5012 extra_ldflags="$extra_ldflags -lmng -lz" 5014 extra_ldflags="$extra_ldflags $mnglibs"
5013 vomodules="mng $vomodules" 5015 vomodules="mng $vomodules"
5014 else 5016 else
5015 def_mng='#undef CONFIG_MNG' 5017 def_mng='#undef CONFIG_MNG'
5016 novomodules="mng $novomodules" 5018 novomodules="mng $novomodules"
5017 fi 5019 fi