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