diff Makefile.in @ 3451:59ae7d6334c1

* Makefile.in: Validate MXE_SYSTEM value.
author John W. Eaton <jwe@octave.org>
date Fri, 24 Jan 2014 13:50:41 -0500
parents f0a1b0872dbb
children 3124eb50a04b
line wrap: on
line diff
--- a/Makefile.in	Fri Jan 24 12:36:20 2014 -0500
+++ b/Makefile.in	Fri Jan 24 13:50:41 2014 -0500
@@ -19,8 +19,15 @@
 
 # Set the following configuration variables with a configure script?
 
-# Current valid values are mingw (cross) and gnu-linux (native).
+# Current valid values are mingw (cross or native), msvc (native)
+# and gnu-linux (native).
 MXE_SYSTEM := @MXE_SYSTEM@
+ifeq ($(MXE_SYSTEM),mingw)
+else ifeq ($(MXE_SYSTEM),msvc)
+else ifeq ($(MXE_SYSTEM),gnu-linux)
+else
+$(error "$(MXE_SYSTEM)" is not a valid value for MXE_SYSTEM)
+endif
 
 # Set to "no" if doing a cross compile build.
 MXE_NATIVE_BUILD := @MXE_NATIVE_BUILD@