Synch with Gnus.
[elisp/gnus.git-] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-emacs=EMACS      compile with EMACS [EMACS=emacs, mule...]"
16 ac_help="$ac_help
17   --with-xemacs=XEMACS    compile with XEMACS [XEMACS=xemacs]"
18 ac_help="$ac_help
19   --with-lispdir=DIR      Where to install lisp files
20                           (for XEmacs package, use --with-packagedir instead)"
21 ac_help="$ac_help
22   --with-w3=DIR           Specify where to find the w3 package"
23 ac_help="$ac_help
24   --with-packagedir=DIR   package DIR for XEmacs"
25 ac_help="$ac_help
26   --with-addpath=PATH     search Emacs-Lisp libraries with PATH
27                           use colons to separate directory names"
28
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
32 build=NONE
33 cache_file=./config.cache
34 exec_prefix=NONE
35 host=NONE
36 no_create=
37 nonopt=NONE
38 no_recursion=
39 prefix=NONE
40 program_prefix=NONE
41 program_suffix=NONE
42 program_transform_name=s,x,x,
43 silent=
44 site=
45 srcdir=
46 target=NONE
47 verbose=
48 x_includes=NONE
49 x_libraries=NONE
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
62
63 # Initialize some other variables.
64 subdirs=
65 MFLAGS= MAKEFLAGS=
66 SHELL=${CONFIG_SHELL-/bin/sh}
67 # Maximum number of lines to put in a shell here document.
68 ac_max_here_lines=12
69
70 ac_prev=
71 for ac_option
72 do
73
74   # If the previous option needs an argument, assign it.
75   if test -n "$ac_prev"; then
76     eval "$ac_prev=\$ac_option"
77     ac_prev=
78     continue
79   fi
80
81   case "$ac_option" in
82   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83   *) ac_optarg= ;;
84   esac
85
86   # Accept the important Cygnus configure options, so we can diagnose typos.
87
88   case "$ac_option" in
89
90   -bindir | --bindir | --bindi | --bind | --bin | --bi)
91     ac_prev=bindir ;;
92   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93     bindir="$ac_optarg" ;;
94
95   -build | --build | --buil | --bui | --bu)
96     ac_prev=build ;;
97   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98     build="$ac_optarg" ;;
99
100   -cache-file | --cache-file | --cache-fil | --cache-fi \
101   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102     ac_prev=cache_file ;;
103   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105     cache_file="$ac_optarg" ;;
106
107   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108     ac_prev=datadir ;;
109   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110   | --da=*)
111     datadir="$ac_optarg" ;;
112
113   -disable-* | --disable-*)
114     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115     # Reject names that are not valid shell variable names.
116     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118     fi
119     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120     eval "enable_${ac_feature}=no" ;;
121
122   -enable-* | --enable-*)
123     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124     # Reject names that are not valid shell variable names.
125     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127     fi
128     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129     case "$ac_option" in
130       *=*) ;;
131       *) ac_optarg=yes ;;
132     esac
133     eval "enable_${ac_feature}='$ac_optarg'" ;;
134
135   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137   | --exec | --exe | --ex)
138     ac_prev=exec_prefix ;;
139   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141   | --exec=* | --exe=* | --ex=*)
142     exec_prefix="$ac_optarg" ;;
143
144   -gas | --gas | --ga | --g)
145     # Obsolete; use --with-gas.
146     with_gas=yes ;;
147
148   -help | --help | --hel | --he)
149     # Omit some internal or obsolete options to make the list less imposing.
150     # This message is too long to be a string in the A/UX 3.1 sh.
151     cat << EOF
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
154 Configuration:
155   --cache-file=FILE       cache test results in FILE
156   --help                  print this message
157   --no-create             do not create output files
158   --quiet, --silent       do not print \`checking...' messages
159   --version               print the version of autoconf that created configure
160 Directory and file names:
161   --prefix=PREFIX         install architecture-independent files in PREFIX
162                           [$ac_default_prefix]
163   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
164                           [same as prefix]
165   --bindir=DIR            user executables in DIR [EPREFIX/bin]
166   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
167   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
168   --datadir=DIR           read-only architecture-independent data in DIR
169                           [PREFIX/share]
170   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
171   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
172                           [PREFIX/com]
173   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
174   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
175   --includedir=DIR        C header files in DIR [PREFIX/include]
176   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
177   --infodir=DIR           info documentation in DIR [PREFIX/info]
178   --mandir=DIR            man documentation in DIR [PREFIX/man]
179   --srcdir=DIR            find the sources in DIR [configure dir or ..]
180   --program-prefix=PREFIX prepend PREFIX to installed program names
181   --program-suffix=SUFFIX append SUFFIX to installed program names
182   --program-transform-name=PROGRAM
183                           run sed PROGRAM on installed program names
184 EOF
185     cat << EOF
186 Host type:
187   --build=BUILD           configure for building on BUILD [BUILD=HOST]
188   --host=HOST             configure for HOST [guessed]
189   --target=TARGET         configure for TARGET [TARGET=HOST]
190 Features and packages:
191   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
192   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
193   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
194   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
195   --x-includes=DIR        X include files are in DIR
196   --x-libraries=DIR       X library files are in DIR
197 EOF
198     if test -n "$ac_help"; then
199       echo "--enable and --with options recognized:$ac_help"
200     fi
201     exit 0 ;;
202
203   -host | --host | --hos | --ho)
204     ac_prev=host ;;
205   -host=* | --host=* | --hos=* | --ho=*)
206     host="$ac_optarg" ;;
207
208   -includedir | --includedir | --includedi | --included | --include \
209   | --includ | --inclu | --incl | --inc)
210     ac_prev=includedir ;;
211   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212   | --includ=* | --inclu=* | --incl=* | --inc=*)
213     includedir="$ac_optarg" ;;
214
215   -infodir | --infodir | --infodi | --infod | --info | --inf)
216     ac_prev=infodir ;;
217   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218     infodir="$ac_optarg" ;;
219
220   -libdir | --libdir | --libdi | --libd)
221     ac_prev=libdir ;;
222   -libdir=* | --libdir=* | --libdi=* | --libd=*)
223     libdir="$ac_optarg" ;;
224
225   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226   | --libexe | --libex | --libe)
227     ac_prev=libexecdir ;;
228   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229   | --libexe=* | --libex=* | --libe=*)
230     libexecdir="$ac_optarg" ;;
231
232   -localstatedir | --localstatedir | --localstatedi | --localstated \
233   | --localstate | --localstat | --localsta | --localst \
234   | --locals | --local | --loca | --loc | --lo)
235     ac_prev=localstatedir ;;
236   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239     localstatedir="$ac_optarg" ;;
240
241   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242     ac_prev=mandir ;;
243   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244     mandir="$ac_optarg" ;;
245
246   -nfp | --nfp | --nf)
247     # Obsolete; use --without-fp.
248     with_fp=no ;;
249
250   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251   | --no-cr | --no-c)
252     no_create=yes ;;
253
254   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256     no_recursion=yes ;;
257
258   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260   | --oldin | --oldi | --old | --ol | --o)
261     ac_prev=oldincludedir ;;
262   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265     oldincludedir="$ac_optarg" ;;
266
267   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268     ac_prev=prefix ;;
269   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270     prefix="$ac_optarg" ;;
271
272   -program-prefix | --program-prefix | --program-prefi | --program-pref \
273   | --program-pre | --program-pr | --program-p)
274     ac_prev=program_prefix ;;
275   -program-prefix=* | --program-prefix=* | --program-prefi=* \
276   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277     program_prefix="$ac_optarg" ;;
278
279   -program-suffix | --program-suffix | --program-suffi | --program-suff \
280   | --program-suf | --program-su | --program-s)
281     ac_prev=program_suffix ;;
282   -program-suffix=* | --program-suffix=* | --program-suffi=* \
283   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284     program_suffix="$ac_optarg" ;;
285
286   -program-transform-name | --program-transform-name \
287   | --program-transform-nam | --program-transform-na \
288   | --program-transform-n | --program-transform- \
289   | --program-transform | --program-transfor \
290   | --program-transfo | --program-transf \
291   | --program-trans | --program-tran \
292   | --progr-tra | --program-tr | --program-t)
293     ac_prev=program_transform_name ;;
294   -program-transform-name=* | --program-transform-name=* \
295   | --program-transform-nam=* | --program-transform-na=* \
296   | --program-transform-n=* | --program-transform-=* \
297   | --program-transform=* | --program-transfor=* \
298   | --program-transfo=* | --program-transf=* \
299   | --program-trans=* | --program-tran=* \
300   | --progr-tra=* | --program-tr=* | --program-t=*)
301     program_transform_name="$ac_optarg" ;;
302
303   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304   | -silent | --silent | --silen | --sile | --sil)
305     silent=yes ;;
306
307   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308     ac_prev=sbindir ;;
309   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310   | --sbi=* | --sb=*)
311     sbindir="$ac_optarg" ;;
312
313   -sharedstatedir | --sharedstatedir | --sharedstatedi \
314   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315   | --sharedst | --shareds | --shared | --share | --shar \
316   | --sha | --sh)
317     ac_prev=sharedstatedir ;;
318   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321   | --sha=* | --sh=*)
322     sharedstatedir="$ac_optarg" ;;
323
324   -site | --site | --sit)
325     ac_prev=site ;;
326   -site=* | --site=* | --sit=*)
327     site="$ac_optarg" ;;
328
329   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330     ac_prev=srcdir ;;
331   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332     srcdir="$ac_optarg" ;;
333
334   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335   | --syscon | --sysco | --sysc | --sys | --sy)
336     ac_prev=sysconfdir ;;
337   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339     sysconfdir="$ac_optarg" ;;
340
341   -target | --target | --targe | --targ | --tar | --ta | --t)
342     ac_prev=target ;;
343   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344     target="$ac_optarg" ;;
345
346   -v | -verbose | --verbose | --verbos | --verbo | --verb)
347     verbose=yes ;;
348
349   -version | --version | --versio | --versi | --vers)
350     echo "configure generated by autoconf version 2.14.1"
351     exit 0 ;;
352
353   -with-* | --with-*)
354     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355     # Reject names that are not valid shell variable names.
356     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358     fi
359     ac_package=`echo $ac_package| sed 's/-/_/g'`
360     case "$ac_option" in
361       *=*) ;;
362       *) ac_optarg=yes ;;
363     esac
364     eval "with_${ac_package}='$ac_optarg'" ;;
365
366   -without-* | --without-*)
367     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368     # Reject names that are not valid shell variable names.
369     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371     fi
372     ac_package=`echo $ac_package| sed 's/-/_/g'`
373     eval "with_${ac_package}=no" ;;
374
375   --x)
376     # Obsolete; use --with-x.
377     with_x=yes ;;
378
379   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380   | --x-incl | --x-inc | --x-in | --x-i)
381     ac_prev=x_includes ;;
382   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384     x_includes="$ac_optarg" ;;
385
386   -x-libraries | --x-libraries | --x-librarie | --x-librari \
387   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388     ac_prev=x_libraries ;;
389   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391     x_libraries="$ac_optarg" ;;
392
393   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394     ;;
395
396   *)
397     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398       echo "configure: warning: $ac_option: invalid host type" 1>&2
399     fi
400     if test "x$nonopt" != xNONE; then
401       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402     fi
403     nonopt="$ac_option"
404     ;;
405
406   esac
407 done
408
409 if test -n "$ac_prev"; then
410   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 fi
412
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424   exec 6>/dev/null
425 else
426   exec 6>&1
427 fi
428 exec 5>./config.log
429
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
434
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
439 do
440   case "$ac_arg" in
441   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442   | --no-cr | --no-c) ;;
443   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448   esac
449 done
450
451 # NLS nuisances.
452 # Only set these to C if already set.  These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
460
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
465
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=lisp/gnus.el
469
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472   ac_srcdir_defaulted=yes
473   # Try the directory containing this script, then its parent.
474   ac_prog=$0
475   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477   srcdir=$ac_confdir
478   if test ! -r $srcdir/$ac_unique_file; then
479     srcdir=..
480   fi
481 else
482   ac_srcdir_defaulted=no
483 fi
484 if test ! -r $srcdir/$ac_unique_file; then
485   if test "$ac_srcdir_defaulted" = yes; then
486     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487   else
488     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489   fi
490 fi
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495   if test "x$prefix" != xNONE; then
496     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497   else
498     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499   fi
500 fi
501 for ac_site_file in $CONFIG_SITE; do
502   if test -r "$ac_site_file"; then
503     echo "loading site script $ac_site_file"
504     . "$ac_site_file"
505   fi
506 done
507
508 if test -r "$cache_file"; then
509   echo "loading cache $cache_file"
510       test -f "$cache_file" && . $cache_file
511 else
512   echo "creating cache $cache_file"
513   > $cache_file
514 fi
515
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
522
523 ac_exeext=
524 ac_objext=o
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528     ac_n= ac_c='
529 ' ac_t='        '
530   else
531     ac_n=-n ac_c= ac_t=
532   fi
533 else
534   ac_n= ac_c='\c' ac_t=
535 fi
536
537
538   GNUS_PRODUCT_NAME=t-gnus
539 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
540 echo "configure:541: checking whether ${MAKE-make} sets \${MAKE}" >&5
541 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
542 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
543   echo $ac_n "(cached) $ac_c" 1>&6
544 else
545   cat > conftestmake <<\EOF
546 all:
547         @echo 'ac_maketemp="${MAKE}"'
548 EOF
549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
550 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
551 if test -n "$ac_maketemp"; then
552   eval ac_cv_prog_make_${ac_make}_set=yes
553 else
554   eval ac_cv_prog_make_${ac_make}_set=no
555 fi
556 rm -f conftestmake
557 fi
558 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
559   echo "$ac_t""yes" 1>&6
560   SET_MAKE=
561 else
562   echo "$ac_t""no" 1>&6
563   SET_MAKE="MAKE=${MAKE-make}"
564 fi
565
566 ac_aux_dir=
567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
568   if test -f $ac_dir/install-sh; then
569     ac_aux_dir=$ac_dir
570     ac_install_sh="$ac_aux_dir/install-sh -c"
571     break
572   elif test -f $ac_dir/install.sh; then
573     ac_aux_dir=$ac_dir
574     ac_install_sh="$ac_aux_dir/install.sh -c"
575     break
576   fi
577 done
578 if test -z "$ac_aux_dir"; then
579   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
580 fi
581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
583 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
584
585 # Find a good install program.  We prefer a C program (faster),
586 # so one script is as good as another.  But avoid the broken or
587 # incompatible versions:
588 # SysV /etc/install, /usr/sbin/install
589 # SunOS /usr/etc/install
590 # IRIX /sbin/install
591 # AIX /bin/install
592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
595 # ./install, which can be erroneously created by make from ./install.sh.
596 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
597 echo "configure:598: checking for a BSD compatible install" >&5
598 if test -z "$INSTALL"; then
599 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
600   echo $ac_n "(cached) $ac_c" 1>&6
601 else
602     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
603   for ac_dir in $PATH; do
604     # Account for people who put trailing slashes in PATH elements.
605     case "$ac_dir/" in
606     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
607     *)
608       # OSF1 and SCO ODT 3.0 have their own names for install.
609       # Don't use installbsd from OSF since it installs stuff as root
610       # by default.
611       for ac_prog in ginstall scoinst install; do
612         if test -f $ac_dir/$ac_prog; then
613           if test $ac_prog = install &&
614             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
615             # AIX install.  It has an incompatible calling convention.
616             :
617           elif test $ac_prog = install &&
618             grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
619             # program-specific install script used by HP pwplus--don't use.
620             :
621           else
622             ac_cv_path_install="$ac_dir/$ac_prog -c"
623             break 2
624           fi
625         fi
626       done
627       ;;
628     esac
629   done
630   IFS="$ac_save_IFS"
631
632 fi
633   if test "${ac_cv_path_install+set}" = set; then
634     INSTALL="$ac_cv_path_install"
635   else
636     # As a last resort, use the slow shell script.  We don't cache a
637     # path for INSTALL within a source directory, because that will
638     # break other packages using the cache if that directory is
639     # removed, or if the path is relative.
640     INSTALL="$ac_install_sh"
641   fi
642 fi
643 echo "$ac_t""$INSTALL" 1>&6
644
645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646 # It thinks the first close brace ends the variable substitution.
647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
648
649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
650
651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
652
653 # Extract the first word of "makeinfo", so it can be a program name with args.
654 set dummy makeinfo; ac_word=$2
655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
656 echo "configure:657: checking for $ac_word" >&5
657 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
658   echo $ac_n "(cached) $ac_c" 1>&6
659 else
660   if test -n "$MAKEINFO"; then
661   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
662 else
663   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
664   ac_dummy="$PATH"
665   for ac_dir in $ac_dummy; do
666     test -z "$ac_dir" && ac_dir=.
667     if test -f $ac_dir/$ac_word; then
668       ac_cv_prog_MAKEINFO="makeinfo"
669       break
670     fi
671   done
672   IFS="$ac_save_ifs"
673   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
674 fi
675 fi
676 MAKEINFO="$ac_cv_prog_MAKEINFO"
677 if test -n "$MAKEINFO"; then
678   echo "$ac_t""$MAKEINFO" 1>&6
679 else
680   echo "$ac_t""no" 1>&6
681 fi
682
683
684       test x$EMACS = xt && EMACS=
685
686   # Check whether --with-emacs or --without-emacs was given.
687 if test "${with_emacs+set}" = set; then
688   withval="$with_emacs"
689   if test x$withval = xyes -o x$withval = x; then
690       for ac_prog in emacs xemacs mule
691 do
692 # Extract the first word of "$ac_prog", so it can be a program name with args.
693 set dummy $ac_prog; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
697   echo $ac_n "(cached) $ac_c" 1>&6
698 else
699   if test -n "$EMACS"; then
700   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
701 else
702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
703   ac_dummy="$PATH"
704   for ac_dir in $ac_dummy; do
705     test -z "$ac_dir" && ac_dir=.
706     if test -f $ac_dir/$ac_word; then
707       ac_cv_prog_EMACS="$ac_prog"
708       break
709     fi
710   done
711   IFS="$ac_save_ifs"
712 fi
713 fi
714 EMACS="$ac_cv_prog_EMACS"
715 if test -n "$EMACS"; then
716   echo "$ac_t""$EMACS" 1>&6
717 else
718   echo "$ac_t""no" 1>&6
719 fi
720
721 test -n "$EMACS" && break
722 done
723 test -n "$EMACS" || EMACS="emacs"
724
725     else
726       # Extract the first word of "$withval", so it can be a program name with args.
727 set dummy $withval; ac_word=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
731   echo $ac_n "(cached) $ac_c" 1>&6
732 else
733   if test -n "$EMACS"; then
734   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
735 else
736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
737   ac_dummy="$PATH"
738   for ac_dir in $ac_dummy; do
739     test -z "$ac_dir" && ac_dir=.
740     if test -f $ac_dir/$ac_word; then
741       ac_cv_prog_EMACS="$withval"
742       break
743     fi
744   done
745   IFS="$ac_save_ifs"
746   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
747 fi
748 fi
749 EMACS="$ac_cv_prog_EMACS"
750 if test -n "$EMACS"; then
751   echo "$ac_t""$EMACS" 1>&6
752 else
753   echo "$ac_t""no" 1>&6
754 fi
755
756     fi
757 fi
758
759   # Check whether --with-xemacs or --without-xemacs was given.
760 if test "${with_xemacs+set}" = set; then
761   withval="$with_xemacs"
762   if test x$withval = xyes -o x$withval = x; then
763       # Extract the first word of "xemacs", so it can be a program name with args.
764 set dummy xemacs; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
768   echo $ac_n "(cached) $ac_c" 1>&6
769 else
770   if test -n "$XEMACS"; then
771   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
772 else
773   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
774   ac_dummy="$PATH"
775   for ac_dir in $ac_dummy; do
776     test -z "$ac_dir" && ac_dir=.
777     if test -f $ac_dir/$ac_word; then
778       ac_cv_prog_XEMACS="xemacs"
779       break
780     fi
781   done
782   IFS="$ac_save_ifs"
783   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
784 fi
785 fi
786 XEMACS="$ac_cv_prog_XEMACS"
787 if test -n "$XEMACS"; then
788   echo "$ac_t""$XEMACS" 1>&6
789 else
790   echo "$ac_t""no" 1>&6
791 fi
792
793     else
794       # Extract the first word of "$withval", so it can be a program name with args.
795 set dummy $withval; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   if test -n "$XEMACS"; then
802   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
803 else
804   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
805   ac_dummy="$PATH"
806   for ac_dir in $ac_dummy; do
807     test -z "$ac_dir" && ac_dir=.
808     if test -f $ac_dir/$ac_word; then
809       ac_cv_prog_XEMACS="$withval"
810       break
811     fi
812   done
813   IFS="$ac_save_ifs"
814   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
815 fi
816 fi
817 XEMACS="$ac_cv_prog_XEMACS"
818 if test -n "$XEMACS"; then
819   echo "$ac_t""$XEMACS" 1>&6
820 else
821   echo "$ac_t""no" 1>&6
822 fi
823
824     fi
825     EMACS=$XEMACS
826 else
827   XEMACS=xemacs
828     test x$EMACS = x &&\
829       for ac_prog in emacs xemacs mule
830 do
831 # Extract the first word of "$ac_prog", so it can be a program name with args.
832 set dummy $ac_prog; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
836   echo $ac_n "(cached) $ac_c" 1>&6
837 else
838   if test -n "$EMACS"; then
839   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
840 else
841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
842   ac_dummy="$PATH"
843   for ac_dir in $ac_dummy; do
844     test -z "$ac_dir" && ac_dir=.
845     if test -f $ac_dir/$ac_word; then
846       ac_cv_prog_EMACS="$ac_prog"
847       break
848     fi
849   done
850   IFS="$ac_save_ifs"
851 fi
852 fi
853 EMACS="$ac_cv_prog_EMACS"
854 if test -n "$EMACS"; then
855   echo "$ac_t""$EMACS" 1>&6
856 else
857   echo "$ac_t""no" 1>&6
858 fi
859
860 test -n "$EMACS" && break
861 done
862 test -n "$EMACS" || EMACS="emacs"
863
864 fi
865
866   
867   
868
869   echo $ac_n "checking what a flavor does $EMACS have""... $ac_c" 1>&6
870 echo "configure:871: checking what a flavor does $EMACS have" >&5
871   
872 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
873           ((boundp (quote MULE)) \"MULE\")\
874           (t \"FSF Emacs\"))"
875 if test -z ""noecho""; then
876         echo $ac_n "checking for flavor""... $ac_c" 1>&6
877 echo "configure:878: checking for flavor" >&5
878 fi
879 if eval "test \"\${EMACS_cv_SYS_flavor+set}\" = set"; then
880   echo $ac_n "(cached) $ac_c" 1>&6
881 else
882   
883         OUTPUT=./conftest-$$
884         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
885         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
886         retval=`cat ${OUTPUT}`
887         echo "=> ${retval}" >& 5 2>&1
888         rm -f ${OUTPUT}
889         EMACS_cv_SYS_flavor=$retval
890
891 fi
892
893 flavor=${EMACS_cv_SYS_flavor}
894 if test -z ""noecho""; then
895         echo "$ac_t""$flavor" 1>&6
896 fi
897
898   case $EMACS_cv_SYS_flavor in
899   XEmacs)
900     EMACS_FLAVOR=xemacs;;
901   MULE)
902     EMACS_FLAVOR=mule;;
903   *)
904     EMACS_FLAVOR=emacs;;
905   esac
906   echo "$ac_t""$EMACS_cv_SYS_flavor" 1>&6
907   if test "$prefix" = "NONE"; then
908         echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
909 echo "configure:910: checking prefix for your Emacs" >&5
910         
911 elisp="(expand-file-name \"..\" invocation-directory)"
912 if test -z ""noecho""; then
913         echo $ac_n "checking for prefix""... $ac_c" 1>&6
914 echo "configure:915: checking for prefix" >&5
915 fi
916 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
917   echo $ac_n "(cached) $ac_c" 1>&6
918 else
919   
920         OUTPUT=./conftest-$$
921         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
922         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
923         retval=`cat ${OUTPUT}`
924         echo "=> ${retval}" >& 5 2>&1
925         rm -f ${OUTPUT}
926         EMACS_cv_SYS_prefix=$retval
927
928 fi
929
930 prefix=${EMACS_cv_SYS_prefix}
931 if test -z ""noecho""; then
932         echo "$ac_t""$prefix" 1>&6
933 fi
934
935         prefix=${EMACS_cv_SYS_prefix}
936         echo "$ac_t""$prefix" 1>&6
937   fi
938   # Check whether --with-lispdir or --without-lispdir was given.
939 if test "${with_lispdir+set}" = set; then
940   withval="$with_lispdir"
941   lispdir=${withval}
942 fi
943
944   echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
945 echo "configure:946: checking where lisp files should go" >&5
946   if test -z "$lispdir"; then
947         theprefix=$prefix
948     if test "x$theprefix" = "xNONE"; then
949         theprefix=$ac_default_prefix
950     fi
951     lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
952     for thedir in share lib; do
953         potential=
954         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
955            lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
956            break
957         fi
958     done
959   fi
960   echo "$ac_t""$lispdir
961          (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
962   
963
964
965 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
966 echo "configure:967: checking for acceptable W3 version" >&5
967 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   
971
972 if test -z ""noecho""; then
973         echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
974 echo "configure:975: checking for w3-form-encode-xwfu in w3_forms" >&5
975 fi
976 library=`echo w3_forms | tr _ -`
977
978 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\")))))"
979 if test -z ""noecho""; then
980         echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
981 echo "configure:982: checking for w3_forms" >&5
982 fi
983 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
984   echo $ac_n "(cached) $ac_c" 1>&6
985 else
986   
987         OUTPUT=./conftest-$$
988         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
989         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
990         retval=`cat ${OUTPUT}`
991         echo "=> ${retval}" >& 5 2>&1
992         rm -f ${OUTPUT}
993         EMACS_cv_SYS_w3_forms=$retval
994
995 fi
996
997 w3_forms=${EMACS_cv_SYS_w3_forms}
998 if test -z ""noecho""; then
999         echo "$ac_t""$w3_forms" 1>&6
1000 fi
1001
1002 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
1003         EMACS_cv_SYS_w3_forms=no
1004 fi
1005 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
1006         EMACS_cv_SYS_w3_forms=yes
1007 fi
1008 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1009
1010 if test -z ""noecho""; then
1011         echo "$ac_t""$HAVE_w3_forms" 1>&6
1012 fi
1013
1014 if test "${HAVE_w3_forms}" = "yes"; then
1015         EMACS_cv_ACCEPTABLE_W3=yes
1016 else
1017         EMACS_cv_ACCEPTABLE_W3=no
1018 fi
1019
1020 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
1021         
1022 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1023 if test -z ""noecho""; then
1024         echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1025 echo "configure:1026: checking for w3_dir" >&5
1026 fi
1027 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
1028   echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030   
1031         OUTPUT=./conftest-$$
1032         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
1033         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
1034         retval=`cat ${OUTPUT}`
1035         echo "=> ${retval}" >& 5 2>&1
1036         rm -f ${OUTPUT}
1037         EMACS_cv_SYS_w3_dir=$retval
1038
1039 fi
1040
1041 w3_dir=${EMACS_cv_SYS_w3_dir}
1042 if test -z ""noecho""; then
1043         echo "$ac_t""$w3_dir" 1>&6
1044 fi
1045
1046         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1047 fi
1048
1049 fi
1050
1051    # Check whether --with-w3 or --without-w3 was given.
1052 if test "${with_w3+set}" = set; then
1053   withval="$with_w3"
1054    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
1055 fi
1056
1057    W3=${EMACS_cv_ACCEPTABLE_W3}
1058    
1059    echo "$ac_t"""${W3}"" 1>&6
1060
1061   # Check whether --with-packagedir or --without-packagedir was given.
1062 if test "${with_packagedir+set}" = set; then
1063   withval="$with_packagedir"
1064   if test x$withval != xyes -a x$withval != x; then
1065       echo $ac_n "checking where the package should go""... $ac_c" 1>&6
1066 echo "configure:1067: checking where the package should go" >&5
1067       PACKAGEDIR=$withval
1068       echo "$ac_t""$PACKAGEDIR" 1>&6
1069     fi
1070 else
1071   PACKAGEDIR=
1072 fi
1073
1074   
1075   # Check whether --with-addpath or --without-addpath was given.
1076 if test "${with_addpath+set}" = set; then
1077   withval="$with_addpath"
1078   if test x$withval != xyes -a x$withval != x; then
1079       echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
1080 echo "configure:1081: checking where to find the additional elisp libraries" >&5
1081       ADDITIONAL_LOAD_PATH=$withval
1082       echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
1083     fi
1084 else
1085   ADDITIONAL_LOAD_PATH=
1086 fi
1087
1088   
1089 trap '' 1 2 15
1090 cat > confcache <<\EOF
1091 # This file is a shell script that caches the results of configure
1092 # tests run on this system so they can be shared between configure
1093 # scripts and configure runs.  It is not useful on other systems.
1094 # If it contains results you don't want to keep, you may remove or edit it.
1095 #
1096 # By default, configure uses ./config.cache as the cache file,
1097 # creating it if it does not exist already.  You can give configure
1098 # the --cache-file=FILE option to use a different cache file; that is
1099 # what configure does when it calls configure scripts in
1100 # subdirectories, so they share the cache.
1101 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1102 # config.status only pays attention to the cache file if you give it the
1103 # --recheck option to rerun configure.
1104 #
1105 EOF
1106 # The following way of writing the cache mishandles newlines in values,
1107 # but we know of no workaround that is simple, portable, and efficient.
1108 # So, don't put newlines in cache variables' values.
1109 # Ultrix sh set writes to stderr and can't be redirected directly,
1110 # and sets the high bit in the cache file unless we assign to the vars.
1111 (set) 2>&1 |
1112   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1113   *ac_space=\ *)
1114     # `set' does not quote correctly, so add quotes (double-quote substitution
1115     # turns \\\\ into \\, and sed turns \\ into \).
1116     sed -n \
1117       -e "s/'/'\\\\''/g" \
1118       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1119     ;;
1120   *)
1121     # `set' quotes correctly as required by POSIX, so do not add quotes.
1122     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1123     ;;
1124   esac >> confcache
1125 if cmp -s $cache_file confcache; then
1126   :
1127 else
1128   if test -w $cache_file; then
1129     echo "updating cache $cache_file"
1130     cat confcache > $cache_file
1131   else
1132     echo "not updating unwritable cache $cache_file"
1133   fi
1134 fi
1135 rm -f confcache
1136
1137 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1138
1139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1140 # Let make expand exec_prefix.
1141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1142
1143 # Any assignment to VPATH causes Sun make to only execute
1144 # the first set of double-colon rules, so remove it if not needed.
1145 # If there is a colon in the path, we need to keep it.
1146 if test "x$srcdir" = x.; then
1147   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1148 fi
1149
1150 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1151
1152 # Transform confdefs.h into DEFS.
1153 # Protect against shell expansion while executing Makefile rules.
1154 # Protect against Makefile macro expansion.
1155 cat > conftest.defs <<\EOF
1156 s%#define \([^  ][^     ]*\) *\(.*\)%-D\1=\2%g
1157 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1158 s%\[%\\&%g
1159 s%\]%\\&%g
1160 s%\$%$$%g
1161 EOF
1162 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1163 rm -f conftest.defs
1164
1165
1166 # Without the "./", some shells look in PATH for config.status.
1167 : ${CONFIG_STATUS=./config.status}
1168
1169 echo creating $CONFIG_STATUS
1170 rm -f $CONFIG_STATUS
1171 cat > $CONFIG_STATUS <<EOF
1172 #! /bin/sh
1173 # Generated automatically by configure.
1174 # Run this file to recreate the current configuration.
1175 # This directory was configured as follows,
1176 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1177 #
1178 # $0 $ac_configure_args
1179 #
1180 # Compiler output produced by configure, useful for debugging
1181 # configure, is in ./config.log if it exists.
1182
1183 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1184 for ac_option
1185 do
1186   case "\$ac_option" in
1187   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1188     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1189     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1190   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1191     echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1192     exit 0 ;;
1193   -help | --help | --hel | --he | --h)
1194     echo "\$ac_cs_usage"; exit 0 ;;
1195   *) echo "\$ac_cs_usage"; exit 1 ;;
1196   esac
1197 done
1198
1199 ac_given_srcdir=$srcdir
1200 ac_given_INSTALL="$INSTALL"
1201
1202 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1203 EOF
1204 cat >> $CONFIG_STATUS <<EOF
1205
1206 # Protect against being on the right side of a sed subst in config.status.
1207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1208  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1209 $ac_vpsub
1210 $extrasub
1211 s%@SHELL@%$SHELL%g
1212 s%@CFLAGS@%$CFLAGS%g
1213 s%@CPPFLAGS@%$CPPFLAGS%g
1214 s%@CXXFLAGS@%$CXXFLAGS%g
1215 s%@FFLAGS@%$FFLAGS%g
1216 s%@DEFS@%$DEFS%g
1217 s%@LDFLAGS@%$LDFLAGS%g
1218 s%@LIBS@%$LIBS%g
1219 s%@exec_prefix@%$exec_prefix%g
1220 s%@prefix@%$prefix%g
1221 s%@program_transform_name@%$program_transform_name%g
1222 s%@bindir@%$bindir%g
1223 s%@sbindir@%$sbindir%g
1224 s%@libexecdir@%$libexecdir%g
1225 s%@datadir@%$datadir%g
1226 s%@sysconfdir@%$sysconfdir%g
1227 s%@sharedstatedir@%$sharedstatedir%g
1228 s%@localstatedir@%$localstatedir%g
1229 s%@libdir@%$libdir%g
1230 s%@includedir@%$includedir%g
1231 s%@oldincludedir@%$oldincludedir%g
1232 s%@infodir@%$infodir%g
1233 s%@mandir@%$mandir%g
1234 s%@SET_MAKE@%$SET_MAKE%g
1235 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1236 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1237 s%@INSTALL_DATA@%$INSTALL_DATA%g
1238 s%@MAKEINFO@%$MAKEINFO%g
1239 s%@EMACS@%$EMACS%g
1240 s%@XEMACS@%$XEMACS%g
1241 s%@lispdir@%$lispdir%g
1242 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1243 s%@W3@%$W3%g
1244 s%@PACKAGEDIR@%$PACKAGEDIR%g
1245 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1246
1247 CEOF
1248 EOF
1249
1250 cat >> $CONFIG_STATUS <<\EOF
1251
1252 # Split the substitutions into bite-sized pieces for seds with
1253 # small command number limits, like on Digital OSF/1 and HP-UX.
1254 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1255 ac_file=1 # Number of current file.
1256 ac_beg=1 # First line for current file.
1257 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1258 ac_more_lines=:
1259 ac_sed_cmds=""
1260 while $ac_more_lines; do
1261   if test $ac_beg -gt 1; then
1262     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1263   else
1264     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1265   fi
1266   if test ! -s conftest.s$ac_file; then
1267     ac_more_lines=false
1268     rm -f conftest.s$ac_file
1269   else
1270     if test -z "$ac_sed_cmds"; then
1271       ac_sed_cmds="sed -f conftest.s$ac_file"
1272     else
1273       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1274     fi
1275     ac_file=`expr $ac_file + 1`
1276     ac_beg=$ac_end
1277     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1278   fi
1279 done
1280 if test -z "$ac_sed_cmds"; then
1281   ac_sed_cmds=cat
1282 fi
1283 EOF
1284
1285 cat >> $CONFIG_STATUS <<EOF
1286
1287 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1288 EOF
1289 cat >> $CONFIG_STATUS <<\EOF
1290 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1291   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1292   case "$ac_file" in
1293   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1294        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1295   *) ac_file_in="${ac_file}.in" ;;
1296   esac
1297
1298   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1299
1300   # Remove last slash and all that follows it.  Not all systems have dirname.
1301   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1302   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1303     # The file is in a subdirectory.
1304     test ! -d "$ac_dir" && mkdir "$ac_dir"
1305     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1306     # A "../" for each directory in $ac_dir_suffix.
1307     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1308   else
1309     ac_dir_suffix= ac_dots=
1310   fi
1311
1312   case "$ac_given_srcdir" in
1313   .)  srcdir=.
1314       if test -z "$ac_dots"; then top_srcdir=.
1315       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1316   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1317   *) # Relative path.
1318     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1319     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1320   esac
1321
1322   case "$ac_given_INSTALL" in
1323   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1324   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1325   esac
1326
1327   echo creating "$ac_file"
1328   rm -f "$ac_file"
1329   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1330   case "$ac_file" in
1331   *Makefile*) ac_comsub="1i\\
1332 # $configure_input" ;;
1333   *) ac_comsub= ;;
1334   esac
1335
1336   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1337   sed -e "$ac_comsub
1338 s%@configure_input@%$configure_input%g
1339 s%@srcdir@%$srcdir%g
1340 s%@top_srcdir@%$top_srcdir%g
1341 s%@INSTALL@%$INSTALL%g
1342 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1343 fi; done
1344 rm -f conftest.s*
1345
1346 EOF
1347 cat >> $CONFIG_STATUS <<EOF
1348
1349 EOF
1350 cat >> $CONFIG_STATUS <<\EOF
1351
1352 exit 0
1353 EOF
1354 chmod +x $CONFIG_STATUS
1355 rm -fr confdefs* $ac_clean_files
1356 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1357