]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Don't include zlib header dir if it is not defined.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 6 Dec 2005 13:36:59 +0000 (13:36 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 6 Dec 2005 13:36:59 +0000 (13:36 +0000)
Configure
util/mk1mf.pl

index 561218717c22d474b8c0cc2d33ae7ea64733fee0..8aa7ee1c73e961753b22218ddf5d23c92cd9a780 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -748,9 +748,13 @@ PROCESS_ARGS:
                                {
                                $withargs{"krb5-".$1}=$2;
                                }
-                       elsif (/^--with-zlib-(lib|include)=(.*)$/)
+                       elsif (/^--with-zlib-lib=(.*)$/)
                                {
-                               $withargs{"zlib-".$1}=$2;
+                               $withargs{"zlib-lib"}=$1;
+                               }
+                       elsif (/^--with-zlib-include=(.*)$/)
+                               {
+                               $withargs{"zlib-include"}="-I$1";
                                }
                        else
                                {
index 606e9209ccf8407854e63e2218928ed299ddcf34..7f901ee934a73b7831fd63c27b822f153902883e 100755 (executable)
@@ -292,7 +292,7 @@ for (;;)
                { $cflags .= " $val";}
 
        if ($key eq "ZLIB_INCLUDE")
-               { $cflags .= " -I$val";}
+               { $cflags .= " $val" if $val ne "";}
 
        if ($key eq "LIBZLIB")
                { $zlib_lib = "$val" if $val ne "";}