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

Nit in Configure (bleadperl@6961)

Lupe Christoph
September 1, 2000 07:39
Nit in Configure (bleadperl@6961)
Message ID:

I finally decided to put all config decision I normally apply into 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 ";;
@@ -4088,6 +4088,7 @@
 case "$dflt" in
 ''|' ') dflt=none;;
 $cat <<EOH
 Your C compiler may want other flags.  For this question you should include

|       | |
| "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 | Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About