+
+my $yazinc = `yaz-config --cflags threads`;
+my $yazlibs = `yaz-config --libs threads`;
+if (!$yazinc || !$yazlibs) {
+ die qq[
+ERROR: Unable to call script: yaz-config
+If you are using a YAZ installation from the Debian package "yaz", you
+will also need to install "libyaz-dev" in order to build this module.
+];
+}
+
+# For Windows use
+# $yazinc = '-Ic:\yaz\include'
+# $yazlibs = 'c:\yaz\lib\yaz.lib'
+