diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-23 16:52:35 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-24 09:55:32 +0100 |
| commit | f2090b4b13c13711e6e1b9d3a7cde2cf5f121efe (patch) | |
| tree | 0deb128262b23ef103e3160ddc3f8064b2307956 /configure | |
| parent | 615a2c403833f0db591d56c5406dae23ca711777 (diff) | |
| download | vis-f2090b4b13c13711e6e1b9d3a7cde2cf5f121efe.tar.gz vis-f2090b4b13c13711e6e1b9d3a7cde2cf5f121efe.tar.xz | |
vis: make help texts optional to produce a smaller binary
$ ./configure --disable-help
shrinks the binary by about 20K on a x86_64 system.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -28,6 +28,7 @@ Optional features: --enable-tre build with TRE regex support [auto] --enable-selinux build with SELinux support [auto] --enable-acl build with POSIX ACL support [auto] + --enable-help build with built-in help texts [yes] Some influential environment variables: CC C compiler command [detected] @@ -114,6 +115,7 @@ BINDIR='$(EXEC_PREFIX)/bin' SHAREDIR='$(PREFIX)/share' MANDIR='$(PREFIX)/share/man' +help=yes lua=auto lpeg=auto tre=auto @@ -131,6 +133,8 @@ case "$arg" in --mandir=*) MANDIR=${arg#*=} ;; --environment-only) environmentonly=yes ;; --static) static=yes ;; +--enable-help|--enable-help=yes) help=yes ;; +--disable-help|--enable-help=no) help=no ;; --enable-lua|--enable-lua=yes) lua=yes ;; --disable-lua|--enable-lua=no) lua=no ;; --enable-lpeg|--enable-lpeg=yes) lpeg=yes ;; @@ -283,6 +287,12 @@ printf "checking for pkg-config... " cmdexists pkg-config && have_pkgconfig=yes printf "%s\n" "$have_pkgconfig" +if test "$help" = "yes" ; then + CONFIG_HELP=1 +else + CONFIG_HELP=0 +fi + # libcurses is a mandatory dependency printf "checking for libcurses...\n" @@ -585,6 +595,7 @@ CFLAGS_CURSES = $CFLAGS_CURSES LDFLAGS_CURSES = $LDFLAGS_CURSES CFLAGS_TERMKEY = $CFLAGS_TERMKEY LDFLAGS_TERMKEY = $LDFLAGS_TERMKEY +CONFIG_HELP = $CONFIG_HELP REGEX_SRC = $REGEX_SRC CONFIG_TRE = $CONFIG_TRE CFLAGS_TRE = $CFLAGS_TRE |
