regenerate configure files and config.h.in files

Message ID 8aab1f77-6f20-3c7d-9d2d-322664dcc90d@suse.cz
State New, archived
Headers
Series regenerate configure files and config.h.in files |

Commit Message

Martin Liška Aug. 25, 2022, 9:42 a.m. UTC
  Hi.

I wrote a scipt that runs autoconf in all folders that have configure.ac
file and same for autoheader (where AC_CONFIG_HEADERS is present) and
this is the output.

The script can be seen here:
https://github.com/marxin/script-misc/blob/master/gcc-autoconf-all.py

I'm going to add the script to my daily Builbot tester.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

fixincludes/ChangeLog:

	* config.h.in: Regenerate.
	* configure: Regenerate.

libada/ChangeLog:

	* configure: Regenerate.

libiberty/ChangeLog:

	* configure: Regenerate.

libobjc/ChangeLog:

	* configure: Regenerate.

liboffloadmic/ChangeLog:

	* configure: Regenerate.
	* plugin/configure: Regenerate.

libquadmath/ChangeLog:

	* configure: Regenerate.

libssp/ChangeLog:

	* configure: Regenerate.

libvtv/ChangeLog:

	* configure: Regenerate.

zlib/ChangeLog:

	* configure: Regenerate.
---
 fixincludes/config.h.in        | 204 ---------------------------------
 fixincludes/configure          |   2 +-
 libada/configure               |   3 +
 libiberty/configure            |   3 +
 libobjc/configure              |   6 +-
 liboffloadmic/configure        |  46 +++-----
 liboffloadmic/plugin/configure |  46 +++-----
 libquadmath/configure          |   6 +-
 libssp/configure               |   6 +-
 libvtv/configure               |  18 +--
 zlib/configure                 |   6 +-
 11 files changed, 61 insertions(+), 285 deletions(-)
  

Comments

Richard Sandiford Aug. 25, 2022, 12:21 p.m. UTC | #1
Martin Liška <mliska@suse.cz> writes:
> Hi.
>
> I wrote a scipt that runs autoconf in all folders that have configure.ac
> file and same for autoheader (where AC_CONFIG_HEADERS is present) and
> this is the output.
>
> The script can be seen here:
> https://github.com/marxin/script-misc/blob/master/gcc-autoconf-all.py
>
> I'm going to add the script to my daily Builbot tester.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Thanks,
> Martin
>
> fixincludes/ChangeLog:
>
> 	* config.h.in: Regenerate.
> 	* configure: Regenerate.
>
> libada/ChangeLog:
>
> 	* configure: Regenerate.
>
> libiberty/ChangeLog:
>
> 	* configure: Regenerate.
>
> libobjc/ChangeLog:
>
> 	* configure: Regenerate.
>
> liboffloadmic/ChangeLog:
>
> 	* configure: Regenerate.
> 	* plugin/configure: Regenerate.
>
> libquadmath/ChangeLog:
>
> 	* configure: Regenerate.
>
> libssp/ChangeLog:
>
> 	* configure: Regenerate.
>
> libvtv/ChangeLog:
>
> 	* configure: Regenerate.
>
> zlib/ChangeLog:
>
> 	* configure: Regenerate.
> ---
>  fixincludes/config.h.in        | 204 ---------------------------------
>  fixincludes/configure          |   2 +-
>  libada/configure               |   3 +
>  libiberty/configure            |   3 +
>  libobjc/configure              |   6 +-
>  liboffloadmic/configure        |  46 +++-----
>  liboffloadmic/plugin/configure |  46 +++-----
>  libquadmath/configure          |   6 +-
>  libssp/configure               |   6 +-
>  libvtv/configure               |  18 +--
>  zlib/configure                 |   6 +-
>  11 files changed, 61 insertions(+), 285 deletions(-)
>
> diff --git a/fixincludes/config.h.in b/fixincludes/config.h.in
> index 3f6cf1e574e..69a67f5f116 100644
> --- a/fixincludes/config.h.in
> +++ b/fixincludes/config.h.in
> @@ -1,397 +1,211 @@
>  /* config.h.in.  Generated from configure.ac by autoheader.  */
>  
>  /* Defined to the executable file extension on the host system */
> -#ifndef USED_FOR_TARGET
>  #undef EXE_EXT
> -#endif
> -
>  
>  /* Define to 1 if you have the `clearerr_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_CLEARERR_UNLOCKED
> -#endif
> -

Do you know what's going on with these ifndef guards?  How were they
there before?

LGTM otherwise.

Thanks,
Richard

>  /* Define to 1 if you have the declaration of `abort', and to 0 if you don't.
>     */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_ABORT
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `asprintf', and to 0 if you
>     don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_ASPRINTF
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_BASENAME
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_CLEARERR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `errno', and to 0 if you don't.
>     */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_ERRNO
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
>     don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FEOF_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FERROR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FFLUSH_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fgetc_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FGETC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FGETS_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fileno_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FILENO_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fprintf_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FPRINTF_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FPUTC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FPUTS_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FREAD_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_FWRITE_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_GETCHAR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
>     don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_GETC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
>     you don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_PUTCHAR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
>     don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_PUTC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
>     don't. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_DECL_VASPRINTF
> -#endif
> -
>  
>  /* Define to 1 if you have the <fcntl.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FCNTL_H
> -#endif
> -
>  
>  /* Define to 1 if you have the `feof_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FEOF_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `ferror_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FERROR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fflush_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FFLUSH_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fgetc_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FGETC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fgets_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FGETS_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fileno_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FILENO_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fprintf_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FPRINTF_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fputc_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FPUTC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fputs_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FPUTS_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fread_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FREAD_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `fwrite_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_FWRITE_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `getchar_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_GETCHAR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `getc_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_GETC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the <inttypes.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_INTTYPES_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <memory.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_MEMORY_H
> -#endif
> -
>  
>  /* Define if mmap with MAP_ANON(YMOUS) works. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_MMAP_ANON
> -#endif
> -
>  
>  /* Define if mmap of /dev/zero works. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_MMAP_DEV_ZERO
> -#endif
> -
>  
>  /* Define if read-only mmap of a plain file works. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_MMAP_FILE
> -#endif
> -
>  
>  /* Define to 1 if you have the `putchar_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_PUTCHAR_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the `putc_unlocked' function. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_PUTC_UNLOCKED
> -#endif
> -
>  
>  /* Define to 1 if you have the <stddef.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_STDDEF_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <stdint.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_STDINT_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <stdlib.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_STDLIB_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <strings.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_STRINGS_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <string.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_STRING_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <sys/file.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_SYS_FILE_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <sys/stat.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_SYS_STAT_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <sys/types.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_SYS_TYPES_H
> -#endif
> -
>  
>  /* Define to 1 if you have the <unistd.h> header file. */
> -#ifndef USED_FOR_TARGET
>  #undef HAVE_UNISTD_H
> -#endif
> -
>  
>  /* Define to the address where bug reports for this package should be sent. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_BUGREPORT
> -#endif
> -
>  
>  /* Define to the full name of this package. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_NAME
> -#endif
> -
>  
>  /* Define to the full name and version of this package. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_STRING
> -#endif
> -
>  
>  /* Define to the one symbol short name of this package. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_TARNAME
> -#endif
> -
>  
>  /* Define to the home page for this package. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_URL
> -#endif
> -
>  
>  /* Define to the version of this package. */
> -#ifndef USED_FOR_TARGET
>  #undef PACKAGE_VERSION
> -#endif
> -
>  
>  /* Defined to the best working sed program on the host system */
> -#ifndef USED_FOR_TARGET
>  #undef SED_PROGRAM
> -#endif
> -
>  
>  /* Define if testing and fixing are done by separate process */
> -#ifndef USED_FOR_TARGET
>  #undef SEPARATE_FIX_PROC
> -#endif
> -
>  
>  /* Define to 1 if you have the ANSI C header files. */
> -#ifndef USED_FOR_TARGET
>  #undef STDC_HEADERS
> -#endif
> -
>  
>  /* Enable extensions on AIX 3, Interix.  */
>  #ifndef _ALL_SOURCE
> @@ -416,38 +230,20 @@
>  
>  
>  /* Define to 1 if on MINIX. */
> -#ifndef USED_FOR_TARGET
>  #undef _MINIX
> -#endif
> -
>  
>  /* Define to 2 if the system does not provide POSIX.1 features except with
>     this defined. */
> -#ifndef USED_FOR_TARGET
>  #undef _POSIX_1_SOURCE
> -#endif
> -
>  
>  /* Define to 1 if you need to in order for `stat' and other things to work. */
> -#ifndef USED_FOR_TARGET
>  #undef _POSIX_SOURCE
> -#endif
> -
>  
>  /* Define to xatexit if the host system does not support atexit */
> -#ifndef USED_FOR_TARGET
>  #undef atexit
> -#endif
> -
>  
>  /* Define to empty if `const' does not conform to ANSI C. */
> -#ifndef USED_FOR_TARGET
>  #undef const
> -#endif
> -
>  
>  /* Define to xexit if the host system does not support atexit */
> -#ifndef USED_FOR_TARGET
>  #undef exit
> -#endif
> -
> diff --git a/fixincludes/configure b/fixincludes/configure
> index 6e2d67b655b..b3bca666a4d 100755
> --- a/fixincludes/configure
> +++ b/fixincludes/configure
> @@ -2644,7 +2644,7 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
>  
>  # _LT_DARWIN_LINKER_FEATURES
>  # --------------------------
> -# Checks for linker and compiler features on darwin
> +# Checks for linker and compiler features on Darwin / macOS / iOS
>  
>  
>  # _LT_SYS_MODULE_PATH_AIX
> diff --git a/libada/configure b/libada/configure
> index 162d9731f26..9c8b133d817 100755
> --- a/libada/configure
> +++ b/libada/configure
> @@ -3212,6 +3212,9 @@ case "${host}" in
>  	# sets the default TLS model and affects inlining.
>  	PICFLAG=-fPIC
>  	;;
> +    loongarch*-*-*)
> +	PICFLAG=-fpic
> +	;;
>      mips-sgi-irix6*)
>  	# PIC is the default.
>  	;;
> diff --git a/libiberty/configure b/libiberty/configure
> index 1d42a5e3a11..65fc5002002 100755
> --- a/libiberty/configure
> +++ b/libiberty/configure
> @@ -5209,6 +5209,9 @@ case "${host}" in
>  	# sets the default TLS model and affects inlining.
>  	PICFLAG=-fPIC
>  	;;
> +    loongarch*-*-*)
> +	PICFLAG=-fpic
> +	;;
>      mips-sgi-irix6*)
>  	# PIC is the default.
>  	;;
> diff --git a/libobjc/configure b/libobjc/configure
> index 5d1b424a66d..2dcc9cd32f6 100755
> --- a/libobjc/configure
> +++ b/libobjc/configure
> @@ -3466,7 +3466,7 @@ case "$host" in
>      case "$enable_cet" in
>        auto)
>  	# Check if target supports multi-byte NOPs
> -	# and if assembler supports CET insn.
> +	# and if compiler and assembler support CET insn.
>  	cet_save_CFLAGS="$CFLAGS"
>  	CFLAGS="$CFLAGS -fcf-protection"
>  	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> @@ -10771,7 +10771,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10784 "configure"
> +#line 10774 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -10877,7 +10877,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10890 "configure"
> +#line 10880 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> diff --git a/liboffloadmic/configure b/liboffloadmic/configure
> index dfa8287fd75..f8da8fabb6f 100755
> --- a/liboffloadmic/configure
> +++ b/liboffloadmic/configure
> @@ -7900,23 +7900,25 @@ _LT_EOF
>  fi
>  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
>  $as_echo "$lt_cv_ld_force_load" >&6; }
> -    case $host_os in
> -    rhapsody* | darwin1.[012])
> +    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
> +    # build without first building modern cctools / linker.
> +    case $host_cpu-$host_os in
> +    *-rhapsody* | *-darwin1.[012])
>        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
> -    darwin1.*)
> +    *-darwin1.*)
>        _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
> -    darwin*) # darwin 5.x on
> -      # if running on 10.5 or later, the deployment target defaults
> -      # to the OS version, if on x86, and 10.4, the deployment
> -      # target defaults to 10.4. Don't you love it?
> -      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
> -	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
> -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
> +    *-darwin*)
> +      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
> +      # deployment target is forced to an earlier version.
> +      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
> +	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
> +	  ;;
>  	10.[012][,.]*)
> -	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
> -	10.*)
> -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
> -      esac
> +	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
> +	  ;;
> +	*)
> +	  ;;
> +     esac
>      ;;
>    esac
>      if test "$lt_cv_apple_cc_single_mod" = "yes"; then
> @@ -11420,7 +11422,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11433 "configure"
> +#line 11425 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -11526,7 +11528,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11539 "configure"
> +#line 11531 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -14265,16 +14267,6 @@ freebsd* | dragonfly*)
>    esac
>    ;;
>  
> -gnu*)
> -  version_type=linux
> -  need_lib_prefix=no
> -  need_version=no
> -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
> -  soname_spec='${libname}${release}${shared_ext}$major'
> -  shlibpath_var=LD_LIBRARY_PATH
> -  hardcode_into_libs=yes
> -  ;;
> -
>  haiku*)
>    version_type=linux
>    need_lib_prefix=no
> @@ -14396,7 +14388,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>  # project, but have not yet been accepted: they are GCC-local changes
>  # for the time being.  (See
>  # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>    version_type=linux
>    need_lib_prefix=no
>    need_version=no
> diff --git a/liboffloadmic/plugin/configure b/liboffloadmic/plugin/configure
> index 0b21d7d4eed..ce0a5511fc3 100755
> --- a/liboffloadmic/plugin/configure
> +++ b/liboffloadmic/plugin/configure
> @@ -7280,23 +7280,25 @@ _LT_EOF
>  fi
>  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
>  $as_echo "$lt_cv_ld_force_load" >&6; }
> -    case $host_os in
> -    rhapsody* | darwin1.[012])
> +    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
> +    # build without first building modern cctools / linker.
> +    case $host_cpu-$host_os in
> +    *-rhapsody* | *-darwin1.[012])
>        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
> -    darwin1.*)
> +    *-darwin1.*)
>        _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
> -    darwin*) # darwin 5.x on
> -      # if running on 10.5 or later, the deployment target defaults
> -      # to the OS version, if on x86, and 10.4, the deployment
> -      # target defaults to 10.4. Don't you love it?
> -      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
> -	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
> -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
> +    *-darwin*)
> +      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
> +      # deployment target is forced to an earlier version.
> +      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
> +	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
> +	  ;;
>  	10.[012][,.]*)
> -	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
> -	10.*)
> -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
> -      esac
> +	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
> +	  ;;
> +	*)
> +	  ;;
> +     esac
>      ;;
>    esac
>      if test "$lt_cv_apple_cc_single_mod" = "yes"; then
> @@ -11067,7 +11069,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11080 "configure"
> +#line 11072 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -11173,7 +11175,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11186 "configure"
> +#line 11178 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -13912,16 +13914,6 @@ freebsd* | dragonfly*)
>    esac
>    ;;
>  
> -gnu*)
> -  version_type=linux
> -  need_lib_prefix=no
> -  need_version=no
> -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
> -  soname_spec='${libname}${release}${shared_ext}$major'
> -  shlibpath_var=LD_LIBRARY_PATH
> -  hardcode_into_libs=yes
> -  ;;
> -
>  haiku*)
>    version_type=linux
>    need_lib_prefix=no
> @@ -14043,7 +14035,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>  # project, but have not yet been accepted: they are GCC-local changes
>  # for the time being.  (See
>  # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>    version_type=linux
>    need_lib_prefix=no
>    need_version=no
> diff --git a/libquadmath/configure b/libquadmath/configure
> index b3ee64f9c7d..603f2f13140 100755
> --- a/libquadmath/configure
> +++ b/libquadmath/configure
> @@ -10806,7 +10806,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10819 "configure"
> +#line 10809 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -10912,7 +10912,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10925 "configure"
> +#line 10915 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -13031,7 +13031,7 @@ case "$host" in
>      case "$enable_cet" in
>        auto)
>  	# Check if target supports multi-byte NOPs
> -	# and if assembler supports CET insn.
> +	# and if compiler and assembler support CET insn.
>  	cet_save_CFLAGS="$CFLAGS"
>  	CFLAGS="$CFLAGS -fcf-protection"
>  	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> diff --git a/libssp/configure b/libssp/configure
> index 10ba209bde8..b27ae22a976 100755
> --- a/libssp/configure
> +++ b/libssp/configure
> @@ -4338,7 +4338,7 @@ case "$host" in
>      case "$enable_cet" in
>        auto)
>  	# Check if target supports multi-byte NOPs
> -	# and if assembler supports CET insn.
> +	# and if compiler and assembler support CET insn.
>  	cet_save_CFLAGS="$CFLAGS"
>  	CFLAGS="$CFLAGS -fcf-protection"
>  	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> @@ -10992,7 +10992,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11005 "configure"
> +#line 10995 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -11098,7 +11098,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11111 "configure"
> +#line 11101 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> diff --git a/libvtv/configure b/libvtv/configure
> index d64b4af5c6b..897b069b613 100755
> --- a/libvtv/configure
> +++ b/libvtv/configure
> @@ -12254,7 +12254,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 12267 "configure"
> +#line 12257 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -12360,7 +12360,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 12373 "configure"
> +#line 12363 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -15099,16 +15099,6 @@ freebsd* | dragonfly*)
>    esac
>    ;;
>  
> -gnu*)
> -  version_type=linux
> -  need_lib_prefix=no
> -  need_version=no
> -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
> -  soname_spec='${libname}${release}${shared_ext}$major'
> -  shlibpath_var=LD_LIBRARY_PATH
> -  hardcode_into_libs=yes
> -  ;;
> -
>  haiku*)
>    version_type=linux
>    need_lib_prefix=no
> @@ -15230,7 +15220,7 @@ linux*oldld* | linux*aout* | linux*coff*)
>  # project, but have not yet been accepted: they are GCC-local changes
>  # for the time being.  (See
>  # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
> -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
> +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
>    version_type=linux
>    need_lib_prefix=no
>    need_version=no
> @@ -15672,7 +15662,7 @@ case "$host" in
>      case "$enable_cet" in
>        auto)
>  	# Check if target supports multi-byte NOPs
> -	# and if assembler supports CET insn.
> +	# and if compiler and assembler support CET insn.
>  	cet_save_CFLAGS="$CFLAGS"
>  	CFLAGS="$CFLAGS -fcf-protection"
>  	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> diff --git a/zlib/configure b/zlib/configure
> index f489f31bc70..05c41b7e12d 100755
> --- a/zlib/configure
> +++ b/zlib/configure
> @@ -4169,7 +4169,7 @@ case "$host" in
>      case "$enable_cet" in
>        auto)
>  	# Check if target supports multi-byte NOPs
> -	# and if assembler supports CET insn.
> +	# and if compiler and assembler support CET insn.
>  	cet_save_CFLAGS="$CFLAGS"
>  	CFLAGS="$CFLAGS -fcf-protection"
>  	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> @@ -10735,7 +10735,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10748 "configure"
> +#line 10738 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -10841,7 +10841,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10854 "configure"
> +#line 10844 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
  
Martin Liška Aug. 25, 2022, 12:26 p.m. UTC | #2
On 8/25/22 14:21, Richard Sandiford wrote:
> Do you know what's going on with these ifndef guards?  How were they
> there before?

There were there since

commit 5213506e247206177045f832a0911db0118a8641
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sat Aug 22 13:22:20 2009 +0000

    Regenerate tree using Autoconf 2.64 and Automake 1.11.

So it's very likely dependent on Autoconf version.

Cheers,
Martin
  
Jeff Law Aug. 31, 2022, 3:58 p.m. UTC | #3
On 8/25/2022 3:42 AM, Martin Liška wrote:
> Hi.
>
> I wrote a scipt that runs autoconf in all folders that have configure.ac
> file and same for autoheader (where AC_CONFIG_HEADERS is present) and
> this is the output.
>
> The script can be seen here:
> https://github.com/marxin/script-misc/blob/master/gcc-autoconf-all.py
>
> I'm going to add the script to my daily Builbot tester.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Thanks,
> Martin
>
> fixincludes/ChangeLog:
>
> 	* config.h.in: Regenerate.
> 	* configure: Regenerate.
>
> libada/ChangeLog:
>
> 	* configure: Regenerate.
>
> libiberty/ChangeLog:
>
> 	* configure: Regenerate.
>
> libobjc/ChangeLog:
>
> 	* configure: Regenerate.
>
> liboffloadmic/ChangeLog:
>
> 	* configure: Regenerate.
> 	* plugin/configure: Regenerate.
>
> libquadmath/ChangeLog:
>
> 	* configure: Regenerate.
>
> libssp/ChangeLog:
>
> 	* configure: Regenerate.
>
> libvtv/ChangeLog:
>
> 	* configure: Regenerate.
>
> zlib/ChangeLog:
>
> 	* configure: Regenerate.
OK.  And ISTM that regeneration using the standard tools ought to be 
pre-approved for the future.
jeff
  

