Re: wacky warning in 2.68...

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

 



Miles Bader <miles@xxxxxxx> writes:

> Recently I've started getting odd warnings from autoconf, and I'm not
> sure how to shut them up... e.g., from the following "configure.ac"
> file:

[...]

>        AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [opt_ok=yes], [opt_ok=no])

[...]

> I get the following warnings from running "autoconf":

>    configure.ac:24: 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:2591: _AC_COMPILE_IFELSE is expanded from...
>    ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
>    configure.ac:7: BARF_CHECK_CXX_FLAG is expanded from...
>    configure.ac:24: the top level

> AFAICS, I _am_ using AC_LANG_SOURCE, so ... I dunno why it's
> complaining...

You're missing a level of quoting.  That should be:

    AC_COMPILE_IFELSE([AC_LANG_SOURCE([int x;])], [opt_ok=yes], [opt_ok=no])

-- 
Russ Allbery (rra@xxxxxxxxxxxx)             <http://www.eyrie.org/~eagle/>

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux