3b8a811fd7a73602e34649bc23f886512e6c2527
[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.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-lispdir=DIR      Where to install lisp files"
20 ac_help="$ac_help
21   --with-etcdir=DIR       Where to install etc files"
22 ac_help="$ac_help
23   --with-url=DIR          Specify where to find the url package"
24 ac_help="$ac_help
25   --with-w3=DIR           Specify where to find the w3 package"
26 ac_help="$ac_help
27   --with-fonts            Assume all fonts required are available"
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.13"
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   . $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 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
539 echo "configure:540: checking whether ${MAKE-make} sets \${MAKE}" >&5
540 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
541 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
542   echo $ac_n "(cached) $ac_c" 1>&6
543 else
544   cat > conftestmake <<\EOF
545 all:
546         @echo 'ac_maketemp="${MAKE}"'
547 EOF
548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
549 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
550 if test -n "$ac_maketemp"; then
551   eval ac_cv_prog_make_${ac_make}_set=yes
552 else
553   eval ac_cv_prog_make_${ac_make}_set=no
554 fi
555 rm -f conftestmake
556 fi
557 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
558   echo "$ac_t""yes" 1>&6
559   SET_MAKE=
560 else
561   echo "$ac_t""no" 1>&6
562   SET_MAKE="MAKE=${MAKE-make}"
563 fi
564
565 ac_aux_dir=
566 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
567   if test -f $ac_dir/install-sh; then
568     ac_aux_dir=$ac_dir
569     ac_install_sh="$ac_aux_dir/install-sh -c"
570     break
571   elif test -f $ac_dir/install.sh; then
572     ac_aux_dir=$ac_dir
573     ac_install_sh="$ac_aux_dir/install.sh -c"
574     break
575   fi
576 done
577 if test -z "$ac_aux_dir"; then
578   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
579 fi
580 ac_config_guess=$ac_aux_dir/config.guess
581 ac_config_sub=$ac_aux_dir/config.sub
582 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
583
584 # Find a good install program.  We prefer a C program (faster),
585 # so one script is as good as another.  But avoid the broken or
586 # incompatible versions:
587 # SysV /etc/install, /usr/sbin/install
588 # SunOS /usr/etc/install
589 # IRIX /sbin/install
590 # AIX /bin/install
591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
594 # ./install, which can be erroneously created by make from ./install.sh.
595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
596 echo "configure:597: checking for a BSD compatible install" >&5
597 if test -z "$INSTALL"; then
598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
599   echo $ac_n "(cached) $ac_c" 1>&6
600 else
601     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
602   for ac_dir in $PATH; do
603     # Account for people who put trailing slashes in PATH elements.
604     case "$ac_dir/" in
605     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
606     *)
607       # OSF1 and SCO ODT 3.0 have their own names for install.
608       # Don't use installbsd from OSF since it installs stuff as root
609       # by default.
610       for ac_prog in ginstall scoinst install; do
611         if test -f $ac_dir/$ac_prog; then
612           if test $ac_prog = install &&
613             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
614             # AIX install.  It has an incompatible calling convention.
615             :
616           else
617             ac_cv_path_install="$ac_dir/$ac_prog -c"
618             break 2
619           fi
620         fi
621       done
622       ;;
623     esac
624   done
625   IFS="$ac_save_IFS"
626
627 fi
628   if test "${ac_cv_path_install+set}" = set; then
629     INSTALL="$ac_cv_path_install"
630   else
631     # As a last resort, use the slow shell script.  We don't cache a
632     # path for INSTALL within a source directory, because that will
633     # break other packages using the cache if that directory is
634     # removed, or if the path is relative.
635     INSTALL="$ac_install_sh"
636   fi
637 fi
638 echo "$ac_t""$INSTALL" 1>&6
639
640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
641 # It thinks the first close brace ends the variable substitution.
642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
643
644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
645
646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
647
648
649 if test "${EMACS}" = "t"; then
650    EMACS=""
651 fi
652
653 # Check whether --with-xemacs or --without-xemacs was given.
654 if test "${with_xemacs+set}" = set; then
655   withval="$with_xemacs"
656    if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi 
657 fi
658
659 # Check whether --with-emacs or --without-emacs was given.
660 if test "${with_emacs+set}" = set; then
661   withval="$with_emacs"
662    if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi 
663 fi
664
665 # Extract the first word of "makeinfo", so it can be a program name with args.
666 set dummy makeinfo; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
670   echo $ac_n "(cached) $ac_c" 1>&6
671 else
672   if test -n "$MAKEINFO"; then
673   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
674 else
675   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
676   ac_dummy="$PATH"
677   for ac_dir in $ac_dummy; do
678     test -z "$ac_dir" && ac_dir=.
679     if test -f $ac_dir/$ac_word; then
680       ac_cv_prog_MAKEINFO="makeinfo"
681       break
682     fi
683   done
684   IFS="$ac_save_ifs"
685   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
686 fi
687 fi
688 MAKEINFO="$ac_cv_prog_MAKEINFO"
689 if test -n "$MAKEINFO"; then
690   echo "$ac_t""$MAKEINFO" 1>&6
691 else
692   echo "$ac_t""no" 1>&6
693 fi
694
695
696 # Extract the first word of "emacs", so it can be a program name with args.
697 set dummy emacs; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_EMACS'+set}'`\" = set"; then
701   echo $ac_n "(cached) $ac_c" 1>&6
702 else
703   if test -n "$EMACS"; then
704   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
705 else
706   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
707   ac_dummy="$PATH"
708   for ac_dir in $ac_dummy; do
709     test -z "$ac_dir" && ac_dir=.
710     if test -f $ac_dir/$ac_word; then
711       ac_cv_prog_EMACS="emacs"
712       break
713     fi
714   done
715   IFS="$ac_save_ifs"
716   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="xemacs"
717 fi
718 fi
719 EMACS="$ac_cv_prog_EMACS"
720 if test -n "$EMACS"; then
721   echo "$ac_t""$EMACS" 1>&6
722 else
723   echo "$ac_t""no" 1>&6
724 fi
725
726
727
728   
729   echo $ac_n "checking if $EMACS is really XEmacs""... $ac_c" 1>&6
730 echo "configure:731: checking if $EMACS is really XEmacs" >&5
731   
732 elisp="(if (string-match \"XEmacs\" emacs-version) \"yes\" \"no\") "
733 if test -z ""noecho""; then
734         echo $ac_n "checking for xemacsp""... $ac_c" 1>&6
735 echo "configure:736: checking for xemacsp" >&5
736 fi
737 if eval "test \"`echo '$''{'EMACS_cv_SYS_xemacsp'+set}'`\" = set"; then
738   echo $ac_n "(cached) $ac_c" 1>&6
739 else
740   
741         OUTPUT=./conftest-$$
742         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
743         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
744         retval=`cat ${OUTPUT}`
745         echo "=> ${retval}" >& 5 2>&1
746         rm -f ${OUTPUT}
747         EMACS_cv_SYS_xemacsp=$retval
748
749 fi
750
751 xemacsp=${EMACS_cv_SYS_xemacsp}
752 if test -z ""noecho""; then
753         echo "$ac_t""$xemacsp" 1>&6
754 fi
755
756   XEMACS=${EMACS_cv_SYS_xemacsp}
757   EMACS_FLAVOR=emacs
758   if test "$XEMACS" = "yes"; then
759      EMACS_FLAVOR=xemacs
760   fi
761   echo "$ac_t""$XEMACS" 1>&6
762   
763   
764
765   if test "$prefix" = "NONE"; then
766         echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
767 echo "configure:768: checking prefix for your Emacs" >&5
768         
769 elisp="(expand-file-name \"..\" invocation-directory)"
770 if test -z ""noecho""; then
771         echo $ac_n "checking for prefix""... $ac_c" 1>&6
772 echo "configure:773: checking for prefix" >&5
773 fi
774 if eval "test \"`echo '$''{'EMACS_cv_SYS_prefix'+set}'`\" = set"; then
775   echo $ac_n "(cached) $ac_c" 1>&6
776 else
777   
778         OUTPUT=./conftest-$$
779         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
780         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
781         retval=`cat ${OUTPUT}`
782         echo "=> ${retval}" >& 5 2>&1
783         rm -f ${OUTPUT}
784         EMACS_cv_SYS_prefix=$retval
785
786 fi
787
788 prefix=${EMACS_cv_SYS_prefix}
789 if test -z ""noecho""; then
790         echo "$ac_t""$prefix" 1>&6
791 fi
792
793         prefix=${EMACS_cv_SYS_prefix}
794         echo "$ac_t""$prefix" 1>&6
795   fi
796   # Check whether --with-lispdir or --without-lispdir was given.
797 if test "${with_lispdir+set}" = set; then
798   withval="$with_lispdir"
799   lispdir=${withval}
800 fi
801
802   echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
803 echo "configure:804: checking where .elc files should go" >&5
804   if test -z "$lispdir"; then
805         theprefix=$prefix
806     if test "x$theprefix" = "xNONE"; then
807         theprefix=$ac_default_prefix
808     fi
809     if test "$EMACS_FLAVOR" = "xemacs"; then
810         datadir="\$(prefix)/lib"
811         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/gnus"
812     else
813     lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
814     fi
815     for thedir in share lib; do
816         potential=
817         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
818            if test "$EMACS_FLAVOR" = "xemacs"; then
819                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/gnus"
820            else
821                lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
822            fi
823            break
824         fi
825     done
826   fi
827   echo "$ac_t""$lispdir" 1>&6
828   
829
830
831   # Check whether --with-etcdir or --without-etcdir was given.
832 if test "${with_etcdir+set}" = set; then
833   withval="$with_etcdir"
834   etcdir=${withval}
835 fi
836
837   echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
838 echo "configure:839: checking where etc files should go" >&5
839   if test -z "$etcdir"; then
840         if test "$EMACS_FLAVOR" = "xemacs"; then
841       etcdir="\$(lispdir)/../../etc"
842     else
843     etcdir="\$(lispdir)/../etc"
844     fi
845   fi
846   echo "$ac_t""$etcdir" 1>&6
847   
848
849
850   echo $ac_n "checking where the TeXinfo docs should go""... $ac_c" 1>&6
851 echo "configure:852: checking where the TeXinfo docs should go" >&5
852     if test "$infodir" = "\${prefix}/info"; then
853     if test "$EMACS_FLAVOR" = "xemacs"; then
854       info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
855     else
856       info_dir="\$(prefix)/info"
857     fi
858   else
859     info_dir=$infodir
860   fi
861   echo "$ac_t""$info_dir" 1>&6
862   
863
864
865 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
866 echo "configure:867: checking for acceptable URL version" >&5
867 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_URL'+set}'`\" = set"; then
868   echo $ac_n "(cached) $ac_c" 1>&6
869 else
870   
871
872 if test -z ""noecho""; then
873         echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
874 echo "configure:875: checking for url-retrieve in url" >&5
875 fi
876 library=`echo url | tr _ -`
877
878 elisp="(progn (fmakunbound 'url-retrieve) (condition-case nil (progn (require '$library) (fboundp 'url-retrieve)) (error (prog1 nil (message \"$library not found\")))))"
879 if test -z ""noecho""; then
880         echo $ac_n "checking for url""... $ac_c" 1>&6
881 echo "configure:882: checking for url" >&5
882 fi
883 if eval "test \"`echo '$''{'EMACS_cv_SYS_url'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   
887         OUTPUT=./conftest-$$
888         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
889         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
890         retval=`cat ${OUTPUT}`
891         echo "=> ${retval}" >& 5 2>&1
892         rm -f ${OUTPUT}
893         EMACS_cv_SYS_url=$retval
894
895 fi
896
897 url=${EMACS_cv_SYS_url}
898 if test -z ""noecho""; then
899         echo "$ac_t""$url" 1>&6
900 fi
901
902 if test "${EMACS_cv_SYS_url}" = "nil"; then
903         EMACS_cv_SYS_url=no
904 fi
905 if test "${EMACS_cv_SYS_url}" = "t"; then
906         EMACS_cv_SYS_url=yes
907 fi
908 HAVE_url=${EMACS_cv_SYS_url}
909
910 if test -z ""noecho""; then
911         echo "$ac_t""$HAVE_url" 1>&6
912 fi
913
914 if test "${HAVE_url}" = "yes"; then
915         EMACS_cv_ACCEPTABLE_URL=yes
916 else
917         EMACS_cv_ACCEPTABLE_URL=no
918 fi
919
920 if test "${EMACS_cv_ACCEPTABLE_URL}" = "yes"; then
921         
922 elisp="(file-name-directory (locate-library \"url\"))"
923 if test -z ""noecho""; then
924         echo $ac_n "checking for url_dir""... $ac_c" 1>&6
925 echo "configure:926: checking for url_dir" >&5
926 fi
927 if eval "test \"`echo '$''{'EMACS_cv_SYS_url_dir'+set}'`\" = set"; then
928   echo $ac_n "(cached) $ac_c" 1>&6
929 else
930   
931         OUTPUT=./conftest-$$
932         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
933         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
934         retval=`cat ${OUTPUT}`
935         echo "=> ${retval}" >& 5 2>&1
936         rm -f ${OUTPUT}
937         EMACS_cv_SYS_url_dir=$retval
938
939 fi
940
941 url_dir=${EMACS_cv_SYS_url_dir}
942 if test -z ""noecho""; then
943         echo "$ac_t""$url_dir" 1>&6
944 fi
945
946         EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
947 fi
948
949 fi
950
951    # Check whether --with-url or --without-url was given.
952 if test "${with_url+set}" = set; then
953   withval="$with_url"
954    EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
955 fi
956
957    URL=${EMACS_cv_ACCEPTABLE_URL}
958    
959    echo "$ac_t"""${URL}"" 1>&6
960
961
962 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
963 echo "configure:964: checking for acceptable W3 version" >&5
964 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_W3'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   
968
969 if test -z ""noecho""; then
970         echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
971 echo "configure:972: checking for w3-form-encode-xwfu in w3_forms" >&5
972 fi
973 library=`echo w3_forms | tr _ -`
974
975 elisp="(progn (fmakunbound 'w3-form-encode-xwfu) (condition-case nil (progn (require '$library) (fboundp 'w3-form-encode-xwfu)) (error (prog1 nil (message \"$library not found\")))))"
976 if test -z ""noecho""; then
977         echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
978 echo "configure:979: checking for w3_forms" >&5
979 fi
980 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_forms'+set}'`\" = set"; then
981   echo $ac_n "(cached) $ac_c" 1>&6
982 else
983   
984         OUTPUT=./conftest-$$
985         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
986         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
987         retval=`cat ${OUTPUT}`
988         echo "=> ${retval}" >& 5 2>&1
989         rm -f ${OUTPUT}
990         EMACS_cv_SYS_w3_forms=$retval
991
992 fi
993
994 w3_forms=${EMACS_cv_SYS_w3_forms}
995 if test -z ""noecho""; then
996         echo "$ac_t""$w3_forms" 1>&6
997 fi
998
999 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
1000         EMACS_cv_SYS_w3_forms=no
1001 fi
1002 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
1003         EMACS_cv_SYS_w3_forms=yes
1004 fi
1005 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1006
1007 if test -z ""noecho""; then
1008         echo "$ac_t""$HAVE_w3_forms" 1>&6
1009 fi
1010
1011 if test "${HAVE_w3_forms}" = "yes"; then
1012         EMACS_cv_ACCEPTABLE_W3=yes
1013 else
1014         EMACS_cv_ACCEPTABLE_W3=no
1015 fi
1016
1017 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
1018         
1019 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1020 if test -z ""noecho""; then
1021         echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1022 echo "configure:1023: checking for w3_dir" >&5
1023 fi
1024 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_dir'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   
1028         OUTPUT=./conftest-$$
1029         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
1030         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
1031         retval=`cat ${OUTPUT}`
1032         echo "=> ${retval}" >& 5 2>&1
1033         rm -f ${OUTPUT}
1034         EMACS_cv_SYS_w3_dir=$retval
1035
1036 fi
1037
1038 w3_dir=${EMACS_cv_SYS_w3_dir}
1039 if test -z ""noecho""; then
1040         echo "$ac_t""$w3_dir" 1>&6
1041 fi
1042
1043         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1044 fi
1045
1046 fi
1047
1048    # Check whether --with-w3 or --without-w3 was given.
1049 if test "${with_w3+set}" = set; then
1050   withval="$with_w3"
1051    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
1052 fi
1053
1054    W3=${EMACS_cv_ACCEPTABLE_W3}
1055    
1056    echo "$ac_t"""${W3}"" 1>&6
1057
1058
1059   echo $ac_n "checking which options to pass on to (X)Emacs""... $ac_c" 1>&6
1060 echo "configure:1061: checking which options to pass on to (X)Emacs" >&5
1061   if test "x$FLAGS" = "x"; then
1062     if test "$EMACS_FLAVOR" = "xemacs"; then
1063       FLAGS="-batch -no-autoloads -l \$(srcdir)/dgnushack.el"
1064     else
1065       FLAGS="-batch -q -no-site-file -l \$(srcdir)/dgnushack.el"
1066     fi
1067   else
1068     FLAGS=$FLAGS
1069   fi
1070   echo "$ac_t""$FLAGS" 1>&6
1071   
1072
1073
1074 test "$LATEX" = t && LATEX=
1075 test "$LATEX" || for ac_prog in latex
1076 do
1077 # Extract the first word of "$ac_prog", so it can be a program name with args.
1078 set dummy $ac_prog; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
1082   echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084   case "$LATEX" in
1085   /*)
1086   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
1087   ;;
1088   ?:/*)                  
1089   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
1090   ;;
1091   *)
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1093   ac_dummy="$PATH"
1094   for ac_dir in $ac_dummy; do 
1095     test -z "$ac_dir" && ac_dir=.
1096     if test -f $ac_dir/$ac_word; then
1097       ac_cv_path_LATEX="$ac_dir/$ac_word"
1098       break
1099     fi
1100   done
1101   IFS="$ac_save_ifs"
1102   ;;
1103 esac
1104 fi
1105 LATEX="$ac_cv_path_LATEX"
1106 if test -n "$LATEX"; then
1107   echo "$ac_t""$LATEX" 1>&6
1108 else
1109   echo "$ac_t""no" 1>&6
1110 fi
1111
1112 test -n "$LATEX" && break
1113 done
1114 test -n "$LATEX" || LATEX="no"
1115
1116 echo $ac_n "checking for available fonts""... $ac_c" 1>&6
1117 echo "configure:1118: checking for available fonts" >&5
1118 # Check whether --with-fonts or --without-fonts was given.
1119 if test "${with_fonts+set}" = set; then
1120   withval="$with_fonts"
1121   USE_FONTS="$withval"
1122 fi
1123
1124 WITH_FONTS_bembo='%'
1125 WITHOUT_FONTS_bembo=
1126 WITH_FONTS_pfu='%'
1127 WITHOUT_FONTS_pfu=
1128 WITH_FONTS_bcr='%'
1129 WITHOUT_FONTS_bcr=
1130 if test -z "${USE_FONTS}"; then
1131   if test "${LATEX}" = no; then
1132         :
1133   else
1134     OUTPUT=./conftest-$$
1135     echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
1136     if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1  ; then  
1137       if test -z "${USE_FONTS}"; then
1138         USE_FONTS="Adobe Bembo"
1139       else
1140         USE_FONTS="${USE_FONTS}, Adobe Bembo"
1141       fi
1142       WITH_FONTS_bembo=
1143       WITHOUT_FONTS_bembo='%'
1144     fi
1145     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1146     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1147       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then  
1148         :
1149       else
1150         if test -z "${USE_FONTS}"; then
1151           USE_FONTS="Adobe Futura"
1152         else
1153           USE_FONTS="${USE_FONTS}, Adobe Futura"
1154         fi
1155         WITH_FONTS_pfu=
1156         WITHOUT_FONTS_pfu='%'
1157       fi
1158     fi
1159     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1160     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1161       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then  
1162         :
1163       else
1164         if test -z "${USE_FONTS}"; then
1165           USE_FONTS="Bitstream Courier"
1166         else
1167           USE_FONTS="${USE_FONTS}, Bitstream Courier"
1168         fi
1169         WITH_FONTS_bcr=
1170         WITHOUT_FONTS_bcr='%'
1171       fi
1172     fi
1173     rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
1174   fi
1175 elif test "${USE_FONTS}" = yes ; then
1176   WITH_FONTS_bembo=
1177   WITHOUT_FONTS_bembo='%'
1178   WITH_FONTS_pfu=
1179   WITHOUT_FONTS_pfu='%'
1180   WITH_FONTS_bcr=
1181   WITHOUT_FONTS_bcr='%'
1182 fi
1183
1184
1185
1186
1187
1188
1189 if test -z "${USE_FONTS}" ; then
1190   USE_FONTS=no
1191 fi
1192 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
1193 echo "$ac_t"""${USE_FONTS}"" 1>&6
1194 if test "${USE_FONTS}" = yes ; then
1195   USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
1196 elif test "${USE_FONTS}" = no ; then
1197   USE_FONTS=''
1198 else
1199   USE_FONTS="Set in ${USE_FONTS}."
1200 fi
1201
1202
1203
1204 trap '' 1 2 15
1205 cat > confcache <<\EOF
1206 # This file is a shell script that caches the results of configure
1207 # tests run on this system so they can be shared between configure
1208 # scripts and configure runs.  It is not useful on other systems.
1209 # If it contains results you don't want to keep, you may remove or edit it.
1210 #
1211 # By default, configure uses ./config.cache as the cache file,
1212 # creating it if it does not exist already.  You can give configure
1213 # the --cache-file=FILE option to use a different cache file; that is
1214 # what configure does when it calls configure scripts in
1215 # subdirectories, so they share the cache.
1216 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1217 # config.status only pays attention to the cache file if you give it the
1218 # --recheck option to rerun configure.
1219 #
1220 EOF
1221 # The following way of writing the cache mishandles newlines in values,
1222 # but we know of no workaround that is simple, portable, and efficient.
1223 # So, don't put newlines in cache variables' values.
1224 # Ultrix sh set writes to stderr and can't be redirected directly,
1225 # and sets the high bit in the cache file unless we assign to the vars.
1226 (set) 2>&1 |
1227   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1228   *ac_space=\ *)
1229     # `set' does not quote correctly, so add quotes (double-quote substitution
1230     # turns \\\\ into \\, and sed turns \\ into \).
1231     sed -n \
1232       -e "s/'/'\\\\''/g" \
1233       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1234     ;;
1235   *)
1236     # `set' quotes correctly as required by POSIX, so do not add quotes.
1237     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1238     ;;
1239   esac >> confcache
1240 if cmp -s $cache_file confcache; then
1241   :
1242 else
1243   if test -w $cache_file; then
1244     echo "updating cache $cache_file"
1245     cat confcache > $cache_file
1246   else
1247     echo "not updating unwritable cache $cache_file"
1248   fi
1249 fi
1250 rm -f confcache
1251
1252 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1253
1254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1255 # Let make expand exec_prefix.
1256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1257
1258 # Any assignment to VPATH causes Sun make to only execute
1259 # the first set of double-colon rules, so remove it if not needed.
1260 # If there is a colon in the path, we need to keep it.
1261 if test "x$srcdir" = x.; then
1262   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1263 fi
1264
1265 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1266
1267 # Transform confdefs.h into DEFS.
1268 # Protect against shell expansion while executing Makefile rules.
1269 # Protect against Makefile macro expansion.
1270 cat > conftest.defs <<\EOF
1271 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1272 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1273 s%\[%\\&%g
1274 s%\]%\\&%g
1275 s%\$%$$%g
1276 EOF
1277 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1278 rm -f conftest.defs
1279
1280
1281 # Without the "./", some shells look in PATH for config.status.
1282 : ${CONFIG_STATUS=./config.status}
1283
1284 echo creating $CONFIG_STATUS
1285 rm -f $CONFIG_STATUS
1286 cat > $CONFIG_STATUS <<EOF
1287 #! /bin/sh
1288 # Generated automatically by configure.
1289 # Run this file to recreate the current configuration.
1290 # This directory was configured as follows,
1291 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1292 #
1293 # $0 $ac_configure_args
1294 #
1295 # Compiler output produced by configure, useful for debugging
1296 # configure, is in ./config.log if it exists.
1297
1298 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1299 for ac_option
1300 do
1301   case "\$ac_option" in
1302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1303     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1304     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1305   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1306     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1307     exit 0 ;;
1308   -help | --help | --hel | --he | --h)
1309     echo "\$ac_cs_usage"; exit 0 ;;
1310   *) echo "\$ac_cs_usage"; exit 1 ;;
1311   esac
1312 done
1313
1314 ac_given_srcdir=$srcdir
1315 ac_given_INSTALL="$INSTALL"
1316
1317 trap 'rm -fr `echo "Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1318 EOF
1319 cat >> $CONFIG_STATUS <<EOF
1320
1321 # Protect against being on the right side of a sed subst in config.status.
1322 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1323  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1324 $ac_vpsub
1325 $extrasub
1326 s%@SHELL@%$SHELL%g
1327 s%@CFLAGS@%$CFLAGS%g
1328 s%@CPPFLAGS@%$CPPFLAGS%g
1329 s%@CXXFLAGS@%$CXXFLAGS%g
1330 s%@FFLAGS@%$FFLAGS%g
1331 s%@DEFS@%$DEFS%g
1332 s%@LDFLAGS@%$LDFLAGS%g
1333 s%@LIBS@%$LIBS%g
1334 s%@exec_prefix@%$exec_prefix%g
1335 s%@prefix@%$prefix%g
1336 s%@program_transform_name@%$program_transform_name%g
1337 s%@bindir@%$bindir%g
1338 s%@sbindir@%$sbindir%g
1339 s%@libexecdir@%$libexecdir%g
1340 s%@datadir@%$datadir%g
1341 s%@sysconfdir@%$sysconfdir%g
1342 s%@sharedstatedir@%$sharedstatedir%g
1343 s%@localstatedir@%$localstatedir%g
1344 s%@libdir@%$libdir%g
1345 s%@includedir@%$includedir%g
1346 s%@oldincludedir@%$oldincludedir%g
1347 s%@infodir@%$infodir%g
1348 s%@mandir@%$mandir%g
1349 s%@SET_MAKE@%$SET_MAKE%g
1350 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1351 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1352 s%@INSTALL_DATA@%$INSTALL_DATA%g
1353 s%@MAKEINFO@%$MAKEINFO%g
1354 s%@EMACS@%$EMACS%g
1355 s%@XEMACS@%$XEMACS%g
1356 s%@EMACS_FLAVOR@%$EMACS_FLAVOR%g
1357 s%@lispdir@%$lispdir%g
1358 s%@etcdir@%$etcdir%g
1359 s%@info_dir@%$info_dir%g
1360 s%@HAVE_url@%$HAVE_url%g
1361 s%@URL@%$URL%g
1362 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1363 s%@W3@%$W3%g
1364 s%@FLAGS@%$FLAGS%g
1365 s%@LATEX@%$LATEX%g
1366 s%@WITH_FONTS_bembo@%$WITH_FONTS_bembo%g
1367 s%@WITHOUT_FONTS_bembo@%$WITHOUT_FONTS_bembo%g
1368 s%@WITH_FONTS_pfu@%$WITH_FONTS_pfu%g
1369 s%@WITHOUT_FONTS_pfu@%$WITHOUT_FONTS_pfu%g
1370 s%@WITH_FONTS_bcr@%$WITH_FONTS_bcr%g
1371 s%@WITHOUT_FONTS_bcr@%$WITHOUT_FONTS_bcr%g
1372 s%@USE_FONTS@%$USE_FONTS%g
1373
1374 CEOF
1375 EOF
1376
1377 cat >> $CONFIG_STATUS <<\EOF
1378
1379 # Split the substitutions into bite-sized pieces for seds with
1380 # small command number limits, like on Digital OSF/1 and HP-UX.
1381 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1382 ac_file=1 # Number of current file.
1383 ac_beg=1 # First line for current file.
1384 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1385 ac_more_lines=:
1386 ac_sed_cmds=""
1387 while $ac_more_lines; do
1388   if test $ac_beg -gt 1; then
1389     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1390   else
1391     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1392   fi
1393   if test ! -s conftest.s$ac_file; then
1394     ac_more_lines=false
1395     rm -f conftest.s$ac_file
1396   else
1397     if test -z "$ac_sed_cmds"; then
1398       ac_sed_cmds="sed -f conftest.s$ac_file"
1399     else
1400       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1401     fi
1402     ac_file=`expr $ac_file + 1`
1403     ac_beg=$ac_end
1404     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1405   fi
1406 done
1407 if test -z "$ac_sed_cmds"; then
1408   ac_sed_cmds=cat
1409 fi
1410 EOF
1411
1412 cat >> $CONFIG_STATUS <<EOF
1413
1414 CONFIG_FILES=\${CONFIG_FILES-"Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile"}
1415 EOF
1416 cat >> $CONFIG_STATUS <<\EOF
1417 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1418   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1419   case "$ac_file" in
1420   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1421        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1422   *) ac_file_in="${ac_file}.in" ;;
1423   esac
1424
1425   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1426
1427   # Remove last slash and all that follows it.  Not all systems have dirname.
1428   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1429   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1430     # The file is in a subdirectory.
1431     test ! -d "$ac_dir" && mkdir "$ac_dir"
1432     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1433     # A "../" for each directory in $ac_dir_suffix.
1434     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1435   else
1436     ac_dir_suffix= ac_dots=
1437   fi
1438
1439   case "$ac_given_srcdir" in
1440   .)  srcdir=.
1441       if test -z "$ac_dots"; then top_srcdir=.
1442       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1443   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1444   *) # Relative path.
1445     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1446     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1447   esac
1448
1449   case "$ac_given_INSTALL" in
1450   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1451   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1452   esac
1453
1454   echo creating "$ac_file"
1455   rm -f "$ac_file"
1456   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1457   case "$ac_file" in
1458   *Makefile*) ac_comsub="1i\\
1459 # $configure_input" ;;
1460   *) ac_comsub= ;;
1461   esac
1462
1463   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1464   sed -e "$ac_comsub
1465 s%@configure_input@%$configure_input%g
1466 s%@srcdir@%$srcdir%g
1467 s%@top_srcdir@%$top_srcdir%g
1468 s%@INSTALL@%$INSTALL%g
1469 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1470 fi; done
1471 rm -f conftest.s*
1472
1473 EOF
1474 cat >> $CONFIG_STATUS <<EOF
1475
1476 EOF
1477 cat >> $CONFIG_STATUS <<\EOF
1478
1479 exit 0
1480 EOF
1481 chmod +x $CONFIG_STATUS
1482 rm -fr confdefs* $ac_clean_files
1483 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1484
1485