Warning in acinclude.m4.in / KDE branch 3.5

Martin Pley kde-core at pley.org
Mon Oct 15 12:37:50 BST 2007


Hi,

I get a warning within libz-check with gcc 4.2.1 on SuSE 10.3. If there are no 
complaints about it, i'd like to commit the following patch:

--- acinclude.m4.in     (Revision 725412)
+++ acinclude.m4.in     (Arbeitskopie)
@@ -2631,6 +2631,7 @@
 AC_TRY_LINK(dnl
 [
 #include<zlib.h>
+#include<string.h>
 ],
 [
   char buf[42];
@@ -2638,7 +2639,7 @@
   /* this would segfault.. but we only link, don't run */
   (void) gzgets(f, buf, sizeof(buf));

-  return (zlibVersion() == ZLIB_VERSION);
+  return (strcmp(zlibVersion(), ZLIB_VERSION) == 0);
 ],
             eval "ac_cv_lib_z='-lz'",
             eval "ac_cv_lib_z=no")

Kind regards
Martin Pley




More information about the kde-core-devel mailing list