[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Porting the configure script to C99
From: |
Florian Weimer |
Subject: |
Re: [Lynx-dev] Porting the configure script to C99 |
Date: |
Sat, 03 Dec 2022 11:37:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
* Thomas Dickey:
> On Fri, Dec 02, 2022 at 11:16:32PM +0100, Florian Weimer wrote:
>> * Thomas Dickey:
>>
>> >> diff --git a/configure b/configure
>> >> index 97f6d1d5646d05c5..6db52b514b3b9a3c 100755
>> >> --- a/configure
>> >> +++ b/configure
>> >> @@ -31122,6 +31122,7 @@ else
>> >> #line 31122 "configure"
>> >> #include "confdefs.h"
>> >>
>> >> +#include <stdio.h>
>> >> #if HAVE_TERMIO_H
>> >> #include <termio.h>
>> >> #endif
>> >> @@ -31629,6 +31630,9 @@ else
>> >> #line 31629 "configure"
>> >> #include "confdefs.h"
>> >> /* Thanks to Mike Rendell for this test. */
>> >> +#if HAVE_UNISTD_H
>> >> +# include <unistd.h>
>> >> +#endif
>> >
>> > "middle chunk" is referring to this, I suppose.
>> >
>> > AC_INCLUDES_DEFAULT includes a lot of headers, not just this one.
>> >
>> > what problem does that #include solve?
>>
>> Our configure says this at the top: “Generated by Autoconf
>> 2.52.20210509.” I don't think it uses AC_INCLUDES_DEFAULT yet, it
>> seems:
>
> I was actually talking about the "newer" version of autoconf.
The newer version should be okay without it, true.
Thanks,
Florian