[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libiconv detection failure
From: |
Eric Blake |
Subject: |
Re: libiconv detection failure |
Date: |
Tue, 21 Oct 2014 10:02:35 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 10/21/2014 03:30 AM, Daiki Ueno wrote:
> Werner LEMBERG <address@hidden> writes:
>
>>>> Given that the intention of the above test is to check if the iconv
>>>> function works properly, maybe a workaround would be to use the
>>>> fixed prototype of iconv (as attached)?
>>>
>>> Sorry, that was obviously wrong. The other idea is to suppress the
>>> error with a pragma, but I guess it would be better to actually
>>> check the prototype in AM_ICONV_LINK.
>>
>> What about using m4_foreach, running the link tests with and without
>> `const'?
m4_foreach causes the loop to be expanded at m4 time (a larger configure
file). In this case, you could probably easily get by with a shell loop
instead, for a smaller configure file (untested):
for type in 'char **' 'const char **'; do
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
...
typedef $type gl_iconv_buf_t;
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- libiconv detection failure, Werner LEMBERG, 2014/10/20
- Re: libiconv detection failure, Daiki Ueno, 2014/10/21
- Re: libiconv detection failure, Daiki Ueno, 2014/10/21
- Re: libiconv detection failure, Werner LEMBERG, 2014/10/21
- Re: libiconv detection failure, Daiki Ueno, 2014/10/21
- Re: libiconv detection failure, Werner LEMBERG, 2014/10/21
- Re: libiconv detection failure, Eli Zaretskii, 2014/10/21
- Re: libiconv detection failure, Werner LEMBERG, 2014/10/22
- Re: libiconv detection failure, Eli Zaretskii, 2014/10/22
- Re: libiconv detection failure,
Eric Blake <=
- Re: libiconv detection failure, Daiki Ueno, 2014/10/21
- Re: libiconv detection failure, Eli Zaretskii, 2014/10/22
- Re: libiconv detection failure, Daiki Ueno, 2014/10/23
- Re: libiconv detection failure, Eli Zaretskii, 2014/10/23
- Re: libiconv detection failure, Daiki Ueno, 2014/10/23
- Re: libiconv detection failure, Werner LEMBERG, 2014/10/23