Patch

diff --git a/fixincludes/config.h.in b/fixincludes/config.h.in
index 3f6cf1e574e..69a67f5f116 100644
--- a/fixincludes/config.h.in
+++ b/fixincludes/config.h.in
@@ -1,397 +1,211 @@ 
 /* config.h.in.  Generated from configure.ac by autoheader.  */
 
 /* Defined to the executable file extension on the host system */
-#ifndef USED_FOR_TARGET
 #undef EXE_EXT
-#endif
-
 
 /* Define to 1 if you have the `clearerr_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_CLEARERR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `abort', and to 0 if you don't.
    */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_ABORT
-#endif
-
 
 /* Define to 1 if you have the declaration of `asprintf', and to 0 if you
    don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_ASPRINTF
-#endif
-
 
 /* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_BASENAME
-#endif
-
 
 /* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_CLEARERR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `errno', and to 0 if you don't.
    */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_ERRNO
-#endif
-
 
 /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
    don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FEOF_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FERROR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FFLUSH_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fgetc_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FGETC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FGETS_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fileno_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FILENO_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fprintf_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FPRINTF_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FPUTC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FPUTS_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FREAD_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_FWRITE_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_GETCHAR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
    don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_GETC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
    you don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_PUTCHAR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
    don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_PUTC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
    don't. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_DECL_VASPRINTF
