jdk/make/common/shared/Sanity.gmk
changeset 14091 e5c8662f325d
parent 12293 6c4b13381b81
child 14333 65fe875afb41
equal deleted inserted replaced
14066:cdaa6122185f 14091:e5c8662f325d
   393 # Check the Windows mks version
   393 # Check the Windows mks version
   394 ######################################################
   394 ######################################################
   395 ifeq ($(PLATFORM), windows)
   395 ifeq ($(PLATFORM), windows)
   396     MKS_CHECK :=$(call CheckVersions,$(MKS_VER),$(REQUIRED_MKS_VER))
   396     MKS_CHECK :=$(call CheckVersions,$(MKS_VER),$(REQUIRED_MKS_VER))
   397 sane-mks:
   397 sane-mks:
   398   ifndef USING_CYGWIN
   398   ifdef USING_MKS
   399     ifeq ($(MKS_CHECK),missing)
   399     ifeq ($(MKS_CHECK),missing)
   400 	@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
   400 	@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
   401     endif
   401     endif
   402     ifeq ($(MKS_CHECK),older)
   402     ifeq ($(MKS_CHECK),older)
   403 	@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
   403 	@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
   903 	    "          $(UNIXCOMMAND_PATH) \n" \
   903 	    "          $(UNIXCOMMAND_PATH) \n" \
   904 	    "      and/or check your value of ALT_UNIXCOMMAND_PATH. \n" \
   904 	    "      and/or check your value of ALT_UNIXCOMMAND_PATH. \n" \
   905 	    "" >> $(ERROR_FILE) ; \
   905 	    "" >> $(ERROR_FILE) ; \
   906 	fi
   906 	fi
   907 ifeq ($(PLATFORM), windows)
   907 ifeq ($(PLATFORM), windows)
   908 	@for utility in cpio ar file m4 ; do \
   908 ifeq ($(USING_MSYS), true)
       
   909 	@for utility in $(AR) $(FILE) $(M4) ; do \
   909 	  if [ ! -r "`$(WHICH) $${utility}`" ]; then \
   910 	  if [ ! -r "`$(WHICH) $${utility}`" ]; then \
   910 	    $(ECHO) "WARNING: You do not have the utility $${utility} in the \n" \
   911 	    $(ECHO) "WARNING: You do not have the utility $${utility} in the \n" \
   911 	      "      directory $(UNIXCOMMAND_PATH). \n" \
   912 	      "      directory $(UNIXCOMMAND_PATH). \n" \
   912 	      "      The utilities cpio, ar, file, and m4 are required. \n" \
   913 	      "      The utilities ar, file and m4 are required. \n" \
   913 	      "" >> $(WARNING_FILE) ; \
   914 	      "" >> $(WARNING_FILE) ; \
   914 	  fi; \
   915 	  fi; \
   915 	done
   916 	done
       
   917 else
       
   918 	@for utility in $(AR) $(CPIO) $(FILE) $(M4) ; do \
       
   919 	  if [ ! -r "`$(WHICH) $${utility}`" ]; then \
       
   920 	    $(ECHO) "WARNING: You do not have the utility $${utility} in the \n" \
       
   921 	      "      directory $(UNIXCOMMAND_PATH). \n" \
       
   922 	      "      The utilities ar, cpio, file and m4 are required. \n" \
       
   923 	      "" >> $(WARNING_FILE) ; \
       
   924 	  fi; \
       
   925 	done
       
   926 endif
   916 endif
   927 endif
   917 
   928 
   918 ######################################################
   929 ######################################################
   919 # Check for existence of USRBIN_PATH on linux
   930 # Check for existence of USRBIN_PATH on linux
   920 ######################################################
   931 ######################################################
   997   ifeq ($(wildcard $(RC)),)
  1008   ifeq ($(wildcard $(RC)),)
   998 	@$(ECHO) "ERROR: Cannot find the RC utility from path: $(RC)\n" \
  1009 	@$(ECHO) "ERROR: Cannot find the RC utility from path: $(RC)\n" \
   999 	    "      This is normally obtained from the WINDOWSSDKDIR." \
  1010 	    "      This is normally obtained from the WINDOWSSDKDIR." \
  1000 	    "" >> $(ERROR_FILE)
  1011 	    "" >> $(ERROR_FILE)
  1001   endif
  1012   endif
  1002   ifeq ($(wildcard $(DUMPBIN)),)
  1013   # MinGW/MSYS make 3.81 will not tolerate a path with a quoted substring
       
  1014   ifeq ($(wildcard $(subst ",,$(DUMPBIN))),)
  1003 	@$(ECHO) "ERROR: Cannot find the DUMPBIN utility from path: $(DUMPBIN)\n" \
  1015 	@$(ECHO) "ERROR: Cannot find the DUMPBIN utility from path: $(DUMPBIN)\n" \
  1004 	    "      This is normally obtained from the COMPILER_PATH." \
  1016 	    "      This is normally obtained from the COMPILER_PATH." \
  1005 	    "" >> $(ERROR_FILE)
  1017 	    "" >> $(ERROR_FILE)
  1006   endif
  1018   endif
  1007 endif
  1019 endif