Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog

[xen-unstable] tools/m4: add AC_LANG_SOURCE to fix autoconf warnings

 

 

Xen changelog RSS feed   Index | Next | Previous | View Threaded


patchbot at xen

Jul 5, 2012, 3:22 PM

Post #1 of 1 (62 views)
Permalink
[xen-unstable] tools/m4: add AC_LANG_SOURCE to fix autoconf warnings

# HG changeset patch
# User Olaf Hering <olaf [at] aepfle>
# Date 1341413177 -3600
# Node ID 7c0351dc41a5123241af27f4cb910b915647193c
# Parent 197138cc94363f046f79ca89fc1d831a56004e4e
tools/m4: add AC_LANG_SOURCE to fix autoconf warnings

I see these warnings with autoconf 2.68, add AC_LANG_SOURCE as suggested
by upstream documentation.

...
# bash autogen.sh
configure.ac:141: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/pthread.m4:21: AX_CHECK_PTHREAD is expanded from...
configure.ac:141: the top level
configure.ac:142: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/ptyfuncs.m4:1: AX_CHECK_PTYFUNCS is expanded from...
configure.ac:142: the top level
configure.ac:141: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/pthread.m4:21: AX_CHECK_PTHREAD is expanded from...
configure.ac:141: the top level
configure.ac:142: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/ptyfuncs.m4:1: AX_CHECK_PTYFUNCS is expanded from...
configure.ac:142: the top level

Please rerun autoconf after applying this.

Signed-off-by: Olaf Hering <olaf [at] aepfle>
Acked-by: Ian Campbell <ian.campbell [at] citrix>
Committed-by: Ian Campbell <ian.campbell [at] citrix>
---


diff -r 197138cc9436 -r 7c0351dc41a5 tools/m4/pthread.m4
--- a/tools/m4/pthread.m4 Wed Jul 04 15:46:16 2012 +0100
+++ b/tools/m4/pthread.m4 Wed Jul 04 15:46:17 2012 +0100
@@ -24,13 +24,13 @@ AC_DEFUN([AX_CHECK_PTHREAD],[
AX_PTHREAD_CV2VARS
AX_PTHREAD_VARS([AX_SAVEVAR_SAVE])
AX_PTHREAD_VARS([AX_PTHREAD_VAR_APPLY])
- AC_LINK_IFELSE([.
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <pthread.h>
int main(void) {
pthread_atfork(0,0,0);
pthread_create(0,0,0,0);
}
-],[],[ax_cv_pthread_flags=failed])
+])],[],[ax_cv_pthread_flags=failed])
AX_PTHREAD_VARS([AX_SAVEVAR_RESTORE])
])
if test "x$ax_cv_pthread_flags" = xfailed; then
diff -r 197138cc9436 -r 7c0351dc41a5 tools/m4/ptyfuncs.m4
--- a/tools/m4/ptyfuncs.m4 Wed Jul 04 15:46:16 2012 +0100
+++ b/tools/m4/ptyfuncs.m4 Wed Jul 04 15:46:17 2012 +0100
@@ -9,7 +9,7 @@ AC_DEFUN([AX_CHECK_PTYFUNCS], [.
fi
AX_SAVEVAR_SAVE(LIBS)
LIBS="$LIBS $ax_cv_ptyfuncs_libs"
- AC_LINK_IFELSE([.
+ AC_LINK_IFELSE([.AC_LANG_SOURCE([.
#ifdef INCLUDE_LIBUTIL_H
#include INCLUDE_LIBUTIL_H
#endif
@@ -17,7 +17,7 @@ int main(void) {
openpty(0,0,0,0,0);
login_tty(0);
}
-],[
+])],[
break
],[])
AX_SAVEVAR_RESTORE(LIBS)

_______________________________________________
Xen-changelog mailing list
Xen-changelog [at] lists
http://lists.xensource.com/xen-changelog

Xen changelog RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.