From: W.C.A. Wijngaards Date: Thu, 16 Oct 2025 13:01:07 +0000 (+0200) Subject: - simdzone-zone-load, fix for autoconf 2.72 and no Makefile in simdzone. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=152e4e9e63a9a30c3e54b3864a1727aaeeb5696a;p=thirdparty%2Funbound.git - simdzone-zone-load, fix for autoconf 2.72 and no Makefile in simdzone. --- diff --git a/configure b/configure index ec7609c47..06521bf9d 100755 --- a/configure +++ b/configure @@ -661,8 +661,8 @@ ac_includes_default="\ ac_header_c_list= ac_func_c_list= enable_option_checking=no -ac_subst_vars='LTLIBOBJS -SIMDZONE_OBJ +ac_subst_vars='SIMDZONE_OBJ +LTLIBOBJS subdirs date version @@ -25413,9 +25413,6 @@ if test ! -f simdzone/configure; then as_fn_error $? "There is no \"simdzone/con subdirs="$subdirs simdzone" -# Pick up the objects for simdzone. -SIMDZONE_OBJ=`(cd simdzone; make list_objs) | sed -e 's?src?simdzone/src?g'` - cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -27698,6 +27695,11 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi +# Pick up the objects for simdzone. +SIMDZONE_OBJ=`(cd simdzone; make list_objs) | sed -e 's?src?simdzone/src?g'` + +sed -e 's?^SIMDZONE_OBJ=.*$?SIMDZONE_OBJ='"$SIMDZONE_OBJ"'?' < Makefile > Makefile.tmp.$$ +mv -f Makefile.tmp.$$ Makefile # If dnstap config has changed, overwrite it. if test -n "$dnstap_config"; then if test ! -f "$dnstap_config_out"; then diff --git a/configure.ac b/configure.ac index 541157ca3..a84e05cae 100644 --- a/configure.ac +++ b/configure.ac @@ -2493,11 +2493,13 @@ AC_ARG_ENABLE(haswell, AS_HELP_STRING([--disable-haswell], [Disable Haswell (AVX if test ! -f simdzone/configure.ac; then AC_MSG_ERROR([There is no "simdzone/configure.ac" file. The simdzone directory has not been fetched, perhaps get it with 'git submodule update --init'.]); fi if test ! -f simdzone/configure; then AC_MSG_ERROR([There is no "simdzone/configure" file. The simdzone directory has no configure script file, perhaps run 'autoreconf -fi'.]); fi AC_CONFIG_SUBDIRS([simdzone]) + +AC_OUTPUT # Pick up the objects for simdzone. SIMDZONE_OBJ=`(cd simdzone; make list_objs) | sed -e 's?src?simdzone/src?g'` AC_SUBST(SIMDZONE_OBJ) - -AC_OUTPUT +sed -e 's?^SIMDZONE_OBJ=.*$?SIMDZONE_OBJ='"$SIMDZONE_OBJ"'?' < Makefile > Makefile.tmp.$$ +mv -f Makefile.tmp.$$ Makefile # If dnstap config has changed, overwrite it. if test -n "$dnstap_config"; then if test ! -f "$dnstap_config_out"; then