Mercurial > hg > xemacs-beta
comparison configure.ac @ 3003:fcf2f05d0c7a
[xemacs-hg @ 2005-10-20 12:37:42 by malcolmp]
Alias --enable configure options to --with. Update internals.texi to reflect
changes.
author | malcolmp |
---|---|
date | Thu, 20 Oct 2005 12:38:04 +0000 |
parents | fd7c5f4f2983 |
children | e4c2385012ba |
comparison
equal
deleted
inserted
replaced
3002:c64d760b2487 | 3003:fcf2f05d0c7a |
---|---|
13 ac_cpp='$CPP '"$xe_cppflags" | 13 ac_cpp='$CPP '"$xe_cppflags" |
14 ac_compile='$CC -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext >&AS_MESSAGE_LOG_FD' | 14 ac_compile='$CC -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext >&AS_MESSAGE_LOG_FD' |
15 ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&AS_MESSAGE_LOG_FD' | 15 ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&AS_MESSAGE_LOG_FD' |
16 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 16 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
17 ]) | 17 ]) |
18 | 18 dnl |
19 dnl ------------------------------------------------------------------------- | 19 dnl ------------------------------------------------------------------------- |
20 dnl Autoconf startup. | 20 dnl Autoconf startup. |
21 | 21 dnl |
22 dnl Due to a dependence on the implementation of certain internal autoconf | |
23 dnl macros, die if any version other than 2.59 is used. | |
22 AC_PREREQ(2.59)dnl | 24 AC_PREREQ(2.59)dnl |
25 m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [2.59]), 1, | |
26 [m4_fatal([This script can only be generated with autoconf 2.59])], [])dnl | |
23 AC_INIT(src/lisp.h)dnl | 27 AC_INIT(src/lisp.h)dnl |
24 | 28 dnl |
25 dnl ------------------------------------------------------------------------- | 29 dnl ------------------------------------------------------------------------- |
26 dnl Local copyright notices. | 30 dnl Local copyright notices. |
27 | 31 |
28 AC_COPYRIGHT( | 32 AC_COPYRIGHT( |
29 [#### Configuration script for XEmacs. Largely divergent from FSF. | 33 [#### Configuration script for XEmacs. Largely divergent from FSF. |
83 dnl \( \) group. Bleah. Remove the level config.status adds, at least. | 87 dnl \( \) group. Bleah. Remove the level config.status adds, at least. |
84 dnl | 88 dnl |
85 dnl If there's reason to prefer $0 over this, make sure you fix all the | 89 dnl If there's reason to prefer $0 over this, make sure you fix all the |
86 dnl uses in this script!! | 90 dnl uses in this script!! |
87 progname="`echo $0 | sed 's:^\./\./:\./:'`" | 91 progname="`echo $0 | sed 's:^\./\./:\./:'`" |
88 | 92 dnl |
89 dnl ------------------------------------------------------------------------- | 93 dnl ------------------------------------------------------------------------- |
90 dnl Local macros | 94 dnl Local macros |
91 | 95 dnl |
92 define([USAGE_ERROR], | 96 define([USAGE_ERROR], |
93 [(echo "$progname: Usage error:" | 97 [(echo "$progname: Usage error:" |
94 echo " " $1 | 98 echo " " $1 |
95 echo " Use \`$progname --help' to show usage.") >&2 && exit 1]) | 99 echo " Use \`$progname --help' to show usage.") >&2 && exit 1])dnl |
96 | 100 dnl |
97 dnl PRINT_VAR(var var ...) prints values of shell variables | 101 dnl PRINT_VAR(var var ...) prints values of shell variables |
98 define([PRINT_VAR],[for var in patsubst([$1],[[ | 102 define([PRINT_VAR],[for var in patsubst([$1],[[ |
99 ]+],[ ]); do eval "echo \"$var = '\$$var'\""; done]) | 103 ]+],[ ]); do eval "echo \"$var = '\$$var'\""; done])dnl |
100 | 104 dnl |
101 dnl XE_ADD_OBJS(foo.o) | 105 dnl XE_ADD_OBJS(foo.o) |
102 define([XE_ADD_OBJS], | 106 define([XE_ADD_OBJS], |
103 [extra_objs="$extra_objs [$1]" && dnl | 107 [extra_objs="$extra_objs [$1]" && dnl |
104 if test "$verbose" = "yes"; then | 108 if test "$verbose" = "yes"; then |
105 echo " xemacs will be linked with \"[$1]\"" | 109 echo " xemacs will be linked with \"[$1]\"" |
106 fi])dnl XE_ADD_OBJS | 110 fi])dnl XE_ADD_OBJS |
107 | 111 dnl |
108 dnl XE_APPEND(value, varname) | 112 dnl XE_APPEND(value, varname) |
109 define([XE_APPEND], | 113 define([XE_APPEND], |
110 [[$2]="$[$2] [$1]" && dnl | 114 [[$2]="$[$2] [$1]" && dnl |
111 if test "$verbose" = "yes"; then echo " Appending \"[$1]\" to \$[$2]"; fi]) | 115 if test "$verbose" = "yes"; then echo " Appending \"[$1]\" to \$[$2]"; fi])dnl |
112 | 116 dnl |
113 dnl XE_PREPEND(value, varname) | 117 dnl XE_PREPEND(value, varname) |
114 define([XE_PREPEND], | 118 define([XE_PREPEND], |
115 [[$2]="[$1] $[$2]" && dnl | 119 [[$2]="[$1] $[$2]" && dnl |
116 if test "$verbose" = "yes"; then echo " Prepending \"[$1]\" to \$[$2]"; fi]) | 120 if test "$verbose" = "yes"; then echo " Prepending \"[$1]\" to \$[$2]"; fi])dnl |
117 | 121 dnl |
118 dnl XE_DIE(message) | 122 dnl XE_DIE(message) |
119 define([XE_DIE], [{ echo "Error:" $1 >&2; exit 1; }]) | 123 define([XE_DIE], [{ echo "Error:" $1 >&2; exit 1; }])dnl |
120 | 124 dnl |
121 dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2) | 125 dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2) |
122 define([XE_CHECK_FEATURE_DEPENDENCY], | 126 define([XE_CHECK_FEATURE_DEPENDENCY], |
123 [if test "$with_[$1] $with_[$2]" = "yes no"; then | 127 [if test "$with_[$1] $with_[$2]" = "yes no"; then |
124 USAGE_ERROR("--with-[$1] requires --with-[$2]") | 128 USAGE_ERROR("--with-[$1] requires --with-[$2]") |
125 elif test "$with_[$2]" = "no" ; then with_[$1]=no | 129 elif test "$with_[$2]" = "no" ; then with_[$1]=no |
126 elif test "$with_[$1]" = "yes"; then with_[$2]=yes | 130 elif test "$with_[$1]" = "yes"; then with_[$2]=yes |
127 fi | 131 fi |
128 ]) | 132 ])dnl |
129 | 133 dnl |
130 dnl XE_STRIP_4TH_COMPONENT(var) | 134 dnl XE_STRIP_4TH_COMPONENT(var) |
131 dnl Changes i986-pc-linux-gnu to i986-pc-linux, as God (not RMS) intended. | 135 dnl Changes i986-pc-linux-gnu to i986-pc-linux, as God (not RMS) intended. |
132 define([XE_STRIP_4TH_COMPONENT], | 136 define([XE_STRIP_4TH_COMPONENT], |
133 [$1=`echo "$$1" | sed '[s/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/]'`]) | 137 [$1=`echo "$$1" | sed '[s/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/]'`])dnl |
134 | 138 dnl |
135 dnl Do our best to deal with automounter brokenness | 139 dnl Do our best to deal with automounter brokenness |
136 dnl CANONICALIZE_PATH(varname) | 140 dnl CANONICALIZE_PATH(varname) |
137 define([CANONICALIZE_PATH], | 141 define([CANONICALIZE_PATH], |
138 [if test -d "/net"; then | 142 [if test -d "/net"; then |
139 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi | 143 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi |
140 $1=`echo "[$]$1" | \ | 144 $1=`echo "[$]$1" | \ |
141 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` | 145 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` |
142 fi])dnl | 146 fi])dnl |
143 | 147 dnl |
144 dnl XE_PROTECT_LINKER_FLAGS(shell_var) | 148 dnl XE_PROTECT_LINKER_FLAGS(shell_var) |
145 define([XE_PROTECT_LINKER_FLAGS], [ | 149 define([XE_PROTECT_LINKER_FLAGS], [ |
146 if test "$GCC" = "yes"; then | 150 if test "$GCC" = "yes"; then |
147 set x $[$1]; shift; [$1]="" | 151 set x $[$1]; shift; [$1]="" |
148 while test -n "[$]1"; do | 152 while test -n "[$]1"; do |
153 * ) [$1]="$[$1] -Xlinker [$]1" ;; | 157 * ) [$1]="$[$1] -Xlinker [$]1" ;; |
154 esac | 158 esac |
155 shift | 159 shift |
156 done | 160 done |
157 fi])dnl | 161 fi])dnl |
158 | 162 dnl |
159 dnl Allow use of either ":" or spaces for lists of directories | 163 dnl Allow use of either ":" or spaces for lists of directories |
160 define(COLON_TO_SPACE, | 164 define(COLON_TO_SPACE, |
161 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl | 165 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl |
162 | 166 dnl |
163 dnl XE_ADD_RUNPATH_DIR(directory) | 167 dnl XE_ADD_RUNPATH_DIR(directory) |
164 define([XE_ADD_RUNPATH_DIR],[{ | 168 define([XE_ADD_RUNPATH_DIR],[{ |
165 xe_runpath_dir=$1 | 169 xe_runpath_dir=$1 |
166 dnl PRINT_VAR(ld_switch_site ld_switch_x_site runpath xe_runpath_dir LD_RUN_PATH xe_ldflags) | 170 dnl PRINT_VAR(ld_switch_site ld_switch_x_site runpath xe_runpath_dir LD_RUN_PATH xe_ldflags) |
167 test "$xe_runpath_dir" != "/lib" -a \ | 171 test "$xe_runpath_dir" != "/lib" -a \ |
168 "$xe_runpath_dir" != "/usr/lib" -a \ | 172 "$xe_runpath_dir" != "/usr/lib" -a \ |
169 -n "`ls ${xe_runpath_dir}/*.s[[ol]] 2>/dev/null`" && \ | 173 -n "`ls ${xe_runpath_dir}/*.s[[ol]] 2>/dev/null`" && \ |
170 eval "$xe_add_unique_runpath_dir" | 174 eval "$xe_add_unique_runpath_dir" |
171 }])dnl | 175 }])dnl |
172 | 176 dnl |
173 dnl XE_COMPUTE_RUNPATH() | 177 dnl XE_COMPUTE_RUNPATH() |
174 define([XE_COMPUTE_RUNPATH],[ | 178 define([XE_COMPUTE_RUNPATH],[ |
175 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | 179 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then |
176 dnl Remove runtime paths from current ld switches | 180 dnl Remove runtime paths from current ld switches |
177 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[[^ ]]*//g"` | 181 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[[^ ]]*//g"` |
215 XE_PROTECT_LINKER_FLAGS(ld_switch_run) | 219 XE_PROTECT_LINKER_FLAGS(ld_switch_run) |
216 test "$verbose" = "yes" && echo "Setting runpath to $runpath" | 220 test "$verbose" = "yes" && echo "Setting runpath to $runpath" |
217 fi | 221 fi |
218 fi | 222 fi |
219 ])dnl | 223 ])dnl |
220 | 224 dnl |
221 dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n | 225 dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n |
222 dnl So we use the following instead. | 226 dnl So we use the following instead. |
223 dnl XE_SPACE(var, words) | 227 dnl XE_SPACE(var, words) |
224 define([XE_SPACE],[ | 228 define([XE_SPACE],[ |
225 T="" | 229 T="" |
226 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | 230 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done |
227 $1="$T" | 231 $1="$T" |
228 ])dnl XE_SPACE | 232 ])dnl XE_SPACE |
229 | 233 dnl |
234 dnl XE_MERGED_ARG(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) | |
235 dnl ------------------------------------------------------------------------ | |
236 dnl | |
237 dnl Arguments that can be specified with either --enable or --with. The | |
238 dnl majority of XEmacs arguments do not fit neatly into the division between | |
239 dnl --enable and --with, so allow those to be specified by either argument. | |
240 dnl The value is stored in both enable_FEATURE and with_FEATURE. | |
241 AC_DEFUN([XE_MERGED_ARG], | |
242 [m4_divert_once([HELP_ENABLE], [[ | |
243 Optional Features: | |
244 --with-FEATURE[=ARG] include FEATURE [ARG=yes] | |
245 --enable-FEATURE[=ARG] alias for --with-FEATURE | |
246 --without-FEATURE do not use FEATURE (same as --with-FEATURE=no) | |
247 --disable-FEATURE alias for --without-FEATURE]])dnl | |
248 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl | |
249 # If --with-$1 or --without-$1 were given then copy the value to the | |
250 # equivalent enable_$1 variable. | |
251 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then | |
252 echo $1 Setting enable to "[$with_]m4_bpatsubst([$1], -, _)" | |
253 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)" | |
254 fi; | |
255 # If -enable-$1 or --disable-$1 were given then copy the value to the | |
256 # equivalent with_$1 variable. | |
257 if test "[${enable_]m4_bpatsubst([$1], -, _)+set}" = set; then | |
258 echo $1 Setting with to "[$enable_]m4_bpatsubst([$1], -, _)" | |
259 [with_]m4_bpatsubst([$1], -, _)="[$enable_]m4_bpatsubst([$1], -, _)" | |
260 fi; | |
261 # Check whether --with-$1 or --without-$1 was given. | |
262 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then | |
263 enableval="[$with_]m4_bpatsubst([$1], -, _)" | |
264 withval="[$with_]m4_bpatsubst([$1], -, _)" | |
265 $3 | |
266 m4_ifvaln([$4], [else | |
267 $4])dnl | |
268 fi; dnl | |
269 ])dnl XE_MERGED_ARG | |
270 dnl | |
230 dnl XEmacs keyword option support | 271 dnl XEmacs keyword option support |
231 dnl ============================= | 272 dnl ============================= |
232 dnl | 273 dnl |
233 dnl A "keyword" option is one that accepts one of a number of pre-defined | 274 dnl A "keyword" option is one that accepts one of a number of pre-defined |
234 dnl values. For example --with-mail-locking=flock. | 275 dnl values. For example --with-mail-locking=flock. |
247 dnl found then an error is generated. | 288 dnl found then an error is generated. |
248 dnl | 289 dnl |
249 define([XE_PARSE_KEYWORD_OPTION], | 290 define([XE_PARSE_KEYWORD_OPTION], |
250 [_[$1]_bogus=yes | 291 [_[$1]_bogus=yes |
251 for x in XE_KEYWORD_LIST ; do | 292 for x in XE_KEYWORD_LIST ; do |
252 if test $x = $[$1] ; then | 293 if test $x = $with_[$1] ; then |
253 _[$1]_bogus=no | 294 _[$1]_bogus=no |
254 fi | 295 fi |
255 done | 296 done |
256 if test "$_[$1]_bogus" = "yes" ; then | 297 if test "$_[$1]_bogus" = "yes" ; then |
257 USAGE_ERROR(["The [$2] option must have one of these values: m4_translit(XE_KEYWORD_VALUES,[:],[,])."]) | 298 USAGE_ERROR(["The [$2] option must have one of these values: m4_translit(XE_KEYWORD_VALUES,[:],[,])."]) |
258 fi | 299 fi |
259 unset _[$1]_bogus | 300 unset _[$1]_bogus |
260 undefine([XE_KEYWORD_LIST])dnl | 301 undefine([XE_KEYWORD_LIST])dnl |
261 undefine([XE_KEYWORD_VALUES])]) | 302 undefine([XE_KEYWORD_VALUES])])dnl |
262 dnl | 303 dnl |
263 dnl XE_KEYWORD(keyword) | 304 dnl XE_KEYWORD(keyword) |
264 dnl -------------------------------- | 305 dnl -------------------------------- |
265 dnl | 306 dnl |
266 dnl | 307 dnl |
267 define([XE_KEYWORD], | 308 define([XE_KEYWORD], |
268 [m4_append([XE_KEYWORD_LIST],[$1],[ ])dnl | 309 [m4_append([XE_KEYWORD_LIST],[$1],[ ])dnl |
269 dnl Separate with a ':' instead of a ',' (see the parsing code above) to avoid | 310 dnl Separate with a ':' instead of a ',' (see the parsing code above) to avoid |
270 dnl confusion with marco parameter lists. | 311 dnl confusion with marco parameter lists. |
271 m4_append([XE_KEYWORD_VALUES],[\`$1'],[:])dnl | 312 m4_append([XE_KEYWORD_VALUES],[\`$1'],[:])dnl |
272 ]) | 313 ])dnl |
273 dnl | 314 dnl |
274 dnl XE_KEYWORD_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, | 315 dnl XE_KEYWORD_ARG(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, |
275 dnl [XE_KEYWORD(keyword), ....]) | 316 dnl [XE_KEYWORD(keyword), ....]) |
276 dnl -------------------------------------------------------------------------- | 317 dnl -------------------------------------------------------------------------- |
277 dnl | 318 dnl |
278 dnl Expanded version of AC_ARG_WITH for keyword options. All the parameters | 319 dnl Expanded version of XE_MERGED_ARG for keyword options. All the parameters |
279 dnl are required. | 320 dnl are required. |
280 dnl | 321 dnl |
281 define([XE_KEYWORD_ARG_WITH], | 322 define([XE_KEYWORD_ARG], |
282 [m4_map([XE_KEYWORD],m4_shiftn(4, $@)) | 323 [m4_map([XE_KEYWORD],m4_shiftn(4, $@)) |
283 AC_ARG_WITH([$1],[$2], | 324 XE_MERGED_ARG([$1],[$2], |
284 [XE_PARSE_KEYWORD_OPTION([with_]patsubst([$1], -, _), [--with-$1]) | 325 [XE_PARSE_KEYWORD_OPTION(patsubst([$1], -, _), [--with-$1]) |
285 $3 | 326 $3 |
286 ],[$4])]) | 327 ],[$4])])dnl |
287 dnl | |
288 dnl XE_KEYWORD_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, | |
289 dnl [XE_KEYWORD(keyword), ....]) | |
290 dnl -------------------------------------------------------------------------- | |
291 dnl | |
292 dnl Expanded version of AC_ARG_ENABLE for keyword options. All the parameters | |
293 dnl are required. | |
294 dnl | |
295 define([XE_KEYWORD_ARG_ENABLE], | |
296 [m4_map([XE_KEYWORD],m4_shiftn(4, $@)) | |
297 AC_ARG_ENABLE([$1],[$2], | |
298 [XE_PARSE_KEYWORD_OPTION([enable_]patsubst([$1], -, _), [--enable-$1]) | |
299 $3 | |
300 ],[$4])]) | |
301 dnl | 328 dnl |
302 dnl XEmacs complex option support | 329 dnl XEmacs complex option support |
303 dnl ============================= | 330 dnl ============================= |
304 dnl | 331 dnl |
305 dnl A "complex option" is one that takes a number of related values. | 332 dnl A "complex option" is one that takes a number of related values. |
318 dnl | 345 dnl |
319 dnl Internal macro create the option's shell variable containing the default | 346 dnl Internal macro create the option's shell variable containing the default |
320 dnl value and to note the values in an option list. | 347 dnl value and to note the values in an option list. |
321 dnl | 348 dnl |
322 define([XE_EXPAND_COMPLEX_OPTION], | 349 define([XE_EXPAND_COMPLEX_OPTION], |
323 [[$1]_[$2]=[$3] | 350 [with_[$1]_[$2]=[$3] |
351 enable_[$1]_[$2]=[$3] | |
324 m4_append([XE_COMPONENT_LIST],[$2],[ ])dnl | 352 m4_append([XE_COMPONENT_LIST],[$2],[ ])dnl |
325 dnl Separate with a ':' instead of a ',' (see <prefix>_default below) to avoid | 353 dnl Separate with a ':' instead of a ',' (see <prefix>_default below) to avoid |
326 dnl confusion with marco parameter lists. | 354 dnl confusion with marco parameter lists. |
327 m4_append([XE_COMPONENT_DEFAULT],[m4_if([$3],no,no)[$2]],[:])dnl | 355 m4_append([XE_COMPONENT_DEFAULT],[m4_if([$3],no,no)[$2]],[:])dnl |
328 ])dnl | 356 ])dnl |
333 dnl Internal macro to recursively expand all the options in the option list. | 361 dnl Internal macro to recursively expand all the options in the option list. |
334 dnl | 362 dnl |
335 define([XE_EXPAND_COMPLEX_OPTIONS], | 363 define([XE_EXPAND_COMPLEX_OPTIONS], |
336 [m4_if([$2], [[]], [], | 364 [m4_if([$2], [[]], [], |
337 [XE_EXPAND_COMPLEX_OPTION([$1], m4_fst($2))[]dnl | 365 [XE_EXPAND_COMPLEX_OPTION([$1], m4_fst($2))[]dnl |
338 XE_EXPAND_COMPLEX_OPTIONS([$1], m4_cdr($2))])]) | 366 XE_EXPAND_COMPLEX_OPTIONS([$1], m4_cdr($2))])])dnl |
339 dnl | 367 dnl |
340 dnl XE_INIT_COMPLEX_OPTION(prefix, option_list) | 368 dnl XE_INIT_COMPLEX_OPTION(prefix, option_list) |
341 dnl ------------------------------------------- | 369 dnl ------------------------------------------- |
342 dnl | 370 dnl |
343 dnl Internal macro to initialise the complex option shell variables. | 371 dnl Internal macro to initialise the complex option shell variables. |
345 dnl option. <prefix>_types contains a space-separated list of all the options | 373 dnl option. <prefix>_types contains a space-separated list of all the options |
346 dnl and <prefix>_default contains a comma-separated list of all the default | 374 dnl and <prefix>_default contains a comma-separated list of all the default |
347 dnl values. | 375 dnl values. |
348 dnl | 376 dnl |
349 define([XE_INIT_COMPLEX_OPTION], | 377 define([XE_INIT_COMPLEX_OPTION], |
350 [[$1]_notfirst="" | 378 [_[$1]_notfirst="" |
351 dnl | 379 dnl |
352 XE_EXPAND_COMPLEX_OPTIONS($@) | 380 XE_EXPAND_COMPLEX_OPTIONS($@) |
353 _[$1]_types="XE_COMPONENT_LIST" | 381 _[$1]_types="XE_COMPONENT_LIST" |
354 _[$1]_default="m4_translit(XE_COMPONENT_DEFAULT,[:],[,])" | 382 _[$1]_default="m4_translit(XE_COMPONENT_DEFAULT,[:],[,])" |
355 dnl Undefine these macros so that they can be reused by later complex | 383 dnl Undefine these macros so that they can be reused by later complex |
356 dnl options. | 384 dnl options. |
357 undefine([XE_COMPONENT_LIST]) | 385 undefine([XE_COMPONENT_LIST]) |
358 undefine([XE_COMPONENT_DEFAULT]) | 386 undefine([XE_COMPONENT_DEFAULT]) |
359 ]) | 387 ])dnl |
360 | 388 dnl |
361 dnl XE_PARSE_COMPLEX_OPTION(prefix, cmdline-flag) | 389 dnl XE_PARSE_COMPLEX_OPTION(prefix, cmdline-flag) |
362 dnl --------------------------------------------- | 390 dnl --------------------------------------------- |
363 dnl | 391 dnl |
364 dnl Internal macro to parse the option values. If an undeclared option is | 392 dnl Internal macro to parse the option values. If an undeclared option is |
365 dnl found then an error is generated. | 393 dnl found then an error is generated. |
366 dnl | 394 dnl |
367 define([XE_PARSE_COMPLEX_OPTION], | 395 define([XE_PARSE_COMPLEX_OPTION], |
368 [for x in `echo "$[$1]" | sed -e 's/,/ /g'` ; do | 396 [for x in `echo "$with_[$1]" | sed -e 's/,/ /g'` ; do |
369 _[$1]_all_default="" | 397 _[$1]_all_default="" |
370 _[$1]_found="" | 398 _[$1]_found="" |
371 case "$x" in | 399 case "$x" in |
372 n | no | non | none ) _[$1]_all_default=no ;; | 400 n | no | non | none ) _[$1]_all_default=no ;; |
373 a | al | all | both ) _[$1]_all_default=yes ;; | 401 a | al | all | both ) _[$1]_all_default=yes ;; |
378 dnl echo "testing x='$x' against y='$y'" | 406 dnl echo "testing x='$x' against y='$y'" |
379 if test "$x" = "$y"; then | 407 if test "$x" = "$y"; then |
380 dnl echo "$x" = "$y" | 408 dnl echo "$x" = "$y" |
381 _[$1]_found=yes | 409 _[$1]_found=yes |
382 dnl echo eval `echo "[$1]_$y=yes"` | 410 dnl echo eval `echo "[$1]_$y=yes"` |
383 eval "[$1]_$y=yes" | 411 eval "with_[$1]_$y=yes" |
412 eval "enable_[$1]_$y=yes" | |
384 elif test "$x" = "no$y"; then | 413 elif test "$x" = "no$y"; then |
385 dnl echo "$x" = "no$y" | 414 dnl echo "$x" = "no$y" |
386 _[$1]_found=yes | 415 _[$1]_found=yes |
387 dnl echo eval `echo "[$1]_$y=no"` | 416 dnl echo eval `echo "[$1]_$y=no"` |
388 eval "[$1]_$y=no" | 417 eval "with_[$1]_$y=no" |
418 eval "enable_[$1]_$y=no" | |
389 fi | 419 fi |
390 done | 420 done |
391 test -z "$_[$1]_found" && _[$1]_bogus=yes | 421 test -z "$_[$1]_found" && _[$1]_bogus=yes |
392 fi | 422 fi |
393 if test "$_[$1]_bogus" = "yes" -o \ | 423 if test "$_[$1]_bogus" = "yes" -o \ |
403 fi | 433 fi |
404 _[$1]_notfirst=yes | 434 _[$1]_notfirst=yes |
405 done | 435 done |
406 unset _[$1]_bogus _[$1]_found _[$1]_notfirst _[$1]_types | 436 unset _[$1]_bogus _[$1]_found _[$1]_notfirst _[$1]_types |
407 unset _[$1]_default _[$1]_all_default x y | 437 unset _[$1]_default _[$1]_all_default x y |
408 ]) | 438 ])dnl |
409 | 439 dnl |
410 dnl XE_COMPLEX_OPTION(option, yesno) | 440 dnl XE_COMPLEX_OPTION(option, yesno) |
411 dnl -------------------------------- | 441 dnl -------------------------------- |
412 dnl | 442 dnl |
413 dnl Declare a complex option and its default value. The value MUST be either | 443 dnl Declare a complex option and its default value. The value MUST be either |
414 dnl yes or no or "" (which means maybe). | 444 dnl yes or no or "" (which means maybe). |
421 dnl #### This doesn't read so well for alternative libraries like sound. | 451 dnl #### This doesn't read so well for alternative libraries like sound. |
422 dnl | 452 dnl |
423 define([XE_COMPLEX_OPTION_HELP_STRING], | 453 define([XE_COMPLEX_OPTION_HELP_STRING], |
424 [AC_HELP_STRING([$1],[Compile with support for $2. Components that can use | 454 [AC_HELP_STRING([$1],[Compile with support for $2. Components that can use |
425 $3 are $4. Prefix component with `no' to disable its use of $3. Requires | 455 $3 are $4. Prefix component with `no' to disable its use of $3. Requires |
426 $5 support. Default is $6.])]) | 456 $5 support. Default is $6.])])dnl |
427 dnl | 457 dnl |
428 dnl XE_COMPLEX_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, | 458 dnl XE_COMPLEX_ARG(PACKAGE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, |
429 dnl [XE_COMPLEX_OPTION(a,yes), ....]) | 459 dnl [XE_COMPLEX_OPTION(a,yes), ....]) |
430 dnl -------------------------------------------------------------------------- | 460 dnl -------------------------------------------------------------------------- |
431 dnl | 461 dnl |
432 dnl Expanded version of AC_ARG_WITH for complex options. All the parameters | 462 dnl Expanded version of XE_MERGED_ARG for complex options. All the parameters |
433 dnl are required. | 463 dnl are required. |
434 dnl | 464 dnl |
435 define([XE_COMPLEX_ARG_WITH], | 465 define([XE_COMPLEX_ARG], |
436 [XE_INIT_COMPLEX_OPTION([with_]patsubst([$1], -, _), m4_shiftn(4, $@)) | 466 [XE_INIT_COMPLEX_OPTION(patsubst([$1], -, _), m4_shiftn(4, $@)) |
437 AC_ARG_WITH([$1],[$2], | 467 XE_MERGED_ARG([$1],[$2], |
438 [XE_PARSE_COMPLEX_OPTION([with_]patsubst([$1], -, _), [--with-$1]) | 468 [XE_PARSE_COMPLEX_OPTION(patsubst([$1], -, _), [--with-$1]) |
439 $3 | 469 $3 |
440 ],[$4])]) | 470 ],[$4])])dnl |
441 dnl | |
442 dnl XE_COMPLEX_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE, ACTION-IF-FALSE, | |
443 dnl [XE_COMPLEX_OPTION, ....]) | |
444 dnl -------------------------------------------------------------------------- | |
445 dnl | |
446 dnl Expanded version of AC_ARG_ENABLE for complex options. All the parameters | |
447 dnl are required. | |
448 dnl | |
449 define([XE_COMPLEX_ARG_ENABLE], | |
450 [XE_INIT_COMPLEX_OPTION([enable_]patsubst([$1], -, _), m4_shiftn(4, $@)) | |
451 AC_ARG_ENABLE([$1],[$2], | |
452 [XE_PARSE_COMPLEX_OPTION([enable_]patsubst([$1], -, _), [--enable-$1]) | |
453 $3 | |
454 ],[$4])]) | |
455 dnl | 471 dnl |
456 dnl ------------------------------------------------------------------------- | 472 dnl ------------------------------------------------------------------------- |
457 XE_APPEND(lib-src, MAKE_SUBDIR) | 473 XE_APPEND(lib-src, MAKE_SUBDIR) |
458 XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR) | 474 XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR) |
459 with_dragndrop_default="no" | 475 with_dragndrop_default="no" |
460 dnl ------------------------------------------------------------------------- | 476 dnl ------------------------------------------------------------------------- |
461 dnl Command line argument processing. | 477 dnl Command line argument processing. |
462 dnl Note that AC_HELP_STRING compresses whitespace, wraps, and indents the | 478 dnl Note that AC_HELP_STRING compresses whitespace, wraps, and indents the |
463 dnl string to fit the --help display; there's no need to preformat. | 479 dnl string to fit the --help display; there's no need to preformat. |
464 dnl | 480 dnl |
465 dnl Error-checking on old-style flags | |
466 AC_ARG_WITH([mule],[],[XE_DIE([--enable-mule, NOT --with-mule])],[]) | |
467 AC_ARG_WITH([menubars],[],[XE_DIE([--enable-menubars, NOT --with-menubars])],[]) | |
468 AC_ARG_WITH([scrollbars],[],[XE_DIE([--enable-scrollbars, NOT --with-scrollbars])],[]) | |
469 AC_ARG_WITH([dialogs],[],[XE_DIE([--enable-dialogs, NOT --with-dialogs])],[]) | |
470 AC_ARG_WITH([widgets],[],[XE_DIE([--enable-widgets, NOT --with-widgets])],[]) | |
471 AC_ARG_WITH([sound],[],[XE_DIE([--enable-sound, NOT --with-sound])],[]) | |
472 AC_ARG_WITH([default-eol-detection],[],[XE_DIE([--enable-default-eol-detection, NOT --with-default-eol-detection])],[]) | |
473 AC_ARG_WITH([clash-detection],[],[XE_DIE([--enable-clash-detection, NOT --with-clash-detection])],[]) | |
474 AC_ARG_WITH([database],[],[XE_DIE([--enable-database, NOT --with-database])],[]) | |
475 AC_ARG_WITH([modules],[],[XE_DIE([--enable-modules, NOT --with-modules])],[]) | |
476 AC_ARG_WITH([toolbars],[],[XE_DIE([--enable-toolbars, NOT --with-toolbars])],[]) | |
477 | |
478 dnl I think these will be caught by autoconf internal checks, | 481 dnl I think these will be caught by autoconf internal checks, |
479 dnl only --with-* are unchecked | 482 dnl only --with-* are unchecked |
480 dnl --external-widget --enable-external-widget | 483 dnl --external-widget --enable-external-widget |
481 dnl --native-sound-lib=LIB --with-native-sound-lib | 484 dnl --native-sound-lib=LIB --with-native-sound-lib |
482 dnl --mail-locking=TYPE --with-mail-locking | 485 dnl --mail-locking=TYPE --with-mail-locking |
487 dnl --memory-usage-stats --enable-memory-usage-stats | 490 dnl --memory-usage-stats --enable-memory-usage-stats |
488 dnl --quick-build --enable-quick-build | 491 dnl --quick-build --enable-quick-build |
489 dnl --use-union-type --enable-union-type | 492 dnl --use-union-type --enable-union-type |
490 dnl --pdump --enable-pdump | 493 dnl --pdump --enable-pdump |
491 dnl --use-kkcc --enable-kkcc | 494 dnl --use-kkcc --enable-kkcc |
492 | 495 dnl |
493 dnl parse flags | 496 dnl parse flags |
494 AC_ARG_WITH([prefix], | 497 XE_MERGED_ARG([prefix], |
495 AC_HELP_STRING([--with-prefix=no],[Don't compile the value for `prefix' into the executable.]), | 498 AC_HELP_STRING([--with-prefix=no],[Don't compile the value for `prefix' into the executable.]), |
496 [true], [with_prefix=yes]) | 499 [true], [with_prefix=yes]) |
497 AC_ARG_WITH([site-lisp], | 500 XE_MERGED_ARG([site-lisp], |
498 AC_HELP_STRING([--with-site-lisp=no],[Allow for a site-lisp directory in the XEmacs hierarchy searched before the installation packages.]), | 501 AC_HELP_STRING([--with-site-lisp=no],[Allow for a site-lisp directory in the XEmacs hierarchy searched before the installation packages.]), |
499 [true], [with_site_lisp=no]) | 502 [true], [with_site_lisp=no]) |
500 AC_ARG_WITH([site-modules], | 503 XE_MERGED_ARG([site-modules], |
501 AC_HELP_STRING([--with-site-modules],[Disable site-modules directory in the XEmacs hierarchy, which is searched before the installation modules.]), | 504 AC_HELP_STRING([--with-site-modules],[Disable site-modules directory in the XEmacs hierarchy, which is searched before the installation modules.]), |
502 [], []) | 505 [], []) |
503 AC_ARG_WITH([gtk], | 506 XE_MERGED_ARG([gtk], |
504 AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]), | 507 AC_HELP_STRING([--with-gtk],[Support GTK on the X Window System. (EXPERIMENTAL)]), |
505 [true], [with_gtk=no]) | 508 [true], [with_gtk=no]) |
506 AC_ARG_WITH([gnome], | 509 XE_MERGED_ARG([gnome], |
507 AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]), | 510 AC_HELP_STRING([--with-gnome],[Support GNOME on the X Window System. (EXPERIMENTAL)]), |
508 [true], [with_gnome=no]) | 511 [true], [with_gnome=no]) |
509 AC_ARG_WITH([msw], | 512 XE_MERGED_ARG([msw], |
510 AC_HELP_STRING([--with-msw],[Support MS Windows as a window system (only under Cygwin and MinGW). `--with-msw=no' may be needed on *nix systems with Wine installed.]), | 513 AC_HELP_STRING([--with-msw],[Support MS Windows as a window system (only under Cygwin and MinGW). `--with-msw=no' may be needed on *nix systems with Wine installed.]), |
511 [], []) | 514 [], []) |
512 AC_ARG_WITH([gcc], | 515 XE_MERGED_ARG([gcc], |
513 AC_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]), | 516 AC_HELP_STRING([--with-gcc],[Use GCC to compile XEmacs.]), |
514 [], []) | 517 [], []) |
515 AC_ARG_WITH([dynamic], | 518 XE_MERGED_ARG([dynamic], |
516 AC_HELP_STRING([--with-dynamic],[Link dynamically if supported by system. 'No' forces static linking.]), | 519 AC_HELP_STRING([--with-dynamic],[Link dynamically if supported by system. 'No' forces static linking.]), |
517 [], []) | 520 [], []) |
518 AC_ARG_WITH([ncurses], | 521 XE_MERGED_ARG([ncurses], |
519 AC_HELP_STRING([--with-ncurses],[Use the ncurses library for tty support.]), | 522 AC_HELP_STRING([--with-ncurses],[Use the ncurses library for tty support.]), |
520 [], []) | 523 [], []) |
521 AC_ARG_WITH([dnet], | 524 XE_MERGED_ARG([dnet], |
522 AC_HELP_STRING([--with-dnet],[Compile with support for DECnet.]), | 525 AC_HELP_STRING([--with-dnet],[Compile with support for DECnet.]), |
523 [], []) | 526 [], []) |
524 AC_ARG_WITH([socks], | 527 XE_MERGED_ARG([socks], |
525 AC_HELP_STRING([--with-socks],[Compile with support for SOCKS (an Internet proxy).]), | 528 AC_HELP_STRING([--with-socks],[Compile with support for SOCKS (an Internet proxy).]), |
526 [], []) | 529 [], []) |
527 AC_ARG_WITH([dragndrop], | 530 XE_MERGED_ARG([dragndrop], |
528 AC_HELP_STRING([--with-dragndrop],[Compile in the generic drag and drop API. This is automatically added if one of the drag and drop | 531 AC_HELP_STRING([--with-dragndrop],[Compile in the generic drag and drop API. This is automatically added if one of the drag and drop |
529 protocols is found (currently CDE, OffiX, MSWindows, | 532 protocols is found (currently CDE, OffiX, MSWindows, |
530 and GTK). | 533 and GTK). |
531 *WARNING* The Drag'n'drop support is under development | 534 *WARNING* The Drag'n'drop support is under development |
532 and is considered experimental.]), | 535 and is considered experimental.]), |
533 [], []) | 536 [], []) |
534 AC_ARG_WITH([cde], | 537 XE_MERGED_ARG([cde], |
535 AC_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), | 538 AC_HELP_STRING([--with-cde],[Compile in support for CDE drag and drop.]), |
536 [], []) | 539 [], []) |
537 AC_ARG_WITH([offix], | 540 XE_MERGED_ARG([offix], |
538 AC_HELP_STRING([--with-offix],[Compile in support for OffiX drag and drop. | 541 AC_HELP_STRING([--with-offix],[Compile in support for OffiX drag and drop. |
539 *WARNING* If you compile in OffiX, you may not be | 542 *WARNING* If you compile in OffiX, you may not be |
540 able to use multiple X displays success- | 543 able to use multiple X displays success- |
541 fully. If the two servers are from | 544 fully. If the two servers are from |
542 different vendors, the results may be | 545 different vendors, the results may be |
543 unpredictable.]), | 546 unpredictable.]), |
544 [], []) | 547 [], []) |
545 AC_ARG_WITH([gpm], | 548 XE_MERGED_ARG([gpm], |
546 AC_HELP_STRING([--with-gpm],[Compile in GPM mouse support for ttys.]), | 549 AC_HELP_STRING([--with-gpm],[Compile in GPM mouse support for ttys.]), |
547 [], []) | 550 [], []) |
548 AC_ARG_WITH([xpm], | 551 XE_MERGED_ARG([xpm], |
549 AC_HELP_STRING([--with-xpm],[Compile with support for XPM images. PRACTICALLY | 552 AC_HELP_STRING([--with-xpm],[Compile with support for XPM images. PRACTICALLY |
550 REQUIRED. Although this library is nonstandard and | 553 REQUIRED. Although this library is nonstandard and |
551 a real hassle to build, many basic things (e.g. | 554 a real hassle to build, many basic things (e.g. |
552 toolbars) depend on it, and you will run into | 555 toolbars) depend on it, and you will run into |
553 many problems without it.]), | 556 many problems without it.]), |
554 [], []) | 557 [], []) |
555 AC_ARG_WITH([xface], | 558 XE_MERGED_ARG([xface], |
556 AC_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. | 559 AC_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. |
557 Requires the compface package.]), | 560 Requires the compface package.]), |
558 [], []) | 561 [], []) |
559 AC_ARG_WITH([gif], | 562 XE_MERGED_ARG([gif], |
560 AC_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]), | 563 AC_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]), |
561 [], []) | 564 [], []) |
562 AC_ARG_WITH([jpeg], | 565 XE_MERGED_ARG([jpeg], |
563 AC_HELP_STRING([--with-jpeg],[Compile with support for JPEG images. Useful if | 566 AC_HELP_STRING([--with-jpeg],[Compile with support for JPEG images. Useful if |
564 you are using a mail, news reader, or web browser | 567 you are using a mail, news reader, or web browser |
565 in XEmacs, so that JPEG images can be displayed.]), | 568 in XEmacs, so that JPEG images can be displayed.]), |
566 [], []) | 569 [], []) |
567 AC_ARG_WITH([png], | 570 XE_MERGED_ARG([png], |
568 AC_HELP_STRING([--with-png],[Compile with support for PNG images. Recommended | 571 AC_HELP_STRING([--with-png],[Compile with support for PNG images. Recommended |
569 because the images on the About page are not viewable | 572 because the images on the About page are not viewable |
570 without it.]), | 573 without it.]), |
571 [], []) | 574 [], []) |
572 AC_ARG_WITH([tiff], | 575 XE_MERGED_ARG([tiff], |
573 AC_HELP_STRING([--with-tiff],[Compile with support for TIFF images. Possibly | 576 AC_HELP_STRING([--with-tiff],[Compile with support for TIFF images. Possibly |
574 useful, for the same reason as JPEG images.]), | 577 useful, for the same reason as JPEG images.]), |
575 [], []) | 578 [], []) |
576 AC_ARG_WITH([zlib], | 579 XE_MERGED_ARG([zlib], |
577 AC_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]), | 580 AC_HELP_STRING([--with-zlib],[Support inflate (de)compression internally.]), |
578 [], []) | 581 [], []) |
579 AC_ARG_WITH([wmcommand], | 582 XE_MERGED_ARG([wmcommand], |
580 AC_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will | 583 AC_HELP_STRING([--with-wmcommand],[Compile without realized leader window which will |
581 keep the WM_COMMAND property.]), | 584 keep the WM_COMMAND property.]), |
582 [], []) | 585 [], []) |
583 AC_ARG_WITH([xmu], | 586 XE_MERGED_ARG([xmu], |
584 AC_HELP_STRING([--with-xmu],[Use Xmu utilities. Default: yes.]), | 587 AC_HELP_STRING([--with-xmu],[Use Xmu utilities. Default: yes.]), |
585 [], []) | 588 [], []) |
586 AC_ARG_WITH([purify], | 589 XE_MERGED_ARG([purify], |
587 AC_HELP_STRING([--with-purify],[Support memory debugging using Purify.]), | 590 AC_HELP_STRING([--with-purify],[Support memory debugging using Purify.]), |
588 [], []) | 591 [], []) |
589 AC_ARG_WITH([quantify], | 592 XE_MERGED_ARG([quantify], |
590 AC_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), | 593 AC_HELP_STRING([--with-quantify],[Support performance debugging using Quantify.]), |
591 [], []) | 594 [], []) |
592 AC_ARG_ENABLE([toolbars], | 595 XE_MERGED_ARG([toolbars], |
593 AC_HELP_STRING([--with-toolbars],[Enable toolbar support. Default: yes.]), | 596 AC_HELP_STRING([--enable-toolbars],[Enable toolbar support. Default: yes.]), |
594 [], []) | 597 [], []) |
595 AC_ARG_WITH([tty], | 598 XE_MERGED_ARG([tty], |
596 AC_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]), | 599 AC_HELP_STRING([--with-tty],[Enable TTY support. Default: yes.]), |
597 [], []) | 600 [], []) |
598 AC_ARG_WITH([xfs], | 601 XE_MERGED_ARG([xfs], |
599 AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized | 602 AC_HELP_STRING([--with-xfs],[Enable XFontSet support for internationalized |
600 menubar. Incompatible with `--with-xim=motif'. | 603 menubar. Incompatible with `--with-xim=motif'. |
601 `--enable-menubars=lucid' (the default) is desirable.]), | 604 `--enable-menubars=lucid' (the default) is desirable.]), |
602 [], []) | 605 [], []) |
603 AC_ARG_ENABLE([mule], | 606 XE_MERGED_ARG([mule], |
604 AC_HELP_STRING([--enable-mule],[Compile with Mule (MUlti-Lingual Emacs) support, | 607 AC_HELP_STRING([--enable-mule],[Compile with Mule (Multi-Lingual Emacs) support, |
605 needed to support non-Latin-1 (including Asian) | 608 needed to support non-Latin-1 (including Asian) |
606 languages.]), | 609 languages.]), |
607 [], []) | 610 [], []) |
608 AC_ARG_ENABLE([default-eol-detection], | 611 XE_MERGED_ARG([default-eol-detection], |
609 AC_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type | 612 AC_HELP_STRING([--enable-default-eol-detection],[Turns on by default auto-detection of end-of-line type |
610 when reading a file. Applies to those platforms where | 613 when reading a file. Applies to those platforms where |
611 auto-detection is off by default (non-Mule Unix). Has | 614 auto-detection is off by default (non-Mule Unix). Has |
612 no effect otherwise.]), | 615 no effect otherwise.]), |
613 [], []) | 616 [], []) |
614 AC_ARG_WITH([canna], | 617 XE_MERGED_ARG([canna], |
615 AC_HELP_STRING([--with-canna],[Support the Canna Japanese input method. Requires Mule.]), | 618 AC_HELP_STRING([--with-canna],[Support the Canna Japanese input method. Requires Mule.]), |
616 [], []) | 619 [], []) |
617 AC_ARG_WITH([wnn], | 620 XE_MERGED_ARG([wnn], |
618 AC_HELP_STRING([--with-wnn],[Support the Wnn Asian language input | 621 AC_HELP_STRING([--with-wnn],[Support the Wnn Asian language input |
619 method. Requires Mule.]), | 622 method. Requires Mule.]), |
620 [], []) | 623 [], []) |
621 AC_ARG_WITH([wnn6], | 624 XE_MERGED_ARG([wnn6], |
622 AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input | 625 AC_HELP_STRING([--with-wnn6],[Support the Wnn6 Asian language input |
623 method (proprietary). Requires Mule.]), | 626 method (proprietary). Requires Mule.]), |
624 [], []) | 627 [], []) |
625 AC_ARG_WITH([workshop], | 628 XE_MERGED_ARG([workshop], |
626 AC_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks) | 629 AC_HELP_STRING([--with-workshop],[Support the Sun WorkShop (formerly Sparcworks) |
627 development environment.]), | 630 development environment.]), |
628 [], []) | 631 [], []) |
629 AC_ARG_WITH([sparcworks], | 632 XE_MERGED_ARG([sparcworks], |
630 AC_HELP_STRING([--with-sparcworks],[Alias for --with-workshop]), | 633 AC_HELP_STRING([--with-sparcworks],[Alias for --with-workshop]), |
631 [], []) | 634 [], []) |
632 AC_ARG_WITH([tooltalk], | 635 XE_MERGED_ARG([tooltalk], |
633 AC_HELP_STRING([--with-tooltalk],[Support the ToolTalk IPC protocol.]), | 636 AC_HELP_STRING([--with-tooltalk],[Support the ToolTalk IPC protocol.]), |
634 [], []) | 637 [], []) |
635 AC_ARG_WITH([ldap], | 638 XE_MERGED_ARG([ldap], |
636 AC_HELP_STRING([--with-ldap],[Support the LDAP protocol.]), | 639 AC_HELP_STRING([--with-ldap],[Support the LDAP protocol.]), |
637 [], []) | 640 [], []) |
638 AC_ARG_WITH([postgresql], | 641 XE_MERGED_ARG([postgresql], |
639 AC_HELP_STRING([--with-postgresql],[Support the PostgreSQL RDBMS.]), | 642 AC_HELP_STRING([--with-postgresql],[Support the PostgreSQL RDBMS.]), |
640 [], []) | 643 [], []) |
641 AC_ARG_WITH([pop], | 644 XE_MERGED_ARG([pop], |
642 AC_HELP_STRING([--with-pop],[Support POP for mail retrieval.]), | 645 AC_HELP_STRING([--with-pop],[Support POP for mail retrieval.]), |
643 [], []) | 646 [], []) |
644 AC_ARG_WITH([kerberos], | 647 XE_MERGED_ARG([kerberos], |
645 AC_HELP_STRING([--with-kerberos],[Support Kerberos-authenticated POP.]), | 648 AC_HELP_STRING([--with-kerberos],[Support Kerberos-authenticated POP.]), |
646 [], []) | 649 [], []) |
647 AC_ARG_WITH([hesiod], | 650 XE_MERGED_ARG([hesiod], |
648 AC_HELP_STRING([--with-hesiod],[Support Hesiod to get the POP server host.]), | 651 AC_HELP_STRING([--with-hesiod],[Support Hesiod to get the POP server host.]), |
649 [], []) | 652 [], []) |
650 AC_ARG_WITH([infodock], | 653 XE_MERGED_ARG([infodock], |
651 AC_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]), | 654 AC_HELP_STRING([--with-infodock],[Support the Infodock version of XEmacs. Infodock is a SourceForge project).]), |
652 [], []) | 655 [], []) |
653 AC_ARG_WITH([native-sound-lib], | 656 XE_MERGED_ARG([native-sound-lib], |
654 AC_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]), | 657 AC_HELP_STRING([--with-native-sound-lib],[Path to sound library (for systems with name conflicts).]), |
655 [], []) | 658 [], []) |
656 AC_ARG_WITH([netinstall], | 659 XE_MERGED_ARG([netinstall], |
657 AC_HELP_STRING([--with-netinstall],[Support for installation over the internet. | 660 AC_HELP_STRING([--with-netinstall],[Support for installation over the internet. |
658 Only functional on the MS Windows platforms.]), | 661 Only functional on the MS Windows platforms.]), |
659 [], [with_netinstall="no"]) | 662 [], [with_netinstall="no"]) |
660 AC_ARG_WITH([optimization], | 663 XE_MERGED_ARG([optimization], |
661 AC_HELP_STRING([--with-optimization],[Control whether compilation is optimized. By default, optimization is on in release versions and off in beta versions, since it can interfere with proper stack backtraces.]), | 664 AC_HELP_STRING([--with-optimization],[Control whether compilation is optimized. By default, optimization is on in release versions and off in beta versions, since it can interfere with proper stack backtraces.]), |
662 [], []) | 665 [], []) |
663 AC_ARG_WITH([ipv6-cname], | 666 XE_MERGED_ARG([ipv6-cname], |
664 AC_HELP_STRING([--with-ipv6-cname],[Try IPv6 information first when canonicalizing host names. This option has no effect unless system supports getaddrinfo(3) and getnameinfo(3).]), | 667 AC_HELP_STRING([--with-ipv6-cname],[Try IPv6 information first when canonicalizing host names. This option has no effect unless system supports getaddrinfo(3) and getnameinfo(3).]), |
665 [], [with_ipv6_cname="no"]) | 668 [], [with_ipv6_cname="no"]) |
666 AC_ARG_WITH([site-includes], | 669 XE_MERGED_ARG([site-includes], |
667 AC_HELP_STRING([--with-site-includes],[Prepend to include search path.]), | 670 AC_HELP_STRING([--with-site-includes],[Prepend to include search path.]), |
668 [], []) | 671 [], []) |
669 AC_ARG_WITH([site-libraries], | 672 XE_MERGED_ARG([site-libraries], |
670 AC_HELP_STRING([--with-site-libraries],[Prepend to library search path.]), | 673 AC_HELP_STRING([--with-site-libraries],[Prepend to library search path.]), |
671 [], []) | 674 [], []) |
672 AC_ARG_WITH([site-prefixes], | 675 XE_MERGED_ARG([site-prefixes], |
673 AC_HELP_STRING([--with-site-prefixes],[Prepend to include and library search paths, with /include and /lib added. Comes after site-includes and site-libraries, if any.]), | 676 AC_HELP_STRING([--with-site-prefixes],[Prepend to include and library search paths, with /include and /lib added. Comes after site-includes and site-libraries, if any.]), |
674 [], []) | 677 [], []) |
675 AC_ARG_WITH([statedir], | 678 XE_MERGED_ARG([statedir], |
676 AC_HELP_STRING([--with-statedir],[]), | 679 AC_HELP_STRING([--with-statedir],[]), |
677 [], [with_statedir='${prefix}/lib']) | 680 [], [with_statedir='${prefix}/lib']) |
678 AC_ARG_WITH([lispdir], | 681 XE_MERGED_ARG([lispdir], |
679 AC_HELP_STRING([--with-lispdir],[]), | 682 AC_HELP_STRING([--with-lispdir],[]), |
680 [AC_DEFINE(LISPDIR_USER_DEFINED)], [with_lispdir='${datadir}/${instvardir}/lisp']) | 683 [AC_DEFINE(LISPDIR_USER_DEFINED)], [with_lispdir='${datadir}/${instvardir}/lisp']) |
681 AC_ARG_WITH([archlibdir], | 684 XE_MERGED_ARG([archlibdir], |
682 AC_HELP_STRING([--with-archlibdir],[]), | 685 AC_HELP_STRING([--with-archlibdir],[]), |
683 [AC_DEFINE(ARCHLIBDIR_USER_DEFINED)], [with_archlibdir='${libdir}/${instvardir}/${configuration}']) | 686 [AC_DEFINE(ARCHLIBDIR_USER_DEFINED)], [with_archlibdir='${libdir}/${instvardir}/${configuration}']) |
684 AC_ARG_WITH([moduledir], | 687 XE_MERGED_ARG([moduledir], |
685 AC_HELP_STRING([--with-moduledir],[]), | 688 AC_HELP_STRING([--with-moduledir],[]), |
686 [AC_DEFINE(MODULEDIR_USER_DEFINED)], [with_moduledir='${libdir}/${instvardir}/${configuration}/modules']) | 689 [AC_DEFINE(MODULEDIR_USER_DEFINED)], [with_moduledir='${libdir}/${instvardir}/${configuration}/modules']) |
687 AC_ARG_WITH([etcdir], | 690 XE_MERGED_ARG([etcdir], |
688 AC_HELP_STRING([--with-etcdir],[]), | 691 AC_HELP_STRING([--with-etcdir],[]), |
689 [AC_DEFINE(ETCDIR_USER_DEFINED)], [with_etcdir='${datadir}/${instvardir}/etc']) | 692 [AC_DEFINE(ETCDIR_USER_DEFINED)], [with_etcdir='${datadir}/${instvardir}/etc']) |
690 AC_ARG_WITH([infopath], | 693 XE_MERGED_ARG([infopath], |
691 AC_HELP_STRING([--with-infopath],[]), | 694 AC_HELP_STRING([--with-infopath],[]), |
692 [AC_DEFINE(INFOPATH_USER_DEFINED)], []) | 695 [AC_DEFINE(INFOPATH_USER_DEFINED)], []) |
693 AC_ARG_WITH([docdir], | 696 XE_MERGED_ARG([docdir], |
694 AC_HELP_STRING([--with-docdir],[]), | 697 AC_HELP_STRING([--with-docdir],[]), |
695 [AC_DEFINE(DOCDIR_USER_DEFINED)], [with_docdir='${archlibdir}']) | 698 [AC_DEFINE(DOCDIR_USER_DEFINED)], [with_docdir='${archlibdir}']) |
696 AC_ARG_WITH([site-runtime-libraries], | 699 XE_MERGED_ARG([site-runtime-libraries], |
697 AC_HELP_STRING([--with-site-runtime-libraries],[]), | 700 AC_HELP_STRING([--with-site-runtime-libraries],[]), |
698 [], []) | 701 [], []) |
699 AC_ARG_WITH([package-prefix], | 702 XE_MERGED_ARG([package-prefix], |
700 AC_HELP_STRING([--with-package-prefix],[Specify packages root.]), | 703 AC_HELP_STRING([--with-package-prefix],[Specify packages root.]), |
701 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) | 704 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) |
702 AC_ARG_WITH([package-path], | 705 XE_MERGED_ARG([package-path], |
703 AC_HELP_STRING([--with-package-path],[Search path for package hierarchies.]), | 706 AC_HELP_STRING([--with-package-path],[Search path for package hierarchies.]), |
704 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) | 707 [AC_DEFINE(PACKAGE_PATH_USER_DEFINED)], []) |
705 AC_ARG_ENABLE([external-widget], | 708 XE_MERGED_ARG([external-widget], |
706 AC_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), | 709 AC_HELP_STRING([--enable-external-widget],[Support XEmacs server for text widgets in other applications.]), |
707 [], []) | 710 [], []) |
708 AC_ARG_ENABLE([kkcc], | 711 XE_MERGED_ARG([kkcc], |
709 AC_HELP_STRING([--enable-kkcc],[Enable new GC algorithms.]), | 712 AC_HELP_STRING([--enable-kkcc],[Enable new GC algorithms.]), |
710 [], []) | 713 [], [enable_kkcc=yes]) |
711 AC_ARG_ENABLE([mc-alloc], | 714 XE_MERGED_ARG([mc-alloc], |
712 AC_HELP_STRING([--enable-mc-alloc],[Enable new allocator.]), | 715 AC_HELP_STRING([--enable-mc-alloc],[Enable new allocator.]), |
713 [], []) | 716 [], [enable_mc_alloc=yes]) |
714 AC_ARG_ENABLE([union-type], | 717 XE_MERGED_ARG([union-type], |
715 AC_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), | 718 AC_HELP_STRING([--enable-union-type],[Use union definition of Lisp_Object type. Known to trigger bugs in some compilers.]), |
716 [], []) | 719 [], []) |
717 AC_ARG_ENABLE([pdump], | 720 XE_MERGED_ARG([pdump], |
718 AC_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), | 721 AC_HELP_STRING([--enable-pdump],[Enable portable LISP preloader.]), |
719 [], []) | 722 [], []) |
720 AC_ARG_ENABLE([dump-in-exec], | 723 XE_MERGED_ARG([dump-in-exec], |
721 AC_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default | 724 AC_HELP_STRING([--enable-dump-in-exec],[Enable dumping into executable (enabled by default |
722 for `pdump', not enabled by default in combination | 725 for `pdump', not enabled by default in combination |
723 with `mc-alloc').]), | 726 with `mc-alloc').]), |
724 [], []) | 727 [], []) |
725 AC_ARG_ENABLE([debug], | 728 XE_MERGED_ARG([debug], |
726 AC_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), | 729 AC_HELP_STRING([--enable-debug],[Enable additional debugging information. No time cost.]), |
727 [], []) | 730 [], []) |
728 AC_ARG_ENABLE([assertions], | 731 XE_MERGED_ARG([assertions], |
729 AC_HELP_STRING([--enable-assertions],[]), | 732 AC_HELP_STRING([--enable-assertions],[]), |
730 [], []) | 733 [], []) |
731 AC_ARG_ENABLE([memory-usage-stats], | 734 XE_MERGED_ARG([memory-usage-stats], |
732 AC_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), | 735 AC_HELP_STRING([--enable-memory-usage-stats],[Enable LISP memory usage API.]), |
733 [], []) | 736 [], []) |
734 AC_ARG_ENABLE([clash-detection], | 737 XE_MERGED_ARG([clash-detection], |
735 AC_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits | 738 AC_HELP_STRING([--enable-clash-detection],[Disable use of lock files to detect multiple edits |
736 of the same file.]), | 739 of the same file.]), |
737 [], []) | 740 [], []) |
738 AC_ARG_ENABLE([modules], | 741 XE_MERGED_ARG([modules], |
739 AC_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically | 742 AC_HELP_STRING([--enable-modules],[Compile in experimental support for dynamically |
740 loaded libraries (Dynamic Shared Objects).]), | 743 loaded libraries (Dynamic Shared Objects).]), |
741 [], []) | 744 [], []) |
742 AC_ARG_ENABLE([quick-build], | 745 XE_MERGED_ARG([quick-build], |
743 AC_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where | 746 AC_HELP_STRING([--enable-quick-build],[Speed up the build cycle by leaving out steps where |
744 XEmacs will still work (more or less) without them. | 747 XEmacs will still work (more or less) without them. |
745 Potentially dangerous if you don't know what you're | 748 Potentially dangerous if you don't know what you're |
746 doing. This (1) doesn't garbage-collect after loading | 749 doing. This (1) doesn't garbage-collect after loading |
747 each file during dumping, (2) doesn't | 750 each file during dumping, (2) doesn't |
750 associated files from the dependency lists, so changes | 753 associated files from the dependency lists, so changes |
751 to these files don't automatically cause all .c files | 754 to these files don't automatically cause all .c files |
752 to be rebuilt.]), | 755 to be rebuilt.]), |
753 [], []) | 756 [], []) |
754 | 757 |
755 AC_ARG_WITH([compiler], | 758 XE_MERGED_ARG([compiler], |
756 AC_HELP_STRING([--with-compiler],[C compiler to use]), | 759 AC_HELP_STRING([--with-compiler],[C compiler to use]), |
757 [], []) | 760 [], []) |
758 | 761 |
759 AC_ARG_WITH([xemacs-compiler], | 762 XE_MERGED_ARG([xemacs-compiler], |
760 AC_HELP_STRING([--with-xemacs-compiler], | 763 AC_HELP_STRING([--with-xemacs-compiler], |
761 [compiler to use to compile just the xemacs executable and C modules. | 764 [compiler to use to compile just the xemacs executable and C modules. |
762 If you want to compile XEmacs as C++, use e.g. | 765 If you want to compile XEmacs as C++, use e.g. |
763 `--with-xemacs-compiler=g++'. This turns on a lot of | 766 `--with-xemacs-compiler=g++'. This turns on a lot of |
764 additional error-checking.]), | 767 additional error-checking.]), |
765 [], []) | 768 [], []) |
766 | 769 |
767 AC_ARG_WITH([cflags], | 770 XE_MERGED_ARG([cflags], |
768 AC_HELP_STRING([--with-cflags], | 771 AC_HELP_STRING([--with-cflags], |
769 [Compiler flags. These flags will be placed after any flags inserted for warnings, debugging or optimization; setting this does not disable the insertion of those flags. Use configure settings such as `--with-optimization=no' or `enable-debug=no' to turn them off, or override them with `--with-cflags-optimization', `--with-cflags-debugging', or `with-cflags-warning'.]), | 772 [Compiler flags. These flags will be placed after any flags inserted for warnings, debugging or optimization; setting this does not disable the insertion of those flags. Use configure settings such as `--with-optimization=no' or `enable-debug=no' to turn them off, or override them with `--with-cflags-optimization', `--with-cflags-debugging', or `with-cflags-warning'.]), |
770 [], []) | 773 [], []) |
771 | 774 |
772 AC_ARG_WITH([cflags-warning], | 775 XE_MERGED_ARG([cflags-warning], |
773 AC_HELP_STRING([--with-cflags-warning],[Override compiler flags used to control warnings. | 776 AC_HELP_STRING([--with-cflags-warning],[Override compiler flags used to control warnings. |
774 Normally, don't set this, as XEmacs already turns on | 777 Normally, don't set this, as XEmacs already turns on |
775 the maximum safe warning level.]), | 778 the maximum safe warning level.]), |
776 [], []) | 779 [], []) |
777 | 780 |
778 AC_ARG_WITH([cflags-optimization], | 781 XE_MERGED_ARG([cflags-optimization], |
779 AC_HELP_STRING([--with-cflags-optimization=FLAGS], | 782 AC_HELP_STRING([--with-cflags-optimization=FLAGS], |
780 [Override compiler flags used to control optimization. If blank, forces no optimization; if non-blank, forces optimization. Normally, don't set this; XEmacs automatically sets the maximum safe optimization flags appropriate for the compiler being invoked. If you just want to turn optimization on or off, use `with-optimization' instead.]), | 783 [Override compiler flags used to control optimization. If blank, forces no optimization; if non-blank, forces optimization. Normally, don't set this; XEmacs automatically sets the maximum safe optimization flags appropriate for the compiler being invoked. If you just want to turn optimization on or off, use `with-optimization' instead.]), |
781 [], []) | 784 [], []) |
782 | 785 |
783 AC_ARG_WITH([cflags-debugging], | 786 XE_MERGED_ARG([cflags-debugging], |
784 AC_HELP_STRING([--with-cflags-debugging=FLAGS], | 787 AC_HELP_STRING([--with-cflags-debugging=FLAGS], |
785 [Override compiler flags used to add debugging information to the executable. Normally, debugging information is added whenever possible (i.e. unless optimization is turned on and the compiler does not permit debugging and optimization simultaneously).]), | 788 [Override compiler flags used to add debugging information to the executable. Normally, debugging information is added whenever possible (i.e. unless optimization is turned on and the compiler does not permit debugging and optimization simultaneously).]), |
786 [], []) | 789 [], []) |
787 | 790 |
788 AC_ARG_WITH([cpp], | 791 XE_MERGED_ARG([cpp], |
789 AC_HELP_STRING([--with-cpp],[C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc -E)]), | 792 AC_HELP_STRING([--with-cpp],[C preprocessor to use (e.g. /usr/ccs/lib/cpp or cc -E)]), |
790 [CPP="$with_cpp"], []) | 793 [CPP="$with_cpp"], []) |
791 | 794 |
792 AC_ARG_WITH([cppflags], | 795 XE_MERGED_ARG([cppflags], |
793 AC_HELP_STRING([--with-cppflags],[C preprocessor flags (e.g. -I/foo or -Dfoo=bar)]), | 796 AC_HELP_STRING([--with-cppflags],[C preprocessor flags (e.g. -I/foo or -Dfoo=bar)]), |
794 [CPPFLAGS="$with_cppflags"], []) | 797 [CPPFLAGS="$with_cppflags"], []) |
795 | 798 |
796 AC_ARG_WITH([libs], | 799 XE_MERGED_ARG([libs], |
797 AC_HELP_STRING([--with-libs],[Additional libraries (e.g. -lfoo)]), | 800 AC_HELP_STRING([--with-libs],[Additional libraries (e.g. -lfoo)]), |
798 [LIBS="$with_libs"], []) | 801 [LIBS="$with_libs"], []) |
799 | 802 |
800 AC_ARG_WITH([ldflags], | 803 XE_MERGED_ARG([ldflags], |
801 AC_HELP_STRING([--with-ldflags],[Additional linker flags (e.g. -L/foo)]), | 804 AC_HELP_STRING([--with-ldflags],[Additional linker flags (e.g. -L/foo)]), |
802 [LDFLAGS="$with_ldflags"], []) | 805 [LDFLAGS="$with_ldflags"], []) |
803 | 806 |
804 AC_ARG_WITH([rel-alloc], | 807 XE_MERGED_ARG([rel-alloc], |
805 AC_HELP_STRING([--with-rel-alloc],[Enable the relocating allocator.]), | 808 AC_HELP_STRING([--with-rel-alloc],[Enable the relocating allocator.]), |
806 [], [with_rel_alloc='default']) | 809 [], [with_rel_alloc='default']) |
807 | 810 |
808 AC_ARG_WITH([dlmalloc], | 811 XE_MERGED_ARG([dlmalloc], |
809 AC_HELP_STRING([--with-dlmalloc],[Use Doug Lea's malloc implementation.]), | 812 AC_HELP_STRING([--with-dlmalloc],[Use Doug Lea's malloc implementation.]), |
810 [], [with_dlmalloc='default']) | 813 [], [with_dlmalloc='default']) |
811 | 814 |
812 AC_ARG_WITH([debug-malloc], | 815 XE_MERGED_ARG([debug-malloc], |
813 AC_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), | 816 AC_HELP_STRING([--with-debug-malloc],[Use a debugging malloc.]), |
814 [], []) | 817 [], []) |
815 | 818 |
816 AC_ARG_WITH([system-malloc], | 819 XE_MERGED_ARG([system-malloc], |
817 AC_HELP_STRING([--with-system-malloc],[Use the system malloc, not the one distributed with XEmacs.]), | 820 AC_HELP_STRING([--with-system-malloc],[Use the system malloc, not the one distributed with XEmacs.]), |
818 [], [with_system_malloc='default']) | 821 [], [with_system_malloc='default']) |
819 | 822 |
820 #Enable code. | 823 #Enable code. |
821 | 824 |
822 XE_COMPLEX_ARG_ENABLE([database], | 825 XE_COMPLEX_ARG([database], |
823 AC_HELP_STRING([--enable-database],[Compile with database support. Valid types are | 826 AC_HELP_STRING([--enable-database],[Compile with database support. Valid types are |
824 `no' or a comma-separated list of one or more | 827 `no' or a comma-separated list of one or more |
825 of `berkdb' and either `dbm' or `gnudbm'.]), | 828 of `berkdb' and either `dbm' or `gnudbm'.]), |
826 [ | 829 [ |
827 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then | 830 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then |
828 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified | 831 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified |
829 with the \`--enable-database' option.") | 832 with the \`--with-database' option.") |
830 fi | 833 fi |
831 ], | 834 ], |
832 [], | 835 [], |
833 [XE_COMPLEX_OPTION([berkdb],[""]), | 836 [XE_COMPLEX_OPTION([berkdb],[""]), |
834 XE_COMPLEX_OPTION([dbm],[""]), | 837 XE_COMPLEX_OPTION([dbm],[""]), |
835 XE_COMPLEX_OPTION([gdbm],[""])]) | 838 XE_COMPLEX_OPTION([gdbm],[""])]) |
836 | 839 |
837 XE_COMPLEX_ARG_ENABLE([sound], | 840 XE_COMPLEX_ARG([sound], |
838 AC_HELP_STRING([--enable-sound],[Compile with sound support. | 841 AC_HELP_STRING([--enable-sound],[Compile with sound support. |
839 Valid types are `native', `nas' and `esd'. | 842 Valid types are `native', `nas' and `esd'. |
840 Prefix a type with 'no' to disable. | 843 Prefix a type with 'no' to disable. |
841 The first type can be `none' or `all'. `none' means | 844 The first type can be `none' or `all'. `none' means |
842 `nonative,nonas,noesd'. `all' means `native,nas,esd'. | 845 `nonative,nonas,noesd'. `all' means `native,nas,esd'. |
847 [enable_sound_nas=""], | 850 [enable_sound_nas=""], |
848 [XE_COMPLEX_OPTION([native],[""]), | 851 [XE_COMPLEX_OPTION([native],[""]), |
849 XE_COMPLEX_OPTION([nas],[""]), | 852 XE_COMPLEX_OPTION([nas],[""]), |
850 XE_COMPLEX_OPTION([esd],[no])]) | 853 XE_COMPLEX_OPTION([esd],[no])]) |
851 | 854 |
852 XE_KEYWORD_ARG_WITH([athena], | 855 XE_KEYWORD_ARG([athena], |
853 AC_HELP_STRING([--with-athena],[Use TYPE Athena widgets (xaw, 3d, next, 95, or xpm).]), | 856 AC_HELP_STRING([--with-athena],[Use TYPE Athena widgets (xaw, 3d, next, 95, or xpm).]), |
854 [],[],[xaw,3d,next,95,xpm])dnl | 857 [],[],[xaw,3d,next,95,xpm])dnl |
855 | 858 |
856 XE_KEYWORD_ARG_WITH([xim],[],[],[],[yes,no,xlib,motif])dnl | 859 XE_KEYWORD_ARG([xim],[],[],[],[yes,no,xlib,motif])dnl |
857 | 860 |
858 XE_KEYWORD_ARG_WITH([mail-locking], | 861 XE_KEYWORD_ARG([mail-locking], |
859 AC_HELP_STRING([--with-mail-locking],[Specify the locking to be used by movemail to prevent | 862 AC_HELP_STRING([--with-mail-locking],[Specify the locking to be used by movemail to prevent |
860 concurrent updates of mail spool files. Valid types | 863 concurrent updates of mail spool files. Valid types |
861 are `lockf', `flock', `dot', `locking' or `mmdf'.]), | 864 are `lockf', `flock', `dot', `locking' or `mmdf'.]), |
862 [],[],[lockf,flock,file,locking,mmdf,pop])dnl | 865 [],[],[lockf,flock,file,locking,mmdf,pop])dnl |
863 | 866 |
864 | 867 |
865 XE_KEYWORD_ARG_ENABLE([bignum], | 868 XE_KEYWORD_ARG([bignum], |
866 AC_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats | 869 AC_HELP_STRING([--enable-bignum=TYPE],[Compile in support for bignums, ratios, or bigfloats |
867 using library support. TYPE must be one of "gmp" | 870 using library support. TYPE must be one of "gmp" |
868 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), | 871 (for GNU MP), "mp" (for BSD MP), or "no" (disabled).]), |
869 [], [enable_bignum="no"],[no,gmp,mp]) | 872 [], [enable_bignum="no"],[no,gmp,mp]) |
870 | 873 |
871 XE_COMPLEX_ARG_ENABLE([error-checking], | 874 XE_COMPLEX_ARG([error-checking], |
872 AC_HELP_STRING([--enable-error-checking],[Compile with internal error-checking added. | 875 AC_HELP_STRING([--enable-error-checking],[Compile with internal error-checking added. |
873 Causes noticeable loss of speed. Valid types | 876 Causes noticeable loss of speed. Valid types |
874 are extents, bufpos, malloc, gc, types, text, byte_code, glyphs, display, structures.]), | 877 are extents, bufpos, malloc, gc, types, text, byte_code, glyphs, display, structures.]), |
875 [], [], | 878 [], [], |
876 [XE_COMPLEX_OPTION([extents],[""]), | 879 [XE_COMPLEX_OPTION([extents],[""]), |
881 XE_COMPLEX_OPTION([byte_code],[""]), | 884 XE_COMPLEX_OPTION([byte_code],[""]), |
882 XE_COMPLEX_OPTION([glyphs],[""]), | 885 XE_COMPLEX_OPTION([glyphs],[""]), |
883 XE_COMPLEX_OPTION([display],[""]), | 886 XE_COMPLEX_OPTION([display],[""]), |
884 XE_COMPLEX_OPTION([structures],[""])]) | 887 XE_COMPLEX_OPTION([structures],[""])]) |
885 | 888 |
886 XE_KEYWORD_ARG_ENABLE([menubars], | 889 XE_KEYWORD_ARG([menubars], |
887 AC_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars (lucid, motif, or no). The Lucid | 890 AC_HELP_STRING([--enable-menubars=TYPE],[Use TYPE menubars (lucid, motif, or no). The Lucid |
888 widgets emulate Motif (mostly) but are faster. | 891 widgets emulate Motif (mostly) but are faster. |
889 *WARNING* The Motif menubar is currently broken. | 892 *WARNING* The Motif menubar is currently broken. |
890 Lucid menubars are the default.]), | 893 Lucid menubars are the default.]), |
891 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 894 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
892 | 895 |
893 XE_KEYWORD_ARG_ENABLE([scrollbars], | 896 XE_KEYWORD_ARG([scrollbars], |
894 AC_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars (lucid, motif, athena, or no). | 897 AC_HELP_STRING([--enable-scrollbars=TYPE],[Use TYPE scrollbars (lucid, motif, athena, or no). |
895 Lucid scrollbars are the default.]), | 898 Lucid scrollbars are the default.]), |
896 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 899 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
897 | 900 |
898 XE_KEYWORD_ARG_ENABLE([dialogs], | 901 XE_KEYWORD_ARG([dialogs], |
899 AC_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes (lucid, motif, athena, or no). | 902 AC_HELP_STRING([--enable-dialogs=TYPE],[Use TYPE dialog boxes (lucid, motif, athena, or no). |
900 There are no true Lucid dialogs; Motif dialogs will be | 903 There are no true Lucid dialogs; Motif dialogs will be |
901 used if Motif can be found, else Athena is used.]), | 904 used if Motif can be found, else Athena is used.]), |
902 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 905 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |
903 | 906 |
904 XE_KEYWORD_ARG_ENABLE([widgets], | 907 XE_KEYWORD_ARG([widgets], |
905 AC_HELP_STRING([--enable-widgets],[Use TYPE native widgets (lucid, motif, athena, or no). | 908 AC_HELP_STRING([--enable-widgets],[Use TYPE native widgets (lucid, motif, athena, or no). |
906 Other widget types are currently unsupported. | 909 Other widget types are currently unsupported. |
907 There are no true Lucid widgets; Motif widgets will be | 910 There are no true Lucid widgets; Motif widgets will be |
908 used if Motif can be found, else Athena is used.]), | 911 used if Motif can be found, else Athena is used.]), |
909 [], [],[yes,no,lucid,motif,athena,gtk,msw]) | 912 [], [],[yes,no,lucid,motif,athena,gtk,msw]) |