Feedback T-gnus 6.16.
[elisp/gnus.git-] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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 \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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 ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
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
85
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
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
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
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
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
122     as_myself=$0
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
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
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
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 |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
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; }; }
177
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).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="lisp/gnus.el"
274 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'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318   # If the previous option needs an argument, assign it.
319   if test -n "$ac_prev"; then
320     eval "$ac_prev=\$ac_option"
321     ac_prev=
322     continue
323   fi
324
325   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327   # Accept the important Cygnus configure options, so we can diagnose typos.
328
329   case $ac_option in
330
331   -bindir | --bindir | --bindi | --bind | --bin | --bi)
332     ac_prev=bindir ;;
333   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334     bindir=$ac_optarg ;;
335
336   -build | --build | --buil | --bui | --bu)
337     ac_prev=build_alias ;;
338   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339     build_alias=$ac_optarg ;;
340
341   -cache-file | --cache-file | --cache-fil | --cache-fi \
342   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343     ac_prev=cache_file ;;
344   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346     cache_file=$ac_optarg ;;
347
348   --config-cache | -C)
349     cache_file=config.cache ;;
350
351   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352     ac_prev=datadir ;;
353   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354   | --da=*)
355     datadir=$ac_optarg ;;
356
357   -disable-* | --disable-*)
358     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359     # Reject names that are not valid shell variable names.
360     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362    { (exit 1); exit 1; }; }
363     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364     eval "enable_$ac_feature=no" ;;
365
366   -enable-* | --enable-*)
367     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368     # Reject names that are not valid shell variable names.
369     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371    { (exit 1); exit 1; }; }
372     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373     case $ac_option in
374       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375       *) ac_optarg=yes ;;
376     esac
377     eval "enable_$ac_feature='$ac_optarg'" ;;
378
379   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381   | --exec | --exe | --ex)
382     ac_prev=exec_prefix ;;
383   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385   | --exec=* | --exe=* | --ex=*)
386     exec_prefix=$ac_optarg ;;
387
388   -gas | --gas | --ga | --g)
389     # Obsolete; use --with-gas.
390     with_gas=yes ;;
391
392   -help | --help | --hel | --he | -h)
393     ac_init_help=long ;;
394   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395     ac_init_help=recursive ;;
396   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397     ac_init_help=short ;;
398
399   -host | --host | --hos | --ho)
400     ac_prev=host_alias ;;
401   -host=* | --host=* | --hos=* | --ho=*)
402     host_alias=$ac_optarg ;;
403
404   -includedir | --includedir | --includedi | --included | --include \
405   | --includ | --inclu | --incl | --inc)
406     ac_prev=includedir ;;
407   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408   | --includ=* | --inclu=* | --incl=* | --inc=*)
409     includedir=$ac_optarg ;;
410
411   -infodir | --infodir | --infodi | --infod | --info | --inf)
412     ac_prev=infodir ;;
413   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414     infodir=$ac_optarg ;;
415
416   -libdir | --libdir | --libdi | --libd)
417     ac_prev=libdir ;;
418   -libdir=* | --libdir=* | --libdi=* | --libd=*)
419     libdir=$ac_optarg ;;
420
421   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422   | --libexe | --libex | --libe)
423     ac_prev=libexecdir ;;
424   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425   | --libexe=* | --libex=* | --libe=*)
426     libexecdir=$ac_optarg ;;
427
428   -localstatedir | --localstatedir | --localstatedi | --localstated \
429   | --localstate | --localstat | --localsta | --localst \
430   | --locals | --local | --loca | --loc | --lo)
431     ac_prev=localstatedir ;;
432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435     localstatedir=$ac_optarg ;;
436
437   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438     ac_prev=mandir ;;
439   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440     mandir=$ac_optarg ;;
441
442   -nfp | --nfp | --nf)
443     # Obsolete; use --without-fp.
444     with_fp=no ;;
445
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c | -n)
448     no_create=yes ;;
449
450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452     no_recursion=yes ;;
453
454   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456   | --oldin | --oldi | --old | --ol | --o)
457     ac_prev=oldincludedir ;;
458   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461     oldincludedir=$ac_optarg ;;
462
463   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464     ac_prev=prefix ;;
465   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466     prefix=$ac_optarg ;;
467
468   -program-prefix | --program-prefix | --program-prefi | --program-pref \
469   | --program-pre | --program-pr | --program-p)
470     ac_prev=program_prefix ;;
471   -program-prefix=* | --program-prefix=* | --program-prefi=* \
472   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473     program_prefix=$ac_optarg ;;
474
475   -program-suffix | --program-suffix | --program-suffi | --program-suff \
476   | --program-suf | --program-su | --program-s)
477     ac_prev=program_suffix ;;
478   -program-suffix=* | --program-suffix=* | --program-suffi=* \
479   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480     program_suffix=$ac_optarg ;;
481
482   -program-transform-name | --program-transform-name \
483   | --program-transform-nam | --program-transform-na \
484   | --program-transform-n | --program-transform- \
485   | --program-transform | --program-transfor \
486   | --program-transfo | --program-transf \
487   | --program-trans | --program-tran \
488   | --progr-tra | --program-tr | --program-t)
489     ac_prev=program_transform_name ;;
490   -program-transform-name=* | --program-transform-name=* \
491   | --program-transform-nam=* | --program-transform-na=* \
492   | --program-transform-n=* | --program-transform-=* \
493   | --program-transform=* | --program-transfor=* \
494   | --program-transfo=* | --program-transf=* \
495   | --program-trans=* | --program-tran=* \
496   | --progr-tra=* | --program-tr=* | --program-t=*)
497     program_transform_name=$ac_optarg ;;
498
499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500   | -silent | --silent | --silen | --sile | --sil)
501     silent=yes ;;
502
503   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504     ac_prev=sbindir ;;
505   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506   | --sbi=* | --sb=*)
507     sbindir=$ac_optarg ;;
508
509   -sharedstatedir | --sharedstatedir | --sharedstatedi \
510   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511   | --sharedst | --shareds | --shared | --share | --shar \
512   | --sha | --sh)
513     ac_prev=sharedstatedir ;;
514   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517   | --sha=* | --sh=*)
518     sharedstatedir=$ac_optarg ;;
519
520   -site | --site | --sit)
521     ac_prev=site ;;
522   -site=* | --site=* | --sit=*)
523     site=$ac_optarg ;;
524
525   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526     ac_prev=srcdir ;;
527   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528     srcdir=$ac_optarg ;;
529
530   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531   | --syscon | --sysco | --sysc | --sys | --sy)
532     ac_prev=sysconfdir ;;
533   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535     sysconfdir=$ac_optarg ;;
536
537   -target | --target | --targe | --targ | --tar | --ta | --t)
538     ac_prev=target_alias ;;
539   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540     target_alias=$ac_optarg ;;
541
542   -v | -verbose | --verbose | --verbos | --verbo | --verb)
543     verbose=yes ;;
544
545   -version | --version | --versio | --versi | --vers | -V)
546     ac_init_version=: ;;
547
548   -with-* | --with-*)
549     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid package name: $ac_package" >&2
553    { (exit 1); exit 1; }; }
554     ac_package=`echo $ac_package| sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "with_$ac_package='$ac_optarg'" ;;
560
561   -without-* | --without-*)
562     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid package name: $ac_package" >&2
566    { (exit 1); exit 1; }; }
567     ac_package=`echo $ac_package | sed 's/-/_/g'`
568     eval "with_$ac_package=no" ;;
569
570   --x)
571     # Obsolete; use --with-x.
572     with_x=yes ;;
573
574   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575   | --x-incl | --x-inc | --x-in | --x-i)
576     ac_prev=x_includes ;;
577   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579     x_includes=$ac_optarg ;;
580
581   -x-libraries | --x-libraries | --x-librarie | --x-librari \
582   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583     ac_prev=x_libraries ;;
584   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586     x_libraries=$ac_optarg ;;
587
588   -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590    { (exit 1); exit 1; }; }
591     ;;
592
593   *=*)
594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595     # Reject names that are not valid shell variable names.
596     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598    { (exit 1); exit 1; }; }
599     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600     eval "$ac_envvar='$ac_optarg'"
601     export $ac_envvar ;;
602
603   *)
604     # FIXME: should be removed in autoconf 3.0.
605     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609     ;;
610
611   esac
612 done
613
614 if test -n "$ac_prev"; then
615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616   { echo "$as_me: error: missing argument to $ac_option" >&2
617    { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623   eval ac_val=$`echo $ac_var`
624   case $ac_val in
625     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627    { (exit 1); exit 1; }; };;
628   esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633               localstatedir libdir includedir oldincludedir infodir mandir
634 do
635   eval ac_val=$`echo $ac_var`
636   case $ac_val in
637     [\\/$]* | ?:[\\/]* ) ;;
638     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639    { (exit 1); exit 1; }; };;
640   esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652   if test "x$build_alias" = x; then
653     cross_compiling=maybe
654     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655     If a cross compiler is detected then cross compile mode will be used." >&2
656   elif test "x$build_alias" != "x$host_alias"; then
657     cross_compiling=yes
658   fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669   ac_srcdir_defaulted=yes
670   # Try the directory containing this script, then its parent.
671   ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673          X"$0" : 'X\(//\)[^/]' \| \
674          X"$0" : 'X\(//\)$' \| \
675          X"$0" : 'X\(/\)' \| \
676          .     : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680           /^X\(\/\/\)$/{ s//\1/; q; }
681           /^X\(\/\).*/{ s//\1/; q; }
682           s/.*/./; q'`
683   srcdir=$ac_confdir
684   if test ! -r $srcdir/$ac_unique_file; then
685     srcdir=..
686   fi
687 else
688   ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691   if test "$ac_srcdir_defaulted" = yes; then
692     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693    { (exit 1); exit 1; }; }
694   else
695     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696    { (exit 1); exit 1; }; }
697   fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701    { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715
716 #
717 # Report the --help message.
718 #
719 if test "$ac_init_help" = "long"; then
720   # Omit some internal or obsolete options to make the list less imposing.
721   # This message is too long to be a string in the A/UX 3.1 sh.
722   cat <<_ACEOF
723 \`configure' configures this package to adapt to many kinds of systems.
724
725 Usage: $0 [OPTION]... [VAR=VALUE]...
726
727 To assign environment variables (e.g., CC, CFLAGS...), specify them as
728 VAR=VALUE.  See below for descriptions of some of the useful variables.
729
730 Defaults for the options are specified in brackets.
731
732 Configuration:
733   -h, --help              display this help and exit
734       --help=short        display options specific to this package
735       --help=recursive    display the short help of all the included packages
736   -V, --version           display version information and exit
737   -q, --quiet, --silent   do not print \`checking...' messages
738       --cache-file=FILE   cache test results in FILE [disabled]
739   -C, --config-cache      alias for \`--cache-file=config.cache'
740   -n, --no-create         do not create output files
741       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
742
743 _ACEOF
744
745   cat <<_ACEOF
746 Installation directories:
747   --prefix=PREFIX         install architecture-independent files in PREFIX
748                           [$ac_default_prefix]
749   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
750                           [PREFIX]
751
752 By default, \`make install' will install all the files in
753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
755 for instance \`--prefix=\$HOME'.
756
757 For better control, use the options below.
758
759 Fine tuning of the installation directories:
760   --bindir=DIR           user executables [EPREFIX/bin]
761   --sbindir=DIR          system admin executables [EPREFIX/sbin]
762   --libexecdir=DIR       program executables [EPREFIX/libexec]
763   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
764   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
765   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
766   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
767   --libdir=DIR           object code libraries [EPREFIX/lib]
768   --includedir=DIR       C header files [PREFIX/include]
769   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
770   --infodir=DIR          info documentation [PREFIX/info]
771   --mandir=DIR           man documentation [PREFIX/man]
772 _ACEOF
773
774   cat <<\_ACEOF
775 _ACEOF
776 fi
777
778 if test -n "$ac_init_help"; then
779
780   cat <<\_ACEOF
781
782 Optional Packages:
783   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
784   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
785   --with-emacs=EMACS      compile with EMACS [EMACS=emacs, mule...]
786   --with-xemacs=XEMACS    compile with XEMACS [XEMACS=xemacs]
787   --with-lispdir=DIR      Where to install lisp files
788                           (for XEmacs package, use --with-packagedir instead)
789   --with-etcdir=DIR       Where to install etc files
790   --with-url=DIR          Specify where to find the url package
791   --with-w3=DIR           Specify where to find the w3 package
792   --with-fonts            Assume all fonts required are available
793   --with-packagedir=DIR   package DIR for XEmacs
794   --with-addpath=PATH     search Emacs-Lisp libraries with PATH
795                           use colons to separate directory names
796
797 _ACEOF
798 fi
799
800 if test "$ac_init_help" = "recursive"; then
801   # If there are subdirs, report their specific --help.
802   ac_popdir=`pwd`
803   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
804     test -d $ac_dir || continue
805     ac_builddir=.
806
807 if test "$ac_dir" != .; then
808   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
809   # A "../" for each directory in $ac_dir_suffix.
810   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
811 else
812   ac_dir_suffix= ac_top_builddir=
813 fi
814
815 case $srcdir in
816   .)  # No --srcdir option.  We are building in place.
817     ac_srcdir=.
818     if test -z "$ac_top_builddir"; then
819        ac_top_srcdir=.
820     else
821        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
822     fi ;;
823   [\\/]* | ?:[\\/]* )  # Absolute path.
824     ac_srcdir=$srcdir$ac_dir_suffix;
825     ac_top_srcdir=$srcdir ;;
826   *) # Relative path.
827     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
828     ac_top_srcdir=$ac_top_builddir$srcdir ;;
829 esac
830 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
831 # absolute.
832 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
833 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
834 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
835 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
836
837     cd $ac_dir
838     # Check for guested configure; otherwise get Cygnus style configure.
839     if test -f $ac_srcdir/configure.gnu; then
840       echo
841       $SHELL $ac_srcdir/configure.gnu  --help=recursive
842     elif test -f $ac_srcdir/configure; then
843       echo
844       $SHELL $ac_srcdir/configure  --help=recursive
845     elif test -f $ac_srcdir/configure.ac ||
846            test -f $ac_srcdir/configure.in; then
847       echo
848       $ac_configure --help
849     else
850       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
851     fi
852     cd $ac_popdir
853   done
854 fi
855
856 test -n "$ac_init_help" && exit 0
857 if $ac_init_version; then
858   cat <<\_ACEOF
859
860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
861 Free Software Foundation, Inc.
862 This configure script is free software; the Free Software Foundation
863 gives unlimited permission to copy, distribute and modify it.
864 _ACEOF
865   exit 0
866 fi
867 exec 5>config.log
868 cat >&5 <<_ACEOF
869 This file contains any messages produced by compilers while
870 running configure, to aid debugging if configure makes a mistake.
871
872 It was created by $as_me, which was
873 generated by GNU Autoconf 2.57.  Invocation command line was
874
875   $ $0 $@
876
877 _ACEOF
878 {
879 cat <<_ASUNAME
880 ## --------- ##
881 ## Platform. ##
882 ## --------- ##
883
884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
889
890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
891 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
892
893 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
894 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
896 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
897 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
898 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
899 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
900
901 _ASUNAME
902
903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
904 for as_dir in $PATH
905 do
906   IFS=$as_save_IFS
907   test -z "$as_dir" && as_dir=.
908   echo "PATH: $as_dir"
909 done
910
911 } >&5
912
913 cat >&5 <<_ACEOF
914
915
916 ## ----------- ##
917 ## Core tests. ##
918 ## ----------- ##
919
920 _ACEOF
921
922
923 # Keep a trace of the command line.
924 # Strip out --no-create and --no-recursion so they do not pile up.
925 # Strip out --silent because we don't want to record it for future runs.
926 # Also quote any args containing shell meta-characters.
927 # Make two passes to allow for proper duplicate-argument suppression.
928 ac_configure_args=
929 ac_configure_args0=
930 ac_configure_args1=
931 ac_sep=
932 ac_must_keep_next=false
933 for ac_pass in 1 2
934 do
935   for ac_arg
936   do
937     case $ac_arg in
938     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
939     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
940     | -silent | --silent | --silen | --sile | --sil)
941       continue ;;
942     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
943       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
944     esac
945     case $ac_pass in
946     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
947     2)
948       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
949       if test $ac_must_keep_next = true; then
950         ac_must_keep_next=false # Got value, back to normal.
951       else
952         case $ac_arg in
953           *=* | --config-cache | -C | -disable-* | --disable-* \
954           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
955           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
956           | -with-* | --with-* | -without-* | --without-* | --x)
957             case "$ac_configure_args0 " in
958               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
959             esac
960             ;;
961           -* ) ac_must_keep_next=true ;;
962         esac
963       fi
964       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
965       # Get rid of the leading space.
966       ac_sep=" "
967       ;;
968     esac
969   done
970 done
971 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
972 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
973
974 # When interrupted or exit'd, cleanup temporary files, and complete
975 # config.log.  We remove comments because anyway the quotes in there
976 # would cause problems or look ugly.
977 # WARNING: Be sure not to use single quotes in there, as some shells,
978 # such as our DU 5.0 friend, will then `close' the trap.
979 trap 'exit_status=$?
980   # Save into config.log some information that might help in debugging.
981   {
982     echo
983
984     cat <<\_ASBOX
985 ## ---------------- ##
986 ## Cache variables. ##
987 ## ---------------- ##
988 _ASBOX
989     echo
990     # The following way of writing the cache mishandles newlines in values,
991 {
992   (set) 2>&1 |
993     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
994     *ac_space=\ *)
995       sed -n \
996         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
998       ;;
999     *)
1000       sed -n \
1001         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1002       ;;
1003     esac;
1004 }
1005     echo
1006
1007     cat <<\_ASBOX
1008 ## ----------------- ##
1009 ## Output variables. ##
1010 ## ----------------- ##
1011 _ASBOX
1012     echo
1013     for ac_var in $ac_subst_vars
1014     do
1015       eval ac_val=$`echo $ac_var`
1016       echo "$ac_var='"'"'$ac_val'"'"'"
1017     done | sort
1018     echo
1019
1020     if test -n "$ac_subst_files"; then
1021       cat <<\_ASBOX
1022 ## ------------- ##
1023 ## Output files. ##
1024 ## ------------- ##
1025 _ASBOX
1026       echo
1027       for ac_var in $ac_subst_files
1028       do
1029         eval ac_val=$`echo $ac_var`
1030         echo "$ac_var='"'"'$ac_val'"'"'"
1031       done | sort
1032       echo
1033     fi
1034
1035     if test -s confdefs.h; then
1036       cat <<\_ASBOX
1037 ## ----------- ##
1038 ## confdefs.h. ##
1039 ## ----------- ##
1040 _ASBOX
1041       echo
1042       sed "/^$/d" confdefs.h | sort
1043       echo
1044     fi
1045     test "$ac_signal" != 0 &&
1046       echo "$as_me: caught signal $ac_signal"
1047     echo "$as_me: exit $exit_status"
1048   } >&5
1049   rm -f core core.* *.core &&
1050   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1051     exit $exit_status
1052      ' 0
1053 for ac_signal in 1 2 13 15; do
1054   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1055 done
1056 ac_signal=0
1057
1058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1059 rm -rf conftest* confdefs.h
1060 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1061 echo >confdefs.h
1062
1063 # Predefined preprocessor variables.
1064
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_NAME "$PACKAGE_NAME"
1067 _ACEOF
1068
1069
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1072 _ACEOF
1073
1074
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1077 _ACEOF
1078
1079
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_STRING "$PACKAGE_STRING"
1082 _ACEOF
1083
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1087 _ACEOF
1088
1089
1090 # Let the site file select an alternate cache file if it wants to.
1091 # Prefer explicitly selected file to automatically selected ones.
1092 if test -z "$CONFIG_SITE"; then
1093   if test "x$prefix" != xNONE; then
1094     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1095   else
1096     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1097   fi
1098 fi
1099 for ac_site_file in $CONFIG_SITE; do
1100   if test -r "$ac_site_file"; then
1101     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1102 echo "$as_me: loading site script $ac_site_file" >&6;}
1103     sed 's/^/| /' "$ac_site_file" >&5
1104     . "$ac_site_file"
1105   fi
1106 done
1107
1108 if test -r "$cache_file"; then
1109   # Some versions of bash will fail to source /dev/null (special
1110   # files actually), so we avoid doing that.
1111   if test -f "$cache_file"; then
1112     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1113 echo "$as_me: loading cache $cache_file" >&6;}
1114     case $cache_file in
1115       [\\/]* | ?:[\\/]* ) . $cache_file;;
1116       *)                      . ./$cache_file;;
1117     esac
1118   fi
1119 else
1120   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1121 echo "$as_me: creating cache $cache_file" >&6;}
1122   >$cache_file
1123 fi
1124
1125 # Check that the precious variables saved in the cache have kept the same
1126 # value.
1127 ac_cache_corrupted=false
1128 for ac_var in `(set) 2>&1 |
1129                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1131   eval ac_new_set=\$ac_env_${ac_var}_set
1132   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1133   eval ac_new_val="\$ac_env_${ac_var}_value"
1134   case $ac_old_set,$ac_new_set in
1135     set,)
1136       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1138       ac_cache_corrupted=: ;;
1139     ,set)
1140       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1142       ac_cache_corrupted=: ;;
1143     ,);;
1144     *)
1145       if test "x$ac_old_val" != "x$ac_new_val"; then
1146         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1148         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1149 echo "$as_me:   former value:  $ac_old_val" >&2;}
1150         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1151 echo "$as_me:   current value: $ac_new_val" >&2;}
1152         ac_cache_corrupted=:
1153       fi;;
1154   esac
1155   # Pass precious variables to config.status.
1156   if test "$ac_new_set" = set; then
1157     case $ac_new_val in
1158     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1159       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1160     *) ac_arg=$ac_var=$ac_new_val ;;
1161     esac
1162     case " $ac_configure_args " in
1163       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1164       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1165     esac
1166   fi
1167 done
1168 if $ac_cache_corrupted; then
1169   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1170 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1171   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1172 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1173    { (exit 1); exit 1; }; }
1174 fi
1175
1176 ac_ext=c
1177 ac_cpp='$CPP $CPPFLAGS'
1178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200 echo $ECHO_N "defining gnus product name... $ECHO_C"
1201   if test "${EMACS_cv_GNUS_PRODUCT_NAME+set}" = set; then
1202   echo $ECHO_N "(cached) $ECHO_C" >&6
1203 else
1204   EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
1205 fi
1206
1207   GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
1208   echo "$as_me:$LINENO: result: ${GNUS_PRODUCT_NAME}" >&5
1209 echo "${ECHO_T}${GNUS_PRODUCT_NAME}" >&6
1210
1211 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1213 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1214 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1215   echo $ECHO_N "(cached) $ECHO_C" >&6
1216 else
1217   cat >conftest.make <<\_ACEOF
1218 all:
1219         @echo 'ac_maketemp="$(MAKE)"'
1220 _ACEOF
1221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1222 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1223 if test -n "$ac_maketemp"; then
1224   eval ac_cv_prog_make_${ac_make}_set=yes
1225 else
1226   eval ac_cv_prog_make_${ac_make}_set=no
1227 fi
1228 rm -f conftest.make
1229 fi
1230 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1231   echo "$as_me:$LINENO: result: yes" >&5
1232 echo "${ECHO_T}yes" >&6
1233   SET_MAKE=
1234 else
1235   echo "$as_me:$LINENO: result: no" >&5
1236 echo "${ECHO_T}no" >&6
1237   SET_MAKE="MAKE=${MAKE-make}"
1238 fi
1239
1240 ac_aux_dir=
1241 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1242   if test -f $ac_dir/install-sh; then
1243     ac_aux_dir=$ac_dir
1244     ac_install_sh="$ac_aux_dir/install-sh -c"
1245     break
1246   elif test -f $ac_dir/install.sh; then
1247     ac_aux_dir=$ac_dir
1248     ac_install_sh="$ac_aux_dir/install.sh -c"
1249     break
1250   elif test -f $ac_dir/shtool; then
1251     ac_aux_dir=$ac_dir
1252     ac_install_sh="$ac_aux_dir/shtool install -c"
1253     break
1254   fi
1255 done
1256 if test -z "$ac_aux_dir"; then
1257   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1258 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1259    { (exit 1); exit 1; }; }
1260 fi
1261 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1262 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1263 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1264
1265 # Find a good install program.  We prefer a C program (faster),
1266 # so one script is as good as another.  But avoid the broken or
1267 # incompatible versions:
1268 # SysV /etc/install, /usr/sbin/install
1269 # SunOS /usr/etc/install
1270 # IRIX /sbin/install
1271 # AIX /bin/install
1272 # AmigaOS /C/install, which installs bootblocks on floppy discs
1273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1276 # ./install, which can be erroneously created by make from ./install.sh.
1277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1279 if test -z "$INSTALL"; then
1280 if test "${ac_cv_path_install+set}" = set; then
1281   echo $ECHO_N "(cached) $ECHO_C" >&6
1282 else
1283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for as_dir in $PATH
1285 do
1286   IFS=$as_save_IFS
1287   test -z "$as_dir" && as_dir=.
1288   # Account for people who put trailing slashes in PATH elements.
1289 case $as_dir/ in
1290   ./ | .// | /cC/* | \
1291   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1292   /usr/ucb/* ) ;;
1293   *)
1294     # OSF1 and SCO ODT 3.0 have their own names for install.
1295     # Don't use installbsd from OSF since it installs stuff as root
1296     # by default.
1297     for ac_prog in ginstall scoinst install; do
1298       for ac_exec_ext in '' $ac_executable_extensions; do
1299         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1300           if test $ac_prog = install &&
1301             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1302             # AIX install.  It has an incompatible calling convention.
1303             :
1304           elif test $ac_prog = install &&
1305             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1306             # program-specific install script used by HP pwplus--don't use.
1307             :
1308           else
1309             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1310             break 3
1311           fi
1312         fi
1313       done
1314     done
1315     ;;
1316 esac
1317 done
1318
1319
1320 fi
1321   if test "${ac_cv_path_install+set}" = set; then
1322     INSTALL=$ac_cv_path_install
1323   else
1324     # As a last resort, use the slow shell script.  We don't cache a
1325     # path for INSTALL within a source directory, because that will
1326     # break other packages using the cache if that directory is
1327     # removed, or if the path is relative.
1328     INSTALL=$ac_install_sh
1329   fi
1330 fi
1331 echo "$as_me:$LINENO: result: $INSTALL" >&5
1332 echo "${ECHO_T}$INSTALL" >&6
1333
1334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1335 # It thinks the first close brace ends the variable substitution.
1336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1337
1338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1339
1340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1341
1342 # Extract the first word of "makeinfo", so it can be a program name with args.
1343 set dummy makeinfo; ac_word=$2
1344 echo "$as_me:$LINENO: checking for $ac_word" >&5
1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1347   echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349   if test -n "$MAKEINFO"; then
1350   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1351 else
1352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353 for as_dir in $PATH
1354 do
1355   IFS=$as_save_IFS
1356   test -z "$as_dir" && as_dir=.
1357   for ac_exec_ext in '' $ac_executable_extensions; do
1358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1359     ac_cv_prog_MAKEINFO="makeinfo"
1360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1361     break 2
1362   fi
1363 done
1364 done
1365
1366   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
1367 fi
1368 fi
1369 MAKEINFO=$ac_cv_prog_MAKEINFO
1370 if test -n "$MAKEINFO"; then
1371   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1372 echo "${ECHO_T}$MAKEINFO" >&6
1373 else
1374   echo "$as_me:$LINENO: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1376 fi
1377
1378
1379       test "$EMACS" = t && EMACS=
1380
1381     unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
1382
1383
1384 # Check whether --with-emacs or --without-emacs was given.
1385 if test "${with_emacs+set}" = set; then
1386   withval="$with_emacs"
1387   if test "$withval" = yes -o -z "$withval"; then
1388       for ac_prog in emacs xemacs mule
1389 do
1390   # Extract the first word of "$ac_prog", so it can be a program name with args.
1391 set dummy $ac_prog; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_EMACS+set}" = set; then
1395   echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397   if test -n "$EMACS"; then
1398   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403   IFS=$as_save_IFS
1404   test -z "$as_dir" && as_dir=.
1405   for ac_exec_ext in '' $ac_executable_extensions; do
1406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407     ac_cv_prog_EMACS="$ac_prog"
1408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409     break 2
1410   fi
1411 done
1412 done
1413
1414 fi
1415 fi
1416 EMACS=$ac_cv_prog_EMACS
1417 if test -n "$EMACS"; then
1418   echo "$as_me:$LINENO: result: $EMACS" >&5
1419 echo "${ECHO_T}$EMACS" >&6
1420 else
1421   echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425   test -n "$EMACS" && break
1426 done
1427 test -n "$EMACS" || EMACS="emacs"
1428
1429     else
1430       # Extract the first word of "$withval", so it can be a program name with args.
1431 set dummy $withval; ac_word=$2
1432 echo "$as_me:$LINENO: checking for $ac_word" >&5
1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 if test "${ac_cv_prog_EMACS+set}" = set; then
1435   echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437   if test -n "$EMACS"; then
1438   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1439 else
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443   IFS=$as_save_IFS
1444   test -z "$as_dir" && as_dir=.
1445   for ac_exec_ext in '' $ac_executable_extensions; do
1446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447     ac_cv_prog_EMACS="$withval"
1448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449     break 2
1450   fi
1451 done
1452 done
1453
1454   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
1455 fi
1456 fi
1457 EMACS=$ac_cv_prog_EMACS
1458 if test -n "$EMACS"; then
1459   echo "$as_me:$LINENO: result: $EMACS" >&5
1460 echo "${ECHO_T}$EMACS" >&6
1461 else
1462   echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466     fi
1467 fi;
1468
1469 # Check whether --with-xemacs or --without-xemacs was given.
1470 if test "${with_xemacs+set}" = set; then
1471   withval="$with_xemacs"
1472   if test "$withval" = yes -o -z "$withval"; then
1473       # Extract the first word of "xemacs", so it can be a program name with args.
1474 set dummy xemacs; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_XEMACS+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$XEMACS"; then
1481   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_XEMACS="xemacs"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
1498 fi
1499 fi
1500 XEMACS=$ac_cv_prog_XEMACS
1501 if test -n "$XEMACS"; then
1502   echo "$as_me:$LINENO: result: $XEMACS" >&5
1503 echo "${ECHO_T}$XEMACS" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509     else
1510       # Extract the first word of "$withval", so it can be a program name with args.
1511 set dummy $withval; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_XEMACS+set}" = set; then
1515   echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517   if test -n "$XEMACS"; then
1518   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
1519 else
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   for ac_exec_ext in '' $ac_executable_extensions; do
1526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527     ac_cv_prog_XEMACS="$withval"
1528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529     break 2
1530   fi
1531 done
1532 done
1533
1534   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
1535 fi
1536 fi
1537 XEMACS=$ac_cv_prog_XEMACS
1538 if test -n "$XEMACS"; then
1539   echo "$as_me:$LINENO: result: $XEMACS" >&5
1540 echo "${ECHO_T}$XEMACS" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546     fi
1547     EMACS=$XEMACS
1548 else
1549   XEMACS=xemacs
1550     test -z "$EMACS" && for ac_prog in emacs xemacs mule
1551 do
1552   # Extract the first word of "$ac_prog", so it can be a program name with args.
1553 set dummy $ac_prog; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_EMACS+set}" = set; then
1557   echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559   if test -n "$EMACS"; then
1560   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   for ac_exec_ext in '' $ac_executable_extensions; do
1568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569     ac_cv_prog_EMACS="$ac_prog"
1570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571     break 2
1572   fi
1573 done
1574 done
1575
1576 fi
1577 fi
1578 EMACS=$ac_cv_prog_EMACS
1579 if test -n "$EMACS"; then
1580   echo "$as_me:$LINENO: result: $EMACS" >&5
1581 echo "${ECHO_T}$EMACS" >&6
1582 else
1583   echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587   test -n "$EMACS" && break
1588 done
1589 test -n "$EMACS" || EMACS="emacs"
1590
1591 fi;
1592
1593
1594
1595   echo "$as_me:$LINENO: checking what a flavor does $EMACS have" >&5
1596 echo $ECHO_N "checking what a flavor does $EMACS have... $ECHO_C" >&6
1597
1598     unset EMACS_cv_SYS_flavor;
1599
1600
1601 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
1602           ((boundp (quote MULE)) \"MULE\")\
1603           (t \"FSF Emacs\"))"
1604 if test -z ""noecho""; then
1605         echo "$as_me:$LINENO: checking for flavor" >&5
1606 echo $ECHO_N "checking for flavor... $ECHO_C" >&6
1607 fi
1608 if test "${EMACS_cv_SYS_flavor+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611
1612         OUTPUT=./conftest-$$
1613         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
1614         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
1615         retval=`cat ${OUTPUT}`
1616         echo "=> ${retval}" >& 5 2>&1
1617         rm -f ${OUTPUT}
1618         EMACS_cv_SYS_flavor=$retval
1619
1620 fi
1621
1622 flavor=${EMACS_cv_SYS_flavor}
1623 if test -z ""noecho""; then
1624         echo "$as_me:$LINENO: result: $flavor" >&5
1625 echo "${ECHO_T}$flavor" >&6
1626 fi
1627
1628   case $EMACS_cv_SYS_flavor in
1629   XEmacs)
1630     EMACS_FLAVOR=xemacs;;
1631   MULE)
1632     EMACS_FLAVOR=mule;;
1633   *)
1634     EMACS_FLAVOR=emacs;;
1635   esac
1636   echo "$as_me:$LINENO: result: $EMACS_cv_SYS_flavor" >&5
1637 echo "${ECHO_T}$EMACS_cv_SYS_flavor" >&6
1638   if test "$prefix" = NONE; then
1639         echo "$as_me:$LINENO: checking prefix for your Emacs" >&5
1640 echo $ECHO_N "checking prefix for your Emacs... $ECHO_C" >&6
1641
1642 elisp="(expand-file-name \"..\" invocation-directory)"
1643 if test -z ""noecho""; then
1644         echo "$as_me:$LINENO: checking for prefix" >&5
1645 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1646 fi
1647 if test "${EMACS_cv_SYS_prefix+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650
1651         OUTPUT=./conftest-$$
1652         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
1653         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
1654         retval=`cat ${OUTPUT}`
1655         echo "=> ${retval}" >& 5 2>&1
1656         rm -f ${OUTPUT}
1657         EMACS_cv_SYS_prefix=$retval
1658
1659 fi
1660
1661 prefix=${EMACS_cv_SYS_prefix}
1662 if test -z ""noecho""; then
1663         echo "$as_me:$LINENO: result: $prefix" >&5
1664 echo "${ECHO_T}$prefix" >&6
1665 fi
1666
1667         prefix=${EMACS_cv_SYS_prefix}
1668         echo "$as_me:$LINENO: result: $prefix" >&5
1669 echo "${ECHO_T}$prefix" >&6
1670   fi
1671
1672 # Check whether --with-lispdir or --without-lispdir was given.
1673 if test "${with_lispdir+set}" = set; then
1674   withval="$with_lispdir"
1675   lispdir=${withval}
1676 fi;
1677   echo "$as_me:$LINENO: checking where lisp files should go" >&5
1678 echo $ECHO_N "checking where lisp files should go... $ECHO_C" >&6
1679   if test -z "$lispdir"; then
1680         theprefix=$prefix
1681     if test "$theprefix" = NONE; then
1682         theprefix=$ac_default_prefix
1683     fi
1684     if test "$EMACS_FLAVOR" = "xemacs"; then
1685         datadir="\$(prefix)/lib"
1686         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
1687     else
1688         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
1689     fi
1690     for thedir in share lib; do
1691         potential=
1692         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
1693            if test "$EMACS_FLAVOR" = "xemacs"; then
1694                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
1695            else
1696                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
1697            fi
1698            break
1699         fi
1700     done
1701   fi
1702   if test ${EMACS_FLAVOR} = xemacs; then
1703     echo "$as_me:$LINENO: result: $lispdir
1704          (it will be ignored when \"make install-package[-ja]\" is done)" >&5
1705 echo "${ECHO_T}$lispdir
1706          (it will be ignored when \"make install-package[-ja]\" is done)" >&6
1707   else
1708     echo "$as_me:$LINENO: result: $lispdir" >&5
1709 echo "${ECHO_T}$lispdir" >&6
1710   fi
1711
1712
1713
1714
1715 # Check whether --with-etcdir or --without-etcdir was given.
1716 if test "${with_etcdir+set}" = set; then
1717   withval="$with_etcdir"
1718   etcdir=${withval}
1719 fi;
1720   echo "$as_me:$LINENO: checking where etc files should go" >&5
1721 echo $ECHO_N "checking where etc files should go... $ECHO_C" >&6
1722   if test -z "$etcdir"; then
1723         if test "$EMACS_FLAVOR" = "xemacs"; then
1724       etcdir="\$(lispdir)/../../etc"
1725     else
1726     etcdir="\$(lispdir)/../etc"
1727     fi
1728   fi
1729   echo "$as_me:$LINENO: result: $etcdir" >&5
1730 echo "${ECHO_T}$etcdir" >&6
1731
1732
1733
1734   echo "$as_me:$LINENO: checking where the TeXinfo docs should go" >&5
1735 echo $ECHO_N "checking where the TeXinfo docs should go... $ECHO_C" >&6
1736     if test "$infodir" = "\${prefix}/info"; then
1737     if test "$EMACS_FLAVOR" = "xemacs"; then
1738       info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
1739     else
1740       info_dir="\$(prefix)/info"
1741     fi
1742   else
1743     info_dir=$infodir
1744   fi
1745   echo "$as_me:$LINENO: result: $info_dir
1746          (it will be ignored when \"make install-package[-ja]\" is done)" >&5
1747 echo "${ECHO_T}$info_dir
1748          (it will be ignored when \"make install-package[-ja]\" is done)" >&6
1749
1750
1751
1752 echo "$as_me:$LINENO: checking for acceptable URL version" >&5
1753 echo $ECHO_N "checking for acceptable URL version... $ECHO_C" >&6
1754
1755 unset EMACS_cv_ACCEPTABLE_URL;
1756 unset EMACS_cv_SYS_url_dir;
1757 unset EMACS_cv_SYS_url;
1758
1759 if test "${EMACS_cv_ACCEPTABLE_URL+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762
1763
1764 if test -z ""noecho""; then
1765         echo "$as_me:$LINENO: checking for url-retrieve in url" >&5
1766 echo $ECHO_N "checking for url-retrieve in url... $ECHO_C" >&6
1767 fi
1768 library=`echo url | tr _ -`
1769
1770 elisp="(progn (fmakunbound (quote url-retrieve)) (condition-case nil (progn (require (quote $library)) (fboundp (quote url-retrieve))) (error (prog1 nil (message \"$library not found\")))))"
1771 if test -z ""noecho""; then
1772         echo "$as_me:$LINENO: checking for url" >&5
1773 echo $ECHO_N "checking for url... $ECHO_C" >&6
1774 fi
1775 if test "${EMACS_cv_SYS_url+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778
1779         OUTPUT=./conftest-$$
1780         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
1781         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
1782         retval=`cat ${OUTPUT}`
1783         echo "=> ${retval}" >& 5 2>&1
1784         rm -f ${OUTPUT}
1785         EMACS_cv_SYS_url=$retval
1786
1787 fi
1788
1789 url=${EMACS_cv_SYS_url}
1790 if test -z ""noecho""; then
1791         echo "$as_me:$LINENO: result: $url" >&5
1792 echo "${ECHO_T}$url" >&6
1793 fi
1794
1795 if test "${EMACS_cv_SYS_url}" = nil; then
1796         EMACS_cv_SYS_url=no
1797 fi
1798 if test "${EMACS_cv_SYS_url}" = t; then
1799         EMACS_cv_SYS_url=yes
1800 fi
1801 HAVE_url=${EMACS_cv_SYS_url}
1802
1803 if test -z ""noecho""; then
1804         echo "$as_me:$LINENO: result: $HAVE_url" >&5
1805 echo "${ECHO_T}$HAVE_url" >&6
1806 fi
1807
1808 if test "${HAVE_url}" = yes; then
1809         EMACS_cv_ACCEPTABLE_URL=yes
1810 else
1811         EMACS_cv_ACCEPTABLE_URL=
1812 fi
1813
1814 if test "${EMACS_cv_ACCEPTABLE_URL}" = yes; then
1815
1816 elisp="(file-name-directory (locate-library \"url\"))"
1817 if test -z ""noecho""; then
1818         echo "$as_me:$LINENO: checking for url_dir" >&5
1819 echo $ECHO_N "checking for url_dir... $ECHO_C" >&6
1820 fi
1821 if test "${EMACS_cv_SYS_url_dir+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824
1825         OUTPUT=./conftest-$$
1826         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
1827         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
1828         retval=`cat ${OUTPUT}`
1829         echo "=> ${retval}" >& 5 2>&1
1830         rm -f ${OUTPUT}
1831         EMACS_cv_SYS_url_dir=$retval
1832
1833 fi
1834
1835 url_dir=${EMACS_cv_SYS_url_dir}
1836 if test -z ""noecho""; then
1837         echo "$as_me:$LINENO: result: $url_dir" >&5
1838 echo "${ECHO_T}$url_dir" >&6
1839 fi
1840
1841         EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1842 fi
1843
1844 fi
1845
1846
1847 # Check whether --with-url or --without-url was given.
1848 if test "${with_url+set}" = set; then
1849   withval="$with_url"
1850    EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1851 fi;
1852    URL=${EMACS_cv_ACCEPTABLE_URL}
1853
1854    if test -z "${EMACS_cv_ACCEPTABLE_URL}"; then
1855         echo "$as_me:$LINENO: result: not found" >&5
1856 echo "${ECHO_T}not found" >&6
1857    else
1858         echo "$as_me:$LINENO: result: ${URL}" >&5
1859 echo "${ECHO_T}${URL}" >&6
1860    fi
1861
1862
1863 echo "$as_me:$LINENO: checking for acceptable W3 version" >&5
1864 echo $ECHO_N "checking for acceptable W3 version... $ECHO_C" >&6
1865
1866 unset EMACS_cv_ACCEPTABLE_W3;
1867 unset EMACS_cv_SYS_w3_dir;
1868 unset EMACS_cv_SYS_w3_forms;
1869
1870 if test "${EMACS_cv_ACCEPTABLE_W3+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873
1874
1875 if test -z ""noecho""; then
1876         echo "$as_me:$LINENO: checking for w3-form-encode-xwfu in w3_forms" >&5
1877 echo $ECHO_N "checking for w3-form-encode-xwfu in w3_forms... $ECHO_C" >&6
1878 fi
1879 library=`echo w3_forms | tr _ -`
1880
1881 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\")))))"
1882 if test -z ""noecho""; then
1883         echo "$as_me:$LINENO: checking for w3_forms" >&5
1884 echo $ECHO_N "checking for w3_forms... $ECHO_C" >&6
1885 fi
1886 if test "${EMACS_cv_SYS_w3_forms+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889
1890         OUTPUT=./conftest-$$
1891         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
1892         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
1893         retval=`cat ${OUTPUT}`
1894         echo "=> ${retval}" >& 5 2>&1
1895         rm -f ${OUTPUT}
1896         EMACS_cv_SYS_w3_forms=$retval
1897
1898 fi
1899
1900 w3_forms=${EMACS_cv_SYS_w3_forms}
1901 if test -z ""noecho""; then
1902         echo "$as_me:$LINENO: result: $w3_forms" >&5
1903 echo "${ECHO_T}$w3_forms" >&6
1904 fi
1905
1906 if test "${EMACS_cv_SYS_w3_forms}" = nil; then
1907         EMACS_cv_SYS_w3_forms=no
1908 fi
1909 if test "${EMACS_cv_SYS_w3_forms}" = t; then
1910         EMACS_cv_SYS_w3_forms=yes
1911 fi
1912 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1913
1914 if test -z ""noecho""; then
1915         echo "$as_me:$LINENO: result: $HAVE_w3_forms" >&5
1916 echo "${ECHO_T}$HAVE_w3_forms" >&6
1917 fi
1918
1919 if test "${HAVE_w3_forms}" = yes; then
1920         EMACS_cv_ACCEPTABLE_W3=yes
1921 else
1922         EMACS_cv_ACCEPTABLE_W3=
1923 fi
1924
1925 if test "${EMACS_cv_ACCEPTABLE_W3}" = yes; then
1926
1927 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1928 if test -z ""noecho""; then
1929         echo "$as_me:$LINENO: checking for w3_dir" >&5
1930 echo $ECHO_N "checking for w3_dir... $ECHO_C" >&6
1931 fi
1932 if test "${EMACS_cv_SYS_w3_dir+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935
1936         OUTPUT=./conftest-$$
1937         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
1938         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
1939         retval=`cat ${OUTPUT}`
1940         echo "=> ${retval}" >& 5 2>&1
1941         rm -f ${OUTPUT}
1942         EMACS_cv_SYS_w3_dir=$retval
1943
1944 fi
1945
1946 w3_dir=${EMACS_cv_SYS_w3_dir}
1947 if test -z ""noecho""; then
1948         echo "$as_me:$LINENO: result: $w3_dir" >&5
1949 echo "${ECHO_T}$w3_dir" >&6
1950 fi
1951
1952         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1953 fi
1954
1955 fi
1956
1957
1958 # Check whether --with-w3 or --without-w3 was given.
1959 if test "${with_w3+set}" = set; then
1960   withval="$with_w3"
1961    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1962 fi;
1963    W3=${EMACS_cv_ACCEPTABLE_W3}
1964
1965    if test -z "${EMACS_cv_ACCEPTABLE_W3}"; then
1966         echo "$as_me:$LINENO: result: not found" >&5
1967 echo "${ECHO_T}not found" >&6
1968    else
1969         echo "$as_me:$LINENO: result: ${W3}" >&5
1970 echo "${ECHO_T}${W3}" >&6
1971    fi
1972
1973
1974   echo "$as_me:$LINENO: checking which options to pass on to (X)Emacs" >&5
1975 echo $ECHO_N "checking which options to pass on to (X)Emacs... $ECHO_C" >&6
1976   if test "x$FLAGS" = "x"; then
1977     if test "$EMACS_FLAVOR" = "xemacs"; then
1978       FLAGS="-batch -no-autoloads -l \$(srcdir)/dgnushack.el"
1979     else
1980       FLAGS="-batch -q -no-site-file -l \$(srcdir)/dgnushack.el"
1981     fi
1982   else
1983     FLAGS=$FLAGS
1984   fi
1985   echo "$as_me:$LINENO: result: $FLAGS" >&5
1986 echo "${ECHO_T}$FLAGS" >&6
1987
1988
1989
1990 test "$LATEX" = t && LATEX=
1991 test "$LATEX" || for ac_prog in latex
1992 do
1993   # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_path_LATEX+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   case $LATEX in
2001   [\\/]* | ?:[\\/]*)
2002   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2003   ;;
2004   *)
2005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019   ;;
2020 esac
2021 fi
2022 LATEX=$ac_cv_path_LATEX
2023
2024 if test -n "$LATEX"; then
2025   echo "$as_me:$LINENO: result: $LATEX" >&5
2026 echo "${ECHO_T}$LATEX" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032   test -n "$LATEX" && break
2033 done
2034 test -n "$LATEX" || LATEX="no"
2035
2036 echo "$as_me:$LINENO: checking for available fonts" >&5
2037 echo $ECHO_N "checking for available fonts... $ECHO_C" >&6
2038
2039 # Check whether --with-fonts or --without-fonts was given.
2040 if test "${with_fonts+set}" = set; then
2041   withval="$with_fonts"
2042   USE_FONTS="$withval"
2043 fi;
2044 WITH_FONTS_bembo='%'
2045 WITHOUT_FONTS_bembo=
2046 WITH_FONTS_pfu='%'
2047 WITHOUT_FONTS_pfu=
2048 WITH_FONTS_bcr='%'
2049 WITHOUT_FONTS_bcr=
2050 if test -z "${USE_FONTS}"; then
2051   if test "${LATEX}" = no; then
2052         :
2053   else
2054     OUTPUT=./conftest-$$
2055     echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
2056     if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1  ; then
2057       if test -z "${USE_FONTS}"; then
2058         USE_FONTS="Adobe Bembo"
2059       else
2060         USE_FONTS="${USE_FONTS}, Adobe Bembo"
2061       fi
2062       WITH_FONTS_bembo=
2063       WITHOUT_FONTS_bembo='%'
2064     fi
2065     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
2066     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
2067       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then
2068         :
2069       else
2070          if test -z "${USE_FONTS}"; then
2071           USE_FONTS="Adobe Futura"
2072          else
2073           USE_FONTS="${USE_FONTS}, Adobe Futura"
2074          fi
2075          WITH_FONTS_pfu=
2076          WITHOUT_FONTS_pfu='%'
2077       fi
2078     fi
2079     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
2080     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
2081       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then
2082         :
2083       else
2084          if test -z "${USE_FONTS}"; then
2085           USE_FONTS="Bitstream Courier"
2086          else
2087           USE_FONTS="${USE_FONTS}, Bitstream Courier"
2088          fi
2089          WITH_FONTS_bcr=
2090          WITHOUT_FONTS_bcr='%'
2091       fi
2092     fi
2093     rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
2094   fi
2095 elif test "${USE_FONTS}" = yes ; then
2096   WITH_FONTS_bembo=
2097   WITHOUT_FONTS_bembo='%'
2098   WITH_FONTS_pfu=
2099   WITHOUT_FONTS_pfu='%'
2100   WITH_FONTS_bcr=
2101   WITHOUT_FONTS_bcr='%'
2102 fi
2103
2104
2105
2106
2107
2108
2109 if test -z "${USE_FONTS}" ; then
2110   USE_FONTS=no
2111 fi
2112 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
2113 echo "$as_me:$LINENO: result: ${USE_FONTS}" >&5
2114 echo "${ECHO_T}${USE_FONTS}" >&6
2115 if test "${USE_FONTS}" = yes ; then
2116   USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
2117 elif test "${USE_FONTS}" = no ; then
2118   USE_FONTS=''
2119 else
2120   USE_FONTS="Set in ${USE_FONTS}."
2121 fi
2122
2123
2124   if test ${EMACS_FLAVOR} = xemacs; then
2125     echo "$as_me:$LINENO: checking where the XEmacs package is" >&5
2126 echo $ECHO_N "checking where the XEmacs package is... $ECHO_C" >&6
2127
2128 # Check whether --with-packagedir or --without-packagedir was given.
2129 if test "${with_packagedir+set}" = set; then
2130   withval="$with_packagedir"
2131   if test "$withval" != yes -a -n "$withval"; then
2132         PACKAGEDIR=$withval
2133       else
2134
2135 elisp="(let (package-dir)\
2136       (if (boundp (quote early-packages))\
2137           (let ((dirs (delq nil (append (if early-package-load-path\
2138                                             early-packages)\
2139                                         (if late-package-load-path\
2140                                             late-packages)\
2141                                         (if last-package-load-path\
2142                                             last-packages)))))\
2143             (while (and dirs (not package-dir))\
2144               (if (file-directory-p (car dirs))\
2145                   (setq package-dir (car dirs)\
2146                         dirs (cdr dirs))))))\
2147       (or package-dir \"\"))"
2148 if test -z ""noecho""; then
2149         echo "$as_me:$LINENO: checking for PACKAGEDIR" >&5
2150 echo $ECHO_N "checking for PACKAGEDIR... $ECHO_C" >&6
2151 fi
2152 if test "${EMACS_cv_SYS_PACKAGEDIR+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155
2156         OUTPUT=./conftest-$$
2157         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
2158         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
2159         retval=`cat ${OUTPUT}`
2160         echo "=> ${retval}" >& 5 2>&1
2161         rm -f ${OUTPUT}
2162         EMACS_cv_SYS_PACKAGEDIR=$retval
2163
2164 fi
2165
2166 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
2167 if test -z ""noecho""; then
2168         echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2169 echo "${ECHO_T}$PACKAGEDIR" >&6
2170 fi
2171
2172       fi
2173 else
2174
2175 elisp="(let (package-dir)\
2176       (if (boundp (quote early-packages))\
2177           (let ((dirs (delq nil (append (if early-package-load-path\
2178                                             early-packages)\
2179                                         (if late-package-load-path\
2180                                             late-packages)\
2181                                         (if last-package-load-path\
2182                                             last-packages)))))\
2183             (while (and dirs (not package-dir))\
2184               (if (file-directory-p (car dirs))\
2185                   (setq package-dir (car dirs)\
2186                         dirs (cdr dirs))))))\
2187       (or package-dir \"\"))"
2188 if test -z ""noecho""; then
2189         echo "$as_me:$LINENO: checking for PACKAGEDIR" >&5
2190 echo $ECHO_N "checking for PACKAGEDIR... $ECHO_C" >&6
2191 fi
2192 if test "${EMACS_cv_SYS_PACKAGEDIR+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195
2196         OUTPUT=./conftest-$$
2197         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
2198         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
2199         retval=`cat ${OUTPUT}`
2200         echo "=> ${retval}" >& 5 2>&1
2201         rm -f ${OUTPUT}
2202         EMACS_cv_SYS_PACKAGEDIR=$retval
2203
2204 fi
2205
2206 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
2207 if test -z ""noecho""; then
2208         echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2209 echo "${ECHO_T}$PACKAGEDIR" >&6
2210 fi
2211
2212 fi;
2213     if test -z "$PACKAGEDIR"; then
2214       echo "$as_me:$LINENO: result: not found" >&5
2215 echo "${ECHO_T}not found" >&6
2216     else
2217       echo "$as_me:$LINENO: result: $PACKAGEDIR" >&5
2218 echo "${ECHO_T}$PACKAGEDIR" >&6
2219     fi
2220   else
2221     PACKAGEDIR=
2222   fi
2223
2224
2225 # Check whether --with-addpath or --without-addpath was given.
2226 if test "${with_addpath+set}" = set; then
2227   withval="$with_addpath"
2228   if test "$withval" != yes -a -n "$withval"; then
2229       echo "$as_me:$LINENO: checking where to find the additional elisp libraries" >&5
2230 echo $ECHO_N "checking where to find the additional elisp libraries... $ECHO_C" >&6
2231       ADDITIONAL_LOAD_PATH=$withval
2232       echo "$as_me:$LINENO: result: $ADDITIONAL_LOAD_PATH" >&5
2233 echo "${ECHO_T}$ADDITIONAL_LOAD_PATH" >&6
2234     fi
2235 else
2236   ADDITIONAL_LOAD_PATH=
2237 fi;
2238
2239                                                                       ac_config_files="$ac_config_files Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el"
2240 cat >confcache <<\_ACEOF
2241 # This file is a shell script that caches the results of configure
2242 # tests run on this system so they can be shared between configure
2243 # scripts and configure runs, see configure's option --config-cache.
2244 # It is not useful on other systems.  If it contains results you don't
2245 # want to keep, you may remove or edit it.
2246 #
2247 # config.status only pays attention to the cache file if you give it
2248 # the --recheck option to rerun configure.
2249 #
2250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2252 # following values.
2253
2254 _ACEOF
2255
2256 # The following way of writing the cache mishandles newlines in values,
2257 # but we know of no workaround that is simple, portable, and efficient.
2258 # So, don't put newlines in cache variables' values.
2259 # Ultrix sh set writes to stderr and can't be redirected directly,
2260 # and sets the high bit in the cache file unless we assign to the vars.
2261 {
2262   (set) 2>&1 |
2263     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2264     *ac_space=\ *)
2265       # `set' does not quote correctly, so add quotes (double-quote
2266       # substitution turns \\\\ into \\, and sed turns \\ into \).
2267       sed -n \
2268         "s/'/'\\\\''/g;
2269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2270       ;;
2271     *)
2272       # `set' quotes correctly as required by POSIX, so do not add quotes.
2273       sed -n \
2274         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2275       ;;
2276     esac;
2277 } |
2278   sed '
2279      t clear
2280      : clear
2281      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2282      t end
2283      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2284      : end' >>confcache
2285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2286   if test -w $cache_file; then
2287     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2288     cat confcache >$cache_file
2289   else
2290     echo "not updating unwritable cache $cache_file"
2291   fi
2292 fi
2293 rm -f confcache
2294
2295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2296 # Let make expand exec_prefix.
2297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2298
2299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2301 # trailing colons and then remove the whole line if VPATH becomes empty
2302 # (actually we leave an empty line to preserve line numbers).
2303 if test "x$srcdir" = x.; then
2304   ac_vpsub='/^[         ]*VPATH[        ]*=/{
2305 s/:*\$(srcdir):*/:/;
2306 s/:*\${srcdir}:*/:/;
2307 s/:*@srcdir@:*/:/;
2308 s/^\([^=]*=[    ]*\):*/\1/;
2309 s/:*$//;
2310 s/^[^=]*=[      ]*$//;
2311 }'
2312 fi
2313
2314 # Transform confdefs.h into DEFS.
2315 # Protect against shell expansion while executing Makefile rules.
2316 # Protect against Makefile macro expansion.
2317 #
2318 # If the first sed substitution is executed (which looks for macros that
2319 # take arguments), then we branch to the quote section.  Otherwise,
2320 # look for a macro that doesn't take arguments.
2321 cat >confdef2opt.sed <<\_ACEOF
2322 t clear
2323 : clear
2324 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2325 t quote
2326 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2327 t quote
2328 d
2329 : quote
2330 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
2331 s,\[,\\&,g
2332 s,\],\\&,g
2333 s,\$,$$,g
2334 p
2335 _ACEOF
2336 # We use echo to avoid assuming a particular line-breaking character.
2337 # The extra dot is to prevent the shell from consuming trailing
2338 # line-breaks from the sub-command output.  A line-break within
2339 # single-quotes doesn't work because, if this script is created in a
2340 # platform that uses two characters for line-breaks (e.g., DOS), tr
2341 # would break.
2342 ac_LF_and_DOT=`echo; echo .`
2343 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2344 rm -f confdef2opt.sed
2345
2346
2347 ac_libobjs=
2348 ac_ltlibobjs=
2349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2350   # 1. Remove the extension, and $U if already installed.
2351   ac_i=`echo "$ac_i" |
2352          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2353   # 2. Add them.
2354   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2355   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2356 done
2357 LIBOBJS=$ac_libobjs
2358
2359 LTLIBOBJS=$ac_ltlibobjs
2360
2361
2362
2363 : ${CONFIG_STATUS=./config.status}
2364 ac_clean_files_save=$ac_clean_files
2365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2366 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2367 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2368 cat >$CONFIG_STATUS <<_ACEOF
2369 #! $SHELL
2370 # Generated by $as_me.
2371 # Run this file to recreate the current configuration.
2372 # Compiler output produced by configure, useful for debugging
2373 # configure, is in config.log if it exists.
2374
2375 debug=false
2376 ac_cs_recheck=false
2377 ac_cs_silent=false
2378 SHELL=\${CONFIG_SHELL-$SHELL}
2379 _ACEOF
2380
2381 cat >>$CONFIG_STATUS <<\_ACEOF
2382 ## --------------------- ##
2383 ## M4sh Initialization.  ##
2384 ## --------------------- ##
2385
2386 # Be Bourne compatible
2387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2388   emulate sh
2389   NULLCMD=:
2390   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2391   # is contrary to our usage.  Disable this feature.
2392   alias -g '${1+"$@"}'='"$@"'
2393 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2394   set -o posix
2395 fi
2396
2397 # Support unset when possible.
2398 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2399   as_unset=unset
2400 else
2401   as_unset=false
2402 fi
2403
2404
2405 # Work around bugs in pre-3.0 UWIN ksh.
2406 $as_unset ENV MAIL MAILPATH
2407 PS1='$ '
2408 PS2='> '
2409 PS4='+ '
2410
2411 # NLS nuisances.
2412 for as_var in \
2413   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2414   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2415   LC_TELEPHONE LC_TIME
2416 do
2417   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
2418     eval $as_var=C; export $as_var
2419   else
2420     $as_unset $as_var
2421   fi
2422 done
2423
2424 # Required to use basename.
2425 if expr a : '\(a\)' >/dev/null 2>&1; then
2426   as_expr=expr
2427 else
2428   as_expr=false
2429 fi
2430
2431 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2432   as_basename=basename
2433 else
2434   as_basename=false
2435 fi
2436
2437
2438 # Name of the executable.
2439 as_me=`$as_basename "$0" ||
2440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2441          X"$0" : 'X\(//\)$' \| \
2442          X"$0" : 'X\(/\)$' \| \
2443          .     : '\(.\)' 2>/dev/null ||
2444 echo X/"$0" |
2445     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2446           /^X\/\(\/\/\)$/{ s//\1/; q; }
2447           /^X\/\(\/\).*/{ s//\1/; q; }
2448           s/.*/./; q'`
2449
2450
2451 # PATH needs CR, and LINENO needs CR and PATH.
2452 # Avoid depending upon Character Ranges.
2453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2456 as_cr_digits='0123456789'
2457 as_cr_alnum=$as_cr_Letters$as_cr_digits
2458
2459 # The user is always right.
2460 if test "${PATH_SEPARATOR+set}" != set; then
2461   echo "#! /bin/sh" >conf$$.sh
2462   echo  "exit 0"   >>conf$$.sh
2463   chmod +x conf$$.sh
2464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2465     PATH_SEPARATOR=';'
2466   else
2467     PATH_SEPARATOR=:
2468   fi
2469   rm -f conf$$.sh
2470 fi
2471
2472
2473   as_lineno_1=$LINENO
2474   as_lineno_2=$LINENO
2475   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2476   test "x$as_lineno_1" != "x$as_lineno_2" &&
2477   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2478   # Find who we are.  Look in the path if we contain no path at all
2479   # relative or not.
2480   case $0 in
2481     *[\\/]* ) as_myself=$0 ;;
2482     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2488 done
2489
2490        ;;
2491   esac
2492   # We did not find ourselves, most probably we were run as `sh COMMAND'
2493   # in which case we are not to be found in the path.
2494   if test "x$as_myself" = x; then
2495     as_myself=$0
2496   fi
2497   if test ! -f "$as_myself"; then
2498     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2499 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2500    { (exit 1); exit 1; }; }
2501   fi
2502   case $CONFIG_SHELL in
2503   '')
2504     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for as_base in sh bash ksh sh5; do
2510          case $as_dir in
2511          /*)
2512            if ("$as_dir/$as_base" -c '
2513   as_lineno_1=$LINENO
2514   as_lineno_2=$LINENO
2515   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2516   test "x$as_lineno_1" != "x$as_lineno_2" &&
2517   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2518              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2519              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2520              CONFIG_SHELL=$as_dir/$as_base
2521              export CONFIG_SHELL
2522              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2523            fi;;
2524          esac
2525        done
2526 done
2527 ;;
2528   esac
2529
2530   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2531   # uniformly replaced by the line number.  The first 'sed' inserts a
2532   # line-number line before each line; the second 'sed' does the real
2533   # work.  The second script uses 'N' to pair each line-number line
2534   # with the numbered line, and appends trailing '-' during
2535   # substitution so that $LINENO is not a special case at line end.
2536   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2537   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2538   sed '=' <$as_myself |
2539     sed '
2540       N
2541       s,$,-,
2542       : loop
2543       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2544       t loop
2545       s,-$,,
2546       s,^['$as_cr_digits']*\n,,
2547     ' >$as_me.lineno &&
2548   chmod +x $as_me.lineno ||
2549     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2550 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2551    { (exit 1); exit 1; }; }
2552
2553   # Don't try to exec as it changes $[0], causing all sort of problems
2554   # (the dirname of $[0] is not the place where we might find the
2555   # original and so on.  Autoconf is especially sensible to this).
2556   . ./$as_me.lineno
2557   # Exit status is that of the last command.
2558   exit
2559 }
2560
2561
2562 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2563   *c*,-n*) ECHO_N= ECHO_C='
2564 ' ECHO_T='      ' ;;
2565   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2566   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2567 esac
2568
2569 if expr a : '\(a\)' >/dev/null 2>&1; then
2570   as_expr=expr
2571 else
2572   as_expr=false
2573 fi
2574
2575 rm -f conf$$ conf$$.exe conf$$.file
2576 echo >conf$$.file
2577 if ln -s conf$$.file conf$$ 2>/dev/null; then
2578   # We could just check for DJGPP; but this test a) works b) is more generic
2579   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2580   if test -f conf$$.exe; then
2581     # Don't use ln at all; we don't have any links
2582     as_ln_s='cp -p'
2583   else
2584     as_ln_s='ln -s'
2585   fi
2586 elif ln conf$$.file conf$$ 2>/dev/null; then
2587   as_ln_s=ln
2588 else
2589   as_ln_s='cp -p'
2590 fi
2591 rm -f conf$$ conf$$.exe conf$$.file
2592
2593 if mkdir -p . 2>/dev/null; then
2594   as_mkdir_p=:
2595 else
2596   as_mkdir_p=false
2597 fi
2598
2599 as_executable_p="test -f"
2600
2601 # Sed expression to map a string onto a valid CPP name.
2602 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
2603
2604 # Sed expression to map a string onto a valid variable name.
2605 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
2606
2607
2608 # IFS
2609 # We need space, tab and new line, in precisely that order.
2610 as_nl='
2611 '
2612 IFS="   $as_nl"
2613
2614 # CDPATH.
2615 $as_unset CDPATH
2616
2617 exec 6>&1
2618
2619 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2620 # report actual input values of CONFIG_FILES etc. instead of their
2621 # values after options handling.  Logging --version etc. is OK.
2622 exec 5>>config.log
2623 {
2624   echo
2625   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2626 ## Running $as_me. ##
2627 _ASBOX
2628 } >&5
2629 cat >&5 <<_CSEOF
2630
2631 This file was extended by $as_me, which was
2632 generated by GNU Autoconf 2.57.  Invocation command line was
2633
2634   CONFIG_FILES    = $CONFIG_FILES
2635   CONFIG_HEADERS  = $CONFIG_HEADERS
2636   CONFIG_LINKS    = $CONFIG_LINKS
2637   CONFIG_COMMANDS = $CONFIG_COMMANDS
2638   $ $0 $@
2639
2640 _CSEOF
2641 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2642 echo >&5
2643 _ACEOF
2644
2645 # Files that config.status was made for.
2646 if test -n "$ac_config_files"; then
2647   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2648 fi
2649
2650 if test -n "$ac_config_headers"; then
2651   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2652 fi
2653
2654 if test -n "$ac_config_links"; then
2655   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2656 fi
2657
2658 if test -n "$ac_config_commands"; then
2659   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2660 fi
2661
2662 cat >>$CONFIG_STATUS <<\_ACEOF
2663
2664 ac_cs_usage="\
2665 \`$as_me' instantiates files from templates according to the
2666 current configuration.
2667
2668 Usage: $0 [OPTIONS] [FILE]...
2669
2670   -h, --help       print this help, then exit
2671   -V, --version    print version number, then exit
2672   -q, --quiet      do not print progress messages
2673   -d, --debug      don't remove temporary files
2674       --recheck    update $as_me by reconfiguring in the same conditions
2675   --file=FILE[:TEMPLATE]
2676                    instantiate the configuration file FILE
2677
2678 Configuration files:
2679 $config_files
2680
2681 Report bugs to <bug-autoconf@gnu.org>."
2682 _ACEOF
2683
2684 cat >>$CONFIG_STATUS <<_ACEOF
2685 ac_cs_version="\\
2686 config.status
2687 configured by $0, generated by GNU Autoconf 2.57,
2688   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2689
2690 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2691 Free Software Foundation, Inc.
2692 This config.status script is free software; the Free Software Foundation
2693 gives unlimited permission to copy, distribute and modify it."
2694 srcdir=$srcdir
2695 INSTALL="$INSTALL"
2696 _ACEOF
2697
2698 cat >>$CONFIG_STATUS <<\_ACEOF
2699 # If no file are specified by the user, then we need to provide default
2700 # value.  By we need to know if files were specified by the user.
2701 ac_need_defaults=:
2702 while test $# != 0
2703 do
2704   case $1 in
2705   --*=*)
2706     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2707     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2708     ac_shift=:
2709     ;;
2710   -*)
2711     ac_option=$1
2712     ac_optarg=$2
2713     ac_shift=shift
2714     ;;
2715   *) # This is not an option, so the user has probably given explicit
2716      # arguments.
2717      ac_option=$1
2718      ac_need_defaults=false;;
2719   esac
2720
2721   case $ac_option in
2722   # Handling of the options.
2723 _ACEOF
2724 cat >>$CONFIG_STATUS <<\_ACEOF
2725   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2726     ac_cs_recheck=: ;;
2727   --version | --vers* | -V )
2728     echo "$ac_cs_version"; exit 0 ;;
2729   --he | --h)
2730     # Conflict between --help and --header
2731     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2732 Try \`$0 --help' for more information." >&5
2733 echo "$as_me: error: ambiguous option: $1
2734 Try \`$0 --help' for more information." >&2;}
2735    { (exit 1); exit 1; }; };;
2736   --help | --hel | -h )
2737     echo "$ac_cs_usage"; exit 0 ;;
2738   --debug | --d* | -d )
2739     debug=: ;;
2740   --file | --fil | --fi | --f )
2741     $ac_shift
2742     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2743     ac_need_defaults=false;;
2744   --header | --heade | --head | --hea )
2745     $ac_shift
2746     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2747     ac_need_defaults=false;;
2748   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2749   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2750     ac_cs_silent=: ;;
2751
2752   # This is an error.
2753   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2754 Try \`$0 --help' for more information." >&5
2755 echo "$as_me: error: unrecognized option: $1
2756 Try \`$0 --help' for more information." >&2;}
2757    { (exit 1); exit 1; }; } ;;
2758
2759   *) ac_config_targets="$ac_config_targets $1" ;;
2760
2761   esac
2762   shift
2763 done
2764
2765 ac_configure_extra_args=
2766
2767 if $ac_cs_silent; then
2768   exec 6>/dev/null
2769   ac_configure_extra_args="$ac_configure_extra_args --silent"
2770 fi
2771
2772 _ACEOF
2773 cat >>$CONFIG_STATUS <<_ACEOF
2774 if \$ac_cs_recheck; then
2775   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2776   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2777 fi
2778
2779 _ACEOF
2780
2781
2782
2783
2784
2785 cat >>$CONFIG_STATUS <<\_ACEOF
2786 for ac_config_target in $ac_config_targets
2787 do
2788   case "$ac_config_target" in
2789   # Handling of arguments.
2790   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2791   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
2792   "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
2793   "texi/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/Makefile" ;;
2794   "texi/gnusconfig.tex" ) CONFIG_FILES="$CONFIG_FILES texi/gnusconfig.tex" ;;
2795   "texi/ps/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/ps/Makefile" ;;
2796   "lisp/dgnuspath.el" ) CONFIG_FILES="$CONFIG_FILES lisp/dgnuspath.el" ;;
2797   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2798 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2799    { (exit 1); exit 1; }; };;
2800   esac
2801 done
2802
2803 # If the user did not use the arguments to specify the items to instantiate,
2804 # then the envvar interface is used.  Set only those that are not.
2805 # We use the long form for the default assignment because of an extremely
2806 # bizarre bug on SunOS 4.1.3.
2807 if $ac_need_defaults; then
2808   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2809 fi
2810
2811 # Have a temporary directory for convenience.  Make it in the build tree
2812 # simply because there is no reason to put it here, and in addition,
2813 # creating and moving files from /tmp can sometimes cause problems.
2814 # Create a temporary directory, and hook for its removal unless debugging.
2815 $debug ||
2816 {
2817   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2818   trap '{ (exit 1); exit 1; }' 1 2 13 15
2819 }
2820
2821 # Create a (secure) tmp directory for tmp files.
2822
2823 {
2824   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2825   test -n "$tmp" && test -d "$tmp"
2826 }  ||
2827 {
2828   tmp=./confstat$$-$RANDOM
2829   (umask 077 && mkdir $tmp)
2830 } ||
2831 {
2832    echo "$me: cannot create a temporary directory in ." >&2
2833    { (exit 1); exit 1; }
2834 }
2835
2836 _ACEOF
2837
2838 cat >>$CONFIG_STATUS <<_ACEOF
2839
2840 #
2841 # CONFIG_FILES section.
2842 #
2843
2844 # No need to generate the scripts if there are no CONFIG_FILES.
2845 # This happens for instance when ./config.status config.h
2846 if test -n "\$CONFIG_FILES"; then
2847   # Protect against being on the right side of a sed subst in config.status.
2848   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2849    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2850 s,@SHELL@,$SHELL,;t t
2851 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2852 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2853 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2854 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2855 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2856 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2857 s,@exec_prefix@,$exec_prefix,;t t
2858 s,@prefix@,$prefix,;t t
2859 s,@program_transform_name@,$program_transform_name,;t t
2860 s,@bindir@,$bindir,;t t
2861 s,@sbindir@,$sbindir,;t t
2862 s,@libexecdir@,$libexecdir,;t t
2863 s,@datadir@,$datadir,;t t
2864 s,@sysconfdir@,$sysconfdir,;t t
2865 s,@sharedstatedir@,$sharedstatedir,;t t
2866 s,@localstatedir@,$localstatedir,;t t
2867 s,@libdir@,$libdir,;t t
2868 s,@includedir@,$includedir,;t t
2869 s,@oldincludedir@,$oldincludedir,;t t
2870 s,@infodir@,$infodir,;t t
2871 s,@mandir@,$mandir,;t t
2872 s,@build_alias@,$build_alias,;t t
2873 s,@host_alias@,$host_alias,;t t
2874 s,@target_alias@,$target_alias,;t t
2875 s,@DEFS@,$DEFS,;t t
2876 s,@ECHO_C@,$ECHO_C,;t t
2877 s,@ECHO_N@,$ECHO_N,;t t
2878 s,@ECHO_T@,$ECHO_T,;t t
2879 s,@LIBS@,$LIBS,;t t
2880 s,@GNUS_PRODUCT_NAME@,$GNUS_PRODUCT_NAME,;t t
2881 s,@SET_MAKE@,$SET_MAKE,;t t
2882 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2883 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2884 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2885 s,@MAKEINFO@,$MAKEINFO,;t t
2886 s,@EMACS@,$EMACS,;t t
2887 s,@XEMACS@,$XEMACS,;t t
2888 s,@lispdir@,$lispdir,;t t
2889 s,@etcdir@,$etcdir,;t t
2890 s,@info_dir@,$info_dir,;t t
2891 s,@HAVE_url@,$HAVE_url,;t t
2892 s,@URL@,$URL,;t t
2893 s,@HAVE_w3_forms@,$HAVE_w3_forms,;t t
2894 s,@W3@,$W3,;t t
2895 s,@FLAGS@,$FLAGS,;t t
2896 s,@LATEX@,$LATEX,;t t
2897 s,@WITH_FONTS_bembo@,$WITH_FONTS_bembo,;t t
2898 s,@WITHOUT_FONTS_bembo@,$WITHOUT_FONTS_bembo,;t t
2899 s,@WITH_FONTS_pfu@,$WITH_FONTS_pfu,;t t
2900 s,@WITHOUT_FONTS_pfu@,$WITHOUT_FONTS_pfu,;t t
2901 s,@WITH_FONTS_bcr@,$WITH_FONTS_bcr,;t t
2902 s,@WITHOUT_FONTS_bcr@,$WITHOUT_FONTS_bcr,;t t
2903 s,@USE_FONTS@,$USE_FONTS,;t t
2904 s,@PACKAGEDIR@,$PACKAGEDIR,;t t
2905 s,@ADDITIONAL_LOAD_PATH@,$ADDITIONAL_LOAD_PATH,;t t
2906 s,@LIBOBJS@,$LIBOBJS,;t t
2907 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2908 CEOF
2909
2910 _ACEOF
2911
2912   cat >>$CONFIG_STATUS <<\_ACEOF
2913   # Split the substitutions into bite-sized pieces for seds with
2914   # small command number limits, like on Digital OSF/1 and HP-UX.
2915   ac_max_sed_lines=48
2916   ac_sed_frag=1 # Number of current file.
2917   ac_beg=1 # First line for current file.
2918   ac_end=$ac_max_sed_lines # Line after last line for current file.
2919   ac_more_lines=:
2920   ac_sed_cmds=
2921   while $ac_more_lines; do
2922     if test $ac_beg -gt 1; then
2923       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2924     else
2925       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2926     fi
2927     if test ! -s $tmp/subs.frag; then
2928       ac_more_lines=false
2929     else
2930       # The purpose of the label and of the branching condition is to
2931       # speed up the sed processing (if there are no `@' at all, there
2932       # is no need to browse any of the substitutions).
2933       # These are the two extra sed commands mentioned above.
2934       (echo ':t
2935   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2936       if test -z "$ac_sed_cmds"; then
2937         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2938       else
2939         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2940       fi
2941       ac_sed_frag=`expr $ac_sed_frag + 1`
2942       ac_beg=$ac_end
2943       ac_end=`expr $ac_end + $ac_max_sed_lines`
2944     fi
2945   done
2946   if test -z "$ac_sed_cmds"; then
2947     ac_sed_cmds=cat
2948   fi
2949 fi # test -n "$CONFIG_FILES"
2950
2951 _ACEOF
2952 cat >>$CONFIG_STATUS <<\_ACEOF
2953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2954   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2955   case $ac_file in
2956   - | *:- | *:-:* ) # input from stdin
2957         cat >$tmp/stdin
2958         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2960   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2962   * )   ac_file_in=$ac_file.in ;;
2963   esac
2964
2965   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2966   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2968          X"$ac_file" : 'X\(//\)[^/]' \| \
2969          X"$ac_file" : 'X\(//\)$' \| \
2970          X"$ac_file" : 'X\(/\)' \| \
2971          .     : '\(.\)' 2>/dev/null ||
2972 echo X"$ac_file" |
2973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2975           /^X\(\/\/\)$/{ s//\1/; q; }
2976           /^X\(\/\).*/{ s//\1/; q; }
2977           s/.*/./; q'`
2978   { if $as_mkdir_p; then
2979     mkdir -p "$ac_dir"
2980   else
2981     as_dir="$ac_dir"
2982     as_dirs=
2983     while test ! -d "$as_dir"; do
2984       as_dirs="$as_dir $as_dirs"
2985       as_dir=`(dirname "$as_dir") 2>/dev/null ||
2986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2987          X"$as_dir" : 'X\(//\)[^/]' \| \
2988          X"$as_dir" : 'X\(//\)$' \| \
2989          X"$as_dir" : 'X\(/\)' \| \
2990          .     : '\(.\)' 2>/dev/null ||
2991 echo X"$as_dir" |
2992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2994           /^X\(\/\/\)$/{ s//\1/; q; }
2995           /^X\(\/\).*/{ s//\1/; q; }
2996           s/.*/./; q'`
2997     done
2998     test ! -n "$as_dirs" || mkdir $as_dirs
2999   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3001    { (exit 1); exit 1; }; }; }
3002
3003   ac_builddir=.
3004
3005 if test "$ac_dir" != .; then
3006   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3007   # A "../" for each directory in $ac_dir_suffix.
3008   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3009 else
3010   ac_dir_suffix= ac_top_builddir=
3011 fi
3012
3013 case $srcdir in
3014   .)  # No --srcdir option.  We are building in place.
3015     ac_srcdir=.
3016     if test -z "$ac_top_builddir"; then
3017        ac_top_srcdir=.
3018     else
3019        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3020     fi ;;
3021   [\\/]* | ?:[\\/]* )  # Absolute path.
3022     ac_srcdir=$srcdir$ac_dir_suffix;
3023     ac_top_srcdir=$srcdir ;;
3024   *) # Relative path.
3025     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3026     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3027 esac
3028 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3029 # absolute.
3030 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3031 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3032 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3033 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3034
3035
3036   case $INSTALL in
3037   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3038   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3039   esac
3040
3041   if test x"$ac_file" != x-; then
3042     { echo "$as_me:$LINENO: creating $ac_file" >&5
3043 echo "$as_me: creating $ac_file" >&6;}
3044     rm -f "$ac_file"
3045   fi
3046   # Let's still pretend it is `configure' which instantiates (i.e., don't
3047   # use $as_me), people would be surprised to read:
3048   #    /* config.h.  Generated by config.status.  */
3049   if test x"$ac_file" = x-; then
3050     configure_input=
3051   else
3052     configure_input="$ac_file.  "
3053   fi
3054   configure_input=$configure_input"Generated from `echo $ac_file_in |
3055                                      sed 's,.*/,,'` by configure."
3056
3057   # First look for the input files in the build tree, otherwise in the
3058   # src tree.
3059   ac_file_inputs=`IFS=:
3060     for f in $ac_file_in; do
3061       case $f in
3062       -) echo $tmp/stdin ;;
3063       [\\/$]*)
3064          # Absolute (can't be DOS-style, as IFS=:)
3065          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3066 echo "$as_me: error: cannot find input file: $f" >&2;}
3067    { (exit 1); exit 1; }; }
3068          echo $f;;
3069       *) # Relative
3070          if test -f "$f"; then
3071            # Build tree
3072            echo $f
3073          elif test -f "$srcdir/$f"; then
3074            # Source tree
3075            echo $srcdir/$f
3076          else
3077            # /dev/null tree
3078            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3079 echo "$as_me: error: cannot find input file: $f" >&2;}
3080    { (exit 1); exit 1; }; }
3081          fi;;
3082       esac
3083     done` || { (exit 1); exit 1; }
3084 _ACEOF
3085 cat >>$CONFIG_STATUS <<_ACEOF
3086   sed "$ac_vpsub
3087 $extrasub
3088 _ACEOF
3089 cat >>$CONFIG_STATUS <<\_ACEOF
3090 :t
3091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3092 s,@configure_input@,$configure_input,;t t
3093 s,@srcdir@,$ac_srcdir,;t t
3094 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3095 s,@top_srcdir@,$ac_top_srcdir,;t t
3096 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3097 s,@builddir@,$ac_builddir,;t t
3098 s,@abs_builddir@,$ac_abs_builddir,;t t
3099 s,@top_builddir@,$ac_top_builddir,;t t
3100 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3101 s,@INSTALL@,$ac_INSTALL,;t t
3102 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3103   rm -f $tmp/stdin
3104   if test x"$ac_file" != x-; then
3105     mv $tmp/out $ac_file
3106   else
3107     cat $tmp/out
3108     rm -f $tmp/out
3109   fi
3110
3111 done
3112 _ACEOF
3113
3114 cat >>$CONFIG_STATUS <<\_ACEOF
3115
3116 { (exit 0); exit 0; }
3117 _ACEOF
3118 chmod +x $CONFIG_STATUS
3119 ac_clean_files=$ac_clean_files_save
3120
3121
3122 # configure is writing to config.log, and then calls config.status.
3123 # config.status does its own redirection, appending to config.log.
3124 # Unfortunately, on DOS this fails, as config.log is still kept open
3125 # by configure, so config.status won't be able to write to it; its
3126 # output is simply discarded.  So we exec the FD to /dev/null,
3127 # effectively closing config.log, so it can be properly (re)opened and
3128 # appended to by config.status.  When coming back to configure, we
3129 # need to make the FD available again.
3130 if test "$no_create" != yes; then
3131   ac_cs_success=:
3132   ac_config_status_args=
3133   test "$silent" = yes &&
3134     ac_config_status_args="$ac_config_status_args --quiet"
3135   exec 5>/dev/null
3136   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3137   exec 5>>config.log
3138   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3139   # would make configure fail if this is the last instruction.
3140   $ac_cs_success || { (exit 1); exit 1; }
3141 fi
3142