915605cef1c8b012988195d4180e9ed387e80c4a
[platform/upstream/automake.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for GNU Automake 1.5c.
4 #
5 # Report bugs to <bug-automake@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37   as_expr=expr
38 else
39   as_expr=false
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45   # We could just check for DJGPP; but this test a) works b) is more generic
46   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47   if test -f conf$$.exe; then
48     # Don't use ln at all; we don't have any links
49     as_ln_s='cp -p'
50   else
51     as_ln_s='ln -s'
52   fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54   as_ln_s=ln
55 else
56   as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64   as_unset=unset
65 else
66   as_unset=false
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS="   $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete.  It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 ac_unique_file="automake.in"
110
111 # Initialize some variables set by options.
112 ac_init_help=
113 ac_init_version=false
114 # The variables have the same names as the options, with
115 # dashes changed to underlines.
116 cache_file=/dev/null
117 exec_prefix=NONE
118 no_create=
119 no_recursion=
120 prefix=NONE
121 program_prefix=NONE
122 program_suffix=NONE
123 program_transform_name=s,x,x,
124 silent=
125 site=
126 srcdir=
127 verbose=
128 x_includes=NONE
129 x_libraries=NONE
130
131 # Installation directory options.
132 # These are left unexpanded so users can "make install exec_prefix=/foo"
133 # and all the variables that are supposed to be based on exec_prefix
134 # by default will actually change.
135 # Use braces instead of parens because sh, perl, etc. also accept them.
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datadir='${prefix}/share'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${prefix}/info'
147 mandir='${prefix}/man'
148
149 # Identity of this package.
150 PACKAGE_NAME='GNU Automake'
151 PACKAGE_TARNAME='automake'
152 PACKAGE_VERSION='1.5c'
153 PACKAGE_STRING='GNU Automake 1.5c'
154 PACKAGE_BUGREPORT='bug-automake@gnu.org'
155
156 ac_prev=
157 for ac_option
158 do
159   # If the previous option needs an argument, assign it.
160   if test -n "$ac_prev"; then
161     eval "$ac_prev=\$ac_option"
162     ac_prev=
163     continue
164   fi
165
166   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167
168   # Accept the important Cygnus configure options, so we can diagnose typos.
169
170   case $ac_option in
171
172   -bindir | --bindir | --bindi | --bind | --bin | --bi)
173     ac_prev=bindir ;;
174   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175     bindir=$ac_optarg ;;
176
177   -build | --build | --buil | --bui | --bu)
178     ac_prev=build_alias ;;
179   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180     build_alias=$ac_optarg ;;
181
182   -cache-file | --cache-file | --cache-fil | --cache-fi \
183   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184     ac_prev=cache_file ;;
185   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187     cache_file=$ac_optarg ;;
188
189   --config-cache | -C)
190     cache_file=config.cache ;;
191
192   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193     ac_prev=datadir ;;
194   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195   | --da=*)
196     datadir=$ac_optarg ;;
197
198   -disable-* | --disable-*)
199     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
200     # Reject names that are not valid shell variable names.
201     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
202       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
203    { (exit 1); exit 1; }; }
204     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
205     eval "enable_$ac_feature=no" ;;
206
207   -enable-* | --enable-*)
208     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
209     # Reject names that are not valid shell variable names.
210     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
211       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
212    { (exit 1); exit 1; }; }
213     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214     case $ac_option in
215       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216       *) ac_optarg=yes ;;
217     esac
218     eval "enable_$ac_feature='$ac_optarg'" ;;
219
220   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222   | --exec | --exe | --ex)
223     ac_prev=exec_prefix ;;
224   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226   | --exec=* | --exe=* | --ex=*)
227     exec_prefix=$ac_optarg ;;
228
229   -gas | --gas | --ga | --g)
230     # Obsolete; use --with-gas.
231     with_gas=yes ;;
232
233   -help | --help | --hel | --he | -h)
234     ac_init_help=long ;;
235   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
236     ac_init_help=recursive ;;
237   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
238     ac_init_help=short ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host_alias ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host_alias=$ac_optarg ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir=$ac_optarg ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir=$ac_optarg ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir=$ac_optarg ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir=$ac_optarg ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir=$ac_optarg ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir=$ac_optarg ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir=$ac_optarg ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix=$ac_optarg ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix=$ac_optarg ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix=$ac_optarg ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name=$ac_optarg ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir=$ac_optarg ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir=$ac_optarg ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site=$ac_optarg ;;
365
366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367     ac_prev=srcdir ;;
368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369     srcdir=$ac_optarg ;;
370
371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372   | --syscon | --sysco | --sysc | --sys | --sy)
373     ac_prev=sysconfdir ;;
374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376     sysconfdir=$ac_optarg ;;
377
378   -target | --target | --targe | --targ | --tar | --ta | --t)
379     ac_prev=target_alias ;;
380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381     target_alias=$ac_optarg ;;
382
383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
384     verbose=yes ;;
385
386   -version | --version | --versio | --versi | --vers | -V)
387     ac_init_version=: ;;
388
389   -with-* | --with-*)
390     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid package name: $ac_package" >&2
394    { (exit 1); exit 1; }; }
395     ac_package=`echo $ac_package| sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "with_$ac_package='$ac_optarg'" ;;
401
402   -without-* | --without-*)
403     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
404     # Reject names that are not valid shell variable names.
405     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406       { echo "$as_me: error: invalid package name: $ac_package" >&2
407    { (exit 1); exit 1; }; }
408     ac_package=`echo $ac_package | sed 's/-/_/g'`
409     eval "with_$ac_package=no" ;;
410
411   --x)
412     # Obsolete; use --with-x.
413     with_x=yes ;;
414
415   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416   | --x-incl | --x-inc | --x-in | --x-i)
417     ac_prev=x_includes ;;
418   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420     x_includes=$ac_optarg ;;
421
422   -x-libraries | --x-libraries | --x-librarie | --x-librari \
423   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424     ac_prev=x_libraries ;;
425   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427     x_libraries=$ac_optarg ;;
428
429   -*) { echo "$as_me: error: unrecognized option: $ac_option
430 Try \`$0 --help' for more information." >&2
431    { (exit 1); exit 1; }; }
432     ;;
433
434   *=*)
435     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
436     # Reject names that are not valid shell variable names.
437     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
438       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
439    { (exit 1); exit 1; }; }
440     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
441     eval "$ac_envvar='$ac_optarg'"
442     export $ac_envvar ;;
443
444   *)
445     # FIXME: should be removed in autoconf 3.0.
446     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
447     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
448       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
449     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
450     ;;
451
452   esac
453 done
454
455 if test -n "$ac_prev"; then
456   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
457   { echo "$as_me: error: missing argument to $ac_option" >&2
458    { (exit 1); exit 1; }; }
459 fi
460
461 # Be sure to have absolute paths.
462 for ac_var in exec_prefix prefix
463 do
464   eval ac_val=$`echo $ac_var`
465   case $ac_val in
466     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
467     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
468    { (exit 1); exit 1; }; };;
469   esac
470 done
471
472 # Be sure to have absolute paths.
473 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
474               localstatedir libdir includedir oldincludedir infodir mandir
475 do
476   eval ac_val=$`echo $ac_var`
477   case $ac_val in
478     [\\/$]* | ?:[\\/]* ) ;;
479     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
480    { (exit 1); exit 1; }; };;
481   esac
482 done
483
484 # There might be people who depend on the old broken behavior: `$host'
485 # used to hold the argument of --host etc.
486 build=$build_alias
487 host=$host_alias
488 target=$target_alias
489
490 # FIXME: should be removed in autoconf 3.0.
491 if test "x$host_alias" != x; then
492   if test "x$build_alias" = x; then
493     cross_compiling=maybe
494     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
495     If a cross compiler is detected then cross compile mode will be used." >&2
496   elif test "x$build_alias" != "x$host_alias"; then
497     cross_compiling=yes
498   fi
499 fi
500
501 ac_tool_prefix=
502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503
504 test "$silent" = yes && exec 6>/dev/null
505
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508   ac_srcdir_defaulted=yes
509   # Try the directory containing this script, then its parent.
510   ac_prog=$0
511   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
512   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513   srcdir=$ac_confdir
514   if test ! -r $srcdir/$ac_unique_file; then
515     srcdir=..
516   fi
517 else
518   ac_srcdir_defaulted=no
519 fi
520 if test ! -r $srcdir/$ac_unique_file; then
521   if test "$ac_srcdir_defaulted" = yes; then
522     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
523    { (exit 1); exit 1; }; }
524   else
525     { echo "$as_me: error: cannot find sources in $srcdir" >&2
526    { (exit 1); exit 1; }; }
527   fi
528 fi
529 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
530 ac_env_build_alias_set=${build_alias+set}
531 ac_env_build_alias_value=$build_alias
532 ac_cv_env_build_alias_set=${build_alias+set}
533 ac_cv_env_build_alias_value=$build_alias
534 ac_env_host_alias_set=${host_alias+set}
535 ac_env_host_alias_value=$host_alias
536 ac_cv_env_host_alias_set=${host_alias+set}
537 ac_cv_env_host_alias_value=$host_alias
538 ac_env_target_alias_set=${target_alias+set}
539 ac_env_target_alias_value=$target_alias
540 ac_cv_env_target_alias_set=${target_alias+set}
541 ac_cv_env_target_alias_value=$target_alias
542
543 #
544 # Report the --help message.
545 #
546 if test "$ac_init_help" = "long"; then
547   # Omit some internal or obsolete options to make the list less imposing.
548   # This message is too long to be a string in the A/UX 3.1 sh.
549   cat <<EOF
550 \`configure' configures GNU Automake 1.5c to adapt to many kinds of systems.
551
552 Usage: $0 [OPTION]... [VAR=VALUE]...
553
554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
555 VAR=VALUE.  See below for descriptions of some of the useful variables.
556
557 Defaults for the options are specified in brackets.
558
559 Configuration:
560   -h, --help              display this help and exit
561       --help=short        display options specific to this package
562       --help=recursive    display the short help of all the included packages
563   -V, --version           display version information and exit
564   -q, --quiet, --silent   do not print \`checking...' messages
565       --cache-file=FILE   cache test results in FILE [disabled]
566   -C, --config-cache      alias for \`--cache-file=config.cache'
567   -n, --no-create         do not create output files
568       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
569
570 EOF
571
572   cat <<EOF
573 Installation directories:
574   --prefix=PREFIX         install architecture-independent files in PREFIX
575                           [$ac_default_prefix]
576   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
577                           [PREFIX]
578
579 By default, \`make install' will install all the files in
580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
582 for instance \`--prefix=\$HOME'.
583
584 For better control, use the options below.
585
586 Fine tuning of the installation directories:
587   --bindir=DIR           user executables [EPREFIX/bin]
588   --sbindir=DIR          system admin executables [EPREFIX/sbin]
589   --libexecdir=DIR       program executables [EPREFIX/libexec]
590   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
591   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
592   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
593   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
594   --libdir=DIR           object code libraries [EPREFIX/lib]
595   --includedir=DIR       C header files [PREFIX/include]
596   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
597   --infodir=DIR          info documentation [PREFIX/info]
598   --mandir=DIR           man documentation [PREFIX/man]
599 EOF
600
601   cat <<\EOF
602
603 Program names:
604   --program-prefix=PREFIX            prepend PREFIX to installed program names
605   --program-suffix=SUFFIX            append SUFFIX to installed program names
606   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
607 EOF
608 fi
609
610 if test -n "$ac_init_help"; then
611   case $ac_init_help in
612      short | recursive ) echo "Configuration of GNU Automake 1.5c:";;
613    esac
614   cat <<\EOF
615
616 Optional Features:
617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
619   --disable-dependency-tracking Speeds up one-time builds
620   --enable-dependency-tracking  Do not reject slow dependency extractors
621
622 Report bugs to <bug-automake@gnu.org>.
623 EOF
624 fi
625
626 if test "$ac_init_help" = "recursive"; then
627   # If there are subdirs, report their specific --help.
628   ac_popdir=`pwd`
629   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
630     cd $ac_subdir
631     # A "../" for each directory in /$ac_subdir.
632     ac_dots=`echo $ac_subdir |
633              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
634
635     case $srcdir in
636     .) # No --srcdir option.  We are building in place.
637       ac_sub_srcdir=$srcdir ;;
638     [\\/]* | ?:[\\/]* ) # Absolute path.
639       ac_sub_srcdir=$srcdir/$ac_subdir ;;
640     *) # Relative path.
641       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
642     esac
643
644     # Check for guested configure; otherwise get Cygnus style configure.
645     if test -f $ac_sub_srcdir/configure.gnu; then
646       echo
647       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
648     elif test -f $ac_sub_srcdir/configure; then
649       echo
650       $SHELL $ac_sub_srcdir/configure  --help=recursive
651     elif test -f $ac_sub_srcdir/configure.ac ||
652            test -f $ac_sub_srcdir/configure.in; then
653       echo
654       $ac_configure --help
655     else
656       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
657     fi
658     cd $ac_popdir
659   done
660 fi
661
662 test -n "$ac_init_help" && exit 0
663 if $ac_init_version; then
664   cat <<\EOF
665 GNU Automake configure 1.5c
666 generated by GNU Autoconf 2.52
667
668 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
669 Free Software Foundation, Inc.
670 This configure script is free software; the Free Software Foundation
671 gives unlimited permission to copy, distribute and modify it.
672 EOF
673   exit 0
674 fi
675 exec 5>config.log
676 cat >&5 <<EOF
677 This file contains any messages produced by compilers while
678 running configure, to aid debugging if configure makes a mistake.
679
680 It was created by GNU Automake $as_me 1.5c, which was
681 generated by GNU Autoconf 2.52.  Invocation command line was
682
683   $ $0 $@
684
685 EOF
686 {
687 cat <<_ASUNAME
688 ## ---------- ##
689 ## Platform.  ##
690 ## ---------- ##
691
692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
697
698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
699 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
700
701 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
702 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
704 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
705 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
706 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
707 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
708
709 PATH = $PATH
710
711 _ASUNAME
712 } >&5
713
714 cat >&5 <<EOF
715 ## ------------ ##
716 ## Core tests.  ##
717 ## ------------ ##
718
719 EOF
720
721 # Keep a trace of the command line.
722 # Strip out --no-create and --no-recursion so they do not pile up.
723 # Also quote any args containing shell meta-characters.
724 ac_configure_args=
725 ac_sep=
726 for ac_arg
727 do
728   case $ac_arg in
729   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
730   | --no-cr | --no-c) ;;
731   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
732   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
733   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
734     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
735     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
736     ac_sep=" " ;;
737   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
738      ac_sep=" " ;;
739   esac
740   # Get rid of the leading space.
741 done
742
743 # When interrupted or exit'd, cleanup temporary files, and complete
744 # config.log.  We remove comments because anyway the quotes in there
745 # would cause problems or look ugly.
746 trap 'exit_status=$?
747   # Save into config.log some information that might help in debugging.
748   echo >&5
749   echo "## ----------------- ##" >&5
750   echo "## Cache variables.  ##" >&5
751   echo "## ----------------- ##" >&5
752   echo >&5
753   # The following way of writing the cache mishandles newlines in values,
754 {
755   (set) 2>&1 |
756     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
757     *ac_space=\ *)
758       sed -n \
759         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
760           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
761       ;;
762     *)
763       sed -n \
764         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
765       ;;
766     esac;
767 } >&5
768   sed "/^$/d" confdefs.h >conftest.log
769   if test -s conftest.log; then
770     echo >&5
771     echo "## ------------ ##" >&5
772     echo "## confdefs.h.  ##" >&5
773     echo "## ------------ ##" >&5
774     echo >&5
775     cat conftest.log >&5
776   fi
777   (echo; echo) >&5
778   test "$ac_signal" != 0 &&
779     echo "$as_me: caught signal $ac_signal" >&5
780   echo "$as_me: exit $exit_status" >&5
781   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
782     exit $exit_status
783      ' 0
784 for ac_signal in 1 2 13 15; do
785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
786 done
787 ac_signal=0
788
789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
790 rm -rf conftest* confdefs.h
791 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
792 echo >confdefs.h
793
794 # Let the site file select an alternate cache file if it wants to.
795 # Prefer explicitly selected file to automatically selected ones.
796 if test -z "$CONFIG_SITE"; then
797   if test "x$prefix" != xNONE; then
798     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
799   else
800     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
801   fi
802 fi
803 for ac_site_file in $CONFIG_SITE; do
804   if test -r "$ac_site_file"; then
805     { echo "$as_me:805: loading site script $ac_site_file" >&5
806 echo "$as_me: loading site script $ac_site_file" >&6;}
807     cat "$ac_site_file" >&5
808     . "$ac_site_file"
809   fi
810 done
811
812 if test -r "$cache_file"; then
813   # Some versions of bash will fail to source /dev/null (special
814   # files actually), so we avoid doing that.
815   if test -f "$cache_file"; then
816     { echo "$as_me:816: loading cache $cache_file" >&5
817 echo "$as_me: loading cache $cache_file" >&6;}
818     case $cache_file in
819       [\\/]* | ?:[\\/]* ) . $cache_file;;
820       *)                      . ./$cache_file;;
821     esac
822   fi
823 else
824   { echo "$as_me:824: creating cache $cache_file" >&5
825 echo "$as_me: creating cache $cache_file" >&6;}
826   >$cache_file
827 fi
828
829 # Check that the precious variables saved in the cache have kept the same
830 # value.
831 ac_cache_corrupted=false
832 for ac_var in `(set) 2>&1 |
833                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
834   eval ac_old_set=\$ac_cv_env_${ac_var}_set
835   eval ac_new_set=\$ac_env_${ac_var}_set
836   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
837   eval ac_new_val="\$ac_env_${ac_var}_value"
838   case $ac_old_set,$ac_new_set in
839     set,)
840       { echo "$as_me:840: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
842       ac_cache_corrupted=: ;;
843     ,set)
844       { echo "$as_me:844: error: \`$ac_var' was not set in the previous run" >&5
845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
846       ac_cache_corrupted=: ;;
847     ,);;
848     *)
849       if test "x$ac_old_val" != "x$ac_new_val"; then
850         { echo "$as_me:850: error: \`$ac_var' has changed since the previous run:" >&5
851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
852         { echo "$as_me:852:   former value:  $ac_old_val" >&5
853 echo "$as_me:   former value:  $ac_old_val" >&2;}
854         { echo "$as_me:854:   current value: $ac_new_val" >&5
855 echo "$as_me:   current value: $ac_new_val" >&2;}
856         ac_cache_corrupted=:
857       fi;;
858   esac
859   # Pass precious variables to config.status.  It doesn't matter if
860   # we pass some twice (in addition to the command line arguments).
861   if test "$ac_new_set" = set; then
862     case $ac_new_val in
863     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
864       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
865       ac_configure_args="$ac_configure_args '$ac_arg'"
866       ;;
867     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
868        ;;
869     esac
870   fi
871 done
872 if $ac_cache_corrupted; then
873   { echo "$as_me:873: error: changes in the environment can compromise the build" >&5
874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
875   { { echo "$as_me:875: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
877    { (exit 1); exit 1; }; }
878 fi
879
880 ac_ext=c
881 ac_cpp='$CPP $CPPFLAGS'
882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
885
886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
887   *c*,-n*) ECHO_N= ECHO_C='
888 ' ECHO_T='      ' ;;
889   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
890   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
891 esac
892 echo "#! $SHELL" >conftest.sh
893 echo  "exit 0"   >>conftest.sh
894 chmod +x conftest.sh
895 if { (echo "$as_me:895: PATH=\".;.\"; conftest.sh") >&5
896   (PATH=".;."; conftest.sh) 2>&5
897   ac_status=$?
898   echo "$as_me:898: \$? = $ac_status" >&5
899   (exit $ac_status); }; then
900   ac_path_separator=';'
901 else
902   ac_path_separator=:
903 fi
904 PATH_SEPARATOR="$ac_path_separator"
905 rm -f conftest.sh
906
907 ac_aux_dir=
908 for ac_dir in lib $srcdir/lib; do
909   if test -f $ac_dir/install-sh; then
910     ac_aux_dir=$ac_dir
911     ac_install_sh="$ac_aux_dir/install-sh -c"
912     break
913   elif test -f $ac_dir/install.sh; then
914     ac_aux_dir=$ac_dir
915     ac_install_sh="$ac_aux_dir/install.sh -c"
916     break
917   elif test -f $ac_dir/shtool; then
918     ac_aux_dir=$ac_dir
919     ac_install_sh="$ac_aux_dir/shtool install -c"
920     break
921   fi
922 done
923 if test -z "$ac_aux_dir"; then
924   { { echo "$as_me:924: error: cannot find install-sh or install.sh in lib $srcdir/lib" >&5
925 echo "$as_me: error: cannot find install-sh or install.sh in lib $srcdir/lib" >&2;}
926    { (exit 1); exit 1; }; }
927 fi
928 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
929 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
930 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
931
932 # Find a good install program.  We prefer a C program (faster),
933 # so one script is as good as another.  But avoid the broken or
934 # incompatible versions:
935 # SysV /etc/install, /usr/sbin/install
936 # SunOS /usr/etc/install
937 # IRIX /sbin/install
938 # AIX /bin/install
939 # AmigaOS /C/install, which installs bootblocks on floppy discs
940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
943 # ./install, which can be erroneously created by make from ./install.sh.
944 echo "$as_me:944: checking for a BSD compatible install" >&5
945 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
946 if test -z "$INSTALL"; then
947 if test "${ac_cv_path_install+set}" = set; then
948   echo $ECHO_N "(cached) $ECHO_C" >&6
949 else
950     ac_save_IFS=$IFS; IFS=$ac_path_separator
951   for ac_dir in $PATH; do
952     IFS=$ac_save_IFS
953     # Account for people who put trailing slashes in PATH elements.
954     case $ac_dir/ in
955     / | ./ | .// | /cC/* \
956     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
957     | /usr/ucb/* ) ;;
958     *)
959       # OSF1 and SCO ODT 3.0 have their own names for install.
960       # Don't use installbsd from OSF since it installs stuff as root
961       # by default.
962       for ac_prog in ginstall scoinst install; do
963         if $as_executable_p "$ac_dir/$ac_prog"; then
964           if test $ac_prog = install &&
965             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
966             # AIX install.  It has an incompatible calling convention.
967             :
968           elif test $ac_prog = install &&
969             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
970             # program-specific install script used by HP pwplus--don't use.
971             :
972           else
973             ac_cv_path_install="$ac_dir/$ac_prog -c"
974             break 2
975           fi
976         fi
977       done
978       ;;
979     esac
980   done
981
982 fi
983   if test "${ac_cv_path_install+set}" = set; then
984     INSTALL=$ac_cv_path_install
985   else
986     # As a last resort, use the slow shell script.  We don't cache a
987     # path for INSTALL within a source directory, because that will
988     # break other packages using the cache if that directory is
989     # removed, or if the path is relative.
990     INSTALL=$ac_install_sh
991   fi
992 fi
993 echo "$as_me:993: result: $INSTALL" >&5
994 echo "${ECHO_T}$INSTALL" >&6
995
996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
997 # It thinks the first close brace ends the variable substitution.
998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
999
1000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1001
1002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1003
1004 echo "$as_me:1004: checking whether build environment is sane" >&5
1005 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1006 # Just in case
1007 sleep 1
1008 echo timestamp > conftest.file
1009 # Do `set' in a subshell so we don't clobber the current shell's
1010 # arguments.  Must try -L first in case configure is actually a
1011 # symlink; some systems play weird games with the mod time of symlinks
1012 # (eg FreeBSD returns the mod time of the symlink's containing
1013 # directory).
1014 if (
1015    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1016    if test "$*" = "X"; then
1017       # -L didn't work.
1018       set X `ls -t $srcdir/configure conftest.file`
1019    fi
1020    rm -f conftest.file
1021    if test "$*" != "X $srcdir/configure conftest.file" \
1022       && test "$*" != "X conftest.file $srcdir/configure"; then
1023
1024       # If neither matched, then we have a broken ls.  This can happen
1025       # if, for instance, CONFIG_SHELL is bash and it inherits a
1026       # broken ls alias from the environment.  This has actually
1027       # happened.  Such a system could not be considered "sane".
1028       { { echo "$as_me:1028: error: ls -t appears to fail.  Make sure there is not a broken
1029 alias in your environment" >&5
1030 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1031 alias in your environment" >&2;}
1032    { (exit 1); exit 1; }; }
1033    fi
1034
1035    test "$2" = conftest.file
1036    )
1037 then
1038    # Ok.
1039    :
1040 else
1041    { { echo "$as_me:1041: error: newly created file is older than distributed files!
1042 Check your system clock" >&5
1043 echo "$as_me: error: newly created file is older than distributed files!
1044 Check your system clock" >&2;}
1045    { (exit 1); exit 1; }; }
1046 fi
1047 echo "$as_me:1047: result: yes" >&5
1048 echo "${ECHO_T}yes" >&6
1049 test "$program_prefix" != NONE &&
1050   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1051 # Use a double $ so make ignores it.
1052 test "$program_suffix" != NONE &&
1053   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1054 # Double any \ or $.  echo might interpret backslashes.
1055 # By default was `s,x,x', remove it if useless.
1056 cat <<\_ACEOF >conftest.sed
1057 s/[\\$]/&&/g;s/;s,x,x,$//
1058 _ACEOF
1059 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1060 rm conftest.sed
1061
1062 # expand $ac_aux_dir to an absolute path
1063 am_aux_dir=`cd $ac_aux_dir && pwd`
1064
1065 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1066 # Use eval to expand $SHELL
1067 if eval "$MISSING --run true"; then
1068   am_missing_run="$MISSING --run "
1069 else
1070   am_missing_run=
1071   { echo "$as_me:1071: WARNING: \`missing' script is too old or missing" >&5
1072 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1073 fi
1074
1075 for ac_prog in mawk gawk nawk awk
1076 do
1077   # Extract the first word of "$ac_prog", so it can be a program name with args.
1078 set dummy $ac_prog; ac_word=$2
1079 echo "$as_me:1079: checking for $ac_word" >&5
1080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1081 if test "${ac_cv_prog_AWK+set}" = set; then
1082   echo $ECHO_N "(cached) $ECHO_C" >&6
1083 else
1084   if test -n "$AWK"; then
1085   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1086 else
1087   ac_save_IFS=$IFS; IFS=$ac_path_separator
1088 ac_dummy="$PATH"
1089 for ac_dir in $ac_dummy; do
1090   IFS=$ac_save_IFS
1091   test -z "$ac_dir" && ac_dir=.
1092   $as_executable_p "$ac_dir/$ac_word" || continue
1093 ac_cv_prog_AWK="$ac_prog"
1094 echo "$as_me:1094: found $ac_dir/$ac_word" >&5
1095 break
1096 done
1097
1098 fi
1099 fi
1100 AWK=$ac_cv_prog_AWK
1101 if test -n "$AWK"; then
1102   echo "$as_me:1102: result: $AWK" >&5
1103 echo "${ECHO_T}$AWK" >&6
1104 else
1105   echo "$as_me:1105: result: no" >&5
1106 echo "${ECHO_T}no" >&6
1107 fi
1108
1109   test -n "$AWK" && break
1110 done
1111
1112 echo "$as_me:1112: checking whether ${MAKE-make} sets \${MAKE}" >&5
1113 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1114 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1115 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1116   echo $ECHO_N "(cached) $ECHO_C" >&6
1117 else
1118   cat >conftest.make <<\EOF
1119 all:
1120         @echo 'ac_maketemp="${MAKE}"'
1121 EOF
1122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1123 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1124 if test -n "$ac_maketemp"; then
1125   eval ac_cv_prog_make_${ac_make}_set=yes
1126 else
1127   eval ac_cv_prog_make_${ac_make}_set=no
1128 fi
1129 rm -f conftest.make
1130 fi
1131 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1132   echo "$as_me:1132: result: yes" >&5
1133 echo "${ECHO_T}yes" >&6
1134   SET_MAKE=
1135 else
1136   echo "$as_me:1136: result: no" >&5
1137 echo "${ECHO_T}no" >&6
1138   SET_MAKE="MAKE=${MAKE-make}"
1139 fi
1140
1141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1142 if test "${enable_dependency_tracking+set}" = set; then
1143   enableval="$enable_dependency_tracking"
1144
1145 fi;
1146 if test "x$enable_dependency_tracking" != xno; then
1147   am_depcomp="$ac_aux_dir/depcomp"
1148   AMDEPBACKSLASH='\'
1149 fi
1150
1151 if test "x$enable_dependency_tracking" != xno; then
1152   AMDEP_TRUE=
1153   AMDEP_FALSE='#'
1154 else
1155   AMDEP_TRUE='#'
1156   AMDEP_FALSE=
1157 fi
1158
1159 rm -f .deps 2>/dev/null
1160 mkdir .deps 2>/dev/null
1161 if test -d .deps; then
1162   DEPDIR=.deps
1163 else
1164   # MS-DOS does not allow filenames that begin with a dot.
1165   DEPDIR=_deps
1166 fi
1167 rmdir .deps 2>/dev/null
1168
1169 # test to see if srcdir already configured
1170 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1171    test -f $srcdir/config.status; then
1172   { { echo "$as_me:1172: error: source directory already configured; run \"make distclean\" there first" >&5
1173 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1174    { (exit 1); exit 1; }; }
1175 fi
1176
1177 # Define the identity of the package.
1178 PACKAGE=automake
1179 VERSION=1.5c
1180
1181 cat >>confdefs.h <<EOF
1182 #define PACKAGE "$PACKAGE"
1183 EOF
1184
1185 cat >>confdefs.h <<EOF
1186 #define VERSION "$VERSION"
1187 EOF
1188
1189 # Some tools Automake needs.
1190
1191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1192
1193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1194
1195 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1196
1197 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1198
1199 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1200
1201 AMTAR=${AMTAR-"${am_missing_run}tar"}
1202
1203 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1204
1205 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1206
1207 # We need awk for the "check" target.  The system "awk" is bad on
1208 # some platforms.
1209
1210 ACLOCAL="`pwd`/aclocal --acdir=m4"
1211 # $AUTOMAKE is always run after a `cd $top_srcdir', hence `.' is really
1212 # what we want for perllibdir and libdir.
1213 AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
1214
1215 # Extract the first word of "perl", so it can be a program name with args.
1216 set dummy perl; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_path_PERL+set}" = set; then
1220   echo $ECHO_N "(cached) $ECHO_C" >&6
1221 else
1222   case $PERL in
1223   [\\/]* | ?:[\\/]*)
1224   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1225   ;;
1226   *)
1227   ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 ac_dummy="$PATH"
1229 for ac_dir in $ac_dummy; do
1230   IFS=$ac_save_IFS
1231   test -z "$ac_dir" && ac_dir=.
1232   if $as_executable_p "$ac_dir/$ac_word"; then
1233    ac_cv_path_PERL="$ac_dir/$ac_word"
1234    echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1235    break
1236 fi
1237 done
1238
1239   ;;
1240 esac
1241 fi
1242 PERL=$ac_cv_path_PERL
1243
1244 if test -n "$PERL"; then
1245   echo "$as_me:1245: result: $PERL" >&5
1246 echo "${ECHO_T}$PERL" >&6
1247 else
1248   echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1250 fi
1251
1252 if test -z "$PERL"; then
1253    { { echo "$as_me:1253: error: perl not found" >&5
1254 echo "$as_me: error: perl not found" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257 $PERL -e 'require 5.005;' || {
1258    { { echo "$as_me:1258: error: perl 5.005 or better is required" >&5
1259 echo "$as_me: error: perl 5.005 or better is required" >&2;}
1260    { (exit 1); exit 1; }; }
1261 }
1262
1263 ac_config_files="$ac_config_files automake"
1264
1265 ac_config_files="$ac_config_files aclocal"
1266
1267 ac_config_files="$ac_config_files Makefile lib/Makefile lib/Automake/Makefile lib/am/Makefile m4/Makefile tests/Makefile"
1268 cat >confcache <<\_ACEOF
1269 # This file is a shell script that caches the results of configure
1270 # tests run on this system so they can be shared between configure
1271 # scripts and configure runs, see configure's option --config-cache.
1272 # It is not useful on other systems.  If it contains results you don't
1273 # want to keep, you may remove or edit it.
1274 #
1275 # config.status only pays attention to the cache file if you give it
1276 # the --recheck option to rerun configure.
1277 #
1278 # `ac_cv_env_foo' variables (set or unset) will be overriden when
1279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1280 # following values.
1281
1282 _ACEOF
1283
1284 # The following way of writing the cache mishandles newlines in values,
1285 # but we know of no workaround that is simple, portable, and efficient.
1286 # So, don't put newlines in cache variables' values.
1287 # Ultrix sh set writes to stderr and can't be redirected directly,
1288 # and sets the high bit in the cache file unless we assign to the vars.
1289 {
1290   (set) 2>&1 |
1291     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1292     *ac_space=\ *)
1293       # `set' does not quote correctly, so add quotes (double-quote
1294       # substitution turns \\\\ into \\, and sed turns \\ into \).
1295       sed -n \
1296         "s/'/'\\\\''/g;
1297           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1298       ;;
1299     *)
1300       # `set' quotes correctly as required by POSIX, so do not add quotes.
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 } |
1306   sed '
1307      t clear
1308      : clear
1309      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1310      t end
1311      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1312      : end' >>confcache
1313 if cmp -s $cache_file confcache; then :; else
1314   if test -w $cache_file; then
1315     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1316     cat confcache >$cache_file
1317   else
1318     echo "not updating unwritable cache $cache_file"
1319   fi
1320 fi
1321 rm -f confcache
1322
1323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1324 # Let make expand exec_prefix.
1325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1326
1327 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1328 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1329 # trailing colons and then remove the whole line if VPATH becomes empty
1330 # (actually we leave an empty line to preserve line numbers).
1331 if test "x$srcdir" = x.; then
1332   ac_vpsub='/^[         ]*VPATH[        ]*=/{
1333 s/:*\$(srcdir):*/:/;
1334 s/:*\${srcdir}:*/:/;
1335 s/:*@srcdir@:*/:/;
1336 s/^\([^=]*=[    ]*\):*/\1/;
1337 s/:*$//;
1338 s/^[^=]*=[      ]*$//;
1339 }'
1340 fi
1341
1342 # Transform confdefs.h into DEFS.
1343 # Protect against shell expansion while executing Makefile rules.
1344 # Protect against Makefile macro expansion.
1345 #
1346 # If the first sed substitution is executed (which looks for macros that
1347 # take arguments), then we branch to the quote section.  Otherwise,
1348 # look for a macro that doesn't take arguments.
1349 cat >confdef2opt.sed <<\EOF
1350 t clear
1351 : clear
1352 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1353 t quote
1354 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1355 t quote
1356 d
1357 : quote
1358 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1359 s,\[,\\&,g
1360 s,\],\\&,g
1361 s,\$,$$,g
1362 p
1363 EOF
1364 # We use echo to avoid assuming a particular line-breaking character.
1365 # The extra dot is to prevent the shell from consuming trailing
1366 # line-breaks from the sub-command output.  A line-break within
1367 # single-quotes doesn't work because, if this script is created in a
1368 # platform that uses two characters for line-breaks (e.g., DOS), tr
1369 # would break.
1370 ac_LF_and_DOT=`echo; echo .`
1371 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1372 rm -f confdef2opt.sed
1373
1374 : ${CONFIG_STATUS=./config.status}
1375 ac_clean_files_save=$ac_clean_files
1376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1377 { echo "$as_me:1377: creating $CONFIG_STATUS" >&5
1378 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1379 cat >$CONFIG_STATUS <<_ACEOF
1380 #! $SHELL
1381 # Generated automatically by configure.
1382 # Run this file to recreate the current configuration.
1383 # Compiler output produced by configure, useful for debugging
1384 # configure, is in config.log if it exists.
1385
1386 debug=false
1387 SHELL=\${CONFIG_SHELL-$SHELL}
1388 ac_cs_invocation="\$0 \$@"
1389
1390 _ACEOF
1391
1392 cat >>$CONFIG_STATUS <<\_ACEOF
1393 # Be Bourne compatible
1394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1395   emulate sh
1396   NULLCMD=:
1397 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1398   set -o posix
1399 fi
1400
1401 # Name of the executable.
1402 as_me=`echo "$0" |sed 's,.*[\\/],,'`
1403
1404 if expr a : '\(a\)' >/dev/null 2>&1; then
1405   as_expr=expr
1406 else
1407   as_expr=false
1408 fi
1409
1410 rm -f conf$$ conf$$.exe conf$$.file
1411 echo >conf$$.file
1412 if ln -s conf$$.file conf$$ 2>/dev/null; then
1413   # We could just check for DJGPP; but this test a) works b) is more generic
1414   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1415   if test -f conf$$.exe; then
1416     # Don't use ln at all; we don't have any links
1417     as_ln_s='cp -p'
1418   else
1419     as_ln_s='ln -s'
1420   fi
1421 elif ln conf$$.file conf$$ 2>/dev/null; then
1422   as_ln_s=ln
1423 else
1424   as_ln_s='cp -p'
1425 fi
1426 rm -f conf$$ conf$$.exe conf$$.file
1427
1428 as_executable_p="test -f"
1429
1430 # Support unset when possible.
1431 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1432   as_unset=unset
1433 else
1434   as_unset=false
1435 fi
1436
1437 # NLS nuisances.
1438 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1439 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1440 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1441 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1442 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1443 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1444 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1445 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1446
1447 # IFS
1448 # We need space, tab and new line, in precisely that order.
1449 as_nl='
1450 '
1451 IFS="   $as_nl"
1452
1453 # CDPATH.
1454 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1455
1456 exec 6>&1
1457
1458 _ACEOF
1459
1460 # Files that config.status was made for.
1461 if test -n "$ac_config_files"; then
1462   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1463 fi
1464
1465 if test -n "$ac_config_headers"; then
1466   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1467 fi
1468
1469 if test -n "$ac_config_links"; then
1470   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1471 fi
1472
1473 if test -n "$ac_config_commands"; then
1474   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1475 fi
1476
1477 cat >>$CONFIG_STATUS <<\EOF
1478
1479 ac_cs_usage="\
1480 \`$as_me' instantiates files from templates according to the
1481 current configuration.
1482
1483 Usage: $0 [OPTIONS] [FILE]...
1484
1485   -h, --help       print this help, then exit
1486   -V, --version    print version number, then exit
1487   -d, --debug      don't remove temporary files
1488       --recheck    update $as_me by reconfiguring in the same conditions
1489   --file=FILE[:TEMPLATE]
1490                    instantiate the configuration file FILE
1491
1492 Configuration files:
1493 $config_files
1494
1495 Report bugs to <bug-autoconf@gnu.org>."
1496 EOF
1497
1498 cat >>$CONFIG_STATUS <<EOF
1499 ac_cs_version="\\
1500 GNU Automake config.status 1.5c
1501 configured by $0, generated by GNU Autoconf 2.52,
1502   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1503
1504 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1505 Free Software Foundation, Inc.
1506 This config.status script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it."
1508 srcdir=$srcdir
1509 INSTALL="$INSTALL"
1510 EOF
1511
1512 cat >>$CONFIG_STATUS <<\EOF
1513 # If no file are specified by the user, then we need to provide default
1514 # value.  By we need to know if files were specified by the user.
1515 ac_need_defaults=:
1516 while test $# != 0
1517 do
1518   case $1 in
1519   --*=*)
1520     ac_option=`expr "x$1" : 'x\([^=]*\)='`
1521     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1522     shift
1523     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1524     shift
1525     ;;
1526   -*);;
1527   *) # This is not an option, so the user has probably given explicit
1528      # arguments.
1529      ac_need_defaults=false;;
1530   esac
1531
1532   case $1 in
1533   # Handling of the options.
1534 EOF
1535 cat >>$CONFIG_STATUS <<EOF
1536   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1537     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1538     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1539 EOF
1540 cat >>$CONFIG_STATUS <<\EOF
1541   --version | --vers* | -V )
1542     echo "$ac_cs_version"; exit 0 ;;
1543   --he | --h)
1544     # Conflict between --help and --header
1545     { { echo "$as_me:1545: error: ambiguous option: $1
1546 Try \`$0 --help' for more information." >&5
1547 echo "$as_me: error: ambiguous option: $1
1548 Try \`$0 --help' for more information." >&2;}
1549    { (exit 1); exit 1; }; };;
1550   --help | --hel | -h )
1551     echo "$ac_cs_usage"; exit 0 ;;
1552   --debug | --d* | -d )
1553     debug=: ;;
1554   --file | --fil | --fi | --f )
1555     shift
1556     CONFIG_FILES="$CONFIG_FILES $1"
1557     ac_need_defaults=false;;
1558   --header | --heade | --head | --hea )
1559     shift
1560     CONFIG_HEADERS="$CONFIG_HEADERS $1"
1561     ac_need_defaults=false;;
1562
1563   # This is an error.
1564   -*) { { echo "$as_me:1564: error: unrecognized option: $1
1565 Try \`$0 --help' for more information." >&5
1566 echo "$as_me: error: unrecognized option: $1
1567 Try \`$0 --help' for more information." >&2;}
1568    { (exit 1); exit 1; }; } ;;
1569
1570   *) ac_config_targets="$ac_config_targets $1" ;;
1571
1572   esac
1573   shift
1574 done
1575
1576 exec 5>>config.log
1577 cat >&5 << _ACEOF
1578
1579 ## ----------------------- ##
1580 ## Running config.status.  ##
1581 ## ----------------------- ##
1582
1583 This file was extended by $as_me (GNU Automake 1.5c) 2.52, executed with
1584   CONFIG_FILES    = $CONFIG_FILES
1585   CONFIG_HEADERS  = $CONFIG_HEADERS
1586   CONFIG_LINKS    = $CONFIG_LINKS
1587   CONFIG_COMMANDS = $CONFIG_COMMANDS
1588   > $ac_cs_invocation
1589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
1590
1591 _ACEOF
1592 EOF
1593
1594 cat >>$CONFIG_STATUS <<\EOF
1595 for ac_config_target in $ac_config_targets
1596 do
1597   case "$ac_config_target" in
1598   # Handling of arguments.
1599   "automake" ) CONFIG_FILES="$CONFIG_FILES automake" ;;
1600   "aclocal" ) CONFIG_FILES="$CONFIG_FILES aclocal" ;;
1601   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1602   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
1603   "lib/Automake/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Automake/Makefile" ;;
1604   "lib/am/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/am/Makefile" ;;
1605   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
1606   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
1607   *) { { echo "$as_me:1607: error: invalid argument: $ac_config_target" >&5
1608 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1609    { (exit 1); exit 1; }; };;
1610   esac
1611 done
1612
1613 # If the user did not use the arguments to specify the items to instantiate,
1614 # then the envvar interface is used.  Set only those that are not.
1615 # We use the long form for the default assignment because of an extremely
1616 # bizarre bug on SunOS 4.1.3.
1617 if $ac_need_defaults; then
1618   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1619 fi
1620
1621 # Create a temporary directory, and hook for its removal unless debugging.
1622 $debug ||
1623 {
1624   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1625   trap '{ (exit 1); exit 1; }' 1 2 13 15
1626 }
1627
1628 # Create a (secure) tmp directory for tmp files.
1629 : ${TMPDIR=/tmp}
1630 {
1631   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1632   test -n "$tmp" && test -d "$tmp"
1633 }  ||
1634 {
1635   tmp=$TMPDIR/cs$$-$RANDOM
1636   (umask 077 && mkdir $tmp)
1637 } ||
1638 {
1639    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1640    { (exit 1); exit 1; }
1641 }
1642
1643 EOF
1644
1645 cat >>$CONFIG_STATUS <<EOF
1646
1647 #
1648 # CONFIG_FILES section.
1649 #
1650
1651 # No need to generate the scripts if there are no CONFIG_FILES.
1652 # This happens for instance when ./config.status config.h
1653 if test -n "\$CONFIG_FILES"; then
1654   # Protect against being on the right side of a sed subst in config.status.
1655   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1656    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1657 s,@SHELL@,$SHELL,;t t
1658 s,@exec_prefix@,$exec_prefix,;t t
1659 s,@prefix@,$prefix,;t t
1660 s,@program_transform_name@,$program_transform_name,;t t
1661 s,@bindir@,$bindir,;t t
1662 s,@sbindir@,$sbindir,;t t
1663 s,@libexecdir@,$libexecdir,;t t
1664 s,@datadir@,$datadir,;t t
1665 s,@sysconfdir@,$sysconfdir,;t t
1666 s,@sharedstatedir@,$sharedstatedir,;t t
1667 s,@localstatedir@,$localstatedir,;t t
1668 s,@libdir@,$libdir,;t t
1669 s,@includedir@,$includedir,;t t
1670 s,@oldincludedir@,$oldincludedir,;t t
1671 s,@infodir@,$infodir,;t t
1672 s,@mandir@,$mandir,;t t
1673 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1674 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1675 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1676 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1677 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1678 s,@build_alias@,$build_alias,;t t
1679 s,@host_alias@,$host_alias,;t t
1680 s,@target_alias@,$target_alias,;t t
1681 s,@ECHO_C@,$ECHO_C,;t t
1682 s,@ECHO_N@,$ECHO_N,;t t
1683 s,@ECHO_T@,$ECHO_T,;t t
1684 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1685 s,@DEFS@,$DEFS,;t t
1686 s,@LIBS@,$LIBS,;t t
1687 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1688 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1689 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1690 s,@PACKAGE@,$PACKAGE,;t t
1691 s,@VERSION@,$VERSION,;t t
1692 s,@ACLOCAL@,$ACLOCAL,;t t
1693 s,@AUTOCONF@,$AUTOCONF,;t t
1694 s,@AUTOMAKE@,$AUTOMAKE,;t t
1695 s,@AUTOHEADER@,$AUTOHEADER,;t t
1696 s,@MAKEINFO@,$MAKEINFO,;t t
1697 s,@AMTAR@,$AMTAR,;t t
1698 s,@install_sh@,$install_sh,;t t
1699 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1700 s,@AWK@,$AWK,;t t
1701 s,@SET_MAKE@,$SET_MAKE,;t t
1702 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
1703 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
1704 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1705 s,@DEPDIR@,$DEPDIR,;t t
1706 s,@PERL@,$PERL,;t t
1707 CEOF
1708
1709 EOF
1710
1711   cat >>$CONFIG_STATUS <<\EOF
1712   # Split the substitutions into bite-sized pieces for seds with
1713   # small command number limits, like on Digital OSF/1 and HP-UX.
1714   ac_max_sed_lines=48
1715   ac_sed_frag=1 # Number of current file.
1716   ac_beg=1 # First line for current file.
1717   ac_end=$ac_max_sed_lines # Line after last line for current file.
1718   ac_more_lines=:
1719   ac_sed_cmds=
1720   while $ac_more_lines; do
1721     if test $ac_beg -gt 1; then
1722       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1723     else
1724       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1725     fi
1726     if test ! -s $tmp/subs.frag; then
1727       ac_more_lines=false
1728     else
1729       # The purpose of the label and of the branching condition is to
1730       # speed up the sed processing (if there are no `@' at all, there
1731       # is no need to browse any of the substitutions).
1732       # These are the two extra sed commands mentioned above.
1733       (echo ':t
1734   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1735       if test -z "$ac_sed_cmds"; then
1736         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1737       else
1738         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1739       fi
1740       ac_sed_frag=`expr $ac_sed_frag + 1`
1741       ac_beg=$ac_end
1742       ac_end=`expr $ac_end + $ac_max_sed_lines`
1743     fi
1744   done
1745   if test -z "$ac_sed_cmds"; then
1746     ac_sed_cmds=cat
1747   fi
1748 fi # test -n "$CONFIG_FILES"
1749
1750 EOF
1751 cat >>$CONFIG_STATUS <<\EOF
1752 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1753   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1754   case $ac_file in
1755   - | *:- | *:-:* ) # input from stdin
1756         cat >$tmp/stdin
1757         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1759   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1760         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1761   * )   ac_file_in=$ac_file.in ;;
1762   esac
1763
1764   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1765   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1766          X"$ac_file" : 'X\(//\)[^/]' \| \
1767          X"$ac_file" : 'X\(//\)$' \| \
1768          X"$ac_file" : 'X\(/\)' \| \
1769          .     : '\(.\)' 2>/dev/null ||
1770 echo X"$ac_file" |
1771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1772           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1773           /^X\(\/\/\)$/{ s//\1/; q; }
1774           /^X\(\/\).*/{ s//\1/; q; }
1775           s/.*/./; q'`
1776   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1777     { case "$ac_dir" in
1778   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1779   *)                      as_incr_dir=.;;
1780 esac
1781 as_dummy="$ac_dir"
1782 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1783   case $as_mkdir_dir in
1784     # Skip DOS drivespec
1785     ?:) as_incr_dir=$as_mkdir_dir ;;
1786     *)
1787       as_incr_dir=$as_incr_dir/$as_mkdir_dir
1788       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
1789     ;;
1790   esac
1791 done; }
1792
1793     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1794     # A "../" for each directory in $ac_dir_suffix.
1795     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1796   else
1797     ac_dir_suffix= ac_dots=
1798   fi
1799
1800   case $srcdir in
1801   .)  ac_srcdir=.
1802       if test -z "$ac_dots"; then
1803          ac_top_srcdir=.
1804       else
1805          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
1806       fi ;;
1807   [\\/]* | ?:[\\/]* )
1808       ac_srcdir=$srcdir$ac_dir_suffix;
1809       ac_top_srcdir=$srcdir ;;
1810   *) # Relative path.
1811     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
1812     ac_top_srcdir=$ac_dots$srcdir ;;
1813   esac
1814
1815   case $INSTALL in
1816   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1817   *) ac_INSTALL=$ac_dots$INSTALL ;;
1818   esac
1819
1820   if test x"$ac_file" != x-; then
1821     { echo "$as_me:1821: creating $ac_file" >&5
1822 echo "$as_me: creating $ac_file" >&6;}
1823     rm -f "$ac_file"
1824   fi
1825   # Let's still pretend it is `configure' which instantiates (i.e., don't
1826   # use $as_me), people would be surprised to read:
1827   #    /* config.h.  Generated automatically by config.status.  */
1828   configure_input="Generated automatically from `echo $ac_file_in |
1829                                                  sed 's,.*/,,'` by configure."
1830
1831   # First look for the input files in the build tree, otherwise in the
1832   # src tree.
1833   ac_file_inputs=`IFS=:
1834     for f in $ac_file_in; do
1835       case $f in
1836       -) echo $tmp/stdin ;;
1837       [\\/$]*)
1838          # Absolute (can't be DOS-style, as IFS=:)
1839          test -f "$f" || { { echo "$as_me:1839: error: cannot find input file: $f" >&5
1840 echo "$as_me: error: cannot find input file: $f" >&2;}
1841    { (exit 1); exit 1; }; }
1842          echo $f;;
1843       *) # Relative
1844          if test -f "$f"; then
1845            # Build tree
1846            echo $f
1847          elif test -f "$srcdir/$f"; then
1848            # Source tree
1849            echo $srcdir/$f
1850          else
1851            # /dev/null tree
1852            { { echo "$as_me:1852: error: cannot find input file: $f" >&5
1853 echo "$as_me: error: cannot find input file: $f" >&2;}
1854    { (exit 1); exit 1; }; }
1855          fi;;
1856       esac
1857     done` || { (exit 1); exit 1; }
1858 EOF
1859 cat >>$CONFIG_STATUS <<EOF
1860   sed "$ac_vpsub
1861 $extrasub
1862 EOF
1863 cat >>$CONFIG_STATUS <<\EOF
1864 :t
1865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1866 s,@configure_input@,$configure_input,;t t
1867 s,@srcdir@,$ac_srcdir,;t t
1868 s,@top_srcdir@,$ac_top_srcdir,;t t
1869 s,@INSTALL@,$ac_INSTALL,;t t
1870 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1871   rm -f $tmp/stdin
1872   if test x"$ac_file" != x-; then
1873     mv $tmp/out $ac_file
1874   else
1875     cat $tmp/out
1876     rm -f $tmp/out
1877   fi
1878
1879   # Run the commands associated with the file.
1880   case $ac_file in
1881     automake ) chmod +x automake ;;
1882     aclocal ) chmod +x aclocal ;;
1883   esac
1884 done
1885 EOF
1886
1887 cat >>$CONFIG_STATUS <<\EOF
1888
1889 { (exit 0); exit 0; }
1890 EOF
1891 chmod +x $CONFIG_STATUS
1892 ac_clean_files=$ac_clean_files_save
1893
1894 # configure is writing to config.log, and then calls config.status.
1895 # config.status does its own redirection, appending to config.log.
1896 # Unfortunately, on DOS this fails, as config.log is still kept open
1897 # by configure, so config.status won't be able to write to it; its
1898 # output is simply discarded.  So we exec the FD to /dev/null,
1899 # effectively closing config.log, so it can be properly (re)opened and
1900 # appended to by config.status.  When coming back to configure, we
1901 # need to make the FD available again.
1902 if test "$no_create" != yes; then
1903   ac_cs_success=:
1904   exec 5>/dev/null
1905   $SHELL $CONFIG_STATUS || ac_cs_success=false
1906   exec 5>>config.log
1907   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1908   # would make configure fail if this is the last instruction.
1909   $ac_cs_success || { (exit 1); exit 1; }
1910 fi
1911