--- configure.orig	2021-10-05 23:44:05.000000000 +1100
+++ configure	2021-10-10 03:34:57.000000000 +1100
@@ -3266,6 +3266,8 @@
 			;;
 		esac
 
+		FRAMEWORKINSTALLAPPSPREFIX="@@APPLICATIONS_DIR@@"
+
 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
 
 		# Add files for Mac specific code to the list of output
@@ -6574,7 +6576,7 @@
 # non-suffixed name in their versioned llvm directory.
 
 llvm_bin_dir=''
-llvm_path="${PATH}"
+llvm_path="/bin:/sbin:/usr/bin:/usr/sbin"
 if test "${CC}" = "clang"
 then
   clang_bin=`which clang`
@@ -7626,6 +7628,11 @@
                ;;
             esac
 
+            UNIVERSAL_ARCH_FLAGS="@@UNIVERSAL_ARCH_FLAGS@@"
+            LIPO_32BIT_FLAGS="@@LIPO_32BIT_FLAGS@@"
+            LIPO_INTEL64_FLAGS="@@LIPO_INTEL64_FLAGS@@"
+            ARCH_RUN_32BIT="@@ARCH_RUN_32BIT@@"
+
             if test "${UNIVERSALSDK}" != "/"
             then
                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
