Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.18 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. (
  4.  
  5. # Break out if anything looks broken
  6. set -ex ;
  7.  
  8. # Add the local Homebrew version of texinfo into the path.
  9. export PATH="/opt/brew/opt/texinfo/bin:$PATH" ;
  10.  
  11. # Add a few flags so that autoconf can 'see' stuff in /opt/brew
  12. export CFLAGS="-I/opt/brew/include"
  13. export LDFLAGS="-L/opt/brew/lib"
  14.  
  15. # Regenerate the `configure' script of Emacs itself.
  16. ./autogen.sh ;
  17.  
  18. # Configure Emacs for a text-only build, disabling most of the options
  19. # related to UI and toolkit support, but keep a few important features
  20. # enabled for emacs -nw mode (like gnutls, xml2, and zlib support).
  21. ./configure --prefix=/opt/emacs --infodir=/opt/emacs/info               \
  22.                                                                         \
  23.   --without-x                                                           \
  24.   --with-sound=no                                                       \
  25.   --without-x --with-x-toolkit=no --without-ns                          \
  26.   --without-xft --without-libotf --without-m17n-flt                     \
  27.   --without-toolkit-scroll-bars                                         \
  28.   --without-xaw3d --without-xim --without-gpm                           \
  29.                                                                         \
  30.   --without-xpm --without-jpeg --without-tiff --without-gif             \
  31.   --without-png --without-rsvg --without-cairo                          \
  32.   --without-imagemagick                                                 \
  33.   --with-file-notification=no                                           \
  34.                                                                         \
  35.   --without-dbus --without-gconf --without-gsettings                    \
  36.   --without-selinux                                                     \
  37.                                                                         \
  38.   --with-zlib                                                           \
  39.   --with-gnutls                                                         \
  40.   --with-xml2                                                           \
  41.   ;
  42.  
  43. # Build a clean copy of GNU Emacs.
  44. make clean ;
  45. make bootstrap ;
  46.  
  47. ) 2>&1 | tslog | tee $HOME/tmp/emacs-build.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement