From d1a2078b23ee0bd6e2cebe6f861223528ba1c6ae Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 1 Jul 2024 21:35:03 +0800 Subject: [PATCH] * configure.ac: Create a cache file for libexec. (cherry picked from commit e64286f53c4f5b6c0ed385edfd63a782a8c90b9b) --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 53eeb89df94..190d13f58d4 100644 --- a/configure.ac +++ b/configure.ac @@ -197,11 +197,16 @@ AS_IF([test "$XCONFIGURE" = "android"],[ AC_MSG_NOTICE([configuring in `exec']) + # Derive a name for a cache file for this configure script from the + # current, if specified. + exec_cache_file= + AS_IF([test -n "$cache_file"], + [exec_cache_file="--cache-file=$cache_file.2"]) OLDCWD=`pwd` cd exec $CONFIG_SHELL $emacs_srcdir/exec/configure \ --host=$host "CC=$CC" "LD=$CC" "AS=$CC" \ - "AR=$AR" "CFLAGS=$CFLAGS" + "AR=$AR" "CFLAGS=$CFLAGS" $exec_cache_file emacs_val=$? cd $OLDCWD -- 2.39.2