develooper Front page | perl.perl5.porters | Postings from September 2000

Nit in Configure (bleadperl@6961)

From:
Lupe Christoph
Date:
September 1, 2000 07:39
Subject:
Nit in Configure (bleadperl@6961)
Message ID:
20000901163429.K13547@alanya.lupe-christoph.de
Hi!

I finally decided to put all config decision I normally apply into
Policy.sh. But I was a little surprised when this didn't work:

locincpth='/opt/local/include/bind /opt/local/include'

I keep the BIND include separated, and to be sure the get picked rather
than any include file I with the same name I might have in the normal
local include directory, I have to put it first.

But Configure just looks if a path is already in the list, in effect
doing a simple string match. This fails here because /opt/local/include
is a substring of /opt/local/include/bind, so it gets ignored.

Patch to make sure things like this work:

--- Configure.orig      Fri Sep  1 01:23:12 2000
+++ Configure   Fri Sep  1 16:27:36 2000
@@ -4051,8 +4051,8 @@
        if $test -d $thisincl; then
                if $test x$thisincl != x$usrinc; then
                        case "$dflt" in
-                       *$thisincl*);;
-                       *) dflt="$dflt -I$thisincl";;
+                       *" -I$thisincl "*);;
+                       *) dflt="$dflt -I$thisincl ";;
                        esac
                fi
        fi
@@ -4088,6 +4088,7 @@
 case "$dflt" in
 ''|' ') dflt=none;;
 esac
+
 $cat <<EOH
 
 Your C compiler may want other flags.  For this question you should include

Lupe
-- 
| lupe@lupe-christoph.de       |        http://free.prohosting.com/~lupe |
| "jryy vg ybbxf yvxr gur l2x oht qvqa'g erne vg'f htyl urnq." "lrc. gur |
| qbbzfnlref unir orra cebira jebat lrg ntnva."  ....  "qvq lbh frr gung |
| gbb?" "ubhfgba. jr unir n ceboyrz."           User Friendly 2000-01-01 |



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About