autoconf: modernize and modularize

Use my modular m4 library used for other things as well; update
autoconf macros to 2.71 standard.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2024-06-10 18:24:53 -07:00
parent 33051a296c
commit fefaa2cc5c
35 changed files with 680 additions and 461 deletions

View file

@ -25,7 +25,7 @@
#endif
/* Must be included before we include any system headers! */
#include "aconfig.h" /* autogenerated configuration header */
#include "config/config.h" /* autogenerated configuration header */
/* Standard includes */
@ -115,10 +115,10 @@
/* Some broken systems care about text versus binary, but
real Unix systems don't... */
#ifndef HAVE_O_TEXT_DEFINITION
#if !HAVE_DECL_O_TEXT
#define O_TEXT 0
#endif
#ifndef HAVE_O_BINARY_DEFINITION
#if !HAVE_DECL_O_BINARY
#define O_BINARY 0
#endif
@ -253,11 +253,9 @@ typedef int socklen_t;
#include <netinet/in.h>
#ifndef HAVE_IPPORT_TFTP_DEFINITION
#ifndef IPPORT_TFTP
#if !HAVE_DECL_IPPORT_TFTP && !defined(IPPORT_TFTP)
#define IPPORT_TFTP 69
#endif
#endif
/* arpa/{inet,tftp}.h, and possible missing pieces */