From 28355138a1ea113ed24d383b6a15e1d77ce0e39e Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Sun, 1 May 2016 21:41:17 -0500
Subject: [PATCH] mode: add stub program

Signed-off-by: Austin English <austinenglish@gmail.com>
---
 configure                 |  2 ++
 configure.ac              |  1 +
 programs/mode/Makefile.in |  5 +++++
 programs/mode/main.c      | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 programs/mode/Makefile.in
 create mode 100644 programs/mode/main.c

diff --git a/configure b/configure
index 1f960f0..ca867d7 100755
--- a/configure
+++ b/configure
@@ -1471,6 +1471,7 @@ enable_iexplore
 enable_ipconfig
 enable_lodctr
 enable_mofcomp
+enable_mode
 enable_mshta
 enable_msiexec
 enable_net
@@ -18225,6 +18226,7 @@ wine_fn_config_program iexplore enable_iexplore install
 wine_fn_config_program ipconfig enable_ipconfig clean,install
 wine_fn_config_program lodctr enable_lodctr install
 wine_fn_config_program mofcomp enable_mofcomp install
+wine_fn_config_program mode enable_mode install
 wine_fn_config_program mshta enable_mshta install
 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
 wine_fn_config_program net enable_net clean,install
diff --git a/configure.ac b/configure.ac
index 597b84e..e789318 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3472,6 +3472,7 @@ WINE_CONFIG_PROGRAM(iexplore,,[install])
 WINE_CONFIG_PROGRAM(ipconfig,,[clean,install])
 WINE_CONFIG_PROGRAM(lodctr,,[install])
 WINE_CONFIG_PROGRAM(mofcomp,,[install])
+WINE_CONFIG_PROGRAM(mode,,[install])
 WINE_CONFIG_PROGRAM(mshta,,[install])
 WINE_CONFIG_PROGRAM(msiexec,,[install,installbin,manpage])
 WINE_CONFIG_PROGRAM(net,,[clean,install])
diff --git a/programs/mode/Makefile.in b/programs/mode/Makefile.in
new file mode 100644
index 0000000..c73a376
--- /dev/null
+++ b/programs/mode/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = mode.com
+APPMODE   = -mconsole -municode
+
+C_SRCS = \
+	main.c
diff --git a/programs/mode/main.c b/programs/mode/main.c
new file mode 100644
index 0000000..163297b
--- /dev/null
+++ b/programs/mode/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2016 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(mode);
+
+int wmain(int argc, WCHAR *argv[])
+{
+    int i;
+
+    WINE_FIXME("stub:");
+    for (i = 0; i < argc; i++)
+        WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+    WINE_FIXME("\n");
+
+    return 0;
+}
-- 
2.8.1

