Recognize macOS 11 and later and simplify. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605 --- configure.orig 2005-06-07 09:45:12.000000000 -0500 +++ configure 2024-01-07 06:41:02.000000000 -0600 @@ -8775,18 +8775,14 @@ allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc=no @@ -11771,18 +11767,14 @@ allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_CXX=no @@ -15850,18 +15842,14 @@ allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_F77=no @@ -18332,18 +18320,14 @@ allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_GCJ=no