1: /*
2: Copyright (C) 1996,1997,1998,2000,2003,2007 Free Software Foundation, Inc.
3:
4: This file is part of Gforth.
5:
6: Gforth is free software; you can redistribute it and/or
7: modify it under the terms of the GNU General Public License
8: as published by the Free Software Foundation, either version 3
9: of the License, or (at your option) any later version.
10:
11: This program is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with this program; if not, see http://www.gnu.org/licenses/.
18: */
19: say "*** Configuring for OS/2 with EMX 3.0 GNU C ***"
20:
21: parse arg args
22:
23: THREAD="i"
24: FREGS="n"
25:
26: do while args \== ""
27: parse var args arg args
28:
29: select
30: when arg="--enable-direct-threaded" then THREAD="d"
31: when arg="--enable-indirect-threaded" then THREAD="i"
32: when arg="--enable-force-reg" then FREGS="y"
33: when arg="--help" then do
34: say "--enable and --with options recognized:"
35: say " --enable-force-reg Use explicit register declarations if they appear in"
36: say " the machine.h file. This can cause a good speedup,"
37: say " but also incorrect code with some gcc versions on"
38: say " some processors (default disabled)."
39: say " --enable-direct-threaded Force direct threading. This may not work on"
40: say " some machines and may cause slowdown on others."
41: say " (default processor-dependent)"
42: say " --enable-indirect-threaded Force indirect threading. This can cause a"
43: say " slowdown on some machines."
44: say " (default processor-dependent)"
45: end
46: otherwise
47: do
48: say "*** Unknown option:" arg
49: call Usage
50: end
51: end
52:
53: end
54:
55: copy makefile.os2 makefile
56: copy "engine\makefile.os2" "engine\makefile"
57: copy kernl32l.fi kernel.fi
58: copy envos.os2 envos.fs
59: copy os2conf.h "engine\config.h"
60: if THREAD="i" THEN DO
61: call lineout "engine\config.h", "#ifndef INDIRECT_THREADED"
62: call lineout "engine\config.h", "#define INDIRECT_THREADED 1"
63: call lineout "engine\config.h", "#endif"
64: end
65: IF THREAD="d" THEN do
66: call lineout "engine\config.h", "#ifndef DIRECT_THREADED"
67: call lineout "engine\config.h", "#define DIRECT_THREADED 1"
68: call lineout "engine\config.h", "#endif"
69: end
70: IF FREGS="y" THEN do
71: call lineout "engine\config.h", "#ifndef FORCE_REG"
72: call lineout "engine\config.h", "#define FORCE_REG 1"
73: call lineout "engine\config.h", "#endif"
74: end
75: call lineout version.h1, 'static char gforth_version[]="0.4.0";'
76: call lineout "kernel\version.fs", ': version-string s" 0.4.0" ;'
77: call lineout 'version-stamp', '0.4.0'
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>