Add support for finding libpng via pkg-config
PATCH 1/1 Add support for finding libpng via pkg-config
Add support for finding libpng via pkg-config.
Signed-off-by Brad Smith <[email protected]>
--- configure | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
configure +6 -0
@@ -1519,11 +1519,17 @@ int main(void) { return 0; } EOF + if $pkg_config libpng --modversion >/dev/null 2>&1; then + vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null` + vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null` + else vnc_png_cflags="" vnc_png_libs="-lpng" + fi if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then vnc_png=yes libs_softmmu="$vnc_png_libs $libs_softmmu" + QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags" else if test "$vnc_png" = "yes" ; then feature_not_found "vnc-png"
Signature · 7 lines
1.7.6 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Anthony Liguori
AppliedQuoted 4 lines · Brad
Add support for finding libpng via pkg-config.
Signed-off-by Brad Smith<[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 26 lines
--- configure | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)configure +6
-0@@ -1519,11 +1519,17 @@ int main(void) { return 0; } EOF + if $pkg_config libpng --modversion>/dev/null 2>&1; then + vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null` + vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null` + else vnc_png_cflags="" vnc_png_libs="-lpng" + fi if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then vnc_png=yes libs_softmmu="$vnc_png_libs $libs_softmmu" + QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags" else if test "$vnc_png" = "yes" ; then feature_not_found "vnc-png"