-#endif
-
 
 /* Define to 1 if you have the <fcntl.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FCNTL_H
-#endif
-
 
 /* Define to 1 if you have the `feof_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FEOF_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `ferror_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FERROR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fflush_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FFLUSH_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fgetc_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FGETC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fgets_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FGETS_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fileno_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FILENO_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fprintf_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FPRINTF_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fputc_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FPUTC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fputs_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FPUTS_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fread_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FREAD_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `fwrite_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_FWRITE_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `getchar_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_GETCHAR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `getc_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_GETC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the <inttypes.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_INTTYPES_H
-#endif
-
 
 /* Define to 1 if you have the <memory.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_MEMORY_H
-#endif
-
 
 /* Define if mmap with MAP_ANON(YMOUS) works. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_MMAP_ANON
-#endif
-
 
 /* Define if mmap of /dev/zero works. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_MMAP_DEV_ZERO
-#endif
-
 
 /* Define if read-only mmap of a plain file works. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_MMAP_FILE
-#endif
-
 
 /* Define to 1 if you have the `putchar_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_PUTCHAR_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the `putc_unlocked' function. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_PUTC_UNLOCKED
-#endif
-
 
 /* Define to 1 if you have the <stddef.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_STDDEF_H
-#endif
-
 
 /* Define to 1 if you have the <stdint.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_STDINT_H
-#endif
-
 
 /* Define to 1 if you have the <stdlib.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_STDLIB_H
-#endif
-
 
 /* Define to 1 if you have the <strings.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_STRINGS_H
-#endif
-
 
 /* Define to 1 if you have the <string.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_STRING_H
-#endif
-
 
 /* Define to 1 if you have the <sys/file.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_SYS_FILE_H
-#endif
-
 
 /* Define to 1 if you have the <sys/stat.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_SYS_STAT_H
-#endif
-
 
 /* Define to 1 if you have the <sys/types.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_SYS_TYPES_H
-#endif
-
 
 /* Define to 1 if you have the <unistd.h> header file. */
