diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-11 23:08:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-11 23:08:48 +0200 |
commit | 040f975fc1de14ada5e0a7324bb5e51e461be2dd (patch) | |
tree | 9d768b3c622d6806853b7d884792788dba36d1d7 /src/configure.ac | |
parent | 035d6e91bd83574cab5a913c5c3a924d9011696b (diff) | |
download | vim-git-040f975fc1de14ada5e0a7324bb5e51e461be2dd.tar.gz |
patch 8.2.1424: Mac build failsv8.2.1424
Problem: Mac build fails.
Solution: Adjust configure to not fall back to Athena. Adjust some other
files.
Diffstat (limited to 'src/configure.ac')
-rw-r--r-- | src/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index 8a5216a8a..e17a74c9a 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -262,6 +262,12 @@ if test "`(uname) 2>/dev/null`" = Darwin; then dnl TODO: use -arch i386 on Intel machines dnl Removed -no-cpp-precomp, only for very old compilers. CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" + + dnl Assume we don't want X11 unless it was specifically asked for + dnl (--with-x) or Motif, Athena or GTK GUI is used. + if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then + with_x=no + fi fi dnl Avoid a bug with -O2 with gcc 4.0.1. Symptom: malloc() reports double @@ -2421,6 +2427,15 @@ elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then SKIP_PHOTON=YES ;; esac +elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then + case "$enable_gui_canon" in + no) AC_MSG_RESULT(no GUI support) ;; + yes|"") AC_MSG_RESULT(yes - automatic GUI support) + gui_auto=yes ;; + auto) AC_MSG_RESULT(auto - disable GUI support for Mac OS) ;; + *) AC_MSG_RESULT([Sorry, $enable_gui GUI is not supported]) + SKIP_CARBON=YES ;; + esac else case "$enable_gui_canon" in |