From: Pietro Cerutti Date: Sat, 17 Mar 2018 08:24:49 +0000 (+0100) Subject: Support —with-sysroot configure arg (#1101) X-Git-Tag: neomutt-20180323~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b83bdb0b367d47a1c76cfdc575335c2838241c4;p=neomutt Support —with-sysroot configure arg (#1101) * If --sysroot is given, prepend it to prefix for search paths Issue #869 * Prefix is not used inside Makefiles Issue #869 * No need to specify the empty string as opt-val's default return Issue #869 * s/--sysroot/--with-sysroot/ Issue #869 --- diff --git a/Makefile.autosetup b/Makefile.autosetup index fb6b83dfa..55552db55 100644 --- a/Makefile.autosetup +++ b/Makefile.autosetup @@ -38,7 +38,6 @@ LIBBINFILES+= $(SRCDIR)/contrib/smime_keys @endif # paths -prefix= @prefix@ bindir= @BINDIR@ datadir= @PKGDATADIR@ docdir= @PKGDOCDIR@ diff --git a/auto.def b/auto.def index d922490d7..c871159e4 100644 --- a/auto.def +++ b/auto.def @@ -85,6 +85,8 @@ options { with-qdbm:path => "Location of QDBM" tokyocabinet=0 => "Use TokyoCabinet for the header cache" with-tokyocabinet:path => "Location of TokyoCabinet" +# System + with-sysroot:path => "Target system root" # Enable all options everything=0 => "Enable all options" } @@ -294,7 +296,7 @@ define USE_SOCKET define SUN_ATTACHMENT ############################################################################### -set prefix [get-define prefix] +set prefix [opt-val with-sysroot][get-define prefix] ############################################################################### # Everything