Detect if the static keyword is supported in array type derivations in function parameters

2025-02-20 Thread Antonin Décimo
This is a C99 feature that helps with static analysis. > If the keyword `static` also appears within the `[` and `]` of the array > type derivation, then for each call to the function, the value of the > corresponding actual argument shall provide access to the first element of an > array with

Re: Override LN_S and support Windows symlinks

2025-01-10 Thread Antonin Décimo
> > 1. Could _AS_LN_S_PREPARE be changed to work with or recognize Cygwin > > and MSYS2? > > I suppose it could, but what specific change is being proposed? It's not > entirely clear from your email. Fair enough. Would it be possible to remove the `ln -s file dir` check? And would it work for

Override LN_S and support Windows symlinks

2025-01-09 Thread Antonin Décimo
Hi all, I'm trying to improve AC_PROG_LN_S and/or _AS_LN_S_PREPARE on Windows. MSYS2 docs have a nice recap [1]: > Symlink support in Windows existed since Windows Vista, but creating > them was initially only possible with administrator > accounts. Starting with Windows 10 (~2016) it is possible

Re: C23 support in Autoconf

2024-04-30 Thread Antonin Décimo
I wasn't there when the magic was written, but I would have expected AC_PROG_CC_C89, AC_PROG_CC_C99 and possibly new AC_PROG_CC_Cx macros to select a version of the C standard. Apparently that wasn't their job and now they've been deprecated in 2.70.

Re: Making MSVC/clang-cl succeed AC_PROG_CC C11 discovery

2024-04-30 Thread Antonin Décimo
> I installed the attached patch, which is less ambitious but should > address the original problem report. It does address the problem report and it looks good to me, thanks a lot! It's also a bit less invasive than passing -std:c11 -Zc:__STDC__. The manual of AC_C_VARARRAYS could mention using

Re: Making MSVC/clang-cl succeed AC_PROG_CC C11 discovery

2024-04-30 Thread Antonin Décimo
Le mar. 30 avr. 2024 à 15:01, Sam James a écrit : > > Paul Eggert writes: > > > On 2024-04-26 08:10, Zack Weinberg wrote: > > > >> I think what we should do here is fold AC_C_VARARRAYS into AC_PROG_CC. > >> Take the test for VLAs completely out of _AC_C_C99_TEST_MAIN, but > >> unconditionally *ru

Re: Making MSVC/clang-cl succeed AC_PROG_CC C11 discovery

2024-04-26 Thread Antonin Décimo
> > I'm hacking on the Autoconf scripts for the OCaml compiler [1]. I'm > > trying to make them more useful when compiling with the dreaded MSVC. > > Thanks for tackling this! Thanks for your reply and thorough comments. > (Can you check if there's maybe some way to make the UCRT declare > POSIX

Making MSVC/clang-cl succeed AC_PROG_CC C11 discovery

2024-04-23 Thread Antonin Décimo
Dear maintainers, I'm hacking on the Autoconf scripts for the OCaml compiler [1]. I'm trying to make them more useful when compiling with the dreaded MSVC. We've defined CC=cl. I'm having problems running `AC_PROG_CC`. I'd like to teach it to discover the required options to build my code in C11,

Making MSVC/clang-cl succeed AC_PROG_CC C11 discovery

2024-04-23 Thread Antonin Décimo
Dear maintainers, I'm hacking on the Autoconf scripts for the OCaml compiler [1]. I'm trying to make them more useful when compiling with the dreaded MSVC. We've defined CC=cl. I'm having problems running `AC_PROG_CC`. I'd like to teach it to discover the required options to build my code in C11,