Iterating over variable using AC_DEFINE to get HAVE_FOO_varitem (similar to AC_CHECK_HEADERS)

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

 



Hi,

For a project I would like to get defines for every supported languages.
The ALL_LINGUAS variable contains alist of language codes. Now I would
like to get

HAVE_LINGUA_$lang

for every languages code in the variable. I tried this piece of code:

> AS_FOR(
>         [AC_lingua],
>         [ac_lingua],
>         [$ALL_LINGUAS],
>         [
>          AC_MSG_NOTICE([Having lingua ]AC_lingua)
>          AH_TEMPLATE(AS_TR_CPP([HAVE_LINGUA_]AC_lingua), [Define to 1 for <AC_lingua> lingua support.])
>          AC_DEFINE(AS_TR_CPP([HAVE_LINGUA_]AC_lingua))
>         ]
> )

But it doesn't work. I tried several other things, but the autoheader
file never contains the defines. What am I doing wrong?

Regards, Daniel


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://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