Quoting Jordan Justen (2017-11-10 11:43:45) > On 2017-11-10 10:38:19, Dylan Baker wrote: > > Quoting Jordan Justen (2017-11-10 10:24:36) > > > Cc: Emil Velikov <emil.veli...@collabora.com> > > > Cc: Dylan Baker <dy...@pnwbakers.com> > > > Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> > > > --- > > > configure.ac | 6 +++++- > > > meson.build | 6 +++++- > > > 2 files changed, 10 insertions(+), 2 deletions(-) > > > > > > diff --git a/configure.ac b/configure.ac > > > index 411c4f6b3e0..213cfe132fb 100644 > > > --- a/configure.ac > > > +++ b/configure.ac > > > @@ -900,7 +900,11 @@ dnl See if posix_memalign is available > > > AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES > > > -DHAVE_POSIX_MEMALIGN"]) > > > > > > dnl Check for zlib > > > -PKG_CHECK_MODULES([ZLIB], [zlib >= $ZLIB_REQUIRED]) > > > +PKG_CHECK_MODULES([ZLIB], [zlib >= $ZLIB_REQUIRED], > > > + [have_zlib=yes], [have_zlib=no]) > > > +if test "x$have_zlib" = xyes; then > > > + DEFINES="$DEFINES -DHAVE_ZLIB" > > > +fi > > > > > > dnl Check for pthreads > > > AX_PTHREAD > > > diff --git a/meson.build b/meson.build > > > index 855c80ed658..4c27b3ba048 100644 > > > --- a/meson.build > > > +++ b/meson.build > > > @@ -661,8 +661,12 @@ if dep_libdrm.found() > > > endif > > > endif > > > > > > +dep_zlib = dependency('zlib', version : '>= 1.2.3', required : false) > > > +if dep_zlib.found() > > > + pre_args += '-DHAVE_ZLIB' > > > +endif > > > + > > > > There's the gen_zipped_file.py in src/intel/genxml that uses zlib for > > something, > > is not having zlib going to break that? > > I think not having zlib would break aubinator. So, I think zlib would > need to be required if src/intel/tools is being built. > > The only likely place where zlib wouldn't be found is windows. > > One thing we could consider is bundling the MIT licensed miniz: > > https://github.com/richgel999/miniz > > instead of relying on an external zlib. > > I'd prefer this HAVE_ZLIB change for now...
Meson has a wrap for zlib that is maintained by the meson project. So I think in the long run we can just require zlib and have meson fetch and build it as part of the windows build process. I don't have a problem with this as-is for now, the aubinator tools are non-default targets intended for developer use, and they're only useful on *nix systems, where zlib is pretty much universally installed. Dylan
signature.asc
Description: signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev