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