diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-02-11 01:04:13 -0800 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-02-16 15:22:32 -0500 |
commit | 82a3980701c68949ed762b1e93dc81698db1613e (patch) | |
tree | 1ed0e8ad0ebfb003a7ea8620fc99c47a012e0fa7 /configure.ac | |
parent | 46fc4eb234f5c4f281c2901ea7514ff69e8670a8 (diff) |
configure.ac: Add an --enable-libpng option
Now there is a way to not link against libpng even if it's available.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9f81b11d..233d3dc4 100644 --- a/configure.ac +++ b/configure.ac @@ -855,7 +855,14 @@ AC_SUBST(TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR) dnl ================== dnl libpng -PKG_CHECK_MODULES(PNG, [libpng], have_libpng=yes, have_libpng=no) +AC_ARG_ENABLE(libpng, AS_HELP_STRING([--enable-libpng], [Build support for libpng (default: auto)]), + [have_libpng=$enableval], [have_libpng=auto]) + +case x$have_libpng in + xyes) PKG_CHECK_MODULES(PNG, [libpng]) ;; + xno) ;; + *) PKG_CHECK_MODULES(PNG, [libpng], have_libpng=yes, have_libpng=no) ;; +esac if test x$have_libpng = xyes; then AC_DEFINE([HAVE_LIBPNG], [1], [Whether we have libpng]) |