Support AC_REQUIRE_AUX_FILE, and fix requirement of AM_PROG_CC_C_O.
[platform/upstream/automake.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59a for GNU Automake 1.9a.
4 #
5 # Report bugs to <bug-automake@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
8 # 2003, 2004 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 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # Find who we are.  Look in the path if we contain no path at all
60 # relative or not.
61 case $0 in
62   *[\\/]* ) as_myself=$0 ;;
63   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64 for as_dir in $PATH
65 do
66   IFS=$as_save_IFS
67   test -z "$as_dir" && as_dir=.
68   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
69 done
70
71      ;;
72 esac
73 # We did not find ourselves, most probably we were run as `sh COMMAND'
74 # in which case we are not to be found in the path.
75 if test "x$as_myself" = x; then
76   as_myself=$0
77 fi
78 if test ! -f "$as_myself"; then
79   { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
80    { (exit 1); exit 1; }; }
81 fi
82
83 # Work around bugs in pre-3.0 UWIN ksh.
84 for as_var in ENV MAIL MAILPATH
85 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
86 done
87 PS1='$ '
88 PS2='> '
89 PS4='+ '
90
91 # NLS nuisances.
92 for as_var in \
93   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
94   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
95   LC_TELEPHONE LC_TIME
96 do
97   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
98     eval $as_var=C; export $as_var
99   else
100     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101   fi
102 done
103
104 # Required to use basename.
105 if expr a : '\(a\)' >/dev/null 2>&1; then
106   as_expr=expr
107 else
108   as_expr=false
109 fi
110
111 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
112   as_basename=basename
113 else
114   as_basename=false
115 fi
116
117
118 # Name of the executable.
119 as_me=`$as_basename "$0" ||
120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
121          X"$0" : 'X\(//\)$' \| \
122          X"$0" : 'X\(/\)$' \| \
123          .     : '\(.\)' 2>/dev/null ||
124 echo X/"$0" |
125     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
126           /^X\/\(\/\/\)$/{ s//\1/; q; }
127           /^X\/\(\/\).*/{ s//\1/; q; }
128           s/.*/./; q'`
129
130
131
132 if test "x$CONFIG_SHELL" = x; then
133   if (eval ":") 2>/dev/null; then
134   as_have_required=yes
135 else
136   as_have_required=no
137 fi
138
139   if test $as_have_required = yes &&     (eval ":
140 (func_return () {
141   (exit \$1)
142 }
143 func_success () {
144   func_return 0
145 }
146 func_failure () {
147   func_return 1
148 }
149 func_ret_success () {
150   return 0
151 }
152 func_ret_failure () {
153   return 1
154 }
155
156 exitcode=0
157 if func_success; then
158   :
159 else
160   exitcode=1
161   echo func_failure succeeded.
162 fi
163
164 if func_failure; then
165   exitcode=1
166   echo func_success failed.
167 fi
168
169 if func_ret_success; then
170   :
171 else
172   exitcode=1
173   echo func_ret_success failed.
174 fi
175
176 if func_ret_failure; then
177   exitcode=1
178   echo func_ret_failure succeeded.
179 fi
180
181 test \$exitcode = 0) || { (exit 1); exit 1; }
182
183 (
184   as_lineno_1=\$LINENO
185   as_lineno_2=\$LINENO
186   as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
187   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
188   test \"x\$as_lineno_3\"  = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
189 ") 2> /dev/null; then
190   :
191 else
192   as_candidate_shells=
193     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   case $as_dir in
199          /*)
200            for as_base in sh bash ksh sh5; do
201              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
202            done
203        esac
204 done
205
206
207       for as_shell in $as_candidate_shells $SHELL; do
208          if { $as_shell 2> /dev/null <<\_ASEOF
209 # Be Bourne compatible
210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
211   emulate sh
212   NULLCMD=:
213   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
214   # is contrary to our usage.  Disable this feature.
215   alias -g '${1+"$@"}'='"$@"'
216   setopt NO_GLOB_SUBST
217 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
218   set -o posix
219 fi
220 BIN_SH=xpg4; export BIN_SH # for Tru64
221 DUALCASE=1; export DUALCASE # for MKS sh
222
223 :
224 _ASEOF
225 }; then
226   CONFIG_SHELL=$as_shell
227                as_have_required=yes
228                if { $as_shell 2> /dev/null <<\_ASEOF
229 # Be Bourne compatible
230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
231   emulate sh
232   NULLCMD=:
233   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
234   # is contrary to our usage.  Disable this feature.
235   alias -g '${1+"$@"}'='"$@"'
236   setopt NO_GLOB_SUBST
237 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
238   set -o posix
239 fi
240 BIN_SH=xpg4; export BIN_SH # for Tru64
241 DUALCASE=1; export DUALCASE # for MKS sh
242
243 :
244 (func_return () {
245   (exit $1)
246 }
247 func_success () {
248   func_return 0
249 }
250 func_failure () {
251   func_return 1
252 }
253 func_ret_success () {
254   return 0
255 }
256 func_ret_failure () {
257   return 1
258 }
259
260 exitcode=0
261 if func_success; then
262   :
263 else
264   exitcode=1
265   echo func_failure succeeded.
266 fi
267
268 if func_failure; then
269   exitcode=1
270   echo func_success failed.
271 fi
272
273 if func_ret_success; then
274   :
275 else
276   exitcode=1
277   echo func_ret_success failed.
278 fi
279
280 if func_ret_failure; then
281   exitcode=1
282   echo func_ret_failure succeeded.
283 fi
284
285 test $exitcode = 0) || { (exit 1); exit 1; }
286
287 (
288   as_lineno_1=$LINENO
289   as_lineno_2=$LINENO
290   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
291   test "x$as_lineno_1" != "x$as_lineno_2" &&
292   test "x$as_lineno_3"  = "x$as_lineno_2") || { (exit 1); exit 1; }
293
294 _ASEOF
295 }; then
296   break
297 fi
298
299 fi
300
301       done
302
303       if test "x$CONFIG_SHELL" != x; then
304   for as_var in BASH_ENV ENV
305         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
306         done
307         export CONFIG_SHELL
308         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
309 fi
310
311
312     if test $as_have_required = no; then
313   echo This script requires a shell more modern than all the
314       echo shells that I found on your system.  Please install a
315       echo modern shell, or manually run the script under such a
316       echo shell if you do have one.
317       { (exit 1); exit 1; }
318 fi
319
320
321 fi
322
323 fi
324
325
326
327 (eval "func_return () {
328   (exit \$1)
329 }
330 func_success () {
331   func_return 0
332 }
333 func_failure () {
334   func_return 1
335 }
336 func_ret_success () {
337   return 0
338 }
339 func_ret_failure () {
340   return 1
341 }
342
343 exitcode=0
344 if func_success; then
345   :
346 else
347   exitcode=1
348   echo func_failure succeeded.
349 fi
350
351 if func_failure; then
352   exitcode=1
353   echo func_success failed.
354 fi
355
356 if func_ret_success; then
357   :
358 else
359   exitcode=1
360   echo func_ret_success failed.
361 fi
362
363 if func_ret_failure; then
364   exitcode=1
365   echo func_ret_failure succeeded.
366 fi
367
368 test \$exitcode = 0") || {
369   echo No shell found that supports shell functions.
370   echo Please tell autoconf@gnu.org about your system,
371   echo including any error possibly output before this
372   echo message
373 }
374
375
376
377   as_lineno_1=$LINENO
378   as_lineno_2=$LINENO
379   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
380   test "x$as_lineno_1" != "x$as_lineno_2" &&
381   test "x$as_lineno_3"  = "x$as_lineno_2" || {
382
383   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
384   # uniformly replaced by the line number.  The first 'sed' inserts a
385   # line-number line after each line using $LINENO; the second 'sed'
386   # does the real work.  The second script uses 'N' to pair each
387   # line-number line with the line containing $LINENO, and appends
388   # trailing '-' during substitution so that $LINENO is not a special
389   # case at line end.
390   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
391   # scripts with optimization help from Paolo Bonzini.  Blame Lee
392   # E. McMahon (1931-1989) for sed's syntax.  :-)
393   sed -n '
394     p
395     /[$]LINENO/=
396   ' <$as_myself |
397     sed '
398       s,[$]LINENO.*,&-,
399       t lineno
400       b
401       : lineno
402       N
403       : loop
404       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
405       t loop
406       s,-\n.*,,
407     ' >$as_me.lineno &&
408   chmod +x $as_me.lineno ||
409     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
410    { (exit 1); exit 1; }; }
411
412   # Don't try to exec as it changes $[0], causing all sort of problems
413   # (the dirname of $[0] is not the place where we might find the
414   # original and so on.  Autoconf is especially sensible to this).
415   . ./$as_me.lineno
416   # Exit status is that of the last command.
417   exit
418 }
419
420
421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
422   *c*,-n*) ECHO_N= ECHO_C='
423 ' ECHO_T='      ' ;;
424   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
425   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
426 esac
427
428 if expr a : '\(a\)' >/dev/null 2>&1; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 rm -f conf$$ conf$$.exe conf$$.file
435 echo >conf$$.file
436 if ln -s conf$$.file conf$$ 2>/dev/null; then
437   # We could just check for DJGPP; but this test a) works b) is more generic
438   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
439   if test -f conf$$.exe; then
440     # Don't use ln at all; we don't have any links
441     as_ln_s='cp -p'
442   else
443     as_ln_s='ln -s'
444   fi
445 elif ln conf$$.file conf$$ 2>/dev/null; then
446   as_ln_s=ln
447 else
448   as_ln_s='cp -p'
449 fi
450 rm -f conf$$ conf$$.exe conf$$.file
451
452 if mkdir -p . 2>/dev/null; then
453   as_mkdir_p=:
454 else
455   test -d ./-p && rmdir ./-p
456   as_mkdir_p=false
457 fi
458
459 as_executable_p="test -f"
460
461 # Sed expression to map a string onto a valid CPP name.
462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
463
464 # Sed expression to map a string onto a valid variable name.
465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
466
467
468 # IFS
469 # We need space, tab and new line, in precisely that order.
470 as_nl='
471 '
472 IFS="   $as_nl"
473
474 # CDPATH.
475 $as_unset CDPATH
476
477
478 # Name of the host.
479 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
480 # so uname gets run too.
481 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
482
483 exec 6>&1
484
485 #
486 # Initializations.
487 #
488 ac_default_prefix=/usr/local
489 ac_config_libobj_dir=.
490 cross_compiling=no
491 subdirs=
492 MFLAGS=
493 MAKEFLAGS=
494 SHELL=${CONFIG_SHELL-/bin/sh}
495
496 # Maximum number of lines to put in a shell here document.
497 # This variable seems obsolete.  It should probably be removed, and
498 # only ac_max_sed_lines should be used.
499 : ${ac_max_here_lines=38}
500
501 # Identity of this package.
502 PACKAGE_NAME='GNU Automake'
503 PACKAGE_TARNAME='automake'
504 PACKAGE_VERSION='1.9a'
505 PACKAGE_STRING='GNU Automake 1.9a'
506 PACKAGE_BUGREPORT='bug-automake@gnu.org'
507
508 ac_unique_file="automake.in"
509 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 build build_cpu build_vendor build_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar APIVERSION pkgvdatadir PERL TEX LN MODIFICATION_DELAY GREP EGREP FGREP LIBOBJS LTLIBOBJS'
510 ac_subst_files=''
511
512 # Initialize some variables set by options.
513 ac_init_help=
514 ac_init_version=false
515 # The variables have the same names as the options, with
516 # dashes changed to underlines.
517 cache_file=/dev/null
518 exec_prefix=NONE
519 no_create=
520 no_recursion=
521 prefix=NONE
522 program_prefix=NONE
523 program_suffix=NONE
524 program_transform_name=s,x,x,
525 silent=
526 site=
527 srcdir=
528 verbose=
529 x_includes=NONE
530 x_libraries=NONE
531
532 # Installation directory options.
533 # These are left unexpanded so users can "make install exec_prefix=/foo"
534 # and all the variables that are supposed to be based on exec_prefix
535 # by default will actually change.
536 # Use braces instead of parens because sh, perl, etc. also accept them.
537 bindir='${exec_prefix}/bin'
538 sbindir='${exec_prefix}/sbin'
539 libexecdir='${exec_prefix}/libexec'
540 datadir='${prefix}/share'
541 sysconfdir='${prefix}/etc'
542 sharedstatedir='${prefix}/com'
543 localstatedir='${prefix}/var'
544 libdir='${exec_prefix}/lib'
545 includedir='${prefix}/include'
546 oldincludedir='/usr/include'
547 infodir='${prefix}/info'
548 mandir='${prefix}/man'
549
550 ac_prev=
551 for ac_option
552 do
553   # If the previous option needs an argument, assign it.
554   if test -n "$ac_prev"; then
555     eval "$ac_prev=\$ac_option"
556     ac_prev=
557     continue
558   fi
559
560   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
561
562   # Accept the important Cygnus configure options, so we can diagnose typos.
563
564   case $ac_option in
565
566   -bindir | --bindir | --bindi | --bind | --bin | --bi)
567     ac_prev=bindir ;;
568   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
569     bindir=$ac_optarg ;;
570
571   -build | --build | --buil | --bui | --bu)
572     ac_prev=build_alias ;;
573   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
574     build_alias=$ac_optarg ;;
575
576   -cache-file | --cache-file | --cache-fil | --cache-fi \
577   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
578     ac_prev=cache_file ;;
579   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
580   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
581     cache_file=$ac_optarg ;;
582
583   --config-cache | -C)
584     cache_file=config.cache ;;
585
586   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
587     ac_prev=datadir ;;
588   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
589   | --da=*)
590     datadir=$ac_optarg ;;
591
592   -disable-* | --disable-*)
593     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
594     # Reject names that are not valid shell variable names.
595     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
597    { (exit 1); exit 1; }; }
598     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
599     eval "enable_$ac_feature=no" ;;
600
601   -enable-* | --enable-*)
602     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
606    { (exit 1); exit 1; }; }
607     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
608     case $ac_option in
609       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
610       *) ac_optarg=yes ;;
611     esac
612     eval "enable_$ac_feature='$ac_optarg'" ;;
613
614   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
615   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
616   | --exec | --exe | --ex)
617     ac_prev=exec_prefix ;;
618   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
619   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
620   | --exec=* | --exe=* | --ex=*)
621     exec_prefix=$ac_optarg ;;
622
623   -gas | --gas | --ga | --g)
624     # Obsolete; use --with-gas.
625     with_gas=yes ;;
626
627   -help | --help | --hel | --he | -h)
628     ac_init_help=long ;;
629   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
630     ac_init_help=recursive ;;
631   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
632     ac_init_help=short ;;
633
634   -host | --host | --hos | --ho)
635     ac_prev=host_alias ;;
636   -host=* | --host=* | --hos=* | --ho=*)
637     host_alias=$ac_optarg ;;
638
639   -includedir | --includedir | --includedi | --included | --include \
640   | --includ | --inclu | --incl | --inc)
641     ac_prev=includedir ;;
642   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
643   | --includ=* | --inclu=* | --incl=* | --inc=*)
644     includedir=$ac_optarg ;;
645
646   -infodir | --infodir | --infodi | --infod | --info | --inf)
647     ac_prev=infodir ;;
648   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
649     infodir=$ac_optarg ;;
650
651   -libdir | --libdir | --libdi | --libd)
652     ac_prev=libdir ;;
653   -libdir=* | --libdir=* | --libdi=* | --libd=*)
654     libdir=$ac_optarg ;;
655
656   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
657   | --libexe | --libex | --libe)
658     ac_prev=libexecdir ;;
659   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
660   | --libexe=* | --libex=* | --libe=*)
661     libexecdir=$ac_optarg ;;
662
663   -localstatedir | --localstatedir | --localstatedi | --localstated \
664   | --localstate | --localstat | --localsta | --localst \
665   | --locals | --local | --loca | --loc | --lo)
666     ac_prev=localstatedir ;;
667   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
668   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
669   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
670     localstatedir=$ac_optarg ;;
671
672   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
673     ac_prev=mandir ;;
674   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
675     mandir=$ac_optarg ;;
676
677   -nfp | --nfp | --nf)
678     # Obsolete; use --without-fp.
679     with_fp=no ;;
680
681   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
682   | --no-cr | --no-c | -n)
683     no_create=yes ;;
684
685   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
687     no_recursion=yes ;;
688
689   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
690   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
691   | --oldin | --oldi | --old | --ol | --o)
692     ac_prev=oldincludedir ;;
693   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
694   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
695   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
696     oldincludedir=$ac_optarg ;;
697
698   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
699     ac_prev=prefix ;;
700   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
701     prefix=$ac_optarg ;;
702
703   -program-prefix | --program-prefix | --program-prefi | --program-pref \
704   | --program-pre | --program-pr | --program-p)
705     ac_prev=program_prefix ;;
706   -program-prefix=* | --program-prefix=* | --program-prefi=* \
707   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
708     program_prefix=$ac_optarg ;;
709
710   -program-suffix | --program-suffix | --program-suffi | --program-suff \
711   | --program-suf | --program-su | --program-s)
712     ac_prev=program_suffix ;;
713   -program-suffix=* | --program-suffix=* | --program-suffi=* \
714   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
715     program_suffix=$ac_optarg ;;
716
717   -program-transform-name | --program-transform-name \
718   | --program-transform-nam | --program-transform-na \
719   | --program-transform-n | --program-transform- \
720   | --program-transform | --program-transfor \
721   | --program-transfo | --program-transf \
722   | --program-trans | --program-tran \
723   | --progr-tra | --program-tr | --program-t)
724     ac_prev=program_transform_name ;;
725   -program-transform-name=* | --program-transform-name=* \
726   | --program-transform-nam=* | --program-transform-na=* \
727   | --program-transform-n=* | --program-transform-=* \
728   | --program-transform=* | --program-transfor=* \
729   | --program-transfo=* | --program-transf=* \
730   | --program-trans=* | --program-tran=* \
731   | --progr-tra=* | --program-tr=* | --program-t=*)
732     program_transform_name=$ac_optarg ;;
733
734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
735   | -silent | --silent | --silen | --sile | --sil)
736     silent=yes ;;
737
738   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739     ac_prev=sbindir ;;
740   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
741   | --sbi=* | --sb=*)
742     sbindir=$ac_optarg ;;
743
744   -sharedstatedir | --sharedstatedir | --sharedstatedi \
745   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
746   | --sharedst | --shareds | --shared | --share | --shar \
747   | --sha | --sh)
748     ac_prev=sharedstatedir ;;
749   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
750   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
751   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
752   | --sha=* | --sh=*)
753     sharedstatedir=$ac_optarg ;;
754
755   -site | --site | --sit)
756     ac_prev=site ;;
757   -site=* | --site=* | --sit=*)
758     site=$ac_optarg ;;
759
760   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
761     ac_prev=srcdir ;;
762   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
763     srcdir=$ac_optarg ;;
764
765   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
766   | --syscon | --sysco | --sysc | --sys | --sy)
767     ac_prev=sysconfdir ;;
768   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
769   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
770     sysconfdir=$ac_optarg ;;
771
772   -target | --target | --targe | --targ | --tar | --ta | --t)
773     ac_prev=target_alias ;;
774   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
775     target_alias=$ac_optarg ;;
776
777   -v | -verbose | --verbose | --verbos | --verbo | --verb)
778     verbose=yes ;;
779
780   -version | --version | --versio | --versi | --vers | -V)
781     ac_init_version=: ;;
782
783   -with-* | --with-*)
784     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
785     # Reject names that are not valid shell variable names.
786     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
787       { echo "$as_me: error: invalid package name: $ac_package" >&2
788    { (exit 1); exit 1; }; }
789     ac_package=`echo $ac_package| sed 's/-/_/g'`
790     case $ac_option in
791       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
792       *) ac_optarg=yes ;;
793     esac
794     eval "with_$ac_package='$ac_optarg'" ;;
795
796   -without-* | --without-*)
797     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
798     # Reject names that are not valid shell variable names.
799     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
800       { echo "$as_me: error: invalid package name: $ac_package" >&2
801    { (exit 1); exit 1; }; }
802     ac_package=`echo $ac_package | sed 's/-/_/g'`
803     eval "with_$ac_package=no" ;;
804
805   --x)
806     # Obsolete; use --with-x.
807     with_x=yes ;;
808
809   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
810   | --x-incl | --x-inc | --x-in | --x-i)
811     ac_prev=x_includes ;;
812   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
813   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
814     x_includes=$ac_optarg ;;
815
816   -x-libraries | --x-libraries | --x-librarie | --x-librari \
817   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
818     ac_prev=x_libraries ;;
819   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
820   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
821     x_libraries=$ac_optarg ;;
822
823   -*) { echo "$as_me: error: unrecognized option: $ac_option
824 Try \`$0 --help' for more information." >&2
825    { (exit 1); exit 1; }; }
826     ;;
827
828   *=*)
829     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
832       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
833    { (exit 1); exit 1; }; }
834     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
835     eval "$ac_envvar='$ac_optarg'"
836     export $ac_envvar ;;
837
838   *)
839     # FIXME: should be removed in autoconf 3.0.
840     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
841     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
843     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
844     ;;
845
846   esac
847 done
848
849 if test -n "$ac_prev"; then
850   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
851   { echo "$as_me: error: missing argument to $ac_option" >&2
852    { (exit 1); exit 1; }; }
853 fi
854
855 # Be sure to have absolute paths.
856 for ac_var in exec_prefix prefix
857 do
858   eval ac_val=$`echo $ac_var`
859   case $ac_val in
860     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
861     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
862    { (exit 1); exit 1; }; };;
863   esac
864 done
865
866 # Be sure to have absolute paths.
867 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
868               localstatedir libdir includedir oldincludedir infodir mandir
869 do
870   eval ac_val=$`echo $ac_var`
871   case $ac_val in
872     [\\/$]* | ?:[\\/]* ) ;;
873     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
874    { (exit 1); exit 1; }; };;
875   esac
876 done
877
878 # There might be people who depend on the old broken behavior: `$host'
879 # used to hold the argument of --host etc.
880 # FIXME: To remove some day.
881 build=$build_alias
882 host=$host_alias
883 target=$target_alias
884
885 # FIXME: To remove some day.
886 if test "x$host_alias" != x; then
887   if test "x$build_alias" = x; then
888     cross_compiling=maybe
889     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
890     If a cross compiler is detected then cross compile mode will be used." >&2
891   elif test "x$build_alias" != "x$host_alias"; then
892     cross_compiling=yes
893   fi
894 fi
895
896 ac_tool_prefix=
897 test -n "$host_alias" && ac_tool_prefix=$host_alias-
898
899 test "$silent" = yes && exec 6>/dev/null
900
901
902 # Find the source files, if location was not specified.
903 if test -z "$srcdir"; then
904   ac_srcdir_defaulted=yes
905   # Try the directory containing this script, then its parent.
906   ac_confdir=`(dirname "$0") 2>/dev/null ||
907 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
908          X"$0" : 'X\(//\)[^/]' \| \
909          X"$0" : 'X\(//\)$' \| \
910          X"$0" : 'X\(/\)' \| \
911          .     : '\(.\)' 2>/dev/null ||
912 echo X"$0" |
913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
915           /^X\(\/\/\)$/{ s//\1/; q; }
916           /^X\(\/\).*/{ s//\1/; q; }
917           s/.*/./; q'`
918   srcdir=$ac_confdir
919   if test ! -r $srcdir/$ac_unique_file; then
920     srcdir=..
921   fi
922 else
923   ac_srcdir_defaulted=no
924 fi
925 if test ! -r $srcdir/$ac_unique_file; then
926   if test "$ac_srcdir_defaulted" = yes; then
927     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
928    { (exit 1); exit 1; }; }
929   else
930     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
931    { (exit 1); exit 1; }; }
932   fi
933 fi
934 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
935   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
936    { (exit 1); exit 1; }; }
937 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
938 ac_env_build_alias_set=${build_alias+set}
939 ac_env_build_alias_value=$build_alias
940 ac_cv_env_build_alias_set=${build_alias+set}
941 ac_cv_env_build_alias_value=$build_alias
942 ac_env_host_alias_set=${host_alias+set}
943 ac_env_host_alias_value=$host_alias
944 ac_cv_env_host_alias_set=${host_alias+set}
945 ac_cv_env_host_alias_value=$host_alias
946 ac_env_target_alias_set=${target_alias+set}
947 ac_env_target_alias_value=$target_alias
948 ac_cv_env_target_alias_set=${target_alias+set}
949 ac_cv_env_target_alias_value=$target_alias
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures GNU Automake 1.9a to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of GNU Automake 1.9a:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Report bugs to <bug-automake@gnu.org>.
1028 _ACEOF
1029 fi
1030
1031 if test "$ac_init_help" = "recursive"; then
1032   # If there are subdirs, report their specific --help.
1033   ac_popdir=`pwd`
1034   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1035     test -d $ac_dir || continue
1036     ac_builddir=.
1037
1038 if test "$ac_dir" != .; then
1039   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1040   # A "../" for each directory in $ac_dir_suffix.
1041   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1042 else
1043   ac_dir_suffix= ac_top_builddir=
1044 fi
1045
1046 case $srcdir in
1047   .)  # No --srcdir option.  We are building in place.
1048     ac_srcdir=.
1049     if test -z "$ac_top_builddir"; then
1050        ac_top_srcdir=.
1051     else
1052        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1053     fi ;;
1054   [\\/]* | ?:[\\/]* )  # Absolute path.
1055     ac_srcdir=$srcdir$ac_dir_suffix;
1056     ac_top_srcdir=$srcdir ;;
1057   *) # Relative path.
1058     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1059     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1060 esac
1061
1062 # Do not use `cd foo && pwd` to compute absolute paths, because
1063 # the directories may not exist.
1064 case `pwd` in
1065 .) ac_abs_builddir="$ac_dir";;
1066 *)
1067   case "$ac_dir" in
1068   .) ac_abs_builddir=`pwd`;;
1069   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1070   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1071   esac;;
1072 esac
1073 case $ac_abs_builddir in
1074 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 *)
1076   case ${ac_top_builddir}. in
1077   .) ac_abs_top_builddir=$ac_abs_builddir;;
1078   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1079   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1080   esac;;
1081 esac
1082 case $ac_abs_builddir in
1083 .) ac_abs_srcdir=$ac_srcdir;;
1084 *)
1085   case $ac_srcdir in
1086   .) ac_abs_srcdir=$ac_abs_builddir;;
1087   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1088   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1089   esac;;
1090 esac
1091 case $ac_abs_builddir in
1092 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 *)
1094   case $ac_top_srcdir in
1095   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1096   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1097   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1098   esac;;
1099 esac
1100
1101     cd $ac_dir
1102     # Check for guested configure; otherwise get Cygnus style configure.
1103     if test -f $ac_srcdir/configure.gnu; then
1104       echo
1105       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1106     elif test -f $ac_srcdir/configure; then
1107       echo
1108       $SHELL $ac_srcdir/configure  --help=recursive
1109     elif test -f $ac_srcdir/configure.ac ||
1110            test -f $ac_srcdir/configure.in; then
1111       echo
1112       $ac_configure --help
1113     else
1114       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115     fi
1116     cd $ac_popdir
1117   done
1118 fi
1119
1120 test -n "$ac_init_help" && exit 0
1121 if $ac_init_version; then
1122   cat <<\_ACEOF
1123 GNU Automake configure 1.9a
1124 generated by GNU Autoconf 2.59a
1125
1126 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1127 2003, 2004 Free Software Foundation, Inc.
1128 This configure script is free software; the Free Software Foundation
1129 gives unlimited permission to copy, distribute and modify it.
1130 _ACEOF
1131   exit 0
1132 fi
1133 exec 5>config.log
1134 cat >&5 <<_ACEOF
1135 This file contains any messages produced by compilers while
1136 running configure, to aid debugging if configure makes a mistake.
1137
1138 It was created by GNU Automake $as_me 1.9a, which was
1139 generated by GNU Autoconf 2.59a.  Invocation command line was
1140
1141   $ $0 $@
1142
1143 _ACEOF
1144 {
1145 cat <<_ASUNAME
1146 ## --------- ##
1147 ## Platform. ##
1148 ## --------- ##
1149
1150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1155
1156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1157 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1158
1159 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1160 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1162 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1163 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1164 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1165 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1166
1167 _ASUNAME
1168
1169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1170 for as_dir in $PATH
1171 do
1172   IFS=$as_save_IFS
1173   test -z "$as_dir" && as_dir=.
1174   echo "PATH: $as_dir"
1175 done
1176
1177 } >&5
1178
1179 cat >&5 <<_ACEOF
1180
1181
1182 ## ----------- ##
1183 ## Core tests. ##
1184 ## ----------- ##
1185
1186 _ACEOF
1187
1188
1189 # Keep a trace of the command line.
1190 # Strip out --no-create and --no-recursion so they do not pile up.
1191 # Strip out --silent because we don't want to record it for future runs.
1192 # Also quote any args containing shell meta-characters.
1193 # Make two passes to allow for proper duplicate-argument suppression.
1194 ac_configure_args=
1195 ac_configure_args0=
1196 ac_configure_args1=
1197 ac_sep=
1198 ac_must_keep_next=false
1199 for ac_pass in 1 2
1200 do
1201   for ac_arg
1202   do
1203     case $ac_arg in
1204     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1205     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206     | -silent | --silent | --silen | --sile | --sil)
1207       continue ;;
1208     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1210     esac
1211     case $ac_pass in
1212     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1213     2)
1214       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1215       if test $ac_must_keep_next = true; then
1216         ac_must_keep_next=false # Got value, back to normal.
1217       else
1218         case $ac_arg in
1219           *=* | --config-cache | -C | -disable-* | --disable-* \
1220           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1221           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1222           | -with-* | --with-* | -without-* | --without-* | --x)
1223             case "$ac_configure_args0 " in
1224               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1225             esac
1226             ;;
1227           -* ) ac_must_keep_next=true ;;
1228         esac
1229       fi
1230       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1231       # Get rid of the leading space.
1232       ac_sep=" "
1233       ;;
1234     esac
1235   done
1236 done
1237 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1238 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1239
1240 # When interrupted or exit'd, cleanup temporary files, and complete
1241 # config.log.  We remove comments because anyway the quotes in there
1242 # would cause problems or look ugly.
1243 # WARNING: Be sure not to use single quotes in there, as some shells,
1244 # such as our DU 5.0 friend, will then `close' the trap.
1245 trap 'exit_status=$?
1246   # Save into config.log some information that might help in debugging.
1247   {
1248     echo
1249
1250     cat <<\_ASBOX
1251 ## ---------------- ##
1252 ## Cache variables. ##
1253 ## ---------------- ##
1254 _ASBOX
1255     echo
1256     # The following way of writing the cache mishandles newlines in values,
1257 {
1258   (set) 2>&1 |
1259     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1260     *ac_space=\ *)
1261       sed -n \
1262         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1264       ;;
1265     *)
1266       sed -n \
1267         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1268       ;;
1269     esac;
1270 }
1271     echo
1272
1273     cat <<\_ASBOX
1274 ## ----------------- ##
1275 ## Output variables. ##
1276 ## ----------------- ##
1277 _ASBOX
1278     echo
1279     for ac_var in $ac_subst_vars
1280     do
1281       eval ac_val=$`echo $ac_var`
1282       echo "$ac_var='"'"'$ac_val'"'"'"
1283     done | sort
1284     echo
1285
1286     if test -n "$ac_subst_files"; then
1287       cat <<\_ASBOX
1288 ## ------------- ##
1289 ## Output files. ##
1290 ## ------------- ##
1291 _ASBOX
1292       echo
1293       for ac_var in $ac_subst_files
1294       do
1295         eval ac_val=$`echo $ac_var`
1296         echo "$ac_var='"'"'$ac_val'"'"'"
1297       done | sort
1298       echo
1299     fi
1300
1301     if test -s confdefs.h; then
1302       cat <<\_ASBOX
1303 ## ----------- ##
1304 ## confdefs.h. ##
1305 ## ----------- ##
1306 _ASBOX
1307       echo
1308       sed "/^$/d" confdefs.h | sort
1309       echo
1310     fi
1311     test "$ac_signal" != 0 &&
1312       echo "$as_me: caught signal $ac_signal"
1313     echo "$as_me: exit $exit_status"
1314   } >&5
1315   rm -f core *.core &&
1316   rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1317     exit $exit_status
1318      ' 0
1319 for ac_signal in 1 2 13 15; do
1320   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1321 done
1322 ac_signal=0
1323
1324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1325 rm -f -r conftest* confdefs.h
1326 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1327 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1328 ac_space=' '
1329 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1330
1331 # Predefined preprocessor variables.
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_NAME "$PACKAGE_NAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_STRING "$PACKAGE_STRING"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1355 _ACEOF
1356
1357
1358 # Let the site file select an alternate cache file if it wants to.
1359 # Prefer explicitly selected file to automatically selected ones.
1360 if test -z "$CONFIG_SITE"; then
1361   if test "x$prefix" != xNONE; then
1362     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1363   else
1364     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1365   fi
1366 fi
1367 for ac_site_file in $CONFIG_SITE; do
1368   if test -r "$ac_site_file"; then
1369     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1370 echo "$as_me: loading site script $ac_site_file" >&6;}
1371     sed 's/^/| /' "$ac_site_file" >&5
1372     . "$ac_site_file"
1373   fi
1374 done
1375
1376 if test -r "$cache_file"; then
1377   # Some versions of bash will fail to source /dev/null (special
1378   # files actually), so we avoid doing that.
1379   if test -f "$cache_file"; then
1380     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1381 echo "$as_me: loading cache $cache_file" >&6;}
1382     case $cache_file in
1383       [\\/]* | ?:[\\/]* ) . $cache_file;;
1384       *)                      . ./$cache_file;;
1385     esac
1386   fi
1387 else
1388   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1389 echo "$as_me: creating cache $cache_file" >&6;}
1390   >$cache_file
1391 fi
1392
1393 # Check that the precious variables saved in the cache have kept the same
1394 # value.
1395 ac_cache_corrupted=false
1396 for ac_var in `(set) 2>&1 |
1397                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1398   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1399   eval ac_new_set=\$ac_env_${ac_var}_set
1400   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1401   eval ac_new_val="\$ac_env_${ac_var}_value"
1402   case $ac_old_set,$ac_new_set in
1403     set,)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,set)
1408       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1410       ac_cache_corrupted=: ;;
1411     ,);;
1412     *)
1413       if test "x$ac_old_val" != "x$ac_new_val"; then
1414         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1417 echo "$as_me:   former value:  $ac_old_val" >&2;}
1418         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1419 echo "$as_me:   current value: $ac_new_val" >&2;}
1420         ac_cache_corrupted=:
1421       fi;;
1422   esac
1423   # Pass precious variables to config.status.
1424   if test "$ac_new_set" = set; then
1425     case $ac_new_val in
1426     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1427       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1428     *) ac_arg=$ac_var=$ac_new_val ;;
1429     esac
1430     case " $ac_configure_args " in
1431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1432       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1433     esac
1434   fi
1435 done
1436 if $ac_cache_corrupted; then
1437   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1439   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1441    { (exit 1); exit 1; }; }
1442 fi
1443
1444 ac_ext=c
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478 ac_aux_dir=
1479 for ac_dir in lib $srcdir/lib; do
1480   if test -f $ac_dir/install-sh; then
1481     ac_aux_dir=$ac_dir
1482     ac_install_sh="$ac_aux_dir/install-sh -c"
1483     break
1484   elif test -f $ac_dir/install.sh; then
1485     ac_aux_dir=$ac_dir
1486     ac_install_sh="$ac_aux_dir/install.sh -c"
1487     break
1488   elif test -f $ac_dir/shtool; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/shtool install -c"
1491     break
1492   fi
1493 done
1494 if test -z "$ac_aux_dir"; then
1495   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in lib $srcdir/lib" >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in lib $srcdir/lib" >&2;}
1497    { (exit 1); exit 1; }; }
1498 fi
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503
1504 # Make sure we can run config.sub.
1505 $ac_config_sub sun4 >/dev/null 2>&1 ||
1506   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1507 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1508    { (exit 1); exit 1; }; }
1509
1510 echo "$as_me:$LINENO: checking build system type" >&5
1511 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1512 if test "${ac_cv_build+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   ac_cv_build_alias=$build_alias
1516 test -z "$ac_cv_build_alias" &&
1517   ac_cv_build_alias=`$ac_config_guess`
1518 test -z "$ac_cv_build_alias" &&
1519   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1520 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1521    { (exit 1); exit 1; }; }
1522 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1523   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1524 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1525    { (exit 1); exit 1; }; }
1526
1527 fi
1528 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1529 echo "${ECHO_T}$ac_cv_build" >&6
1530 build=$ac_cv_build
1531 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534
1535
1536
1537 # Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it;
1538 # this way we can run Autoconf tests from configure without being
1539 # bothered by `missing'.
1540 am_AUTOCONF=${AUTOCONF-autoconf}
1541
1542 am__api_version="1.9a"
1543 # Find a good install program.  We prefer a C program (faster),
1544 # so one script is as good as another.  But avoid the broken or
1545 # incompatible versions:
1546 # SysV /etc/install, /usr/sbin/install
1547 # SunOS /usr/etc/install
1548 # IRIX /sbin/install
1549 # AIX /bin/install
1550 # AmigaOS /C/install, which installs bootblocks on floppy discs
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554 # OS/2's system install, which has a completely different semantic
1555 # ./install, which can be erroneously created by make from ./install.sh.
1556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558 if test -z "$INSTALL"; then
1559 if test "${ac_cv_path_install+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   # Account for people who put trailing slashes in PATH elements.
1568 case $as_dir/ in
1569   ./ | .// | /cC/* | \
1570   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572   /usr/ucb/* ) ;;
1573   *)
1574     # OSF1 and SCO ODT 3.0 have their own names for install.
1575     # Don't use installbsd from OSF since it installs stuff as root
1576     # by default.
1577     for ac_prog in ginstall scoinst install; do
1578       for ac_exec_ext in '' $ac_executable_extensions; do
1579         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580           if test $ac_prog = install &&
1581             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582             # AIX install.  It has an incompatible calling convention.
1583             :
1584           elif test $ac_prog = install &&
1585             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586             # program-specific install script used by HP pwplus--don't use.
1587             :
1588           else
1589             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590             break 3
1591           fi
1592         fi
1593       done
1594     done
1595     ;;
1596 esac
1597 done
1598
1599
1600 fi
1601   if test "${ac_cv_path_install+set}" = set; then
1602     INSTALL=$ac_cv_path_install
1603   else
1604     # As a last resort, use the slow shell script.  We don't cache a
1605     # path for INSTALL within a source directory, because that will
1606     # break other packages using the cache if that directory is
1607     # removed, or if the path is relative.
1608     INSTALL=$ac_install_sh
1609   fi
1610 fi
1611 echo "$as_me:$LINENO: result: $INSTALL" >&5
1612 echo "${ECHO_T}$INSTALL" >&6
1613
1614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615 # It thinks the first close brace ends the variable substitution.
1616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617
1618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619
1620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621
1622 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1623 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 # Just in case
1625 sleep 1
1626 echo timestamp > conftest.file
1627 # Do `set' in a subshell so we don't clobber the current shell's
1628 # arguments.  Must try -L first in case configure is actually a
1629 # symlink; some systems play weird games with the mod time of symlinks
1630 # (eg FreeBSD returns the mod time of the symlink's containing
1631 # directory).
1632 if (
1633    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634    if test "$*" = "X"; then
1635       # -L didn't work.
1636       set X `ls -t $srcdir/configure conftest.file`
1637    fi
1638    rm -f conftest.file
1639    if test "$*" != "X $srcdir/configure conftest.file" \
1640       && test "$*" != "X conftest.file $srcdir/configure"; then
1641
1642       # If neither matched, then we have a broken ls.  This can happen
1643       # if, for instance, CONFIG_SHELL is bash and it inherits a
1644       # broken ls alias from the environment.  This has actually
1645       # happened.  Such a system could not be considered "sane".
1646       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1647 alias in your environment" >&5
1648 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1649 alias in your environment" >&2;}
1650    { (exit 1); exit 1; }; }
1651    fi
1652
1653    test "$2" = conftest.file
1654    )
1655 then
1656    # Ok.
1657    :
1658 else
1659    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660 Check your system clock" >&5
1661 echo "$as_me: error: newly created file is older than distributed files!
1662 Check your system clock" >&2;}
1663    { (exit 1); exit 1; }; }
1664 fi
1665 echo "$as_me:$LINENO: result: yes" >&5
1666 echo "${ECHO_T}yes" >&6
1667 test "$program_prefix" != NONE &&
1668   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669 # Use a double $ so make ignores it.
1670 test "$program_suffix" != NONE &&
1671   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672 # Double any \ or $.  echo might interpret backslashes.
1673 # By default was `s,x,x', remove it if useless.
1674 cat <<\_ACEOF >conftest.sed
1675 s/[\\$]/&&/g;s/;s,x,x,$//
1676 _ACEOF
1677 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678 rm -f conftest.sed
1679
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1682
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686   am_missing_run="$MISSING --run "
1687 else
1688   am_missing_run=
1689   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691 fi
1692
1693 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1694   # We used to keeping the `.' as first argument, in order to
1695   # allow $(mkdir_p) to be used without argument.  As in
1696   #   $(mkdir_p) $(somedir)
1697   # where $(somedir) is conditionally defined.  However this is wrong
1698   # for two reasons:
1699   #  1. if the package is installed by a user who cannot write `.'
1700   #     make install will fail,
1701   #  2. the above comment should most certainly read
1702   #     $(mkdir_p) $(DESTDIR)$(somedir)
1703   #     so it does not work when $(somedir) is undefined and
1704   #     $(DESTDIR) is not.
1705   #  To support the latter case, we have to write
1706   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1707   #  so the `.' trick is pointless.
1708   mkdir_p='mkdir -p --'
1709 else
1710   # On NextStep and OpenStep, the `mkdir' command does not
1711   # recognize any option.  It will interpret all options as
1712   # directories to create, and then abort because `.' already
1713   # exists.
1714   for d in ./-p ./--version;
1715   do
1716     test -d $d && rmdir $d
1717   done
1718   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1719   if test -f "$ac_aux_dir/mkinstalldirs"; then
1720     mkdir_p='$(mkinstalldirs)'
1721   else
1722     mkdir_p='$(install_sh) -d'
1723   fi
1724 fi
1725
1726 for ac_prog in gawk mawk nawk awk
1727 do
1728   # Extract the first word of "$ac_prog", so it can be a program name with args.
1729 set dummy $ac_prog; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_AWK+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   if test -n "$AWK"; then
1736   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1737 else
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   for ac_exec_ext in '' $ac_executable_extensions; do
1744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745     ac_cv_prog_AWK="$ac_prog"
1746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747     break 2
1748   fi
1749 done
1750 done
1751
1752 fi
1753 fi
1754 AWK=$ac_cv_prog_AWK
1755 if test -n "$AWK"; then
1756   echo "$as_me:$LINENO: result: $AWK" >&5
1757 echo "${ECHO_T}$AWK" >&6
1758 else
1759   echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1761 fi
1762
1763   test -n "$AWK" && break
1764 done
1765
1766 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1767 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1768 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1769 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1770   echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772   cat >conftest.make <<\_ACEOF
1773 all:
1774         @echo 'ac_maketemp="$(MAKE)"'
1775 _ACEOF
1776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1777 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1778 if test -n "$ac_maketemp"; then
1779   eval ac_cv_prog_make_${ac_make}_set=yes
1780 else
1781   eval ac_cv_prog_make_${ac_make}_set=no
1782 fi
1783 rm -f conftest.make
1784 fi
1785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1786   echo "$as_me:$LINENO: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1788   SET_MAKE=
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792   SET_MAKE="MAKE=${MAKE-make}"
1793 fi
1794
1795 rm -rf .tst 2>/dev/null
1796 mkdir .tst 2>/dev/null
1797 if test -d .tst; then
1798   am__leading_dot=.
1799 else
1800   am__leading_dot=_
1801 fi
1802 rmdir .tst 2>/dev/null
1803
1804 # test to see if srcdir already configured
1805 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1806    test -f $srcdir/config.status; then
1807   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1808 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811
1812 # test whether we have cygpath
1813 if test -z "$CYGPATH_W"; then
1814   if (cygpath --version) >/dev/null 2>/dev/null; then
1815     CYGPATH_W='cygpath -w'
1816   else
1817     CYGPATH_W=echo
1818   fi
1819 fi
1820
1821
1822 # Define the identity of the package.
1823  PACKAGE='automake'
1824  VERSION='1.9a'
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE "$PACKAGE"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define VERSION "$VERSION"
1834 _ACEOF
1835
1836 # Some tools Automake needs.
1837
1838 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1839
1840
1841 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1842
1843
1844 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1845
1846
1847 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1848
1849
1850 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1851
1852 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1853
1854 # Installed binaries are usually stripped using `strip' when the user
1855 # run `make install-strip'.  However `strip' might not be the right
1856 # tool to use in cross-compilation environments, therefore Automake
1857 # will honor the `STRIP' environment variable to overrule this program.
1858 if test "$cross_compiling" != no; then
1859   if test -n "$ac_tool_prefix"; then
1860   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1861 set dummy ${ac_tool_prefix}strip; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_STRIP+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   if test -n "$STRIP"; then
1868   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875   for ac_exec_ext in '' $ac_executable_extensions; do
1876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879     break 2
1880   fi
1881 done
1882 done
1883
1884 fi
1885 fi
1886 STRIP=$ac_cv_prog_STRIP
1887 if test -n "$STRIP"; then
1888   echo "$as_me:$LINENO: result: $STRIP" >&5
1889 echo "${ECHO_T}$STRIP" >&6
1890 else
1891   echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895 fi
1896 if test -z "$ac_cv_prog_STRIP"; then
1897   ac_ct_STRIP=$STRIP
1898   # Extract the first word of "strip", so it can be a program name with args.
1899 set dummy strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$ac_ct_STRIP"; then
1906   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_ac_ct_STRIP="strip"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925 if test -n "$ac_ct_STRIP"; then
1926   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927 echo "${ECHO_T}$ac_ct_STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933   if test "x$ac_ct_STRIP" = x; then
1934     STRIP=":"
1935   else
1936     if test "$build" != "$host"; then
1937       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1938 whose name does not start with the host triplet.  If you think this
1939 configuration is useful to you, please write to autoconf@gnu.org." >&5
1940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1941 whose name does not start with the host triplet.  If you think this
1942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1943     fi
1944     STRIP=$ac_ct_STRIP
1945   fi
1946 else
1947   STRIP="$ac_cv_prog_STRIP"
1948 fi
1949
1950 fi
1951 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1952
1953 # We need awk for the "check" target.  The system "awk" is bad on
1954 # some platforms.
1955 # Always define AMTAR for backward compatibility.
1956
1957 AMTAR=${AMTAR-"${am_missing_run}tar"}
1958
1959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1960
1961
1962
1963
1964
1965
1966 # The API version is the base version.  We must guarantee
1967 # compatibility for all releases with the same API version.
1968 # Our current rule is that:
1969 # * All releases, including the prereleases, in an X.Y series
1970 #   are compatible.  So 1.5.1c is compatible with 1.5.
1971 # * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
1972 #   aren't the same.
1973 APIVERSION=`echo "$VERSION" | sed -e 's/^\([0-9]*\.[0-9]*[a-z]*\).*$/\1/'`
1974
1975
1976 # A versioned directory, defined here for convenience.
1977 pkgvdatadir="\${datadir}/automake-${APIVERSION}"
1978
1979
1980 # $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
1981 # hence `.' is really what we want for perllibdir, libdir, and acdir.
1982 ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal --acdir=m4"
1983 AUTOMAKE="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/automake --libdir=lib"
1984
1985 # Extract the first word of "perl", so it can be a program name with args.
1986 set dummy perl; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_path_PERL+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   case $PERL in
1993   [\\/]* | ?:[\\/]*)
1994   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1995   ;;
1996   *)
1997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011   ;;
2012 esac
2013 fi
2014 PERL=$ac_cv_path_PERL
2015
2016 if test -n "$PERL"; then
2017   echo "$as_me:$LINENO: result: $PERL" >&5
2018 echo "${ECHO_T}$PERL" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024 if test -z "$PERL"; then
2025    { { echo "$as_me:$LINENO: error: perl not found" >&5
2026 echo "$as_me: error: perl not found" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029 $PERL -e 'require 5.005;' || {
2030    { { echo "$as_me:$LINENO: error: perl 5.005 or better is required" >&5
2031 echo "$as_me: error: perl 5.005 or better is required" >&2;}
2032    { (exit 1); exit 1; }; }
2033 }
2034
2035 # The test suite will skip some tests if tex is absent.
2036 # Extract the first word of "tex", so it can be a program name with args.
2037 set dummy tex; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_TEX+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test -n "$TEX"; then
2044   ac_cv_prog_TEX="$TEX" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053     ac_cv_prog_TEX="tex"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059
2060 fi
2061 fi
2062 TEX=$ac_cv_prog_TEX
2063 if test -n "$TEX"; then
2064   echo "$as_me:$LINENO: result: $TEX" >&5
2065 echo "${ECHO_T}$TEX" >&6
2066 else
2067   echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2069 fi
2070
2071
2072 # Test for Autoconf.  We run Autoconf in a subdirectory to ease
2073 # deletion of any files created (such as those added to
2074 # autom4te.cache).  We used to perform only the last of the three
2075 # following tests, but some users were unable to figure out that their
2076 # installation was broken since --version appeared to work.
2077
2078 echo "$as_me:$LINENO: checking whether autoconf is installed" >&5
2079 echo $ECHO_N "checking whether autoconf is installed... $ECHO_C" >&6
2080 if test "${am_cv_autoconf_installed+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if { echo "$as_me:$LINENO: eval $am_AUTOCONF --version" >&5
2084    (eval $am_AUTOCONF --version) >&5 2>&5
2085    ac_status=$?
2086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087    (exit $ac_status); };
2088 then
2089   am_cv_autoconf_installed=yes
2090 else
2091   am_cv_autoconf_installed=no
2092 fi
2093 fi
2094 echo "$as_me:$LINENO: result: $am_cv_autoconf_installed" >&5
2095 echo "${ECHO_T}$am_cv_autoconf_installed" >&6
2096 if test "$am_cv_autoconf_installed" = no; then
2097   { { echo "$as_me:$LINENO: error: Autoconf 2.58 or better is required.
2098     Please make sure it is installed and in your PATH." >&5
2099 echo "$as_me: error: Autoconf 2.58 or better is required.
2100     Please make sure it is installed and in your PATH." >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 echo "$as_me:$LINENO: checking whether autoconf works" >&5
2105 echo $ECHO_N "checking whether autoconf works... $ECHO_C" >&6
2106 if test "${am_cv_autoconf_works+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   mkdir conftest
2110 echo 'AC''_INIT' > conftest/conftest.ac
2111 if { echo "$as_me:$LINENO: cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac" >&5
2112    (cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
2113    ac_status=$?
2114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115    (exit $ac_status); };
2116 then
2117   am_cv_autoconf_works=yes
2118 else
2119   am_cv_autoconf_works=no
2120 fi
2121 rm -rf conftest
2122 fi
2123 echo "$as_me:$LINENO: result: $am_cv_autoconf_works" >&5
2124 echo "${ECHO_T}$am_cv_autoconf_works" >&6
2125 if test "$am_cv_autoconf_works" = no; then
2126   { { echo "$as_me:$LINENO: error: The installed version of autoconf does not work.
2127     Please check config.log for error messages before this one." >&5
2128 echo "$as_me: error: The installed version of autoconf does not work.
2129     Please check config.log for error messages before this one." >&2;}
2130    { (exit 1); exit 1; }; }
2131 fi
2132
2133 echo "$as_me:$LINENO: checking whether autoconf is recent enough" >&5
2134 echo $ECHO_N "checking whether autoconf is recent enough... $ECHO_C" >&6
2135 if test "${am_cv_autoconf_version+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   mkdir conftest
2139 echo 'AC''_PREREQ(2.58)' > conftest/conftest.ac
2140 if { echo "$as_me:$LINENO: cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac" >&5
2141    (cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
2142    ac_status=$?
2143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144    (exit $ac_status); };
2145 then
2146   am_cv_autoconf_version=yes
2147 else
2148   am_cv_autoconf_version=no
2149 fi
2150 rm -rf conftest
2151 fi
2152 echo "$as_me:$LINENO: result: $am_cv_autoconf_version" >&5
2153 echo "${ECHO_T}$am_cv_autoconf_version" >&6
2154 if test "$am_cv_autoconf_version" = no; then
2155   { { echo "$as_me:$LINENO: error: Autoconf 2.58 or better is required." >&5
2156 echo "$as_me: error: Autoconf 2.58 or better is required." >&2;}
2157    { (exit 1); exit 1; }; }
2158 fi
2159
2160 # Test for ln.  We need use it to install the versioned binaries.
2161 echo "$as_me:$LINENO: checking whether ln works" >&5
2162 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
2163 if test "${am_cv_prog_ln+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166
2167 rm -f conftest conftest.file
2168 : >conftest.file
2169 if ln conftest.file conftest 2>/dev/null; then
2170   am_cv_prog_ln=ln
2171 else
2172   am_cv_prog_ln='cp -p'
2173 fi
2174 rm -f conftest conftest.file
2175 fi
2176
2177 LN=$am_cv_prog_ln
2178
2179 result=no
2180 test "x$am_cv_prog_ln" = xln && result=yes
2181 echo "$as_me:$LINENO: result: $result" >&5
2182 echo "${ECHO_T}$result" >&6
2183
2184 # The amount we should wait after modifying files depends on the platform.
2185 # On Windows '95, '98 and ME, files modifications have 2-seconds
2186 # granularity and can be up to 3 seconds in the future w.r.t. the
2187 # system clock.  When it is important to ensure one file is older
2188 # than another we wait at least 5 seconds between creations.
2189 case $build in
2190   *-pc-msdosdjgpp) MODIFICATION_DELAY=5;;
2191   *)               MODIFICATION_DELAY=2;;
2192 esac
2193
2194
2195 # Test for things needed by the test suite.
2196 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2197 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
2198 if test "${ac_cv_path_GREP+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   # Extract the first word of "grep ggrep" to use in msg output
2202 if test -z "$GREP"; then
2203 set dummy grep ggrep; ac_prog_name=$2
2204 if test "${ac_cv_path_GREP+set}" = set; then
2205   echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207   # Create a temporary directory, and hook for its removal unless debugging.
2208 $debug ||
2209 {
2210   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
2211   trap '{ (exit 1); exit 1; }' 1 2 13 15
2212 }
2213
2214 # Create a (secure) tmp directory for tmp files.
2215 : ${TMPDIR=/tmp}
2216 {
2217   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
2218   test -n "$tmp" && test -d "$tmp"
2219 }  ||
2220 {
2221   tmp=$TMPDIR/GREP$$-$RANDOM
2222   (umask 077 && mkdir $tmp)
2223 } ||
2224 {
2225    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2226    { (exit 1); exit 1; }
2227 }
2228 ac_path_GREP_found=false
2229 # Loop through the user's path and test for each of PROGNAME-LIST
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 as_dummy="$PATH:/usr/xpg4/bin"
2232 for as_dir in $as_dummy
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_prog in grep ggrep; do
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2239     test -f "$ac_path_GREP" || continue
2240     $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
2241   # Check for GNU ac_path_GREP and select it if it is found.
2242   # Check for GNU $ac_path_GREP
2243 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
2244   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
2245 else
2246   ac_count=0
2247   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
2248   while :
2249   do
2250     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
2251     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
2252     cp "$tmp/conftest.in" "$tmp/conftest.nl"
2253     echo 'GREP' >> "$tmp/conftest.nl"
2254     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
2255     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
2256     ac_count=`expr $ac_count + 1`
2257     if test $ac_count -gt ${ac_path_GREP_max-0}; then
2258       # Best one so far, save it but keep looking for a better one
2259       ac_cv_path_GREP="$ac_path_GREP"
2260       ac_path_GREP_max=$ac_count
2261     fi
2262     # 10*(2^10) chars as input seems more than enough
2263     test $ac_count -gt 10 && break
2264   done
2265 fi
2266
2267 fi
2268
2269     $ac_path_GREP_found && break 3
2270   done
2271 done
2272
2273 done
2274
2275 rm -rf "$tmp"
2276
2277 fi
2278
2279 GREP="$ac_cv_path_GREP"
2280 if test -z "$GREP"; then
2281   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
2282 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
2283    { (exit 1); exit 1; }; }
2284 fi
2285
2286 fi
2287
2288
2289 fi
2290 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2291 echo "${ECHO_T}$ac_cv_path_GREP" >&6
2292  GREP="$ac_cv_path_GREP"
2293
2294
2295 echo "$as_me:$LINENO: checking for egrep" >&5
2296 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2297 if test "${ac_cv_path_EGREP+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
2301    then ac_cv_path_EGREP="$GREP -E"
2302    else
2303      # Extract the first word of "egrep" to use in msg output
2304 if test -z "$EGREP"; then
2305 set dummy egrep; ac_prog_name=$2
2306 if test "${ac_cv_path_EGREP+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   # Create a temporary directory, and hook for its removal unless debugging.
2310 $debug ||
2311 {
2312   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
2313   trap '{ (exit 1); exit 1; }' 1 2 13 15
2314 }
2315
2316 # Create a (secure) tmp directory for tmp files.
2317 : ${TMPDIR=/tmp}
2318 {
2319   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
2320   test -n "$tmp" && test -d "$tmp"
2321 }  ||
2322 {
2323   tmp=$TMPDIR/EGREP$$-$RANDOM
2324   (umask 077 && mkdir $tmp)
2325 } ||
2326 {
2327    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2328    { (exit 1); exit 1; }
2329 }
2330 ac_path_EGREP_found=false
2331 # Loop through the user's path and test for each of PROGNAME-LIST
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 as_dummy="$PATH:/usr/xpg4/bin"
2334 for as_dir in $as_dummy
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_prog in egrep; do
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2341     test -f "$ac_path_EGREP" || continue
2342     $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
2343   # Check for GNU ac_path_EGREP and select it if it is found.
2344   # Check for GNU $ac_path_EGREP
2345 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
2346   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
2347 else
2348   ac_count=0
2349   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
2350   while :
2351   do
2352     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
2353     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
2354     cp "$tmp/conftest.in" "$tmp/conftest.nl"
2355     echo 'EGREP' >> "$tmp/conftest.nl"
2356     "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
2357     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
2358     ac_count=`expr $ac_count + 1`
2359     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2360       # Best one so far, save it but keep looking for a better one
2361       ac_cv_path_EGREP="$ac_path_EGREP"
2362       ac_path_EGREP_max=$ac_count
2363     fi
2364     # 10*(2^10) chars as input seems more than enough
2365     test $ac_count -gt 10 && break
2366   done
2367 fi
2368
2369 fi
2370
2371     $ac_path_EGREP_found && break 3
2372   done
2373 done
2374
2375 done
2376
2377 rm -rf "$tmp"
2378
2379 fi
2380
2381 EGREP="$ac_cv_path_EGREP"
2382 if test -z "$EGREP"; then
2383   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
2384 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
2385    { (exit 1); exit 1; }; }
2386 fi
2387
2388 fi
2389
2390
2391    fi
2392 fi
2393 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2394 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2395  EGREP="$ac_cv_path_EGREP"
2396
2397
2398 echo "$as_me:$LINENO: checking for fgrep" >&5
2399 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
2400 if test "${ac_cv_path_FGREP+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if echo 'ab*c' | ($GREP -F 'ab*c') >/dev/null 2>&1
2404    then ac_cv_path_FGREP="$GREP -F"
2405    else
2406      # Extract the first word of "fgrep" to use in msg output
2407 if test -z "$FGREP"; then
2408 set dummy fgrep; ac_prog_name=$2
2409 if test "${ac_cv_path_FGREP+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   # Create a temporary directory, and hook for its removal unless debugging.
2413 $debug ||
2414 {
2415   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
2416   trap '{ (exit 1); exit 1; }' 1 2 13 15
2417 }
2418
2419 # Create a (secure) tmp directory for tmp files.
2420 : ${TMPDIR=/tmp}
2421 {
2422   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/FGREPXXXXXX") 2>/dev/null` &&
2423   test -n "$tmp" && test -d "$tmp"
2424 }  ||
2425 {
2426   tmp=$TMPDIR/FGREP$$-$RANDOM
2427   (umask 077 && mkdir $tmp)
2428 } ||
2429 {
2430    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2431    { (exit 1); exit 1; }
2432 }
2433 ac_path_FGREP_found=false
2434 # Loop through the user's path and test for each of PROGNAME-LIST
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 as_dummy="$PATH:/usr/xpg4/bin"
2437 for as_dir in $as_dummy
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_prog in fgrep; do
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
2444     test -f "$ac_path_FGREP" || continue
2445     $ac_path_FGREP_found || if $as_executable_p "$ac_path_FGREP"; then
2446   # Check for GNU ac_path_FGREP and select it if it is found.
2447   # Check for GNU $ac_path_FGREP
2448 if "$ac_path_FGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
2449   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:
2450 else
2451   ac_count=0
2452   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
2453   while :
2454   do
2455     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
2456     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
2457     cp "$tmp/conftest.in" "$tmp/conftest.nl"
2458     echo 'FGREP' >> "$tmp/conftest.nl"
2459     "$ac_path_FGREP" FGREP < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
2460     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
2461     ac_count=`expr $ac_count + 1`
2462     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
2463       # Best one so far, save it but keep looking for a better one
2464       ac_cv_path_FGREP="$ac_path_FGREP"
2465       ac_path_FGREP_max=$ac_count
2466     fi
2467     # 10*(2^10) chars as input seems more than enough
2468     test $ac_count -gt 10 && break
2469   done
2470 fi
2471
2472 fi
2473
2474     $ac_path_FGREP_found && break 3
2475   done
2476 done
2477
2478 done
2479
2480 rm -rf "$tmp"
2481
2482 fi
2483
2484 FGREP="$ac_cv_path_FGREP"
2485 if test -z "$FGREP"; then
2486   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
2487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 fi
2492
2493
2494    fi
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
2497 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
2498  FGREP="$ac_cv_path_FGREP"
2499
2500
2501
2502                                                                                           ac_config_files="$ac_config_files Makefile doc/Makefile lib/Automake/Makefile lib/Automake/tests/Makefile lib/Makefile lib/am/Makefile m4/Makefile tests/Makefile tests/defs"
2503
2504           ac_config_files="$ac_config_files tests/aclocal-${APIVERSION}:tests/aclocal.in"
2505
2506           ac_config_files="$ac_config_files tests/automake-${APIVERSION}:tests/automake.in"
2507
2508
2509 cat >confcache <<\_ACEOF
2510 # This file is a shell script that caches the results of configure
2511 # tests run on this system so they can be shared between configure
2512 # scripts and configure runs, see configure's option --config-cache.
2513 # It is not useful on other systems.  If it contains results you don't
2514 # want to keep, you may remove or edit it.
2515 #
2516 # config.status only pays attention to the cache file if you give it
2517 # the --recheck option to rerun configure.
2518 #
2519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2521 # following values.
2522
2523 _ACEOF
2524
2525 # The following way of writing the cache mishandles newlines in values,
2526 # but we know of no workaround that is simple, portable, and efficient.
2527 # So, don't put newlines in cache variables' values.
2528 # Ultrix sh set writes to stderr and can't be redirected directly,
2529 # and sets the high bit in the cache file unless we assign to the vars.
2530 {
2531   (set) 2>&1 |
2532     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2533     *ac_space=\ *)
2534       # `set' does not quote correctly, so add quotes (double-quote
2535       # substitution turns \\\\ into \\, and sed turns \\ into \).
2536       sed -n \
2537         "s/'/'\\\\''/g;
2538           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2539       ;;
2540     *)
2541       # `set' quotes correctly as required by POSIX, so do not add quotes.
2542       sed -n \
2543         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2544       ;;
2545     esac;
2546 } |
2547   sed '
2548      t clear
2549      : clear
2550      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2551      t end
2552      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2553      : end' >>confcache
2554 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2555   if test -w $cache_file; then
2556     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2557     cat confcache >$cache_file
2558   else
2559     echo "not updating unwritable cache $cache_file"
2560   fi
2561 fi
2562 rm -f confcache
2563
2564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2565 # Let make expand exec_prefix.
2566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2567
2568 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2569 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2570 # trailing colons and then remove the whole line if VPATH becomes empty
2571 # (actually we leave an empty line to preserve line numbers).
2572 if test "x$srcdir" = x.; then
2573   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2574 s/:*\$(srcdir):*/:/;
2575 s/:*\${srcdir}:*/:/;
2576 s/:*@srcdir@:*/:/;
2577 s/^\([^=]*=[     ]*\):*/\1/;
2578 s/:*$//;
2579 s/^[^=]*=[       ]*$//;
2580 }'
2581 fi
2582
2583 # Transform confdefs.h into DEFS.
2584 # Protect against shell expansion while executing Makefile rules.
2585 # Protect against Makefile macro expansion.
2586 #
2587 # If the first sed substitution is executed (which looks for macros that
2588 # take arguments), then we branch to the quote section.  Otherwise,
2589 # look for a macro that doesn't take arguments.
2590 cat >confdef2opt.sed <<\_ACEOF
2591 t clear
2592 : clear
2593 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2594 t quote
2595 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2596 t quote
2597 d
2598 : quote
2599 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2600 s,\[,\\&,g
2601 s,\],\\&,g
2602 s,\$,$$,g
2603 p
2604 _ACEOF
2605 # We use echo to avoid assuming a particular line-breaking character.
2606 # The extra dot is to prevent the shell from consuming trailing
2607 # line-breaks from the sub-command output.  A line-break within
2608 # single-quotes doesn't work because, if this script is created in a
2609 # platform that uses two characters for line-breaks (e.g., DOS), tr
2610 # would break.
2611 ac_LF_and_DOT=`echo; echo .`
2612 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2613 rm -f confdef2opt.sed
2614
2615
2616 ac_libobjs=
2617 ac_ltlibobjs=
2618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2619   # 1. Remove the extension, and $U if already installed.
2620   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2621   ac_i=`echo "$ac_i" | sed "$ac_script"`
2622   # 2. Add them.
2623   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2624   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2625 done
2626 LIBOBJS=$ac_libobjs
2627
2628 LTLIBOBJS=$ac_ltlibobjs
2629
2630
2631
2632 : ${CONFIG_STATUS=./config.status}
2633 ac_clean_files_save=$ac_clean_files
2634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2635 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2636 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2637 cat >$CONFIG_STATUS <<_ACEOF
2638 #! $SHELL
2639 # Generated by $as_me.
2640 # Run this file to recreate the current configuration.
2641 # Compiler output produced by configure, useful for debugging
2642 # configure, is in config.log if it exists.
2643
2644 debug=false
2645 ac_cs_recheck=false
2646 ac_cs_silent=false
2647 SHELL=\${CONFIG_SHELL-$SHELL}
2648 _ACEOF
2649
2650 cat >>$CONFIG_STATUS <<\_ACEOF
2651 ## --------------------- ##
2652 ## M4sh Initialization.  ##
2653 ## --------------------- ##
2654
2655 # Be Bourne compatible
2656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2657   emulate sh
2658   NULLCMD=:
2659   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2660   # is contrary to our usage.  Disable this feature.
2661   alias -g '${1+"$@"}'='"$@"'
2662   setopt NO_GLOB_SUBST
2663 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2664   set -o posix
2665 fi
2666 BIN_SH=xpg4; export BIN_SH # for Tru64
2667 DUALCASE=1; export DUALCASE # for MKS sh
2668
2669
2670 # PATH needs CR
2671 # Avoid depending upon Character Ranges.
2672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2675 as_cr_digits='0123456789'
2676 as_cr_alnum=$as_cr_Letters$as_cr_digits
2677
2678 # The user is always right.
2679 if test "${PATH_SEPARATOR+set}" != set; then
2680   echo "#! /bin/sh" >conf$$.sh
2681   echo  "exit 0"   >>conf$$.sh
2682   chmod +x conf$$.sh
2683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2684     PATH_SEPARATOR=';'
2685   else
2686     PATH_SEPARATOR=:
2687   fi
2688   rm -f conf$$.sh
2689 fi
2690
2691 # Support unset when possible.
2692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2693   as_unset=unset
2694 else
2695   as_unset=false
2696 fi
2697
2698
2699 # Find who we are.  Look in the path if we contain no path at all
2700 # relative or not.
2701 case $0 in
2702   *[\\/]* ) as_myself=$0 ;;
2703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2709 done
2710
2711      ;;
2712 esac
2713 # We did not find ourselves, most probably we were run as `sh COMMAND'
2714 # in which case we are not to be found in the path.
2715 if test "x$as_myself" = x; then
2716   as_myself=$0
2717 fi
2718 if test ! -f "$as_myself"; then
2719   { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2720 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2721    { (exit 1); exit 1; }; }
2722 fi
2723
2724 # Work around bugs in pre-3.0 UWIN ksh.
2725 for as_var in ENV MAIL MAILPATH
2726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2727 done
2728 PS1='$ '
2729 PS2='> '
2730 PS4='+ '
2731
2732 # NLS nuisances.
2733 for as_var in \
2734   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2735   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2736   LC_TELEPHONE LC_TIME
2737 do
2738   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2739     eval $as_var=C; export $as_var
2740   else
2741     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2742   fi
2743 done
2744
2745 # Required to use basename.
2746 if expr a : '\(a\)' >/dev/null 2>&1; then
2747   as_expr=expr
2748 else
2749   as_expr=false
2750 fi
2751
2752 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2753   as_basename=basename
2754 else
2755   as_basename=false
2756 fi
2757
2758
2759 # Name of the executable.
2760 as_me=`$as_basename "$0" ||
2761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2762          X"$0" : 'X\(//\)$' \| \
2763          X"$0" : 'X\(/\)$' \| \
2764          .     : '\(.\)' 2>/dev/null ||
2765 echo X/"$0" |
2766     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2767           /^X\/\(\/\/\)$/{ s//\1/; q; }
2768           /^X\/\(\/\).*/{ s//\1/; q; }
2769           s/.*/./; q'`
2770
2771
2772
2773
2774   as_lineno_1=$LINENO
2775   as_lineno_2=$LINENO
2776   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2777   test "x$as_lineno_1" != "x$as_lineno_2" &&
2778   test "x$as_lineno_3"  = "x$as_lineno_2" || {
2779
2780   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2781   # uniformly replaced by the line number.  The first 'sed' inserts a
2782   # line-number line after each line using $LINENO; the second 'sed'
2783   # does the real work.  The second script uses 'N' to pair each
2784   # line-number line with the line containing $LINENO, and appends
2785   # trailing '-' during substitution so that $LINENO is not a special
2786   # case at line end.
2787   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2788   # scripts with optimization help from Paolo Bonzini.  Blame Lee
2789   # E. McMahon (1931-1989) for sed's syntax.  :-)
2790   sed -n '
2791     p
2792     /[$]LINENO/=
2793   ' <$as_myself |
2794     sed '
2795       s,[$]LINENO.*,&-,
2796       t lineno
2797       b
2798       : lineno
2799       N
2800       : loop
2801       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
2802       t loop
2803       s,-\n.*,,
2804     ' >$as_me.lineno &&
2805   chmod +x $as_me.lineno ||
2806     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2807 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2808    { (exit 1); exit 1; }; }
2809
2810   # Don't try to exec as it changes $[0], causing all sort of problems
2811   # (the dirname of $[0] is not the place where we might find the
2812   # original and so on.  Autoconf is especially sensible to this).
2813   . ./$as_me.lineno
2814   # Exit status is that of the last command.
2815   exit
2816 }
2817
2818
2819 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2820   *c*,-n*) ECHO_N= ECHO_C='
2821 ' ECHO_T='      ' ;;
2822   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2823   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2824 esac
2825
2826 if expr a : '\(a\)' >/dev/null 2>&1; then
2827   as_expr=expr
2828 else
2829   as_expr=false
2830 fi
2831
2832 rm -f conf$$ conf$$.exe conf$$.file
2833 echo >conf$$.file
2834 if ln -s conf$$.file conf$$ 2>/dev/null; then
2835   # We could just check for DJGPP; but this test a) works b) is more generic
2836   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2837   if test -f conf$$.exe; then
2838     # Don't use ln at all; we don't have any links
2839     as_ln_s='cp -p'
2840   else
2841     as_ln_s='ln -s'
2842   fi
2843 elif ln conf$$.file conf$$ 2>/dev/null; then
2844   as_ln_s=ln
2845 else
2846   as_ln_s='cp -p'
2847 fi
2848 rm -f conf$$ conf$$.exe conf$$.file
2849
2850 if mkdir -p . 2>/dev/null; then
2851   as_mkdir_p=:
2852 else
2853   test -d ./-p && rmdir ./-p
2854   as_mkdir_p=false
2855 fi
2856
2857 as_executable_p="test -f"
2858
2859 # Sed expression to map a string onto a valid CPP name.
2860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2861
2862 # Sed expression to map a string onto a valid variable name.
2863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2864
2865
2866 # IFS
2867 # We need space, tab and new line, in precisely that order.
2868 as_nl='
2869 '
2870 IFS="   $as_nl"
2871
2872 # CDPATH.
2873 $as_unset CDPATH
2874
2875 exec 6>&1
2876
2877 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2878 # report actual input values of CONFIG_FILES etc. instead of their
2879 # values after options handling.  Logging --version etc. is OK.
2880 exec 5>>config.log
2881 {
2882   echo
2883   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2884 ## Running $as_me. ##
2885 _ASBOX
2886 } >&5
2887 cat >&5 <<_CSEOF
2888
2889 This file was extended by GNU Automake $as_me 1.9a, which was
2890 generated by GNU Autoconf 2.59a.  Invocation command line was
2891
2892   CONFIG_FILES    = $CONFIG_FILES
2893   CONFIG_HEADERS  = $CONFIG_HEADERS
2894   CONFIG_LINKS    = $CONFIG_LINKS
2895   CONFIG_COMMANDS = $CONFIG_COMMANDS
2896   $ $0 $@
2897
2898 _CSEOF
2899 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2900 echo >&5
2901 _ACEOF
2902
2903 # Files that config.status was made for.
2904 if test -n "$ac_config_files"; then
2905   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2906 fi
2907
2908 if test -n "$ac_config_headers"; then
2909   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2910 fi
2911
2912 if test -n "$ac_config_links"; then
2913   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2914 fi
2915
2916 if test -n "$ac_config_commands"; then
2917   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2918 fi
2919
2920 cat >>$CONFIG_STATUS <<\_ACEOF
2921
2922 ac_cs_usage="\
2923 \`$as_me' instantiates files from templates according to the
2924 current configuration.
2925
2926 Usage: $0 [OPTIONS] [FILE]...
2927
2928   -h, --help       print this help, then exit
2929   -V, --version    print version number, then exit
2930   -q, --quiet      do not print progress messages
2931   -d, --debug      don't remove temporary files
2932       --recheck    update $as_me by reconfiguring in the same conditions
2933   --file=FILE[:TEMPLATE]
2934                    instantiate the configuration file FILE
2935
2936 Configuration files:
2937 $config_files
2938
2939 Report bugs to <bug-autoconf@gnu.org>."
2940 _ACEOF
2941
2942 cat >>$CONFIG_STATUS <<_ACEOF
2943 ac_cs_version="\\
2944 GNU Automake config.status 1.9a
2945 configured by $0, generated by GNU Autoconf 2.59a,
2946   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2947
2948 Copyright (C) 2004 Free Software Foundation, Inc.
2949 This config.status script is free software; the Free Software Foundation
2950 gives unlimited permission to copy, distribute and modify it."
2951 srcdir=$srcdir
2952 INSTALL="$INSTALL"
2953 _ACEOF
2954
2955 cat >>$CONFIG_STATUS <<\_ACEOF
2956 # If no file are specified by the user, then we need to provide default
2957 # value.  By we need to know if files were specified by the user.
2958 ac_need_defaults=:
2959 while test $# != 0
2960 do
2961   case $1 in
2962   --*=*)
2963     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2964     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2965     ac_shift=:
2966     ;;
2967   -*)
2968     ac_option=$1
2969     ac_optarg=$2
2970     ac_shift=shift
2971     ;;
2972   *) # This is not an option, so the user has probably given explicit
2973      # arguments.
2974      ac_option=$1
2975      ac_need_defaults=false;;
2976   esac
2977
2978   case $ac_option in
2979   # Handling of the options.
2980 _ACEOF
2981 cat >>$CONFIG_STATUS <<\_ACEOF
2982   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2983     ac_cs_recheck=: ;;
2984   --version | --vers* | -V )
2985     echo "$ac_cs_version"; exit 0 ;;
2986   --he | --h)
2987     # Conflict between --help and --header
2988     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2989 Try \`$0 --help' for more information." >&5
2990 echo "$as_me: error: ambiguous option: $1
2991 Try \`$0 --help' for more information." >&2;}
2992    { (exit 1); exit 1; }; };;
2993   --help | --hel | -h )
2994     echo "$ac_cs_usage"; exit 0 ;;
2995   --debug | --d* | -d )
2996     debug=: ;;
2997   --file | --fil | --fi | --f )
2998     $ac_shift
2999     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3000     ac_need_defaults=false;;
3001   --header | --heade | --head | --hea )
3002     $ac_shift
3003     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3004     ac_need_defaults=false;;
3005   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3006   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3007     ac_cs_silent=: ;;
3008
3009   # This is an error.
3010   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3011 Try \`$0 --help' for more information." >&5
3012 echo "$as_me: error: unrecognized option: $1
3013 Try \`$0 --help' for more information." >&2;}
3014    { (exit 1); exit 1; }; } ;;
3015
3016   *) ac_config_targets="$ac_config_targets $1" ;;
3017
3018   esac
3019   shift
3020 done
3021
3022 ac_configure_extra_args=
3023
3024 if $ac_cs_silent; then
3025   exec 6>/dev/null
3026   ac_configure_extra_args="$ac_configure_extra_args --silent"
3027 fi
3028
3029 _ACEOF
3030 cat >>$CONFIG_STATUS <<_ACEOF
3031 if \$ac_cs_recheck; then
3032   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3033   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3034 fi
3035
3036 _ACEOF
3037
3038 cat >>$CONFIG_STATUS <<_ACEOF
3039 #
3040 # INIT-COMMANDS section.
3041 #
3042
3043 APIVERSION=$APIVERSION
3044
3045 _ACEOF
3046
3047
3048
3049 cat >>$CONFIG_STATUS <<\_ACEOF
3050 for ac_config_target in $ac_config_targets
3051 do
3052   case "$ac_config_target" in
3053   # Handling of arguments.
3054   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3055   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3056   "lib/Automake/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Automake/Makefile" ;;
3057   "lib/Automake/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Automake/tests/Makefile" ;;
3058   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
3059   "lib/am/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/am/Makefile" ;;
3060   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
3061   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
3062   "tests/defs" ) CONFIG_FILES="$CONFIG_FILES tests/defs" ;;
3063   "tests/aclocal-${APIVERSION}" ) CONFIG_FILES="$CONFIG_FILES tests/aclocal-${APIVERSION}:tests/aclocal.in" ;;
3064   "tests/automake-${APIVERSION}" ) CONFIG_FILES="$CONFIG_FILES tests/automake-${APIVERSION}:tests/automake.in" ;;
3065   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3067    { (exit 1); exit 1; }; };;
3068   esac
3069 done
3070
3071 # If the user did not use the arguments to specify the items to instantiate,
3072 # then the envvar interface is used.  Set only those that are not.
3073 # We use the long form for the default assignment because of an extremely
3074 # bizarre bug on SunOS 4.1.3.
3075 if $ac_need_defaults; then
3076   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3077 fi
3078
3079 # Have a temporary directory for convenience.  Make it in the build tree
3080 # simply because there is no reason to put it here, and in addition,
3081 # creating and moving files from /tmp can sometimes cause problems.
3082 # Create a temporary directory, and hook for its removal unless debugging.
3083 $debug ||
3084 {
3085   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
3086   trap '{ (exit 1); exit 1; }' 1 2 13 15
3087 }
3088
3089 # Create a (secure) tmp directory for tmp files.
3090
3091 {
3092   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3093   test -n "$tmp" && test -d "$tmp"
3094 }  ||
3095 {
3096   tmp=./confstat$$-$RANDOM
3097   (umask 077 && mkdir $tmp)
3098 } ||
3099 {
3100    echo "$me: cannot create a temporary directory in ." >&2
3101    { (exit 1); exit 1; }
3102 }
3103
3104 _ACEOF
3105
3106 cat >>$CONFIG_STATUS <<_ACEOF
3107
3108 #
3109 # CONFIG_FILES section.
3110 #
3111
3112 # No need to generate the scripts if there are no CONFIG_FILES.
3113 # This happens for instance when ./config.status config.h
3114 if test -n "\$CONFIG_FILES"; then
3115   # Protect against being on the right side of a sed subst in config.status.
3116   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3117    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3118 s,@SHELL@,$SHELL,;t t
3119 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3120 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3121 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3122 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3123 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3124 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3125 s,@exec_prefix@,$exec_prefix,;t t
3126 s,@prefix@,$prefix,;t t
3127 s,@program_transform_name@,$program_transform_name,;t t
3128 s,@bindir@,$bindir,;t t
3129 s,@sbindir@,$sbindir,;t t
3130 s,@libexecdir@,$libexecdir,;t t
3131 s,@datadir@,$datadir,;t t
3132 s,@sysconfdir@,$sysconfdir,;t t
3133 s,@sharedstatedir@,$sharedstatedir,;t t
3134 s,@localstatedir@,$localstatedir,;t t
3135 s,@libdir@,$libdir,;t t
3136 s,@includedir@,$includedir,;t t
3137 s,@oldincludedir@,$oldincludedir,;t t
3138 s,@infodir@,$infodir,;t t
3139 s,@mandir@,$mandir,;t t
3140 s,@build_alias@,$build_alias,;t t
3141 s,@host_alias@,$host_alias,;t t
3142 s,@target_alias@,$target_alias,;t t
3143 s,@DEFS@,$DEFS,;t t
3144 s,@ECHO_C@,$ECHO_C,;t t
3145 s,@ECHO_N@,$ECHO_N,;t t
3146 s,@ECHO_T@,$ECHO_T,;t t
3147 s,@LIBS@,$LIBS,;t t
3148 s,@build@,$build,;t t
3149 s,@build_cpu@,$build_cpu,;t t
3150 s,@build_vendor@,$build_vendor,;t t
3151 s,@build_os@,$build_os,;t t
3152 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3153 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3154 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3155 s,@CYGPATH_W@,$CYGPATH_W,;t t
3156 s,@PACKAGE@,$PACKAGE,;t t
3157 s,@VERSION@,$VERSION,;t t
3158 s,@ACLOCAL@,$ACLOCAL,;t t
3159 s,@AUTOCONF@,$AUTOCONF,;t t
3160 s,@AUTOMAKE@,$AUTOMAKE,;t t
3161 s,@AUTOHEADER@,$AUTOHEADER,;t t
3162 s,@MAKEINFO@,$MAKEINFO,;t t
3163 s,@install_sh@,$install_sh,;t t
3164 s,@STRIP@,$STRIP,;t t
3165 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3166 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3167 s,@mkdir_p@,$mkdir_p,;t t
3168 s,@AWK@,$AWK,;t t
3169 s,@SET_MAKE@,$SET_MAKE,;t t
3170 s,@am__leading_dot@,$am__leading_dot,;t t
3171 s,@AMTAR@,$AMTAR,;t t
3172 s,@am__tar@,$am__tar,;t t
3173 s,@am__untar@,$am__untar,;t t
3174 s,@APIVERSION@,$APIVERSION,;t t
3175 s,@pkgvdatadir@,$pkgvdatadir,;t t
3176 s,@PERL@,$PERL,;t t
3177 s,@TEX@,$TEX,;t t
3178 s,@LN@,$LN,;t t
3179 s,@MODIFICATION_DELAY@,$MODIFICATION_DELAY,;t t
3180 s,@GREP@,$GREP,;t t
3181 s,@EGREP@,$EGREP,;t t
3182 s,@FGREP@,$FGREP,;t t
3183 s,@LIBOBJS@,$LIBOBJS,;t t
3184 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3185 CEOF
3186
3187 _ACEOF
3188
3189   cat >>$CONFIG_STATUS <<\_ACEOF
3190   # Split the substitutions into bite-sized pieces for seds with
3191   # small command number limits, like on Digital OSF/1 and HP-UX.
3192   ac_max_sed_lines=48
3193   ac_sed_frag=1 # Number of current file.
3194   ac_beg=1 # First line for current file.
3195   ac_end=$ac_max_sed_lines # Line after last line for current file.
3196   ac_more_lines=:
3197   ac_sed_cmds=
3198   while $ac_more_lines; do
3199     if test $ac_beg -gt 1; then
3200       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3201     else
3202       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3203     fi
3204     if test ! -s $tmp/subs.frag; then
3205       ac_more_lines=false
3206     else
3207       # The purpose of the label and of the branching condition is to
3208       # speed up the sed processing (if there are no `@' at all, there
3209       # is no need to browse any of the substitutions).
3210       # These are the two extra sed commands mentioned above.
3211       (echo ':t
3212   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3213       if test -z "$ac_sed_cmds"; then
3214         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3215       else
3216         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3217       fi
3218       ac_sed_frag=`expr $ac_sed_frag + 1`
3219       ac_beg=$ac_end
3220       ac_end=`expr $ac_end + $ac_max_sed_lines`
3221     fi
3222   done
3223   if test -z "$ac_sed_cmds"; then
3224     ac_sed_cmds=cat
3225   fi
3226 fi # test -n "$CONFIG_FILES"
3227
3228 _ACEOF
3229 cat >>$CONFIG_STATUS <<\_ACEOF
3230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3231   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3232   case $ac_file in
3233   - | *:- | *:-:* ) # input from stdin
3234         cat >$tmp/stdin
3235         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3237   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3239   * )   ac_file_in=$ac_file.in ;;
3240   esac
3241
3242   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3243   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3245          X"$ac_file" : 'X\(//\)[^/]' \| \
3246          X"$ac_file" : 'X\(//\)$' \| \
3247          X"$ac_file" : 'X\(/\)' \| \
3248          .     : '\(.\)' 2>/dev/null ||
3249 echo X"$ac_file" |
3250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3252           /^X\(\/\/\)$/{ s//\1/; q; }
3253           /^X\(\/\).*/{ s//\1/; q; }
3254           s/.*/./; q'`
3255   { if $as_mkdir_p; then
3256     test -d "$ac_dir" || mkdir -p "$ac_dir"
3257   else
3258     as_dir="$ac_dir"
3259     as_dirs=
3260     while test ! -d "$as_dir"; do
3261       as_dirs="$as_dir $as_dirs"
3262       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3264          X"$as_dir" : 'X\(//\)[^/]' \| \
3265          X"$as_dir" : 'X\(//\)$' \| \
3266          X"$as_dir" : 'X\(/\)' \| \
3267          .     : '\(.\)' 2>/dev/null ||
3268 echo X"$as_dir" |
3269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3271           /^X\(\/\/\)$/{ s//\1/; q; }
3272           /^X\(\/\).*/{ s//\1/; q; }
3273           s/.*/./; q'`
3274     done
3275     test ! -n "$as_dirs" || mkdir $as_dirs
3276   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3278    { (exit 1); exit 1; }; }; }
3279
3280   ac_builddir=.
3281
3282 if test "$ac_dir" != .; then
3283   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3284   # A "../" for each directory in $ac_dir_suffix.
3285   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3286 else
3287   ac_dir_suffix= ac_top_builddir=
3288 fi
3289
3290 case $srcdir in
3291   .)  # No --srcdir option.  We are building in place.
3292     ac_srcdir=.
3293     if test -z "$ac_top_builddir"; then
3294        ac_top_srcdir=.
3295     else
3296        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3297     fi ;;
3298   [\\/]* | ?:[\\/]* )  # Absolute path.
3299     ac_srcdir=$srcdir$ac_dir_suffix;
3300     ac_top_srcdir=$srcdir ;;
3301   *) # Relative path.
3302     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3303     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3304 esac
3305
3306 # Do not use `cd foo && pwd` to compute absolute paths, because
3307 # the directories may not exist.
3308 case `pwd` in
3309 .) ac_abs_builddir="$ac_dir";;
3310 *)
3311   case "$ac_dir" in
3312   .) ac_abs_builddir=`pwd`;;
3313   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3314   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3315   esac;;
3316 esac
3317 case $ac_abs_builddir in
3318 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3319 *)
3320   case ${ac_top_builddir}. in
3321   .) ac_abs_top_builddir=$ac_abs_builddir;;
3322   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3323   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3324   esac;;
3325 esac
3326 case $ac_abs_builddir in
3327 .) ac_abs_srcdir=$ac_srcdir;;
3328 *)
3329   case $ac_srcdir in
3330   .) ac_abs_srcdir=$ac_abs_builddir;;
3331   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3332   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3333   esac;;
3334 esac
3335 case $ac_abs_builddir in
3336 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3337 *)
3338   case $ac_top_srcdir in
3339   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3340   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3341   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3342   esac;;
3343 esac
3344
3345
3346   case $INSTALL in
3347   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3348   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3349   esac
3350
3351   if test x"$ac_file" != x-; then
3352     { echo "$as_me:$LINENO: creating $ac_file" >&5
3353 echo "$as_me: creating $ac_file" >&6;}
3354     rm -f "$ac_file"
3355   fi
3356   # Let's still pretend it is `configure' which instantiates (i.e., don't
3357   # use $as_me), people would be surprised to read:
3358   #    /* config.h.  Generated by config.status.  */
3359   if test x"$ac_file" = x-; then
3360     configure_input=
3361   else
3362     configure_input="$ac_file.  "
3363   fi
3364   configure_input=$configure_input"Generated from `echo $ac_file_in |
3365                                      sed 's,.*/,,'` by configure."
3366
3367   # First look for the input files in the build tree, otherwise in the
3368   # src tree.
3369   ac_file_inputs=`IFS=:
3370     for f in $ac_file_in; do
3371       case $f in
3372       -) echo $tmp/stdin ;;
3373       [\\/$]*)
3374          # Absolute (can't be DOS-style, as IFS=:)
3375          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3376 echo "$as_me: error: cannot find input file: $f" >&2;}
3377    { (exit 1); exit 1; }; }
3378          echo "$f";;
3379       *) # Relative
3380          if test -f "$f"; then
3381            # Build tree
3382            echo "$f"
3383          elif test -f "$srcdir/$f"; then
3384            # Source tree
3385            echo "$srcdir/$f"
3386          else
3387            # /dev/null tree
3388            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3389 echo "$as_me: error: cannot find input file: $f" >&2;}
3390    { (exit 1); exit 1; }; }
3391          fi;;
3392       esac
3393     done` || { (exit 1); exit 1; }
3394 _ACEOF
3395 cat >>$CONFIG_STATUS <<_ACEOF
3396   sed "$ac_vpsub
3397 $extrasub
3398 _ACEOF
3399 cat >>$CONFIG_STATUS <<\_ACEOF
3400 :t
3401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3402 s,@configure_input@,$configure_input,;t t
3403 s,@srcdir@,$ac_srcdir,;t t
3404 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3405 s,@top_srcdir@,$ac_top_srcdir,;t t
3406 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3407 s,@builddir@,$ac_builddir,;t t
3408 s,@abs_builddir@,$ac_abs_builddir,;t t
3409 s,@top_builddir@,$ac_top_builddir,;t t
3410 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3411 s,@INSTALL@,$ac_INSTALL,;t t
3412 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3413   rm -f $tmp/stdin
3414   if test x"$ac_file" != x-; then
3415     mv $tmp/out $ac_file
3416   else
3417     cat $tmp/out
3418     rm -f $tmp/out
3419   fi
3420
3421   # Run the commands associated with the file.
3422   case $ac_file in
3423     tests/aclocal-${APIVERSION} ) chmod +x tests/aclocal-${APIVERSION} ;;
3424     tests/automake-${APIVERSION} ) chmod +x tests/automake-${APIVERSION} ;;
3425   esac
3426 done
3427 _ACEOF
3428
3429 cat >>$CONFIG_STATUS <<\_ACEOF
3430
3431 { (exit 0); exit 0; }
3432 _ACEOF
3433 chmod +x $CONFIG_STATUS
3434 ac_clean_files=$ac_clean_files_save
3435
3436
3437 # configure is writing to config.log, and then calls config.status.
3438 # config.status does its own redirection, appending to config.log.
3439 # Unfortunately, on DOS this fails, as config.log is still kept open
3440 # by configure, so config.status won't be able to write to it; its
3441 # output is simply discarded.  So we exec the FD to /dev/null,
3442 # effectively closing config.log, so it can be properly (re)opened and
3443 # appended to by config.status.  When coming back to configure, we
3444 # need to make the FD available again.
3445 if test "$no_create" != yes; then
3446   ac_cs_success=:
3447   ac_config_status_args=
3448   test "$silent" = yes &&
3449     ac_config_status_args="$ac_config_status_args --quiet"
3450   exec 5>/dev/null
3451   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3452   exec 5>>config.log
3453   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3454   # would make configure fail if this is the last instruction.
3455   $ac_cs_success || { (exit 1); exit 1; }
3456 fi
3457