Re: [elinks-dev] [PATCH] configure.in: add a missing AC_LANG_PROGRAM macro
W dniu 18.09.2013 o 12:48 Kamil Dudka pisze:
> On Monday 25 February 2013 15:45:32 Kamil Dudka wrote:
>> ... around the first argument of AC_COMPILE_IFELSE in order to eliminate
>> warnings with autoconf 2.68.
>> ---
>> configure.in |4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/configure.in b/configure.in
>> index 023af06..9d992ee 100644
>> --- a/configure.in
>> +++ b/configure.in
>> @@ -221,7 +221,7 @@ AC_STRUCT_TM
>> AC_C_CONST
>> AC_C_INLINE
>> AC_MSG_CHECKING([[for C99-conforming inline]])
>> -AC_COMPILE_IFELSE([[
>> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
>> int add(int change);
>>
>> static int sum;
>> @@ -237,7 +237,7 @@ AC_COMPILE_IFELSE([[
>> sub(int change)
>> {
>> return add(-change);
>> -}]],
>> +}]])],
>> [AC_MSG_RESULT([[yes]])
>> AC_DEFINE([NONSTATIC_INLINE], [inline],
>> [Define as inline if the compiler lets you declare a function
>> without
>> inline, then define it with inline, and have that definition refer to
>> identifiers with internal linkage. This is allowed by C99 6.7.4p6 and
>> 6.7.4p3 together. Otherwise define as nothing.])],
>
> The above patch still applies. Any chance to get this in? Thanks in
> advance!
Added to the master branch. Thanks!
___
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
Re: [elinks-dev] [PATCH] configure.in: add a missing AC_LANG_PROGRAM macro
On Monday 25 February 2013 15:45:32 Kamil Dudka wrote:
> ... around the first argument of AC_COMPILE_IFELSE in order to eliminate
> warnings with autoconf 2.68.
> ---
> configure.in |4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configure.in b/configure.in
> index 023af06..9d992ee 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -221,7 +221,7 @@ AC_STRUCT_TM
> AC_C_CONST
> AC_C_INLINE
> AC_MSG_CHECKING([[for C99-conforming inline]])
> -AC_COMPILE_IFELSE([[
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
> int add(int change);
>
> static int sum;
> @@ -237,7 +237,7 @@ AC_COMPILE_IFELSE([[
> sub(int change)
> {
> return add(-change);
> - }]],
> + }]])],
> [AC_MSG_RESULT([[yes]])
>AC_DEFINE([NONSTATIC_INLINE], [inline],
> [Define as inline if the compiler lets you declare a function
> without
> inline, then define it with inline, and have that definition refer to
> identifiers with internal linkage. This is allowed by C99 6.7.4p6 and
> 6.7.4p3 together. Otherwise define as nothing.])],
The above patch still applies. Any chance to get this in? Thanks in advance!
Kamil
___
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
