[PATCH xserver] autoconf: autoreconf of xserver produces warnings #38185

Gaetan Nadon memsize at videotron.ca
Tue Sep 27 06:39:46 PDT 2011


From: Christopher Yeleighton <giecrilj at stegny.2a.pl>

https://bugs.freedesktop.org/show_bug.cgi?id=38185

warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected

This warning was introduced in autoconf version 2.68.

Reviewed-by & Tested-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b0d2643..6e65161 100644
--- a/configure.ac
+++ b/configure.ac
@@ -723,7 +723,7 @@ case $host_os in
 			AC_CACHE_CHECK([whether to build Xquartz],xorg_cv_Carbon_framework,[
 		 		save_LDFLAGS=$LDFLAGS
 				LDFLAGS="$LDFLAGS -framework Carbon"
-				AC_LINK_IFELSE([char FSFindFolder(); int main() { FSFindFolder(); return 0;}],
+				AC_LINK_IFELSE([AC_LANG_SOURCE([[char FSFindFolder(); int main() { FSFindFolder(); return 0;}]])],
 				               [xorg_cv_Carbon_framework=yes],
 				               [xorg_cv_Carbon_framework=no])
 			        LDFLAGS=$save_LDFLAGS])
@@ -875,10 +875,12 @@ AC_DEFINE_UNQUOTED([USE_SIGIO_BY_DEFAULT], [$USE_SIGIO_BY_DEFAULT_VALUE],
 
 AC_MSG_CHECKING([for glibc...])
 AC_PREPROC_IFELSE([
+AC_LANG_SOURCE([[
 #include <features.h>
 #ifndef __GLIBC__
 #error
 #endif
+]])
 ], glibc=yes, glibc=no)
 AC_MSG_RESULT([$glibc])
 
@@ -904,9 +906,10 @@ if ! test "x$have_clock_gettime" = xno; then
     fi
 
     AC_RUN_IFELSE([
+AC_LANG_SOURCE([[
 #include <time.h>
 
-int main(int argc, char *argv[[]]) {
+int main(int argc, char *argv[]) {
     struct timespec tp;
 
     if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
@@ -914,6 +917,7 @@ int main(int argc, char *argv[[]]) {
     else
         return 1;
 }
+]])
     ], [MONOTONIC_CLOCK=yes], [MONOTONIC_CLOCK=no],
        [MONOTONIC_CLOCK="cross compiling"])
 
-- 
1.7.4.1



More information about the xorg-devel mailing list