author | peter1138 |
Thu, 16 Nov 2006 22:05:33 +0000 | |
changeset 5108 | aeaef6fe53b7 |
parent 4827 | cf5430082cb5 |
child 5117 | d64bf0093ff4 |
permissions | -rwxr-xr-x |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
1 |
#!/bin/sh |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
2 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
3 |
# This 'configure' script is a very easy wrapper around 'make updateconf' |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
4 |
# It allows cross-compilers to do their job much more easy. |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
5 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
6 |
function showhelp() { |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
7 |
echo "Configure for OpenTTD" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
8 |
echo "" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
9 |
echo "Usage:" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
10 |
echo " $0 --your_options" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
11 |
echo "" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
12 |
echo "Params:" |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
13 |
echo " --debug Create debug-release [no]" |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
14 |
echo " --profile Create profile-release [no]" |
3302
1987d02ff237
(svn r4059) -Fix: add --dedicated flag to configure
truelight
parents:
3221
diff
changeset
|
15 |
echo " --dedicated Make a dedicated build [no]" |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
16 |
echo " --revision Set the revision of the compilation [detected]" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
17 |
echo " --target-cc Sets the target-compiler [\$CC]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
18 |
echo " --target-cxx Sets the C++ target-compiler []" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
19 |
echo " --host-cc Sets the host-compiler [\$CC]" |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
20 |
echo " --host-cxx Sets the C++ host-compiler []" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
21 |
echo " --os Sets the OS. Listens to: [detected]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
22 |
echo " UNIX, OSX, FREEBSD, MORPHOS" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
23 |
echo " BEOS, SUNOS, CYGWIN, MINGW" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
24 |
echo " --windres Sets the windres (Windows) [windres]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
25 |
echo " --force-le Force LE platform [no]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
26 |
echo " --force-be Force BE platform [no]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
27 |
echo "" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
28 |
echo "Params that can be used with --with or --without" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
29 |
echo " (e.g.: --without-static disables static (default))" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
30 |
echo " static Do you want a static build? [no]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
31 |
echo " directmusic Do you want direct-music? [no]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
32 |
echo " zlib Do you want zlib-support? [yes]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
33 |
echo " sdl Do you want SDL-support? [yes]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
34 |
echo " png Do you want PNG-support? [yes]" |
3408
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
35 |
echo " iconv Do you want iconv-support? [no]" |
4827
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
36 |
echo " network Do you want network-support? [yes]" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
37 |
echo " cocoa Do you want cocoa-support? (MacOSX) [no]" |
5108
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
38 |
echo " freetype Do you want freetype-support? [yes]" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
39 |
echo "" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
40 |
echo "Params used to configure external libs:" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
41 |
echo " --static-zlib-path Set the path to your static zlib []" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
42 |
echo " --sdl-config Where is your sdl-config [sdl-config]" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
43 |
echo " --libpng-config Where is your libpng-config [libpng-config]" |
5108
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
44 |
echo " --freetype-config Where is your freetype-config [freetype-config]" |
3408
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
45 |
echo " --with-iconv Set the path to your iconv headers []" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
46 |
echo " " |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
47 |
} |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
48 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
49 |
function handle() { |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
50 |
PARAM="$PARAM \"$1=`awk 'BEGIN { FS="="; $0="'"$2"'"; print $2;}'`\"" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
51 |
} |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
52 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
53 |
# The things you can use inside this case: |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
54 |
# handle NAME VALUE - Sets the value to give the 'make upgradeconf' |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
55 |
# Value is in form: tag=REAL_VALUE |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
56 |
# ITEM="NAME" - Will set the value as above, only with the next param |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
57 |
# SITEM="NAME" - Will set the var $NAME to the next param |
3221 | 58 |
for n in "$@" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
59 |
do |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
60 |
case "$n" in |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
61 |
--help | -h) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
62 |
showhelp |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
63 |
exit 0 |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
64 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
65 |
|
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
66 |
--debug) |
3205
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
67 |
DEBUG_SET=1 |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
68 |
ITEM="DEBUG" |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
69 |
;; |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
70 |
--debug=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
71 |
handle "DEBUG" "$n" |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
72 |
;; |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
73 |
--profile) |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
74 |
PARAM="$PARAM PROFILE=1" |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
75 |
;; |
3302
1987d02ff237
(svn r4059) -Fix: add --dedicated flag to configure
truelight
parents:
3221
diff
changeset
|
76 |
--dedicated) |
1987d02ff237
(svn r4059) -Fix: add --dedicated flag to configure
truelight
parents:
3221
diff
changeset
|
77 |
PARAM="$PARAM DEDICATED=1" |
1987d02ff237
(svn r4059) -Fix: add --dedicated flag to configure
truelight
parents:
3221
diff
changeset
|
78 |
;; |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
79 |
--revision=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
80 |
RELEASE=`awk 'BEGIN { FS="="; $0="'"$n"'"; print $2;}'` |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
81 |
;; |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
82 |
--revision) |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
83 |
SITEM="RELEASE" |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
84 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
85 |
--target-cc=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
86 |
handle "CC_TARGET" "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
87 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
88 |
--target-cc) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
89 |
ITEM="CC_TARGET" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
90 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
91 |
--target-cxx=*) |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
92 |
handle "CXX_TARGET" "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
93 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
94 |
--target-cxx) |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
95 |
SITEM="CXX_TARGET" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
96 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
97 |
--host-cc=*) |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
98 |
handle "CC_HOST" "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
99 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
100 |
--host-cc) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
101 |
ITEM="CC_HOST" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
102 |
;; |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
103 |
--host-cxx=*) |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
104 |
handle "CXX_HOST" "$n" |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
105 |
;; |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
106 |
--host-cxx) |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
107 |
ITEM="CXX_HOST" |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
108 |
;; |
3306
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
109 |
--host-cflags=*) |
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
110 |
handle CFLAGS_HOST "$n" |
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
111 |
;; |
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
112 |
--host-cflags) |
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
113 |
ITEM="CFLAGS_HOST" |
6ade9fea6148
(svn r4065) -Fix: the configure now knows --host-cflags
truelight
parents:
3305
diff
changeset
|
114 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
115 |
--os=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
116 |
TARGET_OS=`awk 'BEGIN { FS="="; $0="'"$n"'"; print $2;}'` |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
117 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
118 |
--os) |
3201
9ac4721e028a
(svn r3869) -Fix: don't use OS in configure, some system have that defined ;)
truelight
parents:
3200
diff
changeset
|
119 |
SITEM="TARGET_OS" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
120 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
121 |
--windres=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
122 |
handle WINDRES "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
123 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
124 |
--windres) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
125 |
ITEM="WINDRES" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
126 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
127 |
--force-le) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
128 |
PARAM="$PARAM ENDIAN_FORCE=LE" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
129 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
130 |
--force-be) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
131 |
PARAM="$PARAM ENDIAN_FORCE=BE" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
132 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
133 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
134 |
--with-static) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
135 |
PARAM="$PARAM STATIC=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
136 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
137 |
--without-static) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
138 |
PARAM="$PARAM STATIC=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
139 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
140 |
--with-directmusic) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
141 |
PARAM="$PARAM WITH_DIRECTMUSIC=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
142 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
143 |
--without-directmusic) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
144 |
PARAM="$PARAM WITH_DIRECTMUSIC=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
145 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
146 |
--with-zlib) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
147 |
PARAM="$PARAM WITH_ZLIB=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
148 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
149 |
--without-zlib) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
150 |
PARAM="$PARAM WITH_ZLIB=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
151 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
152 |
--with-sdl) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
153 |
PARAM="$PARAM WITH_SDL=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
154 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
155 |
--without-sdl) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
156 |
PARAM="$PARAM WITH_SDL=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
157 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
158 |
--with-png) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
159 |
PARAM="$PARAM WITH_PNG=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
160 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
161 |
--without-png) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
162 |
PARAM="$PARAM WITH_PNG=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
163 |
;; |
3408
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
164 |
--with-iconv) |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
165 |
PARAM="$PARAM WITH_ICONV=1" |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
166 |
;; |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
167 |
--with-iconv=*) |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
168 |
PARAM="$PARAM WITH_ICONV=1" |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
169 |
handle WITH_ICONV_PATH "$n" |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
170 |
;; |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
171 |
--without-iconv) |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
172 |
PARAM="$PARAM WITH_ICONV=" |
1da501b2eae1
(svn r4219) - Add support for WITH_ICONV. It is enabled by default for OSX > 10.3 for all others set it with WITH_ICONV in Makefile.config or with --with-iconv with configure. --with-config=/somedir will search for iconv include files somewhere (or in Makefile.config with WITH_ICONV_PATH). Custom library loading is not (yet) supported
Darkvater
parents:
3406
diff
changeset
|
173 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
174 |
--with-cocoa) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
175 |
PARAM="$PARAM WITH_COCOA=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
176 |
;; |
4827
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
177 |
--with-network) |
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
178 |
PARAM="$PARAM WITH_NETWORK=1" |
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
179 |
;; |
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
180 |
--without-network) |
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
181 |
PARAM="$PARAM WITH_NETWORK=" |
cf5430082cb5
(svn r6751) -Fix: Add option to enable/disable network support. Default is on
Darkvater
parents:
4094
diff
changeset
|
182 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
183 |
--without-cocoa) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
184 |
PARAM="$PARAM WITH_COCOA=" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
185 |
;; |
5108
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
186 |
--with-freetype) |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
187 |
PARAM="$PARAM WITH_FREETYPE=1" |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
188 |
;; |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
189 |
--without-freetype) |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
190 |
PARAM="$PARAM WITH_FREETYPE=" |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
191 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
192 |
--static-zlib-path=*) |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
193 |
handle STATIC_ZLIB_PATH "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
194 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
195 |
--static-zlib-path) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
196 |
ITEM="STATIC_ZLIB_PATH" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
197 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
198 |
--sdl-config=*) |
3406
ee3af0f1932b
(svn r4217) Replace SDL-CONFIG and LIBPNG-CONFIG with SDL_CONFIG and LIBPNG_CONFIG
peter1138
parents:
3307
diff
changeset
|
199 |
handle SDL_CONFIG "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
200 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
201 |
--sdl-config) |
3406
ee3af0f1932b
(svn r4217) Replace SDL-CONFIG and LIBPNG-CONFIG with SDL_CONFIG and LIBPNG_CONFIG
peter1138
parents:
3307
diff
changeset
|
202 |
ITEM="SDL_CONFIG" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
203 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
204 |
--libpng-config=*) |
3406
ee3af0f1932b
(svn r4217) Replace SDL-CONFIG and LIBPNG-CONFIG with SDL_CONFIG and LIBPNG_CONFIG
peter1138
parents:
3307
diff
changeset
|
205 |
handle LIBPNG_CONFIG "$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
206 |
;; |
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
207 |
--libpng-config) |
3406
ee3af0f1932b
(svn r4217) Replace SDL-CONFIG and LIBPNG-CONFIG with SDL_CONFIG and LIBPNG_CONFIG
peter1138
parents:
3307
diff
changeset
|
208 |
ITEM="LIBPNG_CONFIG" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
209 |
;; |
5108
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
210 |
--freetype-config=*) |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
211 |
handle FREETYPE_CONFIG "$n" |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
212 |
;; |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
213 |
--freetype-config) |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
214 |
ITEM="FREETYPE_CONFIG" |
aeaef6fe53b7
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4827
diff
changeset
|
215 |
;; |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
216 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
217 |
--*=*) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
218 |
echo -n "Unknown switch " |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
219 |
echo `awk 'BEGIN { FS="="; $0="'"$n"'"; print $1;}'` |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
220 |
exit 1 |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
221 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
222 |
-*) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
223 |
echo "Unknown switch $n" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
224 |
exit 1 |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
225 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
226 |
|
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
227 |
*) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
228 |
if ! test -z "$ITEM" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
229 |
then |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
230 |
PARAM="$PARAM $ITEM=\"$n\"" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
231 |
ITEM=""; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
232 |
elif ! test -z "$SITEM" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
233 |
then |
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
234 |
export $SITEM="$n" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
235 |
SITEM="" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
236 |
else |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
237 |
echo "Unknown switch $n" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
238 |
exit 1 |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
239 |
fi |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
240 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
241 |
esac |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
242 |
done |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
243 |
|
3201
9ac4721e028a
(svn r3869) -Fix: don't use OS in configure, some system have that defined ;)
truelight
parents:
3200
diff
changeset
|
244 |
if ! test -z "$TARGET_OS" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
245 |
then |
3201
9ac4721e028a
(svn r3869) -Fix: don't use OS in configure, some system have that defined ;)
truelight
parents:
3200
diff
changeset
|
246 |
TARGET_OS=`echo $TARGET_OS | tr '[:lower:]' '[:upper:]'` |
9ac4721e028a
(svn r3869) -Fix: don't use OS in configure, some system have that defined ;)
truelight
parents:
3200
diff
changeset
|
247 |
case "$TARGET_OS" in |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
248 |
WIN32) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
249 |
PARAM="$PARAM WIN32=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
250 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
251 |
UNIX) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
252 |
PARAM="$PARAM UNIX=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
253 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
254 |
OSX) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
255 |
PARAM="$PARAM OSX=1 UNIX=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
256 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
257 |
FREEBSD) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
258 |
PARAM="$PARAM FREEBSD=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
259 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
260 |
MORPHOS) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
261 |
PARAM="$PARAM MORPHOS=1 UNIX=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
262 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
263 |
BEOS) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
264 |
PARAM="$PARAM BEOS=1 UNIX=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
265 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
266 |
SUNOS) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
267 |
PARAM="$PARAM SUNOS=1 UNIX=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
268 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
269 |
CYGWIN) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
270 |
PARAM="$PARAM CYGWIN=1 WIN32=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
271 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
272 |
MINGW) |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
273 |
PARAM="$PARAM MINGW=1 WIN32=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
274 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
275 |
*) |
3202
e15c8e8a772b
(svn r3870) -Fix: missed one item in last commit, tnx glx :)
truelight
parents:
3201
diff
changeset
|
276 |
echo "Unknown OS: $TARGET_OS" |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
277 |
exit 1 |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
278 |
;; |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
279 |
esac |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
280 |
PARAM="$PARAM BYPASS_OS_DETECT=1" |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
281 |
fi |
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
282 |
|
3205
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
283 |
if ! test -z "$DEBUG_SET" |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
284 |
then |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
285 |
if test -z "`echo $PARAM | grep "DEBUG="`" |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
286 |
then |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
287 |
# Someone did --debug, without assigning a value, assume 1 |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
288 |
PARAM="$PARAM DEBUG=1" |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
289 |
fi |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
290 |
fi |
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
291 |
|
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
292 |
# First remove the Makefile.config, else you can have double entries |
4009
6be8ddb86fbc
(svn r5220) Testing for existence AND using rm -f is tautologous
tron
parents:
3408
diff
changeset
|
293 |
rm -f Makefile.config |
3205
36beea8bde6a
(svn r3873) -Fix: don't remove Makefile.config if it isn't there in the first place
truelight
parents:
3202
diff
changeset
|
294 |
|
3305
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
295 |
echo "make upgradeconf $PARAM" > Makefile.run |
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
296 |
. Makefile.run |
36d30ac4dde5
(svn r4064) -Fix: fixes for configure to accept spaces in params. This are mostly bypasses because bash really does suck in handling spaces and " stuff :(
truelight
parents:
3302
diff
changeset
|
297 |
rm -f Makefile.run |
3198
54e4474378f7
(svn r3865) -Add: a fully optional configure script, that is a wrapper around
truelight
parents:
diff
changeset
|
298 |
|
4094
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
299 |
# Makefile.config currently doesn't support custom RELEASE (revision), so, we add the line |
333c7cf842a7
(svn r5426) - Makefile: Make the configure script work properly for setting target compilers; Set CC_TARGET / CXX_TARGET
peter1138
parents:
4009
diff
changeset
|
300 |
# yourself! |
3200
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
301 |
|
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
302 |
if ! test -z "$RELEASE" |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
303 |
then |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
304 |
echo "RELEASE=$RELEASE" >> Makefile.config |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
305 |
fi |
faafc2eb520f
(svn r3867) -Add: added --debug, --profile and --revision to configure
truelight
parents:
3199
diff
changeset
|
306 |