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