]> granicus.if.org Git - php/commitdiff
MFH: add errors when missing dependencies (Steph)
authorGreg Beaver <cellog@php.net>
Thu, 17 Jan 2008 21:17:29 +0000 (21:17 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 17 Jan 2008 21:17:29 +0000 (21:17 +0000)
win32/build/confutils.js

index 1e73a56964ae2c7f0bde46ebc8f08489f1d0aef2..015a0aa0acce75439016af1d6c60a95a7faf7204 100644 (file)
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-// $Id: confutils.js,v 1.60.2.1.2.9 2007-11-14 19:48:57 auroraeosrose Exp $
+// $Id: confutils.js,v 1.60.2.1.2.10 2008-01-17 21:17:29 cellog Exp $
 
 var STDOUT = WScript.StdOut;
 var STDERR = WScript.StdErr;
@@ -1009,6 +1009,14 @@ function ADD_EXTENSION_DEP(extname, dependson, optional)
                ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR)");
                ADD_FLAG("LIBS_" + EXT, "php_" + dependson + ".lib");
                ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR)\\php_" + dependson + ".lib");
+       } else {
+               if (dep_present == "no") {
+                       if (ext_shared) {
+                               WARNING(extname + " has a missing dependency: " + dependson);
+                       } else {
+                               ERROR("Cannot build " + extname + "; " + dependson + " not enabled");
+                       }
+               }
        }
 }