3 # WindowMaker configuration and compilation script.
5 # Copyright (c) 1997, 1998, 1999 Alfredo K. Kojima
8 export LINGUAS
;LINGUAS
=""
9 if test "$NLSDIR" = ""; then
10 export NLSDIR
;NLSDIR
="/usr/lib/locale"
18 echo "Type <Return> to continue"
26 echo "Window Maker installation failed or aborted by user."
32 trap "echo Window Maker installation aborted. ; exit 1" 2 3
35 echo "========================="
36 echo "Window Maker Installation"
37 echo "========================="
39 echo "NOTE: If this script fails, read the INSTALL file and"
40 echo "install by hand."
42 echo "Please read the README, INSTALL and FAQ files before e-mailing "
43 echo "questions. We will IGNORE any questions that are already"
44 echo "answered in the documentation."
48 echo "Did you install libPropList? If not, please install it now."
51 echo "Did you read the INSTALL file?"
54 if [ "$rtfm" != y
]; then
55 echo "Please read the INSTALL file before installing"
61 if [ "$rtfm" != y
]; then
62 echo "Please read the INSTALL file before installing"
68 if [ "$rtfm" != n
]; then
70 echo "Please read the INSTALL file before installing"
73 echo "Do you *swear* that you really read the INSTALL file?"
76 if [ "$rtfm" != y
]; then
77 echo "Please read the INSTALL file before installing"
80 echo "Last chance. You will not get help if you have some problem"
81 echo "because you didn't read that file. Even if your computer explodes."
82 echo "Do you *really* read it?"
85 if [ "$rtfm" != y
]; then
86 echo "Please read the INSTALL file before installing"
90 echo "Ok, you have been warned."
95 if test "$USER" != "root"; then
97 echo "Warning: you must run this script as root to install"
98 echo "Window Maker. Hit <Control>-<C> to quit this script."
105 echo "Option Selection"
106 echo "================"
108 ######################## KDE
110 echo "Do you want KDE support?"
113 if [ "$kde" = y
-o "$kde" = Y
]; then
114 OPTIONS
="$OPTIONS --enable-kde"
117 ######################## GNOME
119 echo "Do you want GNOME support?"
122 if [ "$gnome" = y
-o "$gnome" = Y
]; then
123 OPTIONS
="$OPTIONS --enable-gnome"
126 ######################## OLWM
128 echo "Do you want OPEN LOOK(tm)/olwm support?"
131 if [ "$olwm" = y
-o "$olwm" = Y
]; then
132 OPTIONS
="$OPTIONS --enable-openlook"
135 ######################## NLS
137 echo "Do you want National Language Support?"
141 if [ "$NLS" = "y" -o "$NLS" = "Y" ]; then
143 echo "The supported locales are:"
144 ling
=` (cd po; /bin/ls *.po) `
147 lname
=`(cd po; grep Language-Team $l|cut -f 2 -d: |cut -f 2 -d\ )`
149 lcode
=`basename $l .po`
150 ALL_LINGUAS
="$ALL_LINGUAS $lcode"
153 echo "Type in the locales you want (all will install everything) [none]"
155 if test "$foo" = "all"; then
156 LINGUAS
="$ALL_LINGUAS"
160 echo "Selected locales are: $LINGUAS"
163 for i
in $LINGUAS; do
165 for b
in $ALL_LINGUAS; do
166 if test "$b" = "$i"; then
171 if test "$ok" = "0"; then
173 echo "$i is not a supported locale"
178 if [ "$MB" = "" -a "$i" = "ja" -o "$i" = "ko" ]; then
180 echo "A language you selected needs multi-byte character support"
181 echo "Do you want to enable it?"
184 if [ "$MB" = "y" -o "$MB" = "Y" ]; then
185 OPTIONS
="$OPTIONS --enable-kanji"
190 echo "Where do you want to put the message files? [$NLSDIR]"
193 if test "x$foo" != "x"; then
197 ##################### Installation path
200 while [ $done = 0 ]; do
202 echo "Where do you want to install Window Maker? [$PREFIX]"
203 echo "Don't change it if you don't know what you're doing."
204 if test "$USER" != "root"; then
205 echo "Make sure to specify a path where you have write permission."
207 echo "(The default will put Window Maker in $PREFIX/bin, $PREFIX/lib etc.)"
210 if test "x$foo" != "x"; then
211 if [ "$foo" = "y" -o "$foo" = "n" ]; then
213 echo "Hmm... I don't think you really want to install Window Maker into \"$foo\""
223 echo " $PREFIX/bin must be in the PATH environment variable"
224 echo "of all users who will use Window Maker"
228 OPTIONS
="$OPTIONS --prefix=$PREFIX"
232 ##################### Configure
233 echo "--------------------------"
234 echo "Configuring Window Maker..."
235 echo "--------------------------"
236 if [ `uname -s` = "SCO_SV" ]; then
237 echo "CFLAGS=\"$CFLAGS -belf -DANSICPP\" ./configure $OPTIONS"
239 CFLAGS
="$CFLAGS -belf -DANSICPP"
241 perform .
/configure
$OPTIONS
243 echo "CFLAGS=\"$CFLAGS $GCCFLAGS\" ./configure $OPTIONS"
245 CFLAGS
="$CFLAGS $GCCFLAGS"
247 perform .
/configure
$OPTIONS
251 #################### Compile
252 echo "-------------------------"
253 echo "Compiling Window Maker..."
254 echo "-------------------------"
255 (cd src
; perform
make clean
)
258 echo "--------------------------"
259 echo "Installing Window Maker..."
260 echo "--------------------------"
264 if [ `uname -s` = "Linux" ]; then
266 echo " Make sure $PREFIX/lib is in the /etc/ld.so.conf file"
271 echo "Installation Finished!"
273 echo "Now, each user that wishes to use WindowMaker must run the wmaker.inst"
274 echo "script that was just installed."
277 if test "$NLS" = "Y"; then
278 echo "Don't forget to set the LANG environment variable to your locale"