3
# oldconfig.sh: convert a config.param file and execute configure
15
if test x"$1" = xy; then
17
elif test x"$1" = xn; then
20
if test x"$val" != x; then
27
if test x"$1" != x; then
32
if test x"$val" != x; then
39
if test x"$1" != x && eval "test -z \"\$$1\"" > /dev/null; then
40
echo "$1='$2'; export $1"
41
eval "$1='$2'; export $1"
46
topdir="`dirname $0`/.."
48
if test x"$1" = x-v; then
52
if test x"$1" = x; then
53
echo "USAGE: $0 [-v] <config.param file>"
54
echo " option: -v ... echo only"
58
if expr "$1" : '.*/' > /dev/null; then
63
. "$conffile" # read config.param
66
libdir=`echo $libdir | sed 's@/w3m[^/]*/cgi-bin@@'`
67
libexecdir=`echo $auxbindir | sed 's@/w3m[^/]*@@'`
68
datadir=`echo $helpdir | sed 's@/w3m[^/]*@@'`
69
sysconfdir=`echo $sysconfdir | sed 's@/w3m[^/]*@@'`
70
opt_push "--bindir='$bindir'"
71
opt_push "--libexecdir='$libexecdir'"
72
opt_push "--datadir='$datadir'"
73
opt_push "--sysconfdir='$sysconfdir'"
74
opt_push "--libdir='$libdir'"
75
opt_push "--mandir='$mandir'"
83
# *) echo "ERROR: Illegal model type (model=$dmodel)."
86
#opt_push "--enable-model=$val"
90
if test x$display_code != x; then
91
opt_push "--enable-japanese='$display_code'"
93
opt_push "--enable-japanese"
95
opt_enable_set "$kanji_symbols" kanjisymbols
101
opt_enable_set "$use_color" color
102
opt_enable_set "$use_ansi_color" ansi-color
103
opt_enable_set "$use_bg_color" bgcolor
104
if test x"$use_migemo" = xy; then
105
if test x"$def_migemo_command" != x; then
106
opt_push "--with-migemo='$def_migemo_command'"
108
elif test x"$use_migemo" = xn; then
109
opt_push "--without-migemo"
111
opt_enable_set "$use_mouse" mouse
112
opt_enable_set "$use_menu" menu
113
opt_enable_set "$use_cookie" cookie
114
opt_enable_set "$use_dict" dict
115
opt_enable_set "$use_history" history
116
opt_enable_set "$use_digest_auth" digest-auth
117
opt_enable_set "$use_nntp" nntp
118
opt_enable_set "$use_gopher" gopher
119
if test x"$use_lynx_key" = xy; then
120
opt_push "--enable-keymap=lynx"
122
opt_push "--enable-keymap=w3m"
124
opt_with_set "$ded" editor
125
opt_with_set "$dmail" mailer
126
opt_with_set "$dbrowser" browser
127
opt_enable_set "$use_help_cgi" help-cgi
128
opt_enable_set "$use_external_uri_loader" external-uri-loader
129
opt_enable_set "$use_w3mmailer" w3mmailer
130
opt_enable_set "$use_alarm" alarm
131
if test x"$use_image" = xy; then
134
if test x"$use_w3mimg_x11" = xy; then
137
if test x"$use_w3mimg_fb" = xy; then
138
if test x"$w3mimgdisplay_setuid" = xy; then
144
if test x"$val_x11" != x; then
145
if test x"$val_fb" != x; then
146
val="$val_x11,$val_fb"
150
elif test x"$val_fb" != x; then
154
if test x"$val" = x; then
155
opt_push "--enable-image"
157
opt_push "--enable-image='$val'"
160
opt_enable_set "$use_xface" xface
161
elif test x"$use_image" = xn; then
162
opt_push "--disable-image"
164
if test x"$dtermlib" != x; then
165
dtermlib=`echo "$dtermlib"|sed 's/^-l//'`
166
opt_with_set "$dtermlib" termlib
168
if test x"$use_ssl" = xy; then
169
opt_push "--with-ssl"
170
opt_enable_set "$use_ssl_verify" sslverify
171
elif test x"$use_ssl" = xn; then
172
opt_push "--without-ssl"
174
opt_enable_set "$use_ipv6" ipv6
177
env_set CFLAGS "$dcflags"
178
env_set LDFLAGS "$dldflags"
180
echo "( cd '$topdir' && sh configure ${OPT} )"
181
if test "${echo_only+set}" != set; then
182
echo "( cd '$topdir' && sh configure ${OPT} )" | sh