1 #!/bin/sh 2 CPUS=$(getconf _NPROCESSORS_ONLN) 3 TARGETDIR="${1:-.stash/src/emacs}" 4 cd $TARGETDIR && ./autogen.sh && \ 5 ./configure --without-all --with-x-toolkit=no --without-x --enable-link-time-optimization \ 6 --with-json=ifavailable --with-gif=ifavailable --with-modules --with-gnutls=ifavailable \ 7 --with-zlib --with-native-compilation --prefix=/usr/local && \ 8 NATIVE_FULL_AOT=1 make -j$CPUS