2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="lisp/gnus.el"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GNUS_PRODUCT_NAME SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAKEINFO EMACS XEMACS lispdir etcdir info_dir HAVE_url URL HAVE_w3_forms W3 FLAGS LATEX WITH_FONTS_bembo WITHOUT_FONTS_bembo WITH_FONTS_pfu WITHOUT_FONTS_pfu WITH_FONTS_bcr WITHOUT_FONTS_bcr USE_FONTS PACKAGEDIR ADDITIONAL_LOAD_PATH LIBOBJS LTLIBOBJS'
278 # Initialize some variables set by options.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
393 -help | --help | --hel | --he | -h)
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers | -V)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
718 # Report the --help message.
720 if test "$ac_init_help" = "long"; then
721 # Omit some internal or obsolete options to make the list less imposing.
722 # This message is too long to be a string in the A/UX 3.1 sh.
724 \`configure' configures this package to adapt to many kinds of systems.
726 Usage: $0 [OPTION]... [VAR=VALUE]...
728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
729 VAR=VALUE. See below for descriptions of some of the useful variables.
731 Defaults for the options are specified in brackets.
734 -h, --help display this help and exit
735 --help=short display options specific to this package
736 --help=recursive display the short help of all the included packages
737 -V, --version display version information and exit
738 -q, --quiet, --silent do not print \`checking...' messages
739 --cache-file=FILE cache test results in FILE [disabled]
740 -C, --config-cache alias for \`--cache-file=config.cache'
741 -n, --no-create do not create output files
742 --srcdir=DIR find the sources in DIR [configure dir or \`..']
747 Installation directories:
748 --prefix=PREFIX install architecture-independent files in PREFIX
750 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 By default, \`make install' will install all the files in
754 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
755 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756 for instance \`--prefix=\$HOME'.
758 For better control, use the options below.
760 Fine tuning of the installation directories:
761 --bindir=DIR user executables [EPREFIX/bin]
762 --sbindir=DIR system admin executables [EPREFIX/sbin]
763 --libexecdir=DIR program executables [EPREFIX/libexec]
764 --datadir=DIR read-only architecture-independent data [PREFIX/share]
765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
768 --libdir=DIR object code libraries [EPREFIX/lib]
769 --includedir=DIR C header files [PREFIX/include]
770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
771 --infodir=DIR info documentation [PREFIX/info]
772 --mandir=DIR man documentation [PREFIX/man]
779 if test -n "$ac_init_help"; then
784 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
785 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
786 --with-emacs=EMACS compile with EMACS [EMACS=emacs, mule...]
787 --with-xemacs=XEMACS compile with XEMACS [XEMACS=xemacs]
788 --with-lispdir=DIR Where to install lisp files
789 (for XEmacs package, use --with-packagedir instead)
790 --with-etcdir=DIR Where to install etc files
791 --with-url=DIR Specify where to find the url package
792 --with-w3=DIR Specify where to find the w3 package
793 --with-fonts Assume all fonts required are available
794 --with-packagedir=DIR package DIR for XEmacs
795 --with-addpath=PATH search Emacs-Lisp libraries with PATH
796 use colons to separate directory names
801 if test "$ac_init_help" = "recursive"; then
802 # If there are subdirs, report their specific --help.
804 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
805 test -d $ac_dir || continue
808 if test "$ac_dir" != .; then
809 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
810 # A "../" for each directory in $ac_dir_suffix.
811 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
813 ac_dir_suffix= ac_top_builddir=
817 .) # No --srcdir option. We are building in place.
819 if test -z "$ac_top_builddir"; then
822 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
824 [\\/]* | ?:[\\/]* ) # Absolute path.
825 ac_srcdir=$srcdir$ac_dir_suffix;
826 ac_top_srcdir=$srcdir ;;
828 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
829 ac_top_srcdir=$ac_top_builddir$srcdir ;;
832 # Do not use `cd foo && pwd` to compute absolute paths, because
833 # the directories may not exist.
835 .) ac_abs_builddir="$ac_dir";;
838 .) ac_abs_builddir=`pwd`;;
839 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
840 *) ac_abs_builddir=`pwd`/"$ac_dir";;
843 case $ac_abs_builddir in
844 .) ac_abs_top_builddir=${ac_top_builddir}.;;
846 case ${ac_top_builddir}. in
847 .) ac_abs_top_builddir=$ac_abs_builddir;;
848 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
849 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
852 case $ac_abs_builddir in
853 .) ac_abs_srcdir=$ac_srcdir;;
856 .) ac_abs_srcdir=$ac_abs_builddir;;
857 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
858 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
861 case $ac_abs_builddir in
862 .) ac_abs_top_srcdir=$ac_top_srcdir;;
864 case $ac_top_srcdir in
865 .) ac_abs_top_srcdir=$ac_abs_builddir;;
866 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
867 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
872 # Check for guested configure; otherwise get Cygnus style configure.
873 if test -f $ac_srcdir/configure.gnu; then
875 $SHELL $ac_srcdir/configure.gnu --help=recursive
876 elif test -f $ac_srcdir/configure; then
878 $SHELL $ac_srcdir/configure --help=recursive
879 elif test -f $ac_srcdir/configure.ac ||
880 test -f $ac_srcdir/configure.in; then
884 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
890 test -n "$ac_init_help" && exit 0
891 if $ac_init_version; then
894 Copyright (C) 2003 Free Software Foundation, Inc.
895 This configure script is free software; the Free Software Foundation
896 gives unlimited permission to copy, distribute and modify it.
902 This file contains any messages produced by compilers while
903 running configure, to aid debugging if configure makes a mistake.
905 It was created by $as_me, which was
906 generated by GNU Autoconf 2.59. Invocation command line was
917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
924 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
926 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
927 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
929 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
930 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
931 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
932 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
940 test -z "$as_dir" && as_dir=.
956 # Keep a trace of the command line.
957 # Strip out --no-create and --no-recursion so they do not pile up.
958 # Strip out --silent because we don't want to record it for future runs.
959 # Also quote any args containing shell meta-characters.
960 # Make two passes to allow for proper duplicate-argument suppression.
965 ac_must_keep_next=false
971 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
973 | -silent | --silent | --silen | --sile | --sil)
975 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
976 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
981 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
982 if test $ac_must_keep_next = true; then
983 ac_must_keep_next=false # Got value, back to normal.
986 *=* | --config-cache | -C | -disable-* | --disable-* \
987 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
988 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
989 | -with-* | --with-* | -without-* | --without-* | --x)
990 case "$ac_configure_args0 " in
991 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
994 -* ) ac_must_keep_next=true ;;
997 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
998 # Get rid of the leading space.
1004 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1005 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1007 # When interrupted or exit'd, cleanup temporary files, and complete
1008 # config.log. We remove comments because anyway the quotes in there
1009 # would cause problems or look ugly.
1010 # WARNING: Be sure not to use single quotes in there, as some shells,
1011 # such as our DU 5.0 friend, will then `close' the trap.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1018 ## ---------------- ##
1019 ## Cache variables. ##
1020 ## ---------------- ##
1023 # The following way of writing the cache mishandles newlines in values,
1026 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041 ## ----------------- ##
1042 ## Output variables. ##
1043 ## ----------------- ##
1046 for ac_var in $ac_subst_vars
1048 eval ac_val=$`echo $ac_var`
1049 echo "$ac_var='"'"'$ac_val'"'"'"
1053 if test -n "$ac_subst_files"; then
1060 for ac_var in $ac_subst_files
1062 eval ac_val=$`echo $ac_var`
1063 echo "$ac_var='"'"'$ac_val'"'"'"
1068 if test -s confdefs.h; then
1075 sed "/^$/d" confdefs.h | sort
1078 test "$ac_signal" != 0 &&
1079 echo "$as_me: caught signal $ac_signal"
1080 echo "$as_me: exit $exit_status"
1082 rm -f core *.core &&
1083 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1086 for ac_signal in 1 2 13 15; do
1087 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1092 rm -rf conftest* confdefs.h
1093 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1096 # Predefined preprocessor variables.
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_NAME "$PACKAGE_NAME"
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_STRING "$PACKAGE_STRING"
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1123 # Let the site file select an alternate cache file if it wants to.
1124 # Prefer explicitly selected file to automatically selected ones.
1125 if test -z "$CONFIG_SITE"; then
1126 if test "x$prefix" != xNONE; then
1127 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1132 for ac_site_file in $CONFIG_SITE; do
1133 if test -r "$ac_site_file"; then
1134 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1135 echo "$as_me: loading site script $ac_site_file" >&6;}
1136 sed 's/^/| /' "$ac_site_file" >&5
1141 if test -r "$cache_file"; then
1142 # Some versions of bash will fail to source /dev/null (special
1143 # files actually), so we avoid doing that.
1144 if test -f "$cache_file"; then
1145 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1146 echo "$as_me: loading cache $cache_file" >&6;}
1148 [\\/]* | ?:[\\/]* ) . $cache_file;;
1149 *) . ./$cache_file;;
1153 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1154 echo "$as_me: creating cache $cache_file" >&6;}
1158 # Check that the precious variables saved in the cache have kept the same
1160 ac_cache_corrupted=false
1161 for ac_var in `(set) 2>&1 |
1162 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1164 eval ac_new_set=\$ac_env_${ac_var}_set
1165 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1166 eval ac_new_val="\$ac_env_${ac_var}_value"
1167 case $ac_old_set,$ac_new_set in
1169 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1170 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1171 ac_cache_corrupted=: ;;
1173 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1174 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1175 ac_cache_corrupted=: ;;
1178 if test "x$ac_old_val" != "x$ac_new_val"; then
1179 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1180 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1181 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1182 echo "$as_me: former value: $ac_old_val" >&2;}
1183 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1184 echo "$as_me: current value: $ac_new_val" >&2;}
1185 ac_cache_corrupted=:
1188 # Pass precious variables to config.status.
1189 if test "$ac_new_set" = set; then
1191 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1192 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1193 *) ac_arg=$ac_var=$ac_new_val ;;
1195 case " $ac_configure_args " in
1196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1197 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1201 if $ac_cache_corrupted; then
1202 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1203 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1204 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1205 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1206 { (exit 1); exit 1; }; }
1210 ac_cpp='$CPP $CPPFLAGS'
1211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1233 echo $ECHO_N "defining gnus product name... $ECHO_C"
1234 if test "${EMACS_cv_GNUS_PRODUCT_NAME+set}" = set; then
1235 echo $ECHO_N "(cached) $ECHO_C" >&6
1237 EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
1240 GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
1241 echo "$as_me:$LINENO: result: ${GNUS_PRODUCT_NAME}" >&5
1242 echo "${ECHO_T}${GNUS_PRODUCT_NAME}" >&6
1244 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 cat >conftest.make <<\_ACEOF
1252 @echo 'ac_maketemp="$(MAKE)"'
1254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1256 if test -n "$ac_maketemp"; then
1257 eval ac_cv_prog_make_${ac_make}_set=yes
1259 eval ac_cv_prog_make_${ac_make}_set=no
1263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1264 echo "$as_me:$LINENO: result: yes" >&5
1265 echo "${ECHO_T}yes" >&6
1268 echo "$as_me:$LINENO: result: no" >&5
1269 echo "${ECHO_T}no" >&6
1270 SET_MAKE="MAKE=${MAKE-make}"
1274 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1275 if test -f $ac_dir/install-sh; then
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 elif test -f $ac_dir/install.sh; then
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 elif test -f $ac_dir/shtool; then
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298 # Find a good install program. We prefer a C program (faster),
1299 # so one script is as good as another. But avoid the broken or
1300 # incompatible versions:
1301 # SysV /etc/install, /usr/sbin/install
1302 # SunOS /usr/etc/install
1303 # IRIX /sbin/install
1305 # AmigaOS /C/install, which installs bootblocks on floppy discs
1306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1309 # OS/2's system install, which has a completely different semantic
1310 # ./install, which can be erroneously created by make from ./install.sh.
1311 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1312 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1313 if test -z "$INSTALL"; then
1314 if test "${ac_cv_path_install+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 test -z "$as_dir" && as_dir=.
1322 # Account for people who put trailing slashes in PATH elements.
1324 ./ | .// | /cC/* | \
1325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1326 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1329 # OSF1 and SCO ODT 3.0 have their own names for install.
1330 # Don't use installbsd from OSF since it installs stuff as root
1332 for ac_prog in ginstall scoinst install; do
1333 for ac_exec_ext in '' $ac_executable_extensions; do
1334 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1335 if test $ac_prog = install &&
1336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1337 # AIX install. It has an incompatible calling convention.
1339 elif test $ac_prog = install &&
1340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1341 # program-specific install script used by HP pwplus--don't use.
1344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1356 if test "${ac_cv_path_install+set}" = set; then
1357 INSTALL=$ac_cv_path_install
1359 # As a last resort, use the slow shell script. We don't cache a
1360 # path for INSTALL within a source directory, because that will
1361 # break other packages using the cache if that directory is
1362 # removed, or if the path is relative.
1363 INSTALL=$ac_install_sh
1366 echo "$as_me:$LINENO: result: $INSTALL" >&5
1367 echo "${ECHO_T}$INSTALL" >&6
1369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1370 # It thinks the first close brace ends the variable substitution.
1371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1377 # Extract the first word of "makeinfo", so it can be a program name with args.
1378 set dummy makeinfo; ac_word=$2
1379 echo "$as_me:$LINENO: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 if test -n "$MAKEINFO"; then
1385 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 test -z "$as_dir" && as_dir=.
1392 for ac_exec_ext in '' $ac_executable_extensions; do
1393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1394 ac_cv_prog_MAKEINFO="makeinfo"
1395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
1404 MAKEINFO=$ac_cv_prog_MAKEINFO
1405 if test -n "$MAKEINFO"; then
1406 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1407 echo "${ECHO_T}$MAKEINFO" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1414 test "$EMACS" = t && EMACS=
1416 unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
1419 # Check whether --with-emacs or --without-emacs was given.
1420 if test "${with_emacs+set}" = set; then
1421 withval="$with_emacs"
1422 if test "$withval" = yes -o -z "$withval"; then
1423 for ac_prog in emacs xemacs mule
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_EMACS+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 if test -n "$EMACS"; then
1433 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_prog_EMACS="$ac_prog"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 EMACS=$ac_cv_prog_EMACS
1452 if test -n "$EMACS"; then
1453 echo "$as_me:$LINENO: result: $EMACS" >&5
1454 echo "${ECHO_T}$EMACS" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$EMACS" && break
1462 test -n "$EMACS" || EMACS="emacs"
1465 # Extract the first word of "$withval", so it can be a program name with args.
1466 set dummy $withval; ac_word=$2
1467 echo "$as_me:$LINENO: checking for $ac_word" >&5
1468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469 if test "${ac_cv_prog_EMACS+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 if test -n "$EMACS"; then
1473 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
1481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482 ac_cv_prog_EMACS="$withval"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
1492 EMACS=$ac_cv_prog_EMACS
1493 if test -n "$EMACS"; then
1494 echo "$as_me:$LINENO: result: $EMACS" >&5
1495 echo "${ECHO_T}$EMACS" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1504 # Check whether --with-xemacs or --without-xemacs was given.
1505 if test "${with_xemacs+set}" = set; then
1506 withval="$with_xemacs"
1507 if test "$withval" = yes -o -z "$withval"; then
1508 # Extract the first word of "xemacs", so it can be a program name with args.
1509 set dummy xemacs; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_XEMACS+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$XEMACS"; then
1516 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_XEMACS="xemacs"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
1535 XEMACS=$ac_cv_prog_XEMACS
1536 if test -n "$XEMACS"; then
1537 echo "$as_me:$LINENO: result: $XEMACS" >&5
1538 echo "${ECHO_T}$XEMACS" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1545 # Extract the first word of "$withval", so it can be a program name with args.
1546 set dummy $withval; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_XEMACS+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$XEMACS"; then
1553 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_XEMACS="$withval"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
1572 XEMACS=$ac_cv_prog_XEMACS
1573 if test -n "$XEMACS"; then
1574 echo "$as_me:$LINENO: result: $XEMACS" >&5
1575 echo "${ECHO_T}$XEMACS" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1585 test -z "$EMACS" && for ac_prog in emacs xemacs mule
1587 # Extract the first word of "$ac_prog", so it can be a program name with args.
1588 set dummy $ac_prog; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_EMACS+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 if test -n "$EMACS"; then
1595 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_EMACS="$ac_prog"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 EMACS=$ac_cv_prog_EMACS
1614 if test -n "$EMACS"; then
1615 echo "$as_me:$LINENO: result: $EMACS" >&5
1616 echo "${ECHO_T}$EMACS" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1622 test -n "$EMACS" && break
1624 test -n "$EMACS" || EMACS="emacs"
1630 echo "$as_me:$LINENO: checking what a flavor does $EMACS have" >&5
1631 echo $ECHO_N "checking what a flavor does $EMACS have... $ECHO_C" >&6
1633 unset EMACS_cv_SYS_flavor;
1636 elisp="(if (featurep (quote xemacs))\
1639 if test -z ""noecho""; then
1640 echo "$as_me:$LINENO: checking for flavor" >&5
1641 echo $ECHO_N "checking for flavor... $ECHO_C" >&6
1643 if test "${EMACS_cv_SYS_flavor+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 OUTPUT=./conftest-$$
1648 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1649 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1650 retval=`cat ${OUTPUT}`
1651 echo "=> ${retval}" >& 5 2>&1
1653 EMACS_cv_SYS_flavor=$retval
1657 flavor=${EMACS_cv_SYS_flavor}
1658 if test -z ""noecho""; then
1659 echo "$as_me:$LINENO: result: $flavor" >&5
1660 echo "${ECHO_T}$flavor" >&6
1663 if test $EMACS_cv_SYS_flavor = XEmacs; then
1668 echo "$as_me:$LINENO: result: $EMACS_cv_SYS_flavor" >&5
1669 echo "${ECHO_T}$EMACS_cv_SYS_flavor" >&6
1670 if test "$prefix" = NONE; then
1671 echo "$as_me:$LINENO: checking prefix for your Emacs" >&5
1672 echo $ECHO_N "checking prefix for your Emacs... $ECHO_C" >&6
1674 elisp="(expand-file-name \"..\" invocation-directory)"
1675 if test -z ""noecho""; then
1676 echo "$as_me:$LINENO: checking for prefix" >&5
1677 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1679 if test "${EMACS_cv_SYS_prefix+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 OUTPUT=./conftest-$$
1684 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1685 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1686 retval=`cat ${OUTPUT}`
1687 echo "=> ${retval}" >& 5 2>&1
1689 EMACS_cv_SYS_prefix=$retval
1693 prefix=${EMACS_cv_SYS_prefix}
1694 if test -z ""noecho""; then
1695 echo "$as_me:$LINENO: result: $prefix" >&5
1696 echo "${ECHO_T}$prefix" >&6
1699 prefix=${EMACS_cv_SYS_prefix}
1700 echo "$as_me:$LINENO: result: $prefix" >&5
1701 echo "${ECHO_T}$prefix" >&6
1704 # Check whether --with-lispdir or --without-lispdir was given.
1705 if test "${with_lispdir+set}" = set; then
1706 withval="$with_lispdir"
1709 echo "$as_me:$LINENO: checking where lisp files should go" >&5
1710 echo $ECHO_N "checking where lisp files should go... $ECHO_C" >&6
1711 if test -z "$lispdir"; then
1713 if test "$theprefix" = NONE; then
1714 theprefix=$ac_default_prefix
1716 if test "$EMACS_FLAVOR" = "xemacs"; then
1717 datadir="\$(prefix)/lib"
1718 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
1720 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
1722 for thedir in share lib; do
1724 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
1725 if test "$EMACS_FLAVOR" = "xemacs"; then
1726 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
1728 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
1734 if test ${EMACS_FLAVOR} = xemacs; then
1735 echo "$as_me:$LINENO: result: $lispdir
1736 (it will be ignored when \"make install-package[-ja]\" is done)" >&5
1737 echo "${ECHO_T}$lispdir
1738 (it will be ignored when \"make install-package[-ja]\" is done)" >&6
1740 echo "$as_me:$LINENO: result: $lispdir" >&5
1741 echo "${ECHO_T}$lispdir" >&6
1747 # Check whether --with-etcdir or --without-etcdir was given.
1748 if test "${with_etcdir+set}" = set; then
1749 withval="$with_etcdir"
1752 echo "$as_me:$LINENO: checking where etc files should go" >&5
1753 echo $ECHO_N "checking where etc files should go... $ECHO_C" >&6
1754 if test -z "$etcdir"; then
1755 if test "$EMACS_FLAVOR" = "xemacs"; then
1756 etcdir="\$(lispdir)/../../etc"
1758 etcdir="\$(lispdir)/../../etc"
1761 echo "$as_me:$LINENO: result: $etcdir" >&5
1762 echo "${ECHO_T}$etcdir" >&6
1766 echo "$as_me:$LINENO: checking where the TeXinfo docs should go" >&5
1767 echo $ECHO_N "checking where the TeXinfo docs should go... $ECHO_C" >&6
1768 if test "$infodir" = "\${prefix}/info"; then
1769 if test "$EMACS_FLAVOR" = "xemacs"; then
1770 info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
1772 info_dir="\$(prefix)/info"
1777 echo "$as_me:$LINENO: result: $info_dir
1778 (it will be ignored when \"make install-package[-ja]\" is done)" >&5
1779 echo "${ECHO_T}$info_dir
1780 (it will be ignored when \"make install-package[-ja]\" is done)" >&6
1784 echo "$as_me:$LINENO: checking for acceptable URL version" >&5
1785 echo $ECHO_N "checking for acceptable URL version... $ECHO_C" >&6
1787 unset EMACS_cv_ACCEPTABLE_URL;
1788 unset EMACS_cv_SYS_url_dir;
1789 unset EMACS_cv_SYS_url;
1791 if test "${EMACS_cv_ACCEPTABLE_URL+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -z ""noecho""; then
1797 echo "$as_me:$LINENO: checking for url-retrieve in url" >&5
1798 echo $ECHO_N "checking for url-retrieve in url... $ECHO_C" >&6
1800 library=`echo url | tr _ -`
1802 elisp="(progn (fmakunbound (quote url-retrieve)) (condition-case nil (progn (require (quote $library)) (fboundp (quote url-retrieve))) (error (prog1 nil (message \"$library not found\")))))"
1803 if test -z ""noecho""; then
1804 echo "$as_me:$LINENO: checking for url" >&5
1805 echo $ECHO_N "checking for url... $ECHO_C" >&6
1807 if test "${EMACS_cv_SYS_url+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 OUTPUT=./conftest-$$
1812 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1813 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1814 retval=`cat ${OUTPUT}`
1815 echo "=> ${retval}" >& 5 2>&1
1817 EMACS_cv_SYS_url=$retval
1821 url=${EMACS_cv_SYS_url}
1822 if test -z ""noecho""; then
1823 echo "$as_me:$LINENO: result: $url" >&5
1824 echo "${ECHO_T}$url" >&6
1827 if test "${EMACS_cv_SYS_url}" = nil; then
1830 if test "${EMACS_cv_SYS_url}" = t; then
1831 EMACS_cv_SYS_url=yes
1833 HAVE_url=${EMACS_cv_SYS_url}
1835 if test -z ""noecho""; then
1836 echo "$as_me:$LINENO: result: $HAVE_url" >&5
1837 echo "${ECHO_T}$HAVE_url" >&6
1840 if test "${HAVE_url}" = yes; then
1841 EMACS_cv_ACCEPTABLE_URL=yes
1843 EMACS_cv_ACCEPTABLE_URL=
1846 if test "${EMACS_cv_ACCEPTABLE_URL}" = yes; then
1848 elisp="(file-name-directory (locate-library \"url\"))"
1849 if test -z ""noecho""; then
1850 echo "$as_me:$LINENO: checking for url_dir" >&5
1851 echo $ECHO_N "checking for url_dir... $ECHO_C" >&6
1853 if test "${EMACS_cv_SYS_url_dir+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 OUTPUT=./conftest-$$
1858 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1859 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1860 retval=`cat ${OUTPUT}`
1861 echo "=> ${retval}" >& 5 2>&1
1863 EMACS_cv_SYS_url_dir=$retval
1867 url_dir=${EMACS_cv_SYS_url_dir}
1868 if test -z ""noecho""; then
1869 echo "$as_me:$LINENO: result: $url_dir" >&5
1870 echo "${ECHO_T}$url_dir" >&6
1873 EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1879 # Check whether --with-url or --without-url was given.
1880 if test "${with_url+set}" = set; then
1882 EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1884 URL=${EMACS_cv_ACCEPTABLE_URL}
1886 if test -z "${EMACS_cv_ACCEPTABLE_URL}"; then
1887 echo "$as_me:$LINENO: result: not found" >&5
1888 echo "${ECHO_T}not found" >&6
1890 echo "$as_me:$LINENO: result: ${URL}" >&5
1891 echo "${ECHO_T}${URL}" >&6
1895 echo "$as_me:$LINENO: checking for acceptable W3 version" >&5
1896 echo $ECHO_N "checking for acceptable W3 version... $ECHO_C" >&6
1898 unset EMACS_cv_ACCEPTABLE_W3;
1899 unset EMACS_cv_SYS_w3_dir;
1900 unset EMACS_cv_SYS_w3_forms;
1902 if test "${EMACS_cv_ACCEPTABLE_W3+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -z ""noecho""; then
1908 echo "$as_me:$LINENO: checking for w3-form-encode-xwfu in w3_forms" >&5
1909 echo $ECHO_N "checking for w3-form-encode-xwfu in w3_forms... $ECHO_C" >&6
1911 library=`echo w3_forms | tr _ -`
1913 elisp="(progn (fmakunbound (quote w3-form-encode-xwfu)) (condition-case nil (progn (require (quote $library)) (fboundp (quote w3-form-encode-xwfu))) (error (prog1 nil (message \"$library not found\")))))"
1914 if test -z ""noecho""; then
1915 echo "$as_me:$LINENO: checking for w3_forms" >&5
1916 echo $ECHO_N "checking for w3_forms... $ECHO_C" >&6
1918 if test "${EMACS_cv_SYS_w3_forms+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 OUTPUT=./conftest-$$
1923 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1924 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1925 retval=`cat ${OUTPUT}`
1926 echo "=> ${retval}" >& 5 2>&1
1928 EMACS_cv_SYS_w3_forms=$retval
1932 w3_forms=${EMACS_cv_SYS_w3_forms}
1933 if test -z ""noecho""; then
1934 echo "$as_me:$LINENO: result: $w3_forms" >&5
1935 echo "${ECHO_T}$w3_forms" >&6
1938 if test "${EMACS_cv_SYS_w3_forms}" = nil; then
1939 EMACS_cv_SYS_w3_forms=no
1941 if test "${EMACS_cv_SYS_w3_forms}" = t; then
1942 EMACS_cv_SYS_w3_forms=yes
1944 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1946 if test -z ""noecho""; then
1947 echo "$as_me:$LINENO: result: $HAVE_w3_forms" >&5
1948 echo "${ECHO_T}$HAVE_w3_forms" >&6
1951 if test "${HAVE_w3_forms}" = yes; then
1952 EMACS_cv_ACCEPTABLE_W3=yes
1954 EMACS_cv_ACCEPTABLE_W3=
1957 if test "${EMACS_cv_ACCEPTABLE_W3}" = yes; then
1959 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1960 if test -z ""noecho""; then
1961 echo "$as_me:$LINENO: checking for w3_dir" >&5
1962 echo $ECHO_N "checking for w3_dir... $ECHO_C" >&6
1964 if test "${EMACS_cv_SYS_w3_dir+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 OUTPUT=./conftest-$$
1969 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1970 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1971 retval=`cat ${OUTPUT}`
1972 echo "=> ${retval}" >& 5 2>&1
1974 EMACS_cv_SYS_w3_dir=$retval
1978 w3_dir=${EMACS_cv_SYS_w3_dir}
1979 if test -z ""noecho""; then
1980 echo "$as_me:$LINENO: result: $w3_dir" >&5
1981 echo "${ECHO_T}$w3_dir" >&6
1984 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1990 # Check whether --with-w3 or --without-w3 was given.
1991 if test "${with_w3+set}" = set; then
1993 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1995 W3=${EMACS_cv_ACCEPTABLE_W3}
1997 if test -z "${EMACS_cv_ACCEPTABLE_W3}"; then
1998 echo "$as_me:$LINENO: result: not found" >&5
1999 echo "${ECHO_T}not found" >&6
2001 echo "$as_me:$LINENO: result: ${W3}" >&5
2002 echo "${ECHO_T}${W3}" >&6
2006 echo "$as_me:$LINENO: checking which options to pass on to (X)Emacs" >&5
2007 echo $ECHO_N "checking which options to pass on to (X)Emacs... $ECHO_C" >&6
2008 if test "x$FLAGS" = "x"; then
2009 if test "$EMACS_FLAVOR" = "xemacs"; then
2010 FLAGS="-batch -no-autoloads -l \$(srcdir)/dgnushack.el"
2012 FLAGS="-batch -q -no-site-file -l \$(srcdir)/dgnushack.el"
2017 echo "$as_me:$LINENO: result: $FLAGS" >&5
2018 echo "${ECHO_T}$FLAGS" >&6
2022 test "$LATEX" = t && LATEX=
2023 test "$LATEX" || for ac_prog in latex
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_path_LATEX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 LATEX=$ac_cv_path_LATEX
2056 if test -n "$LATEX"; then
2057 echo "$as_me:$LINENO: result: $LATEX" >&5
2058 echo "${ECHO_T}$LATEX" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$LATEX" && break
2066 test -n "$LATEX" || LATEX="no"
2068 echo "$as_me:$LINENO: checking for available fonts" >&5
2069 echo $ECHO_N "checking for available fonts... $ECHO_C" >&6
2071 # Check whether --with-fonts or --without-fonts was given.
2072 if test "${with_fonts+set}" = set; then
2073 withval="$with_fonts"
2074 USE_FONTS="$withval"
2076 WITH_FONTS_bembo='%'
2077 WITHOUT_FONTS_bembo=
2082 if test -z "${USE_FONTS}"; then
2083 if test "${LATEX}" = no; then
2086 OUTPUT=./conftest-$$
2087 echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
2088 if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1 ; then
2089 if test -z "${USE_FONTS}"; then
2090 USE_FONTS="Adobe Bembo"
2092 USE_FONTS="${USE_FONTS}, Adobe Bembo"
2095 WITHOUT_FONTS_bembo='%'
2097 echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
2098 if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
2099 if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1 ; then
2102 if test -z "${USE_FONTS}"; then
2103 USE_FONTS="Adobe Futura"
2105 USE_FONTS="${USE_FONTS}, Adobe Futura"
2108 WITHOUT_FONTS_pfu='%'
2111 echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
2112 if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
2113 if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1 ; then
2116 if test -z "${USE_FONTS}"; then
2117 USE_FONTS="Bitstream Courier"
2119 USE_FONTS="${USE_FONTS}, Bitstream Courier"
2122 WITHOUT_FONTS_bcr='%'
2125 rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
2127 elif test "${USE_FONTS}" = yes ; then
2129 WITHOUT_FONTS_bembo='%'
2131 WITHOUT_FONTS_pfu='%'
2133 WITHOUT_FONTS_bcr='%'
2141 if test -z "${USE_FONTS}" ; then
2144 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
2145 echo "$as_me:$LINENO: result: ${USE_FONTS}" >&5
2146 echo "${ECHO_T}${USE_FONTS}" >&6
2147 if test "${USE_FONTS}" = yes ; then
2148 USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
2149 elif test "${USE_FONTS}" = no ; then
2152 USE_FONTS="Set in ${USE_FONTS}."
2156 if test ${EMACS_FLAVOR} = xemacs; then
2157 echo "$as_me:$LINENO: checking where the XEmacs package is" >&5
2158 echo $ECHO_N "checking where the XEmacs package is... $ECHO_C" >&6
2160 # Check whether --with-packagedir or --without-packagedir was given.
2161 if test "${with_packagedir+set}" = set; then
2162 withval="$with_packagedir"
2163 if test "$withval" != yes -a -n "$withval"; then
2167 elisp="(let ((dirs (append\
2168 (if (and (boundp (quote configure-package-path))\
2169 (listp configure-package-path))\
2170 (delete \"\" configure-package-path))\
2171 (if (boundp (quote early-packages))\
2173 (if early-package-load-path early-packages)\
2174 (if late-package-load-path late-packages)\
2175 (if last-package-load-path last-packages)))))\
2177 (while (and dirs (not package-dir))\
2178 (if (file-directory-p (car dirs))\
2179 (setq package-dir (car dirs)\
2181 (or package-dir \"\"))"
2182 if test -z ""noecho""; then
2183 echo "$as_me:$LINENO: checking for PACKAGEDIR" >&5
2184 echo $ECHO_N "checking for PACKAGEDIR... $ECHO_C" >&6
2186 if test "${EMACS_cv_SYS_PACKAGEDIR+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 OUTPUT=./conftest-$$
2191 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
2192 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
2193 retval=`cat ${OUTPUT}`
2194 echo "=> ${retval}" >& 5 2>&1
2196 EMACS_cv_SYS_PACKAGEDIR=$retval
2200 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
2201 if test -z ""noecho""; then
2202 echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2203 echo "${ECHO_T}$PACKAGEDIR" >&6
2209 elisp="(let ((dirs (append\
2210 (if (and (boundp (quote configure-package-path))\
2211 (listp configure-package-path))\
2212 (delete \"\" configure-package-path))\
2213 (if (boundp (quote early-packages))\
2215 (if early-package-load-path early-packages)\
2216 (if late-package-load-path late-packages)\
2217 (if last-package-load-path last-packages)))))\
2219 (while (and dirs (not package-dir))\
2220 (if (file-directory-p (car dirs))\
2221 (setq package-dir (car dirs)\
2223 (or package-dir \"\"))"
2224 if test -z ""noecho""; then
2225 echo "$as_me:$LINENO: checking for PACKAGEDIR" >&5
2226 echo $ECHO_N "checking for PACKAGEDIR... $ECHO_C" >&6
2228 if test "${EMACS_cv_SYS_PACKAGEDIR+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 OUTPUT=./conftest-$$
2233 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
2234 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
2235 retval=`cat ${OUTPUT}`
2236 echo "=> ${retval}" >& 5 2>&1
2238 EMACS_cv_SYS_PACKAGEDIR=$retval
2242 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
2243 if test -z ""noecho""; then
2244 echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2245 echo "${ECHO_T}$PACKAGEDIR" >&6
2249 if test -z "$PACKAGEDIR"; then
2250 echo "$as_me:$LINENO: result: not found" >&5
2251 echo "${ECHO_T}not found" >&6
2253 echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2254 echo "${ECHO_T}$PACKAGEDIR" >&6
2261 # Check whether --with-addpath or --without-addpath was given.
2262 if test "${with_addpath+set}" = set; then
2263 withval="$with_addpath"
2264 if test "$withval" != yes -a -n "$withval"; then
2265 echo "$as_me:$LINENO: checking where to find the additional elisp libraries" >&5
2266 echo $ECHO_N "checking where to find the additional elisp libraries... $ECHO_C" >&6
2267 ADDITIONAL_LOAD_PATH=$withval
2268 echo "$as_me:$LINENO: result: $ADDITIONAL_LOAD_PATH" >&5
2269 echo "${ECHO_T}$ADDITIONAL_LOAD_PATH" >&6
2272 ADDITIONAL_LOAD_PATH=
2275 ac_config_files="$ac_config_files Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el"
2276 cat >confcache <<\_ACEOF
2277 # This file is a shell script that caches the results of configure
2278 # tests run on this system so they can be shared between configure
2279 # scripts and configure runs, see configure's option --config-cache.
2280 # It is not useful on other systems. If it contains results you don't
2281 # want to keep, you may remove or edit it.
2283 # config.status only pays attention to the cache file if you give it
2284 # the --recheck option to rerun configure.
2286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2292 # The following way of writing the cache mishandles newlines in values,
2293 # but we know of no workaround that is simple, portable, and efficient.
2294 # So, don't put newlines in cache variables' values.
2295 # Ultrix sh set writes to stderr and can't be redirected directly,
2296 # and sets the high bit in the cache file unless we assign to the vars.
2299 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2301 # `set' does not quote correctly, so add quotes (double-quote
2302 # substitution turns \\\\ into \\, and sed turns \\ into \).
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2308 # `set' quotes correctly as required by POSIX, so do not add quotes.
2310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2317 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2319 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2321 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2322 if test -w $cache_file; then
2323 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2324 cat confcache >$cache_file
2326 echo "not updating unwritable cache $cache_file"
2331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2332 # Let make expand exec_prefix.
2333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2337 # trailing colons and then remove the whole line if VPATH becomes empty
2338 # (actually we leave an empty line to preserve line numbers).
2339 if test "x$srcdir" = x.; then
2340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2341 s/:*\$(srcdir):*/:/;
2342 s/:*\${srcdir}:*/:/;
2344 s/^\([^=]*=[ ]*\):*/\1/;
2350 # Transform confdefs.h into DEFS.
2351 # Protect against shell expansion while executing Makefile rules.
2352 # Protect against Makefile macro expansion.
2354 # If the first sed substitution is executed (which looks for macros that
2355 # take arguments), then we branch to the quote section. Otherwise,
2356 # look for a macro that doesn't take arguments.
2357 cat >confdef2opt.sed <<\_ACEOF
2360 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2362 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2366 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2372 # We use echo to avoid assuming a particular line-breaking character.
2373 # The extra dot is to prevent the shell from consuming trailing
2374 # line-breaks from the sub-command output. A line-break within
2375 # single-quotes doesn't work because, if this script is created in a
2376 # platform that uses two characters for line-breaks (e.g., DOS), tr
2378 ac_LF_and_DOT=`echo; echo .`
2379 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2380 rm -f confdef2opt.sed
2385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2386 # 1. Remove the extension, and $U if already installed.
2387 ac_i=`echo "$ac_i" |
2388 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2390 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2391 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2395 LTLIBOBJS=$ac_ltlibobjs
2399 : ${CONFIG_STATUS=./config.status}
2400 ac_clean_files_save=$ac_clean_files
2401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2402 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2403 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2404 cat >$CONFIG_STATUS <<_ACEOF
2406 # Generated by $as_me.
2407 # Run this file to recreate the current configuration.
2408 # Compiler output produced by configure, useful for debugging
2409 # configure, is in config.log if it exists.
2414 SHELL=\${CONFIG_SHELL-$SHELL}
2417 cat >>$CONFIG_STATUS <<\_ACEOF
2418 ## --------------------- ##
2419 ## M4sh Initialization. ##
2420 ## --------------------- ##
2422 # Be Bourne compatible
2423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2427 # is contrary to our usage. Disable this feature.
2428 alias -g '${1+"$@"}'='"$@"'
2429 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2432 DUALCASE=1; export DUALCASE # for MKS sh
2434 # Support unset when possible.
2435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2442 # Work around bugs in pre-3.0 UWIN ksh.
2443 $as_unset ENV MAIL MAILPATH
2450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2452 LC_TELEPHONE LC_TIME
2454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2455 eval $as_var=C; export $as_var
2461 # Required to use basename.
2462 if expr a : '\(a\)' >/dev/null 2>&1; then
2468 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2469 as_basename=basename
2475 # Name of the executable.
2476 as_me=`$as_basename "$0" ||
2477 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2478 X"$0" : 'X\(//\)$' \| \
2479 X"$0" : 'X\(/\)$' \| \
2480 . : '\(.\)' 2>/dev/null ||
2482 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2483 /^X\/\(\/\/\)$/{ s//\1/; q; }
2484 /^X\/\(\/\).*/{ s//\1/; q; }
2488 # PATH needs CR, and LINENO needs CR and PATH.
2489 # Avoid depending upon Character Ranges.
2490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2493 as_cr_digits='0123456789'
2494 as_cr_alnum=$as_cr_Letters$as_cr_digits
2496 # The user is always right.
2497 if test "${PATH_SEPARATOR+set}" != set; then
2498 echo "#! /bin/sh" >conf$$.sh
2499 echo "exit 0" >>conf$$.sh
2501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2513 test "x$as_lineno_1" != "x$as_lineno_2" &&
2514 test "x$as_lineno_3" = "x$as_lineno_2" || {
2515 # Find who we are. Look in the path if we contain no path at all
2518 *[\\/]* ) as_myself=$0 ;;
2519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2529 # We did not find ourselves, most probably we were run as `sh COMMAND'
2530 # in which case we are not to be found in the path.
2531 if test "x$as_myself" = x; then
2534 if test ! -f "$as_myself"; then
2535 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2536 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2537 { (exit 1); exit 1; }; }
2539 case $CONFIG_SHELL in
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2545 test -z "$as_dir" && as_dir=.
2546 for as_base in sh bash ksh sh5; do
2549 if ("$as_dir/$as_base" -c '
2552 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2553 test "x$as_lineno_1" != "x$as_lineno_2" &&
2554 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2555 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2556 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2557 CONFIG_SHELL=$as_dir/$as_base
2559 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2567 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2568 # uniformly replaced by the line number. The first 'sed' inserts a
2569 # line-number line before each line; the second 'sed' does the real
2570 # work. The second script uses 'N' to pair each line-number line
2571 # with the numbered line, and appends trailing '-' during
2572 # substitution so that $LINENO is not a special case at line end.
2573 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2574 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2575 sed '=' <$as_myself |
2580 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2583 s,^['$as_cr_digits']*\n,,
2585 chmod +x $as_me.lineno ||
2586 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2587 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2588 { (exit 1); exit 1; }; }
2590 # Don't try to exec as it changes $[0], causing all sort of problems
2591 # (the dirname of $[0] is not the place where we might find the
2592 # original and so on. Autoconf is especially sensible to this).
2594 # Exit status is that of the last command.
2599 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2600 *c*,-n*) ECHO_N= ECHO_C='
2602 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2603 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2606 if expr a : '\(a\)' >/dev/null 2>&1; then
2612 rm -f conf$$ conf$$.exe conf$$.file
2614 if ln -s conf$$.file conf$$ 2>/dev/null; then
2615 # We could just check for DJGPP; but this test a) works b) is more generic
2616 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2617 if test -f conf$$.exe; then
2618 # Don't use ln at all; we don't have any links
2623 elif ln conf$$.file conf$$ 2>/dev/null; then
2628 rm -f conf$$ conf$$.exe conf$$.file
2630 if mkdir -p . 2>/dev/null; then
2633 test -d ./-p && rmdir ./-p
2637 as_executable_p="test -f"
2639 # Sed expression to map a string onto a valid CPP name.
2640 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2642 # Sed expression to map a string onto a valid variable name.
2643 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2647 # We need space, tab and new line, in precisely that order.
2657 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2658 # report actual input values of CONFIG_FILES etc. instead of their
2659 # values after options handling. Logging --version etc. is OK.
2663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2664 ## Running $as_me. ##
2669 This file was extended by $as_me, which was
2670 generated by GNU Autoconf 2.59. Invocation command line was
2672 CONFIG_FILES = $CONFIG_FILES
2673 CONFIG_HEADERS = $CONFIG_HEADERS
2674 CONFIG_LINKS = $CONFIG_LINKS
2675 CONFIG_COMMANDS = $CONFIG_COMMANDS
2679 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2683 # Files that config.status was made for.
2684 if test -n "$ac_config_files"; then
2685 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2688 if test -n "$ac_config_headers"; then
2689 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2692 if test -n "$ac_config_links"; then
2693 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2696 if test -n "$ac_config_commands"; then
2697 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2700 cat >>$CONFIG_STATUS <<\_ACEOF
2703 \`$as_me' instantiates files from templates according to the
2704 current configuration.
2706 Usage: $0 [OPTIONS] [FILE]...
2708 -h, --help print this help, then exit
2709 -V, --version print version number, then exit
2710 -q, --quiet do not print progress messages
2711 -d, --debug don't remove temporary files
2712 --recheck update $as_me by reconfiguring in the same conditions
2713 --file=FILE[:TEMPLATE]
2714 instantiate the configuration file FILE
2716 Configuration files:
2719 Report bugs to <bug-autoconf@gnu.org>."
2722 cat >>$CONFIG_STATUS <<_ACEOF
2725 configured by $0, generated by GNU Autoconf 2.59,
2726 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2728 Copyright (C) 2003 Free Software Foundation, Inc.
2729 This config.status script is free software; the Free Software Foundation
2730 gives unlimited permission to copy, distribute and modify it."
2735 cat >>$CONFIG_STATUS <<\_ACEOF
2736 # If no file are specified by the user, then we need to provide default
2737 # value. By we need to know if files were specified by the user.
2743 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2744 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2752 *) # This is not an option, so the user has probably given explicit
2755 ac_need_defaults=false;;
2759 # Handling of the options.
2761 cat >>$CONFIG_STATUS <<\_ACEOF
2762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2764 --version | --vers* | -V )
2765 echo "$ac_cs_version"; exit 0 ;;
2767 # Conflict between --help and --header
2768 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2769 Try \`$0 --help' for more information." >&5
2770 echo "$as_me: error: ambiguous option: $1
2771 Try \`$0 --help' for more information." >&2;}
2772 { (exit 1); exit 1; }; };;
2773 --help | --hel | -h )
2774 echo "$ac_cs_usage"; exit 0 ;;
2775 --debug | --d* | -d )
2777 --file | --fil | --fi | --f )
2779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2780 ac_need_defaults=false;;
2781 --header | --heade | --head | --hea )
2783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2784 ac_need_defaults=false;;
2785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2790 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2791 Try \`$0 --help' for more information." >&5
2792 echo "$as_me: error: unrecognized option: $1
2793 Try \`$0 --help' for more information." >&2;}
2794 { (exit 1); exit 1; }; } ;;
2796 *) ac_config_targets="$ac_config_targets $1" ;;
2802 ac_configure_extra_args=
2804 if $ac_cs_silent; then
2806 ac_configure_extra_args="$ac_configure_extra_args --silent"
2810 cat >>$CONFIG_STATUS <<_ACEOF
2811 if \$ac_cs_recheck; then
2812 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2813 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2822 cat >>$CONFIG_STATUS <<\_ACEOF
2823 for ac_config_target in $ac_config_targets
2825 case "$ac_config_target" in
2826 # Handling of arguments.
2827 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2828 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
2829 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
2830 "texi/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/Makefile" ;;
2831 "texi/gnusconfig.tex" ) CONFIG_FILES="$CONFIG_FILES texi/gnusconfig.tex" ;;
2832 "texi/ps/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/ps/Makefile" ;;
2833 "lisp/dgnuspath.el" ) CONFIG_FILES="$CONFIG_FILES lisp/dgnuspath.el" ;;
2834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2836 { (exit 1); exit 1; }; };;
2840 # If the user did not use the arguments to specify the items to instantiate,
2841 # then the envvar interface is used. Set only those that are not.
2842 # We use the long form for the default assignment because of an extremely
2843 # bizarre bug on SunOS 4.1.3.
2844 if $ac_need_defaults; then
2845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2848 # Have a temporary directory for convenience. Make it in the build tree
2849 # simply because there is no reason to put it here, and in addition,
2850 # creating and moving files from /tmp can sometimes cause problems.
2851 # Create a temporary directory, and hook for its removal unless debugging.
2854 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2855 trap '{ (exit 1); exit 1; }' 1 2 13 15
2858 # Create a (secure) tmp directory for tmp files.
2861 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2862 test -n "$tmp" && test -d "$tmp"
2865 tmp=./confstat$$-$RANDOM
2866 (umask 077 && mkdir $tmp)
2869 echo "$me: cannot create a temporary directory in ." >&2
2870 { (exit 1); exit 1; }
2875 cat >>$CONFIG_STATUS <<_ACEOF
2878 # CONFIG_FILES section.
2881 # No need to generate the scripts if there are no CONFIG_FILES.
2882 # This happens for instance when ./config.status config.h
2883 if test -n "\$CONFIG_FILES"; then
2884 # Protect against being on the right side of a sed subst in config.status.
2885 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2886 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2887 s,@SHELL@,$SHELL,;t t
2888 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2889 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2890 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2891 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2892 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2893 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2894 s,@exec_prefix@,$exec_prefix,;t t
2895 s,@prefix@,$prefix,;t t
2896 s,@program_transform_name@,$program_transform_name,;t t
2897 s,@bindir@,$bindir,;t t
2898 s,@sbindir@,$sbindir,;t t
2899 s,@libexecdir@,$libexecdir,;t t
2900 s,@datadir@,$datadir,;t t
2901 s,@sysconfdir@,$sysconfdir,;t t
2902 s,@sharedstatedir@,$sharedstatedir,;t t
2903 s,@localstatedir@,$localstatedir,;t t
2904 s,@libdir@,$libdir,;t t
2905 s,@includedir@,$includedir,;t t
2906 s,@oldincludedir@,$oldincludedir,;t t
2907 s,@infodir@,$infodir,;t t
2908 s,@mandir@,$mandir,;t t
2909 s,@build_alias@,$build_alias,;t t
2910 s,@host_alias@,$host_alias,;t t
2911 s,@target_alias@,$target_alias,;t t
2913 s,@ECHO_C@,$ECHO_C,;t t
2914 s,@ECHO_N@,$ECHO_N,;t t
2915 s,@ECHO_T@,$ECHO_T,;t t
2917 s,@GNUS_PRODUCT_NAME@,$GNUS_PRODUCT_NAME,;t t
2918 s,@SET_MAKE@,$SET_MAKE,;t t
2919 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2920 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2921 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2922 s,@MAKEINFO@,$MAKEINFO,;t t
2923 s,@EMACS@,$EMACS,;t t
2924 s,@XEMACS@,$XEMACS,;t t
2925 s,@lispdir@,$lispdir,;t t
2926 s,@etcdir@,$etcdir,;t t
2927 s,@info_dir@,$info_dir,;t t
2928 s,@HAVE_url@,$HAVE_url,;t t
2930 s,@HAVE_w3_forms@,$HAVE_w3_forms,;t t
2932 s,@FLAGS@,$FLAGS,;t t
2933 s,@LATEX@,$LATEX,;t t
2934 s,@WITH_FONTS_bembo@,$WITH_FONTS_bembo,;t t
2935 s,@WITHOUT_FONTS_bembo@,$WITHOUT_FONTS_bembo,;t t
2936 s,@WITH_FONTS_pfu@,$WITH_FONTS_pfu,;t t
2937 s,@WITHOUT_FONTS_pfu@,$WITHOUT_FONTS_pfu,;t t
2938 s,@WITH_FONTS_bcr@,$WITH_FONTS_bcr,;t t
2939 s,@WITHOUT_FONTS_bcr@,$WITHOUT_FONTS_bcr,;t t
2940 s,@USE_FONTS@,$USE_FONTS,;t t
2941 s,@PACKAGEDIR@,$PACKAGEDIR,;t t
2942 s,@ADDITIONAL_LOAD_PATH@,$ADDITIONAL_LOAD_PATH,;t t
2943 s,@LIBOBJS@,$LIBOBJS,;t t
2944 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2949 cat >>$CONFIG_STATUS <<\_ACEOF
2950 # Split the substitutions into bite-sized pieces for seds with
2951 # small command number limits, like on Digital OSF/1 and HP-UX.
2953 ac_sed_frag=1 # Number of current file.
2954 ac_beg=1 # First line for current file.
2955 ac_end=$ac_max_sed_lines # Line after last line for current file.
2958 while $ac_more_lines; do
2959 if test $ac_beg -gt 1; then
2960 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2962 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2964 if test ! -s $tmp/subs.frag; then
2967 # The purpose of the label and of the branching condition is to
2968 # speed up the sed processing (if there are no `@' at all, there
2969 # is no need to browse any of the substitutions).
2970 # These are the two extra sed commands mentioned above.
2972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2973 if test -z "$ac_sed_cmds"; then
2974 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2976 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2978 ac_sed_frag=`expr $ac_sed_frag + 1`
2980 ac_end=`expr $ac_end + $ac_max_sed_lines`
2983 if test -z "$ac_sed_cmds"; then
2986 fi # test -n "$CONFIG_FILES"
2989 cat >>$CONFIG_STATUS <<\_ACEOF
2990 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2993 - | *:- | *:-:* ) # input from stdin
2995 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2997 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2999 * ) ac_file_in=$ac_file.in ;;
3002 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3003 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3005 X"$ac_file" : 'X\(//\)[^/]' \| \
3006 X"$ac_file" : 'X\(//\)$' \| \
3007 X"$ac_file" : 'X\(/\)' \| \
3008 . : '\(.\)' 2>/dev/null ||
3010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3012 /^X\(\/\/\)$/{ s//\1/; q; }
3013 /^X\(\/\).*/{ s//\1/; q; }
3015 { if $as_mkdir_p; then
3020 while test ! -d "$as_dir"; do
3021 as_dirs="$as_dir $as_dirs"
3022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3024 X"$as_dir" : 'X\(//\)[^/]' \| \
3025 X"$as_dir" : 'X\(//\)$' \| \
3026 X"$as_dir" : 'X\(/\)' \| \
3027 . : '\(.\)' 2>/dev/null ||
3029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3031 /^X\(\/\/\)$/{ s//\1/; q; }
3032 /^X\(\/\).*/{ s//\1/; q; }
3035 test ! -n "$as_dirs" || mkdir $as_dirs
3036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3038 { (exit 1); exit 1; }; }; }
3042 if test "$ac_dir" != .; then
3043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3044 # A "../" for each directory in $ac_dir_suffix.
3045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3047 ac_dir_suffix= ac_top_builddir=
3051 .) # No --srcdir option. We are building in place.
3053 if test -z "$ac_top_builddir"; then
3056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3058 [\\/]* | ?:[\\/]* ) # Absolute path.
3059 ac_srcdir=$srcdir$ac_dir_suffix;
3060 ac_top_srcdir=$srcdir ;;
3062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3066 # Do not use `cd foo && pwd` to compute absolute paths, because
3067 # the directories may not exist.
3069 .) ac_abs_builddir="$ac_dir";;
3072 .) ac_abs_builddir=`pwd`;;
3073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3077 case $ac_abs_builddir in
3078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3080 case ${ac_top_builddir}. in
3081 .) ac_abs_top_builddir=$ac_abs_builddir;;
3082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3086 case $ac_abs_builddir in
3087 .) ac_abs_srcdir=$ac_srcdir;;
3090 .) ac_abs_srcdir=$ac_abs_builddir;;
3091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3095 case $ac_abs_builddir in
3096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3098 case $ac_top_srcdir in
3099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3108 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3111 if test x"$ac_file" != x-; then
3112 { echo "$as_me:$LINENO: creating $ac_file" >&5
3113 echo "$as_me: creating $ac_file" >&6;}
3116 # Let's still pretend it is `configure' which instantiates (i.e., don't
3117 # use $as_me), people would be surprised to read:
3118 # /* config.h. Generated by config.status. */
3119 if test x"$ac_file" = x-; then
3122 configure_input="$ac_file. "
3124 configure_input=$configure_input"Generated from `echo $ac_file_in |
3125 sed 's,.*/,,'` by configure."
3127 # First look for the input files in the build tree, otherwise in the
3129 ac_file_inputs=`IFS=:
3130 for f in $ac_file_in; do
3132 -) echo $tmp/stdin ;;
3134 # Absolute (can't be DOS-style, as IFS=:)
3135 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3136 echo "$as_me: error: cannot find input file: $f" >&2;}
3137 { (exit 1); exit 1; }; }
3140 if test -f "$f"; then
3143 elif test -f "$srcdir/$f"; then
3148 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3149 echo "$as_me: error: cannot find input file: $f" >&2;}
3150 { (exit 1); exit 1; }; }
3153 done` || { (exit 1); exit 1; }
3155 cat >>$CONFIG_STATUS <<_ACEOF
3159 cat >>$CONFIG_STATUS <<\_ACEOF
3161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3162 s,@configure_input@,$configure_input,;t t
3163 s,@srcdir@,$ac_srcdir,;t t
3164 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3165 s,@top_srcdir@,$ac_top_srcdir,;t t
3166 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3167 s,@builddir@,$ac_builddir,;t t
3168 s,@abs_builddir@,$ac_abs_builddir,;t t
3169 s,@top_builddir@,$ac_top_builddir,;t t
3170 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3171 s,@INSTALL@,$ac_INSTALL,;t t
3172 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3174 if test x"$ac_file" != x-; then
3175 mv $tmp/out $ac_file
3184 cat >>$CONFIG_STATUS <<\_ACEOF
3186 { (exit 0); exit 0; }
3188 chmod +x $CONFIG_STATUS
3189 ac_clean_files=$ac_clean_files_save
3192 # configure is writing to config.log, and then calls config.status.
3193 # config.status does its own redirection, appending to config.log.
3194 # Unfortunately, on DOS this fails, as config.log is still kept open
3195 # by configure, so config.status won't be able to write to it; its
3196 # output is simply discarded. So we exec the FD to /dev/null,
3197 # effectively closing config.log, so it can be properly (re)opened and
3198 # appended to by config.status. When coming back to configure, we
3199 # need to make the FD available again.
3200 if test "$no_create" != yes; then
3202 ac_config_status_args=
3203 test "$silent" = yes &&
3204 ac_config_status_args="$ac_config_status_args --quiet"
3206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3209 # would make configure fail if this is the last instruction.
3210 $ac_cs_success || { (exit 1); exit 1; }