3 # WindowMaker configuration and compilation script.
5 # Copyright (c) 1997, 1998 Alfredo K. Kojima
8 export LINGUAS
;LINGUAS
=""
9 if test "$NLSDIR" = ""; then
10 export NLSDIR
;NLSDIR
="/usr/lib/locale"
17 echo "Type <Return> to continue"
23 echo "========================"
24 echo "WindowMaker Installation"
25 echo "========================"
27 echo "NOTE: If the installation procedure fails, read the INSTALL file and do"
28 echo "the installation manually."
31 if test "$USER" != "root"; then
32 echo "Warning: you must run this script as the root user."
35 echo "Be sure to specify an installation path where you have"
36 echo "write persmission."
42 echo "Option Selection"
43 echo "================"
45 ######################## Sound
48 echo "Do you want sound support? Note that you need a module distributed"
49 echo "separately to make it work. You can get it at:"
50 echo "http://www.frontiernet.net/~southgat/wmsound"
54 if [ "x$SFX" = "x" -o "$SFX" = "y" -o "$SFX" = "Y" ]; then
55 OPTIONS
="$OPTIONS --enable-sound"
58 ######################## NLS
60 echo "Do you want National Language Support?"
64 if [ "$NLS" = "y" -o "$NLS" = "Y" ]; then
66 echo "The supported locales are:"
67 ling
=` (cd po; /bin/ls *.po) `
70 lname
=`(cd po; grep Language-Team $l|cut -f 2 -d: |cut -f 2 -d\ )`
72 lcode
=`basename $l .po`
73 ALL_LINGUAS
="$ALL_LINGUAS $lcode"
76 echo "Type in the locales you want [$ALL_LINGUAS]"
78 if test "x$foo" = "x"; then
83 echo "Selected locales are: $LINGUAS"
88 for b
in $ALL_LINGUAS; do
89 if test "$b" = "$i"; then
94 if test "$ok" = "0"; then
96 echo "$i is not a supported locale"
101 if [ "$MB" = "" -a "$i" = "ja" -o "$i" = "kr" ]; then
103 echo "A language you selected needs multi-byte character support"
104 echo "Do you want to enable it?"
107 if [ "$MB" = "y" -o "$MB" = "Y" ]; then
108 OPTIONS
="$OPTIONS --enable-kanji"
113 echo "Where do you want to put the message files? [$NLSDIR]"
116 if test "x$foo" != "x"; then
120 ##################### Installation path
123 while [ $done = 0 ]; do
125 echo "Where do you want to install WindowMaker? [$PREFIX]"
126 echo "Don't change it if you don't know what you're doing."
127 echo "(The default path will install WindowMaker in "
128 echo "$PREFIX/bin, $PREFIX/lib etc.)"
132 if test "x$foo" != "x"; then
133 if [ "$foo" = "y" -o "$foo" = "n" ]; then
135 echo "Hmm... I don't think you really want to install WindowMaker into \"$foo\""
145 echo "$PREFIX/bin must be in the PATH environment variable of all users who use WindowMaker"
149 OPTIONS
="$OPTIONS --prefix=$PREFIX"
152 ###################### Build libPropList
154 if [ ! -d libPropList
]; then
155 gzip -d -c libPropList.
tar.gz |
tar xf
-
158 echo "-----------------------"
159 echo "Building libPropList..."
160 echo "-----------------------"
162 if [ ! -f config.status
]; then
168 if [ ! -f libPropList
/libPropList.a
]; then
169 echo "Build of libPropList was not successfull. "
174 ##################### Configure
175 echo "--------------------------"
176 echo "Configuring WindowMaker..."
177 echo "--------------------------"
178 if [ `uname -s` = "SCO_SV" ]; then
179 echo "CFLAGS=\"$CFLAGS -belf -DANSICPP\" ./configure $OPTIONS"
180 CFLAGS
="$CFLAGS -belf -DANSICPP" .
/configure
$OPTIONS
182 echo "CFLAGS=\"$CFLAGS $GCCFLAGS\" ./configure $OPTIONS"
183 CFLAGS
="$CFLAGS $GCCFLAGS" .
/configure
$OPTIONS
187 #################### Compile
188 echo "------------------------"
189 echo "Compiling WindowMaker..."
190 echo "------------------------"
194 echo "-------------------------"
195 echo "Installing WindowMaker..."
196 echo "-------------------------"
201 echo "Installation Finished!"
203 echo "Now, each user that wishes to use WindowMaker must run the wmaker.inst"
204 echo "script that was just installed."
207 if test "$NLS" = "Y"; then
208 echo "Don't forget to set the LANG environment variable to your locale"