From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id d3f9d326; for ; Fri, 16 Jan 2015 16:58:48 -0500 (EST) Received: by mail-wg0-f48.google.com with SMTP id n12so758020wgh.7 for ; Fri, 16 Jan 2015 13:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=p1qxRAVnAvsZLGUpYaAQ/9bAsQ2xa+jnx9Gk6m0olRU=; b=nUsCS4ALVTErhv+sqFXoxEzxpMO06nAkOOtqsTCtgi0oOc39FU7hA5cmyU6fhvFm9n h4q5lqIK0eii1cPhwthNOEgopBQKSg4lbZM6RKCPMiuO2jQEWRMaiwBrwsMKaiqtMIrH dzqOX0J6JRrFj97KEoLWXd4NqcMPOyIATS6b2kghHO9p9E5pSxgfrpK0/nosO9cELgzn wisshmHsQtS583lthCaRq609QXsWclYRMGM11yN/amnHbvmnV7am6L30EH05Q9z68nN+ HKTXHZOtogLSmLMmPACWBujMdzmVUdQZBBuGia6B2Dt3GUxMYE0TdW+DjqH6lEG5oMfW Dswg== X-Received: by 10.180.109.79 with SMTP id hq15mr8494984wib.47.1421445525624; Fri, 16 Jan 2015 13:58:45 -0800 (PST) Received: from kei.fritz.box ([46.114.142.59]) by mx.google.com with ESMTPSA id jp3sm4560371wid.9.2015.01.16.13.58.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jan 2015 13:58:44 -0800 (PST) Date: Fri, 16 Jan 2015 22:58:40 +0100 From: Alexis To: tech@mdocml.bsd.lv Subject: Allow configure variables to be set from environment Message-ID: <20150116215840.GF740@kei.fritz.box> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) Hello all, I have written a Hombrew¹ formula² for mdocml, so OS X users can install and use mdocml. In order to adhere to the best practices in Homebrew I propose the diff below, so that certain variables like PREFIX, BINDIR, etc. can be changed by simply setting them in the environment and without needing to edit configure, e.g.: % PREFIX=/opt/local ./configure If there is another way to achieve this please let me know. Best, Alexis ¹ http://brew.sh - a package manager for OS X ² https://github.com/afh/homebrew/blob/pull/mdocml/Library/Formula/mdocml.rb Index: configure =================================================================== RCS file: /cvs/mdocml/configure,v retrieving revision 1.17 diff -r1.17 configure 66,72c66,72 < PREFIX="/usr/local" < BINDIR= < SBINDIR= < INCLUDEDIR= < LIBDIR= < MANDIR= < EXAMPLEDIR= --- > PREFIX="${PREFIX:-/usr/local}" > BINDIR=${BINDIR} > SBINDIR=${SBINDIR} > INCLUDEDIR=${INCLUDEDIR} > LIBDIR=${LIBDIR} > MANDIR=${MANDIR} > EXAMPLEDIR=${EXAMPLEDIR} -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv