Re: Avoid autom4te warning about unnamed diversion.

2010-06-07 Thread Eric Blake
On 06/07/2010 02:47 PM, Ralf Wildenhues wrote:
> I get this warning from recent Autoconf when bootstrapping Libtool:
> 
> $ ./bootstrap
> [...]
> autom4te --language=m4sh -B libltdl/config libltdl/config/ltmain.m4sh > 
> libltdl/config/ltmain.in
> libltdl/config/getopt.m4sh:1: warning: prefer named diversions
> 
> The patch below fixes it.  OK?
> 
> Thanks,
> Ralf
> 
>Avoid autom4te warning about unnamed diversion.
> 
>* libltdl/config/getopt.m4sh: Use diversion name KILL not -1.

Yes, that makes sense to me, especially given since I was the one that
patched autoconf to intentionally issue that warning.

-- 
Eric Blake   ebl...@redhat.com+1-801-349-2682
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


Avoid autom4te warning about unnamed diversion.

2010-06-07 Thread Ralf Wildenhues
I get this warning from recent Autoconf when bootstrapping Libtool:

$ ./bootstrap
[...]
autom4te --language=m4sh -B libltdl/config libltdl/config/ltmain.m4sh > 
libltdl/config/ltmain.in
libltdl/config/getopt.m4sh:1: warning: prefer named diversions

The patch below fixes it.  OK?

Thanks,
Ralf

   Avoid autom4te warning about unnamed diversion.

   * libltdl/config/getopt.m4sh: Use diversion name KILL not -1.

diff --git a/libltdl/config/getopt.m4sh b/libltdl/config/getopt.m4sh
index a81a905..27d2cd4 100644
--- a/libltdl/config/getopt.m4sh
+++ b/libltdl/config/getopt.m4sh
@@ -1,4 +1,4 @@
-m4_include([general.m4sh])m4_divert_push(-1)
+m4_include([general.m4sh])m4_divert_push(KILL)
 # getopt.m4sh -- getopt helper functions-*- Autoconf -*-
 #
 #Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 
Foundation, Inc.
@@ -496,7 +496,7 @@ m4go_validation
 # operation of the automatic `--version' and `--help' options, among
 # others.
 
-m4_divert_pop(-1)M4SH_VERBATIM([[
+m4_divert_pop(KILL)M4SH_VERBATIM([[
 # func_version
 # Echo version message to standard output and exit.
 func_version ()