@@ -45,10 +45,10 @@ flag non-blocking-ffi
45
45
prevents other Haskell threads running. Enabling this flag
46
46
avoids this unfairness, but with greater overall cost.
47
47
48
- flag use- pkg-config
48
+ flag pkg-config
49
49
default : False
50
50
manual : True
51
- description : Use pkg-config to find foreign zlib.
51
+ description : Use @ pkg-config(1)@ to locate foreign @ zlib@ library .
52
52
53
53
library
54
54
exposed-modules : Codec.Compression.GZip,
@@ -73,21 +73,23 @@ library
73
73
ghc-options : -Wall -fwarn-tabs
74
74
if flag(non-blocking-ffi)
75
75
cpp-options : -DNON_BLOCKING_FFI
76
- if !os(windows)
77
- -- Normally we use the the standard system zlib:
78
- if !flag(use-pkg-config)
76
+ if flag(pkg-config)
77
+ -- NB: pkg-config is available on windows as well when using msys2
78
+ pkgconfig-depends : zlib
79
+ else
80
+ -- don't use pkg-config
81
+ if !os(windows)
82
+ -- Normally we use the the standard system zlib.
79
83
extra-libraries : z
80
84
else
81
- pkgconfig-depends : zlib
82
- else
83
- -- However for the benefit of users of Windows (which does not have zlib
84
- -- by default) we bundle a complete copy of the C sources of zlib-1.2.8
85
- c-sources : cbits/adler32.c cbits/compress.c cbits/crc32.c
85
+ -- However for the benefit of users of Windows (which does not have zlib
86
+ -- by default) we bundle a complete copy of the C sources of zlib-1.2.8
87
+ c-sources : cbits/adler32.c cbits/compress.c cbits/crc32.c
86
88
cbits/deflate.c cbits/infback.c
87
89
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
88
90
cbits/trees.c cbits/uncompr.c cbits/zutil.c
89
- include-dirs : cbits
90
- install-includes : zlib.h zconf.h
91
+ include-dirs : cbits
92
+ install-includes : zlib.h zconf.h
91
93
92
94
test-suite tests
93
95
type : exitcode-stdio-1.0
0 commit comments