diff options
| author | Alan Third | 2021-08-17 20:38:55 +0100 |
|---|---|---|
| committer | Alan Third | 2021-08-21 13:12:56 +0100 |
| commit | 5eab7c3f70a048dab708512e8ef8114fbe85992e (patch) | |
| tree | cb4323d54f0f8fae5ba01b5032a9c6e75987e57b | |
| parent | f4159568a1682fe8a659bf68614a31406ffe1817 (diff) | |
| download | emacs-5eab7c3f70a048dab708512e8ef8114fbe85992e.tar.gz emacs-5eab7c3f70a048dab708512e8ef8114fbe85992e.zip | |
* configure.ac: Make homebrew check for libgccjit match macports.
| -rw-r--r-- | configure.ac | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index eff55915436..76f608ffb06 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3822,12 +3822,13 @@ if test "${with_native_compilation}" != "no"; then | |||
| 3822 | 3822 | ||
| 3823 | # Ensure libgccjit installed by Homebrew can be found. | 3823 | # Ensure libgccjit installed by Homebrew can be found. |
| 3824 | if test -n "$BREW"; then | 3824 | if test -n "$BREW"; then |
| 3825 | BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null` | 3825 | if test -n "`$BREW --prefix --installed libgccjit 2>/dev/null`"; then |
| 3826 | if test "$BREW_LIBGCCJIT_PREFIX"; then | 3826 | BREW_LIBGCCJIT_INCLUDE=$(dirname $($BREW ls -v libgccjit | \ |
| 3827 | brew_libdir=`find ${BREW_LIBGCCJIT_PREFIX}/ -name \*.so \ | 3827 | grep libgccjit.h)) |
| 3828 | | sed -e '1!d;s|/[[^/]]*\.so$||'` | 3828 | BREW_LIBGCCJIT_LIB=$(dirname $($BREW ls -v libgccjit| \ |
| 3829 | CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_PREFIX}/include" | 3829 | grep libgccjit.so\$)) |
| 3830 | LDFLAGS="$LDFLAGS -L${brew_libdir} -I${BREW_LIBGCCJIT_PREFIX}/include" | 3830 | CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_INCLUDE}" |
| 3831 | LDFLAGS="$LDFLAGS -L${BREW_LIBGCCJIT_LIB}" | ||
| 3831 | fi | 3832 | fi |
| 3832 | fi | 3833 | fi |
| 3833 | 3834 | ||