-#ifndef USED_FOR_TARGET
 #undef HAVE_UNISTD_H
-#endif
-
 
 /* Define to the address where bug reports for this package should be sent. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_BUGREPORT
-#endif
-
 
 /* Define to the full name of this package. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_NAME
-#endif
-
 
 /* Define to the full name and version of this package. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_STRING
-#endif
-
 
 /* Define to the one symbol short name of this package. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_TARNAME
-#endif
-
 
 /* Define to the home page for this package. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_URL
-#endif
-
 
 /* Define to the version of this package. */
-#ifndef USED_FOR_TARGET
 #undef PACKAGE_VERSION
-#endif
-
 
 /* Defined to the best working sed program on the host system */
-#ifndef USED_FOR_TARGET
 #undef SED_PROGRAM
-#endif
-
 
 /* Define if testing and fixing are done by separate process */
-#ifndef USED_FOR_TARGET
 #undef SEPARATE_FIX_PROC
-#endif
-
 
 /* Define to 1 if you have the ANSI C header files. */
-#ifndef USED_FOR_TARGET
 #undef STDC_HEADERS
-#endif
-
 
 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
@@ -416,38 +230,20 @@ 
 
 
 /* Define to 1 if on MINIX. */
-#ifndef USED_FOR_TARGET
 #undef _MINIX
-#endif
-
 
 /* Define to 2 if the system does not provide POSIX.1 features except with
    this defined. */
-#ifndef USED_FOR_TARGET
 #undef _POSIX_1_SOURCE
-#endif
-
 
 /* Define to 1 if you need to in order for `stat' and other things to work. */
-#ifndef USED_FOR_TARGET
 #undef _POSIX_SOURCE
-#endif
-
 
 /* Define to xatexit if the host system does not support atexit */
