You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Justin Erenkrantz <ju...@erenkrantz.com> on 2010/11/01 18:47:17 UTC

Autoconf warnings on trunk

I'm getting a slew of warnings when I run autogen.sh on trunk.
(autoconf 2.68 via Macports.)

configure.ac:119: 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...
build/ac-macros/neon.m4:72: SVN_NEON_CONFIG is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:1482: AC_ARG_WITH is expanded from...
build/ac-macros/neon.m4:39: SVN_LIB_NEON is expanded from...
configure.ac:119: the top level
configure.ac:135: 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...
build/ac-macros/gssapi.m4:26: SVN_LIB_RA_SERF_GSSAPI is expanded from...
configure.ac:135: the top level
...more warnings...

I've tried to wrap the calls to AC_LINK_IFELSE like so:

Index: build/ac-macros/neon.m4
===================================================================
--- build/ac-macros/neon.m4     (revision 1029788)
+++ build/ac-macros/neon.m4     (working copy)
@@ -113,7 +113,7 @@
 #include <ne_xml.h>
 int main()
 {ne_xml_create(); ne_decompress_destroy(NULL);}"
-              AC_LINK_IFELSE([$neon_test_code], shared_linking="yes",
shared_linking="no")
+              AC_LINK_IFELSE(AC_LANG_SOURCE([$neon_test_code]),
shared_linking="yes", shared_linking="no")
               if test "$shared_linking" = "no"; then
                 NEON_LIBS=`$PKG_CONFIG neon --libs --static`
                 LIBS="$LIBS $NEON_LIBS"

But, that doesn't seem to be enough.  Also tried [[ ]]s within
AC_LANG_SOURCE and no dice.

Any idea what I'm missing?  Is this some lame autoconf bug?  -- justin

Re: Autoconf warnings on trunk

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Mon, Nov 1, 2010 at 11:49 AM, Mark Phippard <ma...@gmail.com> wrote:
> On Mon, Nov 1, 2010 at 2:47 PM, Justin Erenkrantz <ju...@erenkrantz.com> wrote:
>> I'm getting a slew of warnings when I run autogen.sh on trunk.
>> (autoconf 2.68 via Macports.)
>
> Cool, it is not just me!
>
> I recently reinstalled MacPorts and thought I did something wrong.

Yah, even though I haven't been able to figure it out, I didn't see
any mention of these warnings in the archives, so I thought it'd be
worth posting even though I'm a bit stumped at the moment.  -- justin

Re: Autoconf warnings on trunk

Posted by Mark Phippard <ma...@gmail.com>.
On Mon, Nov 1, 2010 at 2:47 PM, Justin Erenkrantz <ju...@erenkrantz.com> wrote:
> I'm getting a slew of warnings when I run autogen.sh on trunk.
> (autoconf 2.68 via Macports.)

Cool, it is not just me!

I recently reinstalled MacPorts and thought I did something wrong.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Autoconf warnings on trunk

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Mon, Nov 1, 2010 at 12:00 PM, Philip Martin
<ph...@wandisco.com> wrote:
> The documentation suggests another '[' is needed:
>
>                 AC_LINK_IFELSE([AC_LANG_SOURCE

r1029802.  (also tested with stock 2.59 as well...seems okay.)

Yah, I somehow missed needing the leading [.

m4 as a language blows.  =)  -- justin

Re: Autoconf warnings on trunk

Posted by Philip Martin <ph...@wandisco.com>.
Justin Erenkrantz <ju...@erenkrantz.com> writes:

>
> Index: build/ac-macros/neon.m4
> ===================================================================
> --- build/ac-macros/neon.m4     (revision 1029788)
> +++ build/ac-macros/neon.m4     (working copy)
> @@ -113,7 +113,7 @@
>  #include <ne_xml.h>
>  int main()
>  {ne_xml_create(); ne_decompress_destroy(NULL);}"
> -              AC_LINK_IFELSE([$neon_test_code], shared_linking="yes",
> shared_linking="no")
> +              AC_LINK_IFELSE(AC_LANG_SOURCE([$neon_test_code]),

The documentation suggests another '[' is needed:

                 AC_LINK_IFELSE([AC_LANG_SOURCE

> shared_linking="yes", shared_linking="no")
>                if test "$shared_linking" = "no"; then
>                  NEON_LIBS=`$PKG_CONFIG neon --libs --static`
>                  LIBS="$LIBS $NEON_LIBS"
>
> But, that doesn't seem to be enough.  Also tried [[ ]]s within
> AC_LANG_SOURCE and no dice.
>
> Any idea what I'm missing?  Is this some lame autoconf bug?  -- justin
>

-- 
Philip