]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- simdzone-zone-load, configure checks that the simdzone directory has the
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 8 Oct 2025 14:40:50 +0000 (16:40 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 8 Oct 2025 14:40:50 +0000 (16:40 +0200)
  submodule files and prints an error otherwise.

configure
configure.ac

index ecc3dd4f93d6869eeb4f720717e952894f57fad8..c0bc17b1eacfe5a507dd0ec8a664090ccfbf72f1 100755 (executable)
--- a/configure
+++ b/configure
@@ -25403,6 +25403,8 @@ then :
   enableval=$enable_haswell;
 fi
 
+if test ! -f simdzone/configure.ac; then as_fn_error $? "There is no \"simdzone/configure.ac\" file. The simdzone directory has not been fetched, perhaps get it with 'git submodule update --init'." "$LINENO" 5; fi
+if test ! -f simdzone/configure; then as_fn_error $? "There is no \"simdzone/configure\" file. The simdzone directory has no configure script file, perhaps run 'autoreconf -fi'." "$LINENO" 5; fi
 
 
 subdirs="$subdirs simdzone"
index 4e13d62d5bea1f3bfe334f840c182fe5c5622f3d..25b4354ba545ec4f02b49270fa6acb8545c9f90e 100644 (file)
@@ -2486,6 +2486,8 @@ AC_CONFIG_HEADERS([config.h])
 # Arguments introduced specifically for simdzone.
 AC_ARG_ENABLE(westmere, AS_HELP_STRING([--disable-westmere], [Disable Westmere (SSE4.2) parser kernel]))
 AC_ARG_ENABLE(haswell, AS_HELP_STRING([--disable-haswell], [Disable Haswell (AVX2) parser kernel]))
+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])
 # Pick up the objects for simdzone.
 SIMDZONE_OBJ=`(cd simdzone; make list_objs) | sed -e 's?src?simdzone/src?g'`