-#ifndef USED_FOR_TARGET
 #undef atexit
-#endif
-
 
 /* Define to empty if `const' does not conform to ANSI C. */
-#ifndef USED_FOR_TARGET
 #undef const
-#endif
-
 
 /* Define to xexit if the host system does not support atexit */
-#ifndef USED_FOR_TARGET
 #undef exit
-#endif
-
diff --git a/fixincludes/configure b/fixincludes/configure
index 6e2d67b655b..b3bca666a4d 100755
--- a/fixincludes/configure
+++ b/fixincludes/configure
@@ -2644,7 +2644,7 @@  ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
 # _LT_DARWIN_LINKER_FEATURES
 # --------------------------
-# Checks for linker and compiler features on darwin
+# Checks for linker and compiler features on Darwin / macOS / iOS
 
 
 # _LT_SYS_MODULE_PATH_AIX
diff --git a/libada/configure b/libada/configure
index 162d9731f26..9c8b133d817 100755
--- a/libada/configure
+++ b/libada/configure
@@ -3212,6 +3212,9 @@  case "${host}" in
 	# sets the default TLS model and affects inlining.
 	PICFLAG=-fPIC
 	;;
+    loongarch*-*-*)
+	PICFLAG=-fpic
+	;;
     mips-sgi-irix6*)
 	# PIC is the default.
 	;;
diff --git a/libiberty/configure b/libiberty/configure
index 1d42a5e3a11..65fc5002002 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -5209,6 +5209,9 @@  case "${host}" in
 	# sets the default TLS model and affects inlining.
 	PICFLAG=-fPIC
 	;;
+    loongarch*-*-*)
+	PICFLAG=-fpic
+	;;
     mips-sgi-irix6*)
 	# PIC is the default.
 	;;
diff --git a/libobjc/configure b/libobjc/configure
index 5d1b424a66d..2dcc9cd32f6 100755
--- a/libobjc/configure
+++ b/libobjc/configure
@@ -3466,7 +3466,7 @@  case "$host" in
     case "$enable_cet" in
       auto)
 	# Check if target supports multi-byte NOPs
-	# and if assembler supports CET insn.
+	# and if compiler and assembler support CET insn.
 	cet_save_CFLAGS="$CFLAGS"
 	CFLAGS="$CFLAGS -fcf-protection"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -10771,7 +10771,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10784 "configure"
+#line 10774 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10877,7 +10877,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10890 "configure"
+#line 10880 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/liboffloadmic/configure b/liboffloadmic/configure
index dfa8287fd75..f8da8fabb6f 100755
--- a/liboffloadmic/configure
+++ b/liboffloadmic/configure
@@ -7900,23 +7900,25 @@  _LT_EOF
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 $as_echo "$lt_cv_ld_force_load" >&6; }
-    case $host_os in
-    rhapsody* | darwin1.[012])
+    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
+    # build without first building modern cctools / linker.
+    case $host_cpu-$host_os in
+    *-rhapsody* | *-darwin1.[012])
       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
-    darwin1.*)
+    *-darwin1.*)
       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-    darwin*) # darwin 5.x on
-      # if running on 10.5 or later, the deployment target defaults
-      # to the OS version, if on x86, and 10.4, the deployment
-      # target defaults to 10.4. Don't you love it?
-      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+    *-darwin*)
+      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
+      # deployment target is forced to an earlier version.
+      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
+	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
+	  ;;
 	10.[012][,.]*)
-	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-	10.*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-      esac
+	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+	  ;;
+	*)
+	  ;;
+     esac
     ;;
   esac
     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
@@ -11420,7 +11422,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11433 "configure"
+#line 11425 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11526,7 +11528,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11539 "configure"
+#line 11531 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -14265,16 +14267,6 @@  freebsd* | dragonfly*)
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 haiku*)
   version_type=linux
   need_lib_prefix=no
@@ -14396,7 +14388,7 @@  linux*oldld* | linux*aout* | linux*coff*)
 # project, but have not yet been accepted: they are GCC-local changes
 # for the time being.  (See
 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
-linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
   version_type=linux
   need_lib_prefix=no
   need_version=no
diff --git a/liboffloadmic/plugin/configure b/liboffloadmic/plugin/configure
index 0b21d7d4eed..ce0a5511fc3 100755
--- a/liboffloadmic/plugin/configure
+++ b/liboffloadmic/plugin/configure
@@ -7280,23 +7280,25 @@  _LT_EOF
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 $as_echo "$lt_cv_ld_force_load" >&6; }
-    case $host_os in
-    rhapsody* | darwin1.[012])
+    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
+    # build without first building modern cctools / linker.
+    case $host_cpu-$host_os in
+    *-rhapsody* | *-darwin1.[012])
       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
