From 7144b9eedb13f0d1cddea35546827e91667dd2b2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 18 Jan 2025 20:01:16 -0800 Subject: [PATCH] =?utf8?q?Port=20to=20AIX=207.3=20=E2=80=98find=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * configure.ac (FIND_DELETE): Port to AIX 7.3 ‘find’, which exits with nonzero status if ‘-exec rm -f {} +’ is never invoked. (cherry picked from commit d65f727ab401a8dfe11de7837ecee6661a113fea) --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 995179541cb..c0263629999 100644 --- a/configure.ac +++ b/configure.ac @@ -2078,8 +2078,10 @@ AC_CACHE_CHECK([for 'find' args to delete a file], [emacs_cv_find_delete], [if touch conftest.tmp && find conftest.tmp -delete 2>/dev/null && test ! -f conftest.tmp - then emacs_cv_find_delete="-delete" - else emacs_cv_find_delete="-exec rm -f {} +" + then emacs_cv_find_delete="-delete" # GNU 'find' + elif find . -prune -name x -exec echo {} + 2>/dev/null + then emacs_cv_find_delete="-exec rm -f {} +" # POSIX 'find' + else emacs_cv_find_delete="-exec rm -f {} + -o -exec true {} +" # AIX 7.3 fi]) FIND_DELETE=$emacs_cv_find_delete AC_SUBST([FIND_DELETE]) -- 2.39.5