w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 490dddd970d9eddf1d7a43f329d10682118bac93
parent 416d2940ded45f74516f659f3e641d14008e65e3
Author: ukai <ukai>
Date:   Wed, 28 Nov 2001 12:23:40 +0000

[w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS
From: Use environment variables CC, CFLAGS, LDFLAGS for default

Diffstat:
MChangeLog | 5+++++
Mconfigure | 14++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-28 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02579] + * configure: Use environment variables CC, CFLAGS, LDFLAGS + 2001-11-28 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 02574] sysconfdir diff --git a/configure b/configure @@ -769,9 +769,10 @@ readdir "$dbrowser" brz=$_dir echo "dbrowser='$brz'" >> config.param -if [ -z "$dcc" ] ; then - if ./which gcc >/dev/null - then +if [ -z "$dcc" ]; then + if [ -n "$CC" ]; then + dcc="$CC" + elif ./which gcc >/dev/null ; then dcc=gcc else dcc=cc @@ -782,7 +783,9 @@ Echo "(Default: $dcc) " readanswer cc "$dcc" echo "dcc='$cc'" >> config.param -if [ -z "$dcflags" ] ; then dcflags="-O" ; fi +if [ -z "$dcflags" ]; then + dcflags=${CFLAGS-"-O"} +fi echo "Input your favorite C flags." Echo "(Default: $dcflags) " readanswer cflags "$dcflags" @@ -1042,6 +1045,9 @@ fi echo "Input additional LD flags other than listed above, if any:" +if [ -z "$dldflags" ]; then + dldflags=${LDFLAGS-""} +fi if [ -n "$dldflags" ]; then Echo "(default: $dldflags) : " else