]> granicus.if.org Git - php/commitdiff
avoid breaking paths with spaces when we generate the makefile, and ensure that libs...
authorWez Furlong <wez@php.net>
Wed, 3 Dec 2003 17:04:30 +0000 (17:04 +0000)
committerWez Furlong <wez@php.net>
Wed, 3 Dec 2003 17:04:30 +0000 (17:04 +0000)
win32/build/confutils.js

index 97b9e9b4962ec865722ed6657d42a2d29d3c355f..f4f65ea7149ca97f4cb0ce89f4553e407424db7a 100644 (file)
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-// $Id: confutils.js,v 1.6 2003-12-03 14:55:03 wez Exp $
+// $Id: confutils.js,v 1.7 2003-12-03 17:04:30 wez Exp $
 
 var STDOUT = WScript.StdOut;
 var STDERR = WScript.StdErr;
@@ -359,6 +359,9 @@ function CHECK_LIB(libname, target, path_to_check)
                ADD_FLAG("LDFLAGS_" + target.toUpperCase(), '/libpath:"' + p + '" ');
                ADD_FLAG("LIBS_" + target.toUpperCase(), libname);
                have = 1;
+       } else if (p == true) {
+               ADD_FLAG("LIBS_" + target.toUpperCase(), libname);
+               have = 1;
        }
 
 //     AC_DEFINE("HAVE_" + header_name.toUpperCase().replace(new RegExp("/\\\\-\.", "g"), "_"), have);
@@ -676,8 +679,10 @@ function generate_makefile()
                // The trailing space is needed to prevent the trailing backslash
                // that is part of the build dir flags (CFLAGS_BD_XXX) from being
                // seen as a line continuation character
-               MF.WriteLine(keys[i] + "=" + word_wrap_and_indent(1,
-                       configure_subst.Item(keys[i]), ' \\', '\t') + " ");
+               MF.WriteLine(keys[i] + "=" + 
+                       //word_wrap_and_indent(1, configure_subst.Item(keys[i]), ' \\', '\t') + " "
+                       configure_subst.Item(keys[i]) + " "
+                       );
                MF.WriteBlankLines(1);
        }