[Patch] Getting a warning free ./configure



When ./configure is generated by an > 2.50 autoconf the
AC_CHECK_HEADERS macreos emit a warning about some headers being present
but not compilable, because the headers they depend on are not
included. The following patch fixes configure.in to avoid that.

------------------------------------------------------------------------
diff -urNad sawfish-1.3+svn4194~/configure.in sawfish-1.3+svn4194/configure.in
--- sawfish-1.3+svn4194~/configure.in	2007-05-02 18:59:11.000000000 -0500
+++ sawfish-1.3+svn4194/configure.in	2007-05-02 19:03:52.048606925 -0500
@@ -90,7 +90,8 @@
 _cppflags="${CPPFLAGS}"
 CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
 
-AC_CHECK_HEADERS(X11/SM/SMlib.h X11/extensions/Xdbe.h)
+AC_CHECK_HEADERS(X11/SM/SMlib.h X11/extensions/Xdbe.h, [], [],
+        [#include <X11/Xlib.h> ])
 
 dnl Checks for X extensions/libraries
 XINERAMA_LIBS=""
@@ -110,7 +111,8 @@
 
 AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
 	     [XRANDR_LIBS="-lXrandr"
-	      AC_CHECK_HEADERS(X11/extensions/Xrandr.h)],
+	      AC_CHECK_HEADERS(X11/extensions/Xrandr.h, [], [],
+                [#include <X11/Xlib.h> ])],
 	     [],[$X_LIBS -lX11 -lXext])
 
 dnl Try using pkg-config first, since it looks like Xft2 may fail our
------------------------------------------------------------------------

-- 
Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]