-    darwin1.*)
+    *-darwin1.*)
       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-    darwin*) # darwin 5.x on
-      # if running on 10.5 or later, the deployment target defaults
-      # to the OS version, if on x86, and 10.4, the deployment
-      # target defaults to 10.4. Don't you love it?
-      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+    *-darwin*)
+      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
+      # deployment target is forced to an earlier version.
+      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
+	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
+	  ;;
 	10.[012][,.]*)
-	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-	10.*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-      esac
+	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+	  ;;
+	*)
+	  ;;
+     esac
     ;;
   esac
     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
@@ -11067,7 +11069,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11080 "configure"
+#line 11072 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11173,7 +11175,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11186 "configure"
+#line 11178 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13912,16 +13914,6 @@  freebsd* | dragonfly*)
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 haiku*)
   version_type=linux
   need_lib_prefix=no
@@ -14043,7 +14035,7 @@  linux*oldld* | linux*aout* | linux*coff*)
 # project, but have not yet been accepted: they are GCC-local changes
 # for the time being.  (See
 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
-linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
   version_type=linux
   need_lib_prefix=no
   need_version=no
diff --git a/libquadmath/configure b/libquadmath/configure
index b3ee64f9c7d..603f2f13140 100755
--- a/libquadmath/configure
+++ b/libquadmath/configure
@@ -10806,7 +10806,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10819 "configure"
+#line 10809 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10912,7 +10912,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10925 "configure"
+#line 10915 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13031,7 +13031,7 @@  case "$host" in
     case "$enable_cet" in
       auto)
 	# Check if target supports multi-byte NOPs
-	# and if assembler supports CET insn.
+	# and if compiler and assembler support CET insn.
 	cet_save_CFLAGS="$CFLAGS"
 	CFLAGS="$CFLAGS -fcf-protection"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/libssp/configure b/libssp/configure
index 10ba209bde8..b27ae22a976 100755
--- a/libssp/configure
+++ b/libssp/configure
@@ -4338,7 +4338,7 @@  case "$host" in
     case "$enable_cet" in
       auto)
 	# Check if target supports multi-byte NOPs
-	# and if assembler supports CET insn.
+	# and if compiler and assembler support CET insn.
 	cet_save_CFLAGS="$CFLAGS"
 	CFLAGS="$CFLAGS -fcf-protection"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -10992,7 +10992,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11005 "configure"
+#line 10995 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11098,7 +11098,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11111 "configure"
+#line 11101 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/libvtv/configure b/libvtv/configure
index d64b4af5c6b..897b069b613 100755
--- a/libvtv/configure
+++ b/libvtv/configure
@@ -12254,7 +12254,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12267 "configure"
+#line 12257 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12360,7 +12360,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12373 "configure"
+#line 12363 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15099,16 +15099,6 @@  freebsd* | dragonfly*)
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 haiku*)
   version_type=linux
   need_lib_prefix=no
@@ -15230,7 +15220,7 @@  linux*oldld* | linux*aout* | linux*coff*)
 # project, but have not yet been accepted: they are GCC-local changes
 # for the time being.  (See
 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
-linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
   version_type=linux
   need_lib_prefix=no
   need_version=no
@@ -15672,7 +15662,7 @@  case "$host" in
     case "$enable_cet" in
       auto)
 	# Check if target supports multi-byte NOPs
-	# and if assembler supports CET insn.
+	# and if compiler and assembler support CET insn.
 	cet_save_CFLAGS="$CFLAGS"
 	CFLAGS="$CFLAGS -fcf-protection"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/zlib/configure b/zlib/configure
index f489f31bc70..05c41b7e12d 100755
--- a/zlib/configure
+++ b/zlib/configure
@@ -4169,7 +4169,7 @@  case "$host" in
     case "$enable_cet" in
       auto)
 	# Check if target supports multi-byte NOPs
-	# and if assembler supports CET insn.
+	# and if compiler and assembler support CET insn.
 	cet_save_CFLAGS="$CFLAGS"
 	CFLAGS="$CFLAGS -fcf-protection"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -10735,7 +10735,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10748 "configure"
+#line 10738 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10841,7 +10841,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10854 "configure"
+#line 10844 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H