On 2023-10-03 15:08:42 -0600, Karl Berry wrote: > Yes, Automake should either detect a ".POSIX:" in the Makefile.am > file (at least if it is the first non-comment line) and place it at > the beginning of Makefile.in, or provide an option to be used with > AM_INIT_AUTOMAKE (or AUTOMAKE_OPTIONS) in order to have a ".POSIX:" > at the beginning of Makefile.in. > > Ok. I welcome patches for either or both. It's not something I'll be > implementing myself any time soon (regrettably).
I think that a "posix" option is cleaner and simpler to implement. I have some idea of a patch. I'll try to look at it more closely late tonight. > The Makefile.am files of GNU MPFR have a ".POSIX:" target > > Glad to know it works in practice for you. I'm just surprised that > nothing in Automake's make output breaks under POSIX. --thanks, karl. On platforms with a POSIX "make", the generated makefile needs to work as expected. This limits the risk of breakage when using a ".POSIX:" target. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)