version 1.4.35b
[polyglot.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for polyglot 1.4.35b.
4 #
5 # Report bugs to <michel.vandenbergh@uhasselt.be>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='polyglot'
576 PACKAGE_TARNAME='polyglot'
577 PACKAGE_VERSION='1.4.35b'
578 PACKAGE_STRING='polyglot 1.4.35b'
579 PACKAGE_BUGREPORT='michel.vandenbergh@uhasselt.be'
580
581 ac_unique_file="mainloop.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 am__isrc
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
671 AWK
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
677 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 CPP
694 GREP
695 EGREP
696 LIBOBJS
697 LTLIBOBJS'
698 ac_subst_files=''
699       ac_precious_vars='build_alias
700 host_alias
701 target_alias
702 CC
703 CFLAGS
704 LDFLAGS
705 LIBS
706 CPPFLAGS
707 CPP'
708
709
710 # Initialize some variables set by options.
711 ac_init_help=
712 ac_init_version=false
713 # The variables have the same names as the options, with
714 # dashes changed to underlines.
715 cache_file=/dev/null
716 exec_prefix=NONE
717 no_create=
718 no_recursion=
719 prefix=NONE
720 program_prefix=NONE
721 program_suffix=NONE
722 program_transform_name=s,x,x,
723 silent=
724 site=
725 srcdir=
726 verbose=
727 x_includes=NONE
728 x_libraries=NONE
729
730 # Installation directory options.
731 # These are left unexpanded so users can "make install exec_prefix=/foo"
732 # and all the variables that are supposed to be based on exec_prefix
733 # by default will actually change.
734 # Use braces instead of parens because sh, perl, etc. also accept them.
735 # (The list follows the same order as the GNU Coding Standards.)
736 bindir='${exec_prefix}/bin'
737 sbindir='${exec_prefix}/sbin'
738 libexecdir='${exec_prefix}/libexec'
739 datarootdir='${prefix}/share'
740 datadir='${datarootdir}'
741 sysconfdir='${prefix}/etc'
742 sharedstatedir='${prefix}/com'
743 localstatedir='${prefix}/var'
744 includedir='${prefix}/include'
745 oldincludedir='/usr/include'
746 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
747 infodir='${datarootdir}/info'
748 htmldir='${docdir}'
749 dvidir='${docdir}'
750 pdfdir='${docdir}'
751 psdir='${docdir}'
752 libdir='${exec_prefix}/lib'
753 localedir='${datarootdir}/locale'
754 mandir='${datarootdir}/man'
755
756 ac_prev=
757 ac_dashdash=
758 for ac_option
759 do
760   # If the previous option needs an argument, assign it.
761   if test -n "$ac_prev"; then
762     eval $ac_prev=\$ac_option
763     ac_prev=
764     continue
765   fi
766
767   case $ac_option in
768   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769   *)    ac_optarg=yes ;;
770   esac
771
772   # Accept the important Cygnus configure options, so we can diagnose typos.
773
774   case $ac_dashdash$ac_option in
775   --)
776     ac_dashdash=yes ;;
777
778   -bindir | --bindir | --bindi | --bind | --bin | --bi)
779     ac_prev=bindir ;;
780   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781     bindir=$ac_optarg ;;
782
783   -build | --build | --buil | --bui | --bu)
784     ac_prev=build_alias ;;
785   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786     build_alias=$ac_optarg ;;
787
788   -cache-file | --cache-file | --cache-fil | --cache-fi \
789   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790     ac_prev=cache_file ;;
791   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793     cache_file=$ac_optarg ;;
794
795   --config-cache | -C)
796     cache_file=config.cache ;;
797
798   -datadir | --datadir | --datadi | --datad)
799     ac_prev=datadir ;;
800   -datadir=* | --datadir=* | --datadi=* | --datad=*)
801     datadir=$ac_optarg ;;
802
803   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804   | --dataroo | --dataro | --datar)
805     ac_prev=datarootdir ;;
806   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808     datarootdir=$ac_optarg ;;
809
810   -disable-* | --disable-*)
811     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812     # Reject names that are not valid shell variable names.
813     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815    { (exit 1); exit 1; }; }
816     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817     eval enable_$ac_feature=no ;;
818
819   -docdir | --docdir | --docdi | --doc | --do)
820     ac_prev=docdir ;;
821   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822     docdir=$ac_optarg ;;
823
824   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
825     ac_prev=dvidir ;;
826   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
827     dvidir=$ac_optarg ;;
828
829   -enable-* | --enable-*)
830     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831     # Reject names that are not valid shell variable names.
832     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834    { (exit 1); exit 1; }; }
835     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836     eval enable_$ac_feature=\$ac_optarg ;;
837
838   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840   | --exec | --exe | --ex)
841     ac_prev=exec_prefix ;;
842   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844   | --exec=* | --exe=* | --ex=*)
845     exec_prefix=$ac_optarg ;;
846
847   -gas | --gas | --ga | --g)
848     # Obsolete; use --with-gas.
849     with_gas=yes ;;
850
851   -help | --help | --hel | --he | -h)
852     ac_init_help=long ;;
853   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854     ac_init_help=recursive ;;
855   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856     ac_init_help=short ;;
857
858   -host | --host | --hos | --ho)
859     ac_prev=host_alias ;;
860   -host=* | --host=* | --hos=* | --ho=*)
861     host_alias=$ac_optarg ;;
862
863   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864     ac_prev=htmldir ;;
865   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866   | --ht=*)
867     htmldir=$ac_optarg ;;
868
869   -includedir | --includedir | --includedi | --included | --include \
870   | --includ | --inclu | --incl | --inc)
871     ac_prev=includedir ;;
872   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873   | --includ=* | --inclu=* | --incl=* | --inc=*)
874     includedir=$ac_optarg ;;
875
876   -infodir | --infodir | --infodi | --infod | --info | --inf)
877     ac_prev=infodir ;;
878   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879     infodir=$ac_optarg ;;
880
881   -libdir | --libdir | --libdi | --libd)
882     ac_prev=libdir ;;
883   -libdir=* | --libdir=* | --libdi=* | --libd=*)
884     libdir=$ac_optarg ;;
885
886   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887   | --libexe | --libex | --libe)
888     ac_prev=libexecdir ;;
889   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890   | --libexe=* | --libex=* | --libe=*)
891     libexecdir=$ac_optarg ;;
892
893   -localedir | --localedir | --localedi | --localed | --locale)
894     ac_prev=localedir ;;
895   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896     localedir=$ac_optarg ;;
897
898   -localstatedir | --localstatedir | --localstatedi | --localstated \
899   | --localstate | --localstat | --localsta | --localst | --locals)
900     ac_prev=localstatedir ;;
901   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903     localstatedir=$ac_optarg ;;
904
905   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906     ac_prev=mandir ;;
907   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908     mandir=$ac_optarg ;;
909
910   -nfp | --nfp | --nf)
911     # Obsolete; use --without-fp.
912     with_fp=no ;;
913
914   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915   | --no-cr | --no-c | -n)
916     no_create=yes ;;
917
918   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920     no_recursion=yes ;;
921
922   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924   | --oldin | --oldi | --old | --ol | --o)
925     ac_prev=oldincludedir ;;
926   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929     oldincludedir=$ac_optarg ;;
930
931   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932     ac_prev=prefix ;;
933   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934     prefix=$ac_optarg ;;
935
936   -program-prefix | --program-prefix | --program-prefi | --program-pref \
937   | --program-pre | --program-pr | --program-p)
938     ac_prev=program_prefix ;;
939   -program-prefix=* | --program-prefix=* | --program-prefi=* \
940   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941     program_prefix=$ac_optarg ;;
942
943   -program-suffix | --program-suffix | --program-suffi | --program-suff \
944   | --program-suf | --program-su | --program-s)
945     ac_prev=program_suffix ;;
946   -program-suffix=* | --program-suffix=* | --program-suffi=* \
947   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948     program_suffix=$ac_optarg ;;
949
950   -program-transform-name | --program-transform-name \
951   | --program-transform-nam | --program-transform-na \
952   | --program-transform-n | --program-transform- \
953   | --program-transform | --program-transfor \
954   | --program-transfo | --program-transf \
955   | --program-trans | --program-tran \
956   | --progr-tra | --program-tr | --program-t)
957     ac_prev=program_transform_name ;;
958   -program-transform-name=* | --program-transform-name=* \
959   | --program-transform-nam=* | --program-transform-na=* \
960   | --program-transform-n=* | --program-transform-=* \
961   | --program-transform=* | --program-transfor=* \
962   | --program-transfo=* | --program-transf=* \
963   | --program-trans=* | --program-tran=* \
964   | --progr-tra=* | --program-tr=* | --program-t=*)
965     program_transform_name=$ac_optarg ;;
966
967   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968     ac_prev=pdfdir ;;
969   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970     pdfdir=$ac_optarg ;;
971
972   -psdir | --psdir | --psdi | --psd | --ps)
973     ac_prev=psdir ;;
974   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975     psdir=$ac_optarg ;;
976
977   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978   | -silent | --silent | --silen | --sile | --sil)
979     silent=yes ;;
980
981   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982     ac_prev=sbindir ;;
983   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984   | --sbi=* | --sb=*)
985     sbindir=$ac_optarg ;;
986
987   -sharedstatedir | --sharedstatedir | --sharedstatedi \
988   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989   | --sharedst | --shareds | --shared | --share | --shar \
990   | --sha | --sh)
991     ac_prev=sharedstatedir ;;
992   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995   | --sha=* | --sh=*)
996     sharedstatedir=$ac_optarg ;;
997
998   -site | --site | --sit)
999     ac_prev=site ;;
1000   -site=* | --site=* | --sit=*)
1001     site=$ac_optarg ;;
1002
1003   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004     ac_prev=srcdir ;;
1005   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006     srcdir=$ac_optarg ;;
1007
1008   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009   | --syscon | --sysco | --sysc | --sys | --sy)
1010     ac_prev=sysconfdir ;;
1011   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013     sysconfdir=$ac_optarg ;;
1014
1015   -target | --target | --targe | --targ | --tar | --ta | --t)
1016     ac_prev=target_alias ;;
1017   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018     target_alias=$ac_optarg ;;
1019
1020   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021     verbose=yes ;;
1022
1023   -version | --version | --versio | --versi | --vers | -V)
1024     ac_init_version=: ;;
1025
1026   -with-* | --with-*)
1027     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid package name: $ac_package" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033     eval with_$ac_package=\$ac_optarg ;;
1034
1035   -without-* | --without-*)
1036     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039       { echo "$as_me: error: invalid package name: $ac_package" >&2
1040    { (exit 1); exit 1; }; }
1041     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042     eval with_$ac_package=no ;;
1043
1044   --x)
1045     # Obsolete; use --with-x.
1046     with_x=yes ;;
1047
1048   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1049   | --x-incl | --x-inc | --x-in | --x-i)
1050     ac_prev=x_includes ;;
1051   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1052   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1053     x_includes=$ac_optarg ;;
1054
1055   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1056   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1057     ac_prev=x_libraries ;;
1058   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1059   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1060     x_libraries=$ac_optarg ;;
1061
1062   -*) { echo "$as_me: error: unrecognized option: $ac_option
1063 Try \`$0 --help' for more information." >&2
1064    { (exit 1); exit 1; }; }
1065     ;;
1066
1067   *=*)
1068     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1072    { (exit 1); exit 1; }; }
1073     eval $ac_envvar=\$ac_optarg
1074     export $ac_envvar ;;
1075
1076   *)
1077     # FIXME: should be removed in autoconf 3.0.
1078     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1079     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1081     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1082     ;;
1083
1084   esac
1085 done
1086
1087 if test -n "$ac_prev"; then
1088   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1089   { echo "$as_me: error: missing argument to $ac_option" >&2
1090    { (exit 1); exit 1; }; }
1091 fi
1092
1093 # Be sure to have absolute directory names.
1094 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1095                 datadir sysconfdir sharedstatedir localstatedir includedir \
1096                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1097                 libdir localedir mandir
1098 do
1099   eval ac_val=\$$ac_var
1100   case $ac_val in
1101     [\\/$]* | ?:[\\/]* )  continue;;
1102     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103   esac
1104   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1105    { (exit 1); exit 1; }; }
1106 done
1107
1108 # There might be people who depend on the old broken behavior: `$host'
1109 # used to hold the argument of --host etc.
1110 # FIXME: To remove some day.
1111 build=$build_alias
1112 host=$host_alias
1113 target=$target_alias
1114
1115 # FIXME: To remove some day.
1116 if test "x$host_alias" != x; then
1117   if test "x$build_alias" = x; then
1118     cross_compiling=maybe
1119     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120     If a cross compiler is detected then cross compile mode will be used." >&2
1121   elif test "x$build_alias" != "x$host_alias"; then
1122     cross_compiling=yes
1123   fi
1124 fi
1125
1126 ac_tool_prefix=
1127 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128
1129 test "$silent" = yes && exec 6>/dev/null
1130
1131
1132 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133 ac_ls_di=`ls -di .` &&
1134 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135   { echo "$as_me: error: Working directory cannot be determined" >&2
1136    { (exit 1); exit 1; }; }
1137 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1138   { echo "$as_me: error: pwd does not report name of working directory" >&2
1139    { (exit 1); exit 1; }; }
1140
1141
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144   ac_srcdir_defaulted=yes
1145   # Try the directory containing this script, then the parent directory.
1146   ac_confdir=`$as_dirname -- "$0" ||
1147 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148          X"$0" : 'X\(//\)[^/]' \| \
1149          X"$0" : 'X\(//\)$' \| \
1150          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1151 echo X"$0" |
1152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153             s//\1/
1154             q
1155           }
1156           /^X\(\/\/\)[^/].*/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\/\)$/{
1161             s//\1/
1162             q
1163           }
1164           /^X\(\/\).*/{
1165             s//\1/
1166             q
1167           }
1168           s/.*/./; q'`
1169   srcdir=$ac_confdir
1170   if test ! -r "$srcdir/$ac_unique_file"; then
1171     srcdir=..
1172   fi
1173 else
1174   ac_srcdir_defaulted=no
1175 fi
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1179    { (exit 1); exit 1; }; }
1180 fi
1181 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1182 ac_abs_confdir=`(
1183         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1184    { (exit 1); exit 1; }; }
1185         pwd)`
1186 # When building in place, set srcdir=.
1187 if test "$ac_abs_confdir" = "$ac_pwd"; then
1188   srcdir=.
1189 fi
1190 # Remove unnecessary trailing slashes from srcdir.
1191 # Double slashes in file names in object file debugging info
1192 # mess up M-x gdb in Emacs.
1193 case $srcdir in
1194 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1195 esac
1196 for ac_var in $ac_precious_vars; do
1197   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_env_${ac_var}_value=\$${ac_var}
1199   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1200   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1201 done
1202
1203 #
1204 # Report the --help message.
1205 #
1206 if test "$ac_init_help" = "long"; then
1207   # Omit some internal or obsolete options to make the list less imposing.
1208   # This message is too long to be a string in the A/UX 3.1 sh.
1209   cat <<_ACEOF
1210 \`configure' configures polyglot 1.4.35b to adapt to many kinds of systems.
1211
1212 Usage: $0 [OPTION]... [VAR=VALUE]...
1213
1214 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215 VAR=VALUE.  See below for descriptions of some of the useful variables.
1216
1217 Defaults for the options are specified in brackets.
1218
1219 Configuration:
1220   -h, --help              display this help and exit
1221       --help=short        display options specific to this package
1222       --help=recursive    display the short help of all the included packages
1223   -V, --version           display version information and exit
1224   -q, --quiet, --silent   do not print \`checking...' messages
1225       --cache-file=FILE   cache test results in FILE [disabled]
1226   -C, --config-cache      alias for \`--cache-file=config.cache'
1227   -n, --no-create         do not create output files
1228       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1229
1230 Installation directories:
1231   --prefix=PREFIX         install architecture-independent files in PREFIX
1232                           [$ac_default_prefix]
1233   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1234                           [PREFIX]
1235
1236 By default, \`make install' will install all the files in
1237 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1238 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239 for instance \`--prefix=\$HOME'.
1240
1241 For better control, use the options below.
1242
1243 Fine tuning of the installation directories:
1244   --bindir=DIR           user executables [EPREFIX/bin]
1245   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1246   --libexecdir=DIR       program executables [EPREFIX/libexec]
1247   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1248   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1249   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1250   --libdir=DIR           object code libraries [EPREFIX/lib]
1251   --includedir=DIR       C header files [PREFIX/include]
1252   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1253   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1254   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1255   --infodir=DIR          info documentation [DATAROOTDIR/info]
1256   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1257   --mandir=DIR           man documentation [DATAROOTDIR/man]
1258   --docdir=DIR           documentation root [DATAROOTDIR/doc/polyglot]
1259   --htmldir=DIR          html documentation [DOCDIR]
1260   --dvidir=DIR           dvi documentation [DOCDIR]
1261   --pdfdir=DIR           pdf documentation [DOCDIR]
1262   --psdir=DIR            ps documentation [DOCDIR]
1263 _ACEOF
1264
1265   cat <<\_ACEOF
1266
1267 Program names:
1268   --program-prefix=PREFIX            prepend PREFIX to installed program names
1269   --program-suffix=SUFFIX            append SUFFIX to installed program names
1270   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1271 _ACEOF
1272 fi
1273
1274 if test -n "$ac_init_help"; then
1275   case $ac_init_help in
1276      short | recursive ) echo "Configuration of polyglot 1.4.35b:";;
1277    esac
1278   cat <<\_ACEOF
1279
1280 Optional Features:
1281   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1282   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1283   --disable-dependency-tracking  speeds up one-time build
1284   --enable-dependency-tracking   do not reject slow dependency extractors
1285
1286 Some influential environment variables:
1287   CC          C compiler command
1288   CFLAGS      C compiler flags
1289   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1290               nonstandard directory <lib dir>
1291   LIBS        libraries to pass to the linker, e.g. -l<library>
1292   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293               you have headers in a nonstandard directory <include dir>
1294   CPP         C preprocessor
1295
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1298
1299 Report bugs to <michel.vandenbergh@uhasselt.be>.
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305   # If there are subdirs, report their specific --help.
1306   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307     test -d "$ac_dir" || continue
1308     ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314   # A ".." for each directory in $ac_dir_suffix.
1315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316   case $ac_top_builddir_sub in
1317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319   esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327   .)  # We are building in place.
1328     ac_srcdir=.
1329     ac_top_srcdir=$ac_top_builddir_sub
1330     ac_abs_top_srcdir=$ac_pwd ;;
1331   [\\/]* | ?:[\\/]* )  # Absolute name.
1332     ac_srcdir=$srcdir$ac_dir_suffix;
1333     ac_top_srcdir=$srcdir
1334     ac_abs_top_srcdir=$srcdir ;;
1335   *) # Relative name.
1336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337     ac_top_srcdir=$ac_top_build_prefix$srcdir
1338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342     cd "$ac_dir" || { ac_status=$?; continue; }
1343     # Check for guested configure.
1344     if test -f "$ac_srcdir/configure.gnu"; then
1345       echo &&
1346       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347     elif test -f "$ac_srcdir/configure"; then
1348       echo &&
1349       $SHELL "$ac_srcdir/configure" --help=recursive
1350     else
1351       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352     fi || ac_status=$?
1353     cd "$ac_pwd" || { ac_status=$?; break; }
1354   done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359   cat <<\_ACEOF
1360 polyglot configure 1.4.35b
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368   exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by polyglot $as_me 1.4.35b, which was
1375 generated by GNU Autoconf 2.61.  Invocation command line was
1376
1377   $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1395
1396 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1397 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1400 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1401 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1402 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409   IFS=$as_save_IFS
1410   test -z "$as_dir" && as_dir=.
1411   echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438   for ac_arg
1439   do
1440     case $ac_arg in
1441     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443     | -silent | --silent | --silen | --sile | --sil)
1444       continue ;;
1445     *\'*)
1446       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447     esac
1448     case $ac_pass in
1449     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450     2)
1451       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452       if test $ac_must_keep_next = true; then
1453         ac_must_keep_next=false # Got value, back to normal.
1454       else
1455         case $ac_arg in
1456           *=* | --config-cache | -C | -disable-* | --disable-* \
1457           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459           | -with-* | --with-* | -without-* | --without-* | --x)
1460             case "$ac_configure_args0 " in
1461               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462             esac
1463             ;;
1464           -* ) ac_must_keep_next=true ;;
1465         esac
1466       fi
1467       ac_configure_args="$ac_configure_args '$ac_arg'"
1468       ;;
1469     esac
1470   done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log.  We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481   # Save into config.log some information that might help in debugging.
1482   {
1483     echo
1484
1485     cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490     echo
1491     # The following way of writing the cache mishandles newlines in values,
1492 (
1493   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494     eval ac_val=\$$ac_var
1495     case $ac_val in #(
1496     *${as_nl}*)
1497       case $ac_var in #(
1498       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500       esac
1501       case $ac_var in #(
1502       _ | IFS | as_nl) ;; #(
1503       *) $as_unset $ac_var ;;
1504       esac ;;
1505     esac
1506   done
1507   (set) 2>&1 |
1508     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509     *${as_nl}ac_space=\ *)
1510       sed -n \
1511         "s/'\''/'\''\\\\'\'''\''/g;
1512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513       ;; #(
1514     *)
1515       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516       ;;
1517     esac |
1518     sort
1519 )
1520     echo
1521
1522     cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527     echo
1528     for ac_var in $ac_subst_vars
1529     do
1530       eval ac_val=\$$ac_var
1531       case $ac_val in
1532       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533       esac
1534       echo "$ac_var='\''$ac_val'\''"
1535     done | sort
1536     echo
1537
1538     if test -n "$ac_subst_files"; then
1539       cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544       echo
1545       for ac_var in $ac_subst_files
1546       do
1547         eval ac_val=\$$ac_var
1548         case $ac_val in
1549         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550         esac
1551         echo "$ac_var='\''$ac_val'\''"
1552       done | sort
1553       echo
1554     fi
1555
1556     if test -s confdefs.h; then
1557       cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562       echo
1563       cat confdefs.h
1564       echo
1565     fi
1566     test "$ac_signal" != 0 &&
1567       echo "$as_me: caught signal $ac_signal"
1568     echo "$as_me: exit $exit_status"
1569   } >&5
1570   rm -f core *.core core.conftest.* &&
1571     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572     exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612   set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616   set x "$ac_default_prefix/share/config.site" \
1617         "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622   if test -r "$ac_site_file"; then
1623     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625     sed 's/^/| /' "$ac_site_file" >&5
1626     . "$ac_site_file"
1627   fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631   # Some versions of bash will fail to source /dev/null (special
1632   # files actually), so we avoid doing that.
1633   if test -f "$cache_file"; then
1634     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636     case $cache_file in
1637       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638       *)                      . "./$cache_file";;
1639     esac
1640   fi
1641 else
1642   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644   >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652   eval ac_new_set=\$ac_env_${ac_var}_set
1653   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654   eval ac_new_val=\$ac_env_${ac_var}_value
1655   case $ac_old_set,$ac_new_set in
1656     set,)
1657       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659       ac_cache_corrupted=: ;;
1660     ,set)
1661       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663       ac_cache_corrupted=: ;;
1664     ,);;
1665     *)
1666       if test "x$ac_old_val" != "x$ac_new_val"; then
1667         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1670 echo "$as_me:   former value:  $ac_old_val" >&2;}
1671         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1672 echo "$as_me:   current value: $ac_new_val" >&2;}
1673         ac_cache_corrupted=:
1674       fi;;
1675   esac
1676   # Pass precious variables to config.status.
1677   if test "$ac_new_set" = set; then
1678     case $ac_new_val in
1679     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680     *) ac_arg=$ac_var=$ac_new_val ;;
1681     esac
1682     case " $ac_configure_args " in
1683       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1684       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685     esac
1686   fi
1687 done
1688 if $ac_cache_corrupted; then
1689   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693    { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720 ac_ext=c
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725
1726
1727 am__api_version='1.10'
1728
1729 ac_aux_dir=
1730 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1731   if test -f "$ac_dir/install-sh"; then
1732     ac_aux_dir=$ac_dir
1733     ac_install_sh="$ac_aux_dir/install-sh -c"
1734     break
1735   elif test -f "$ac_dir/install.sh"; then
1736     ac_aux_dir=$ac_dir
1737     ac_install_sh="$ac_aux_dir/install.sh -c"
1738     break
1739   elif test -f "$ac_dir/shtool"; then
1740     ac_aux_dir=$ac_dir
1741     ac_install_sh="$ac_aux_dir/shtool install -c"
1742     break
1743   fi
1744 done
1745 if test -z "$ac_aux_dir"; then
1746   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1747 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1748    { (exit 1); exit 1; }; }
1749 fi
1750
1751 # These three variables are undocumented and unsupported,
1752 # and are intended to be withdrawn in a future Autoconf release.
1753 # They can cause serious problems if a builder's source tree is in a directory
1754 # whose full name contains unusual characters.
1755 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1756 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1757 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1758
1759
1760 # Find a good install program.  We prefer a C program (faster),
1761 # so one script is as good as another.  But avoid the broken or
1762 # incompatible versions:
1763 # SysV /etc/install, /usr/sbin/install
1764 # SunOS /usr/etc/install
1765 # IRIX /sbin/install
1766 # AIX /bin/install
1767 # AmigaOS /C/install, which installs bootblocks on floppy discs
1768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1771 # OS/2's system install, which has a completely different semantic
1772 # ./install, which can be erroneously created by make from ./install.sh.
1773 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1774 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1775 if test -z "$INSTALL"; then
1776 if test "${ac_cv_path_install+set}" = set; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   # Account for people who put trailing slashes in PATH elements.
1785 case $as_dir/ in
1786   ./ | .// | /cC/* | \
1787   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1788   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1789   /usr/ucb/* ) ;;
1790   *)
1791     # OSF1 and SCO ODT 3.0 have their own names for install.
1792     # Don't use installbsd from OSF since it installs stuff as root
1793     # by default.
1794     for ac_prog in ginstall scoinst install; do
1795       for ac_exec_ext in '' $ac_executable_extensions; do
1796         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1797           if test $ac_prog = install &&
1798             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1799             # AIX install.  It has an incompatible calling convention.
1800             :
1801           elif test $ac_prog = install &&
1802             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1803             # program-specific install script used by HP pwplus--don't use.
1804             :
1805           else
1806             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1807             break 3
1808           fi
1809         fi
1810       done
1811     done
1812     ;;
1813 esac
1814 done
1815 IFS=$as_save_IFS
1816
1817
1818 fi
1819   if test "${ac_cv_path_install+set}" = set; then
1820     INSTALL=$ac_cv_path_install
1821   else
1822     # As a last resort, use the slow shell script.  Don't cache a
1823     # value for INSTALL within a source directory, because that will
1824     # break other packages using the cache if that directory is
1825     # removed, or if the value is a relative name.
1826     INSTALL=$ac_install_sh
1827   fi
1828 fi
1829 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1830 echo "${ECHO_T}$INSTALL" >&6; }
1831
1832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1833 # It thinks the first close brace ends the variable substitution.
1834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1835
1836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1837
1838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1839
1840 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1841 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1842 # Just in case
1843 sleep 1
1844 echo timestamp > conftest.file
1845 # Do `set' in a subshell so we don't clobber the current shell's
1846 # arguments.  Must try -L first in case configure is actually a
1847 # symlink; some systems play weird games with the mod time of symlinks
1848 # (eg FreeBSD returns the mod time of the symlink's containing
1849 # directory).
1850 if (
1851    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1852    if test "$*" = "X"; then
1853       # -L didn't work.
1854       set X `ls -t $srcdir/configure conftest.file`
1855    fi
1856    rm -f conftest.file
1857    if test "$*" != "X $srcdir/configure conftest.file" \
1858       && test "$*" != "X conftest.file $srcdir/configure"; then
1859
1860       # If neither matched, then we have a broken ls.  This can happen
1861       # if, for instance, CONFIG_SHELL is bash and it inherits a
1862       # broken ls alias from the environment.  This has actually
1863       # happened.  Such a system could not be considered "sane".
1864       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1865 alias in your environment" >&5
1866 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1867 alias in your environment" >&2;}
1868    { (exit 1); exit 1; }; }
1869    fi
1870
1871    test "$2" = conftest.file
1872    )
1873 then
1874    # Ok.
1875    :
1876 else
1877    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1878 Check your system clock" >&5
1879 echo "$as_me: error: newly created file is older than distributed files!
1880 Check your system clock" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883 { echo "$as_me:$LINENO: result: yes" >&5
1884 echo "${ECHO_T}yes" >&6; }
1885 test "$program_prefix" != NONE &&
1886   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1887 # Use a double $ so make ignores it.
1888 test "$program_suffix" != NONE &&
1889   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1890 # Double any \ or $.  echo might interpret backslashes.
1891 # By default was `s,x,x', remove it if useless.
1892 cat <<\_ACEOF >conftest.sed
1893 s/[\\$]/&&/g;s/;s,x,x,$//
1894 _ACEOF
1895 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1896 rm -f conftest.sed
1897
1898 # expand $ac_aux_dir to an absolute path
1899 am_aux_dir=`cd $ac_aux_dir && pwd`
1900
1901 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1902 # Use eval to expand $SHELL
1903 if eval "$MISSING --run true"; then
1904   am_missing_run="$MISSING --run "
1905 else
1906   am_missing_run=
1907   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1908 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1909 fi
1910
1911 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1912 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1913 if test -z "$MKDIR_P"; then
1914   if test "${ac_cv_path_mkdir+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_prog in mkdir gmkdir; do
1923          for ac_exec_ext in '' $ac_executable_extensions; do
1924            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1925            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1926              'mkdir (GNU coreutils) '* | \
1927              'mkdir (coreutils) '* | \
1928              'mkdir (fileutils) '4.1*)
1929                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1930                break 3;;
1931            esac
1932          done
1933        done
1934 done
1935 IFS=$as_save_IFS
1936
1937 fi
1938
1939   if test "${ac_cv_path_mkdir+set}" = set; then
1940     MKDIR_P="$ac_cv_path_mkdir -p"
1941   else
1942     # As a last resort, use the slow shell script.  Don't cache a
1943     # value for MKDIR_P within a source directory, because that will
1944     # break other packages using the cache if that directory is
1945     # removed, or if the value is a relative name.
1946     test -d ./--version && rmdir ./--version
1947     MKDIR_P="$ac_install_sh -d"
1948   fi
1949 fi
1950 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1951 echo "${ECHO_T}$MKDIR_P" >&6; }
1952
1953 mkdir_p="$MKDIR_P"
1954 case $mkdir_p in
1955   [\\/$]* | ?:[\\/]*) ;;
1956   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1957 esac
1958
1959 for ac_prog in gawk mawk nawk awk
1960 do
1961   # Extract the first word of "$ac_prog", so it can be a program name with args.
1962 set dummy $ac_prog; ac_word=$2
1963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965 if test "${ac_cv_prog_AWK+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$AWK"; then
1969   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1978     ac_cv_prog_AWK="$ac_prog"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984 IFS=$as_save_IFS
1985
1986 fi
1987 fi
1988 AWK=$ac_cv_prog_AWK
1989 if test -n "$AWK"; then
1990   { echo "$as_me:$LINENO: result: $AWK" >&5
1991 echo "${ECHO_T}$AWK" >&6; }
1992 else
1993   { echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6; }
1995 fi
1996
1997
1998   test -n "$AWK" && break
1999 done
2000
2001 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2002 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2003 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2004 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   cat >conftest.make <<\_ACEOF
2008 SHELL = /bin/sh
2009 all:
2010         @echo '@@@%%%=$(MAKE)=@@@%%%'
2011 _ACEOF
2012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2014   *@@@%%%=?*=@@@%%%*)
2015     eval ac_cv_prog_make_${ac_make}_set=yes;;
2016   *)
2017     eval ac_cv_prog_make_${ac_make}_set=no;;
2018 esac
2019 rm -f conftest.make
2020 fi
2021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2022   { echo "$as_me:$LINENO: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6; }
2024   SET_MAKE=
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028   SET_MAKE="MAKE=${MAKE-make}"
2029 fi
2030
2031 rm -rf .tst 2>/dev/null
2032 mkdir .tst 2>/dev/null
2033 if test -d .tst; then
2034   am__leading_dot=.
2035 else
2036   am__leading_dot=_
2037 fi
2038 rmdir .tst 2>/dev/null
2039
2040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2041   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2042   # is not polluted with repeated "-I."
2043   am__isrc=' -I$(srcdir)'
2044   # test to see if srcdir already configured
2045   if test -f $srcdir/config.status; then
2046     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2047 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2048    { (exit 1); exit 1; }; }
2049   fi
2050 fi
2051
2052 # test whether we have cygpath
2053 if test -z "$CYGPATH_W"; then
2054   if (cygpath --version) >/dev/null 2>/dev/null; then
2055     CYGPATH_W='cygpath -w'
2056   else
2057     CYGPATH_W=echo
2058   fi
2059 fi
2060
2061
2062 # Define the identity of the package.
2063  PACKAGE='polyglot'
2064  VERSION='1.4.35b'
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE "$PACKAGE"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define VERSION "$VERSION"
2074 _ACEOF
2075
2076 # Some tools Automake needs.
2077
2078 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2079
2080
2081 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2082
2083
2084 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2085
2086
2087 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2088
2089
2090 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2091
2092 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2093
2094 # Installed binaries are usually stripped using `strip' when the user
2095 # run `make install-strip'.  However `strip' might not be the right
2096 # tool to use in cross-compilation environments, therefore Automake
2097 # will honor the `STRIP' environment variable to overrule this program.
2098 if test "$cross_compiling" != no; then
2099   if test -n "$ac_tool_prefix"; then
2100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2101 set dummy ${ac_tool_prefix}strip; ac_word=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104 if test "${ac_cv_prog_STRIP+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test -n "$STRIP"; then
2108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2109 else
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115   for ac_exec_ext in '' $ac_executable_extensions; do
2116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119     break 2
2120   fi
2121 done
2122 done
2123 IFS=$as_save_IFS
2124
2125 fi
2126 fi
2127 STRIP=$ac_cv_prog_STRIP
2128 if test -n "$STRIP"; then
2129   { echo "$as_me:$LINENO: result: $STRIP" >&5
2130 echo "${ECHO_T}$STRIP" >&6; }
2131 else
2132   { echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6; }
2134 fi
2135
2136
2137 fi
2138 if test -z "$ac_cv_prog_STRIP"; then
2139   ac_ct_STRIP=$STRIP
2140   # Extract the first word of "strip", so it can be a program name with args.
2141 set dummy strip; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_STRIP"; then
2148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157     ac_cv_prog_ac_ct_STRIP="strip"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166 fi
2167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2168 if test -n "$ac_ct_STRIP"; then
2169   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2171 else
2172   { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2174 fi
2175
2176   if test "x$ac_ct_STRIP" = x; then
2177     STRIP=":"
2178   else
2179     case $cross_compiling:$ac_tool_warned in
2180 yes:)
2181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet.  If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&5
2184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet.  If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2187 ac_tool_warned=yes ;;
2188 esac
2189     STRIP=$ac_ct_STRIP
2190   fi
2191 else
2192   STRIP="$ac_cv_prog_STRIP"
2193 fi
2194
2195 fi
2196 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2197
2198 # We need awk for the "check" target.  The system "awk" is bad on
2199 # some platforms.
2200 # Always define AMTAR for backward compatibility.
2201
2202 AMTAR=${AMTAR-"${am_missing_run}tar"}
2203
2204 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2205
2206
2207
2208
2209
2210
2211 ac_config_headers="$ac_config_headers config.h"
2212
2213
2214 # Checks for programs.
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 if test -n "$ac_tool_prefix"; then
2221   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$CC"; then
2229   ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244 IFS=$as_save_IFS
2245
2246 fi
2247 fi
2248 CC=$ac_cv_prog_CC
2249 if test -n "$CC"; then
2250   { echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6; }
2252 else
2253   { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2255 fi
2256
2257
2258 fi
2259 if test -z "$ac_cv_prog_CC"; then
2260   ac_ct_CC=$CC
2261   # Extract the first word of "gcc", so it can be a program name with args.
2262 set dummy gcc; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   if test -n "$ac_ct_CC"; then
2269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278     ac_cv_prog_ac_ct_CC="gcc"
2279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280     break 2
2281   fi
2282 done
2283 done
2284 IFS=$as_save_IFS
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6; }
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297   if test "x$ac_ct_CC" = x; then
2298     CC=""
2299   else
2300     case $cross_compiling:$ac_tool_warned in
2301 yes:)
2302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet.  If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&5
2305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2306 whose name does not start with the host triplet.  If you think this
2307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2308 ac_tool_warned=yes ;;
2309 esac
2310     CC=$ac_ct_CC
2311   fi
2312 else
2313   CC="$ac_cv_prog_CC"
2314 fi
2315
2316 if test -z "$CC"; then
2317           if test -n "$ac_tool_prefix"; then
2318     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}cc; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$CC"; then
2326   ac_cv_prog_CC="$CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_CC="${ac_tool_prefix}cc"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347   { echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6; }
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355   fi
2356 fi
2357 if test -z "$CC"; then
2358   # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368   ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377        ac_prog_rejected=yes
2378        continue
2379      fi
2380     ac_cv_prog_CC="cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 if test $ac_prog_rejected = yes; then
2389   # We found a bogon in the path, so make sure we never use it.
2390   set dummy $ac_cv_prog_CC
2391   shift
2392   if test $# != 0; then
2393     # We chose a different compiler from the bogus one.
2394     # However, it has the same basename, so the bogon will be chosen
2395     # first if we set CC to just the basename; use the full file name.
2396     shift
2397     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2398   fi
2399 fi
2400 fi
2401 fi
2402 CC=$ac_cv_prog_CC
2403 if test -n "$CC"; then
2404   { echo "$as_me:$LINENO: result: $CC" >&5
2405 echo "${ECHO_T}$CC" >&6; }
2406 else
2407   { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 fi
2410
2411
2412 fi
2413 if test -z "$CC"; then
2414   if test -n "$ac_tool_prefix"; then
2415   for ac_prog in cl.exe
2416   do
2417     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422   echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424   if test -n "$CC"; then
2425   ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430   IFS=$as_save_IFS
2431   test -z "$as_dir" && as_dir=.
2432   for ac_exec_ext in '' $ac_executable_extensions; do
2433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436     break 2
2437   fi
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446   { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2448 else
2449   { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2451 fi
2452
2453
2454     test -n "$CC" && break
2455   done
2456 fi
2457 if test -z "$CC"; then
2458   ac_ct_CC=$CC
2459   for ac_prog in cl.exe
2460 do
2461   # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$ac_ct_CC"; then
2469   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_ac_ct_CC="$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6; }
2492 else
2493   { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497
2498   test -n "$ac_ct_CC" && break
2499 done
2500
2501   if test "x$ac_ct_CC" = x; then
2502     CC=""
2503   else
2504     case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet.  If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&5
2509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet.  If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2512 ac_tool_warned=yes ;;
2513 esac
2514     CC=$ac_ct_CC
2515   fi
2516 fi
2517
2518 fi
2519
2520
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&2;}
2525    { (exit 1); exit 1; }; }
2526
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO: checking for C compiler version" >&5
2529 ac_compiler=`set X $ac_compile; echo $2`
2530 { (ac_try="$ac_compiler --version >&5"
2531 case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_compiler --version >&5") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }
2540 { (ac_try="$ac_compiler -v >&5"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_compiler -v >&5") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }
2550 { (ac_try="$ac_compiler -V >&5"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_compiler -V >&5") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }
2560
2561 cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 ac_clean_files_save=$ac_clean_files
2577 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2578 # Try to create an executable without -o first, disregard a.out.
2579 # It will help us diagnose broken compilers, and finding out an intuition
2580 # of exeext.
2581 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2582 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2583 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2584 #
2585 # List of possible output files, starting from the most likely.
2586 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2587 # only as a last resort.  b.out is created by i960 compilers.
2588 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2589 #
2590 # The IRIX 6 linker writes into existing files which may not be
2591 # executable, retaining their permissions.  Remove them first so a
2592 # subsequent execution test works.
2593 ac_rmfiles=
2594 for ac_file in $ac_files
2595 do
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2599   esac
2600 done
2601 rm -f $ac_rmfiles
2602
2603 if { (ac_try="$ac_link_default"
2604 case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_link_default") 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; then
2613   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2615 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2616 # so that the user can short-circuit this test for compilers unknown to
2617 # Autoconf.
2618 for ac_file in $ac_files ''
2619 do
2620   test -f "$ac_file" || continue
2621   case $ac_file in
2622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2623         ;;
2624     [ab].out )
2625         # We found the default executable, but exeext='' is most
2626         # certainly right.
2627         break;;
2628     *.* )
2629         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2630         then :; else
2631            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632         fi
2633         # We set ac_cv_exeext here because the later test for it is not
2634         # safe: cross compilers may not add the suffix if given an `-o'
2635         # argument, so we may need to know it at that point already.
2636         # Even if this section looks crufty: it has the advantage of
2637         # actually working.
2638         break;;
2639     * )
2640         break;;
2641   esac
2642 done
2643 test "$ac_cv_exeext" = no && ac_cv_exeext=
2644
2645 else
2646   ac_file=''
2647 fi
2648
2649 { echo "$as_me:$LINENO: result: $ac_file" >&5
2650 echo "${ECHO_T}$ac_file" >&6; }
2651 if test -z "$ac_file"; then
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C compiler cannot create executables
2658 See \`config.log' for more details." >&2;}
2659    { (exit 77); exit 77; }; }
2660 fi
2661
2662 ac_exeext=$ac_cv_exeext
2663
2664 # Check that the compiler produces executables we can run.  If not, either
2665 # the compiler is broken, or we cross compile.
2666 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671   if { ac_try='./$ac_file'
2672   { (case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_try") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681     cross_compiling=no
2682   else
2683     if test "$cross_compiling" = maybe; then
2684         cross_compiling=yes
2685     else
2686         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'.
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: cannot run C compiled programs.
2690 If you meant to cross compile, use \`--host'.
2691 See \`config.log' for more details." >&2;}
2692    { (exit 1); exit 1; }; }
2693     fi
2694   fi
2695 fi
2696 { echo "$as_me:$LINENO: result: yes" >&5
2697 echo "${ECHO_T}yes" >&6; }
2698
2699 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2700 ac_clean_files=$ac_clean_files_save
2701 # Check that the compiler produces executables we can run.  If not, either
2702 # the compiler is broken, or we cross compile.
2703 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2704 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2705 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2706 echo "${ECHO_T}$cross_compiling" >&6; }
2707
2708 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2709 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2710 if { (ac_try="$ac_link"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_link") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; then
2720   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2721 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2722 # work properly (i.e., refer to `conftest.exe'), while it won't with
2723 # `rm'.
2724 for ac_file in conftest.exe conftest conftest.*; do
2725   test -f "$ac_file" || continue
2726   case $ac_file in
2727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2728     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729           break;;
2730     * ) break;;
2731   esac
2732 done
2733 else
2734   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&5
2736 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2737 See \`config.log' for more details." >&2;}
2738    { (exit 1); exit 1; }; }
2739 fi
2740
2741 rm -f conftest$ac_cv_exeext
2742 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2743 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2744
2745 rm -f conftest.$ac_ext
2746 EXEEXT=$ac_cv_exeext
2747 ac_exeext=$EXEEXT
2748 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2749 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2750 if test "${ac_cv_objext+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759
2760 int
2761 main ()
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.o conftest.obj
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_compile") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; then
2779   for ac_file in conftest.o conftest.obj conftest.*; do
2780   test -f "$ac_file" || continue;
2781   case $ac_file in
2782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2783     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784        break;;
2785   esac
2786 done
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2794 See \`config.log' for more details." >&2;}
2795    { (exit 1); exit 1; }; }
2796 fi
2797
2798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2799 fi
2800 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801 echo "${ECHO_T}$ac_cv_objext" >&6; }
2802 OBJEXT=$ac_cv_objext
2803 ac_objext=$OBJEXT
2804 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h.  */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h.  */
2815
2816 int
2817 main ()
2818 {
2819 #ifndef __GNUC__
2820        choke me
2821 #endif
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compile") 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } && {
2841          test -z "$ac_c_werror_flag" ||
2842          test ! -s conftest.err
2843        } && test -s conftest.$ac_objext; then
2844   ac_compiler_gnu=yes
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849         ac_compiler_gnu=no
2850 fi
2851
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854
2855 fi
2856 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2858 GCC=`test $ac_compiler_gnu = yes && echo yes`
2859 ac_test_CFLAGS=${CFLAGS+set}
2860 ac_save_CFLAGS=$CFLAGS
2861 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_cc_g+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   ac_save_c_werror_flag=$ac_c_werror_flag
2867    ac_c_werror_flag=yes
2868    ac_cv_prog_cc_g=no
2869    CFLAGS="-g"
2870    cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compile") 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } && {
2899          test -z "$ac_c_werror_flag" ||
2900          test ! -s conftest.err
2901        } && test -s conftest.$ac_objext; then
2902   ac_cv_prog_cc_g=yes
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907         CFLAGS=""
2908       cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914
2915 int
2916 main ()
2917 {
2918
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_compile") 2>conftest.er1
2931   ac_status=$?
2932   grep -v '^ *+' conftest.er1 >conftest.err
2933   rm -f conftest.er1
2934   cat conftest.err >&5
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && {
2937          test -z "$ac_c_werror_flag" ||
2938          test ! -s conftest.err
2939        } && test -s conftest.$ac_objext; then
2940   :
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945         ac_c_werror_flag=$ac_save_c_werror_flag
2946          CFLAGS="-g"
2947          cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest.$ac_objext; then
2979   ac_cv_prog_cc_g=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 fi
2989
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 fi
2992
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994    ac_c_werror_flag=$ac_save_c_werror_flag
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2998 if test "$ac_test_CFLAGS" = set; then
2999   CFLAGS=$ac_save_CFLAGS
3000 elif test $ac_cv_prog_cc_g = yes; then
3001   if test "$GCC" = yes; then
3002     CFLAGS="-g -O2"
3003   else
3004     CFLAGS="-g"
3005   fi
3006 else
3007   if test "$GCC" = yes; then
3008     CFLAGS="-O2"
3009   else
3010     CFLAGS=
3011   fi
3012 fi
3013 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3014 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_c89+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_cv_prog_cc_c89=no
3019 ac_save_CC=$CC
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <stdarg.h>
3027 #include <stdio.h>
3028 #include <sys/types.h>
3029 #include <sys/stat.h>
3030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3031 struct buf { int x; };
3032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3033 static char *e (p, i)
3034      char **p;
3035      int i;
3036 {
3037   return p[i];
3038 }
3039 static char *f (char * (*g) (char **, int), char **p, ...)
3040 {
3041   char *s;
3042   va_list v;
3043   va_start (v,p);
3044   s = g (p, va_arg (v,int));
3045   va_end (v);
3046   return s;
3047 }
3048
3049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3050    function prototypes and stuff, but not '\xHH' hex character constants.
3051    These don't provoke an error unfortunately, instead are silently treated
3052    as 'x'.  The following induces an error, until -std is added to get
3053    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3054    array size at least.  It's necessary to write '\x00'==0 to get something
3055    that's true only with -std.  */
3056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3057
3058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3059    inside strings and character constants.  */
3060 #define FOO(x) 'x'
3061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3062
3063 int test (int i, double x);
3064 struct s1 {int (*f) (int a);};
3065 struct s2 {int (*f) (double a);};
3066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3067 int argc;
3068 char **argv;
3069 int
3070 main ()
3071 {
3072 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3078         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3079 do
3080   CC="$ac_save_CC $ac_arg"
3081   rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } && {
3095          test -z "$ac_c_werror_flag" ||
3096          test ! -s conftest.err
3097        } && test -s conftest.$ac_objext; then
3098   ac_cv_prog_cc_c89=$ac_arg
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext
3107   test "x$ac_cv_prog_cc_c89" != "xno" && break
3108 done
3109 rm -f conftest.$ac_ext
3110 CC=$ac_save_CC
3111
3112 fi
3113 # AC_CACHE_VAL
3114 case "x$ac_cv_prog_cc_c89" in
3115   x)
3116     { echo "$as_me:$LINENO: result: none needed" >&5
3117 echo "${ECHO_T}none needed" >&6; } ;;
3118   xno)
3119     { echo "$as_me:$LINENO: result: unsupported" >&5
3120 echo "${ECHO_T}unsupported" >&6; } ;;
3121   *)
3122     CC="$CC $ac_cv_prog_cc_c89"
3123     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3125 esac
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 DEPDIR="${am__leading_dot}deps"
3134
3135 ac_config_commands="$ac_config_commands depfiles"
3136
3137
3138 am_make=${MAKE-make}
3139 cat > confinc << 'END'
3140 am__doit:
3141         @echo done
3142 .PHONY: am__doit
3143 END
3144 # If we don't find an include directive, just comment out the code.
3145 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3146 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3147 am__include="#"
3148 am__quote=
3149 _am_result=none
3150 # First try GNU make style include.
3151 echo "include confinc" > confmf
3152 # We grep out `Entering directory' and `Leaving directory'
3153 # messages which can occur if `w' ends up in MAKEFLAGS.
3154 # In particular we don't look at `^make:' because GNU make might
3155 # be invoked under some other name (usually "gmake"), in which
3156 # case it prints its new name instead of `make'.
3157 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3158    am__include=include
3159    am__quote=
3160    _am_result=GNU
3161 fi
3162 # Now try BSD make style include.
3163 if test "$am__include" = "#"; then
3164    echo '.include "confinc"' > confmf
3165    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3166       am__include=.include
3167       am__quote="\""
3168       _am_result=BSD
3169    fi
3170 fi
3171
3172
3173 { echo "$as_me:$LINENO: result: $_am_result" >&5
3174 echo "${ECHO_T}$_am_result" >&6; }
3175 rm -f confinc confmf
3176
3177 # Check whether --enable-dependency-tracking was given.
3178 if test "${enable_dependency_tracking+set}" = set; then
3179   enableval=$enable_dependency_tracking;
3180 fi
3181
3182 if test "x$enable_dependency_tracking" != xno; then
3183   am_depcomp="$ac_aux_dir/depcomp"
3184   AMDEPBACKSLASH='\'
3185 fi
3186  if test "x$enable_dependency_tracking" != xno; then
3187   AMDEP_TRUE=
3188   AMDEP_FALSE='#'
3189 else
3190   AMDEP_TRUE='#'
3191   AMDEP_FALSE=
3192 fi
3193
3194
3195
3196 depcc="$CC"   am_compiler_list=
3197
3198 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3200 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204   # We make a subdir and do the tests there.  Otherwise we can end up
3205   # making bogus files that we don't know about and never remove.  For
3206   # instance it was reported that on HP-UX the gcc test will end up
3207   # making a dummy file named `D' -- because `-MD' means `put the output
3208   # in D'.
3209   mkdir conftest.dir
3210   # Copy depcomp to subdir because otherwise we won't find it if we're
3211   # using a relative directory.
3212   cp "$am_depcomp" conftest.dir
3213   cd conftest.dir
3214   # We will build objects and dependencies in a subdirectory because
3215   # it helps to detect inapplicable dependency modes.  For instance
3216   # both Tru64's cc and ICC support -MD to output dependencies as a
3217   # side effect of compilation, but ICC will put the dependencies in
3218   # the current directory while Tru64 will put them in the object
3219   # directory.
3220   mkdir sub
3221
3222   am_cv_CC_dependencies_compiler_type=none
3223   if test "$am_compiler_list" = ""; then
3224      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3225   fi
3226   for depmode in $am_compiler_list; do
3227     # Setup a source with many dependencies, because some compilers
3228     # like to wrap large dependency lists on column 80 (with \), and
3229     # we should not choose a depcomp mode which is confused by this.
3230     #
3231     # We need to recreate these files for each test, as the compiler may
3232     # overwrite some of them when testing with obscure command lines.
3233     # This happens at least with the AIX C compiler.
3234     : > sub/conftest.c
3235     for i in 1 2 3 4 5 6; do
3236       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3237       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3238       # Solaris 8's {/usr,}/bin/sh.
3239       touch sub/conftst$i.h
3240     done
3241     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3242
3243     case $depmode in
3244     nosideeffect)
3245       # after this tag, mechanisms are not by side-effect, so they'll
3246       # only be used when explicitly requested
3247       if test "x$enable_dependency_tracking" = xyes; then
3248         continue
3249       else
3250         break
3251       fi
3252       ;;
3253     none) break ;;
3254     esac
3255     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3256     # mode.  It turns out that the SunPro C++ compiler does not properly
3257     # handle `-M -o', and we need to detect this.
3258     if depmode=$depmode \
3259        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3260        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3261        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3262          >/dev/null 2>conftest.err &&
3263        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3264        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3265        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3266        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3267       # icc doesn't choke on unknown options, it will just issue warnings
3268       # or remarks (even with -Werror).  So we grep stderr for any message
3269       # that says an option was ignored or not supported.
3270       # When given -MP, icc 7.0 and 7.1 complain thusly:
3271       #   icc: Command line warning: ignoring option '-M'; no argument required
3272       # The diagnosis changed in icc 8.0:
3273       #   icc: Command line remark: option '-MP' not supported
3274       if (grep 'ignoring option' conftest.err ||
3275           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3276         am_cv_CC_dependencies_compiler_type=$depmode
3277         break
3278       fi
3279     fi
3280   done
3281
3282   cd ..
3283   rm -rf conftest.dir
3284 else
3285   am_cv_CC_dependencies_compiler_type=none
3286 fi
3287
3288 fi
3289 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3290 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3292
3293  if
3294   test "x$enable_dependency_tracking" != xno \
3295   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3296   am__fastdepCC_TRUE=
3297   am__fastdepCC_FALSE='#'
3298 else
3299   am__fastdepCC_TRUE='#'
3300   am__fastdepCC_FALSE=
3301 fi
3302
3303
3304
3305 # Checks for libraries.
3306
3307
3308
3309 { echo "$as_me:$LINENO: checking for main in -lm" >&5
3310 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
3311 if test "${ac_cv_lib_m_main+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   ac_check_lib_save_LIBS=$LIBS
3315 LIBS="-lm  $LIBS"
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322
3323
3324 int
3325 main ()
3326 {
3327 return main ();
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext conftest$ac_exeext
3333 if { (ac_try="$ac_link"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_link") 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } && {
3346          test -z "$ac_c_werror_flag" ||
3347          test ! -s conftest.err
3348        } && test -s conftest$ac_exeext &&
3349        $as_test_x conftest$ac_exeext; then
3350   ac_cv_lib_m_main=yes
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355         ac_cv_lib_m_main=no
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3359       conftest$ac_exeext conftest.$ac_ext
3360 LIBS=$ac_check_lib_save_LIBS
3361 fi
3362 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3363 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
3364 if test $ac_cv_lib_m_main = yes; then
3365   cat >>confdefs.h <<_ACEOF
3366 #define HAVE_LIBM 1
3367 _ACEOF
3368
3369   LIBS="-lm $LIBS"
3370
3371 fi
3372
3373
3374 # Checks for header files.
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3384   CPP=
3385 fi
3386 if test -z "$CPP"; then
3387   if test "${ac_cv_prog_CPP+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390       # Double quotes because CPP needs to be expanded
3391     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392     do
3393       ac_preproc_ok=false
3394 for ac_c_preproc_warn_flag in '' yes
3395 do
3396   # Use a header file that comes with gcc, so configuring glibc
3397   # with a fresh cross-compiler works.
3398   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399   # <limits.h> exists even on freestanding compilers.
3400   # On the NeXT, cc -E runs the code through the compiler's parser,
3401   # not just through cpp. "Syntax error" is here to catch this case.
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408 #ifdef __STDC__
3409 # include <limits.h>
3410 #else
3411 # include <assert.h>
3412 #endif
3413                      Syntax error
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null && {
3428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429          test ! -s conftest.err
3430        }; then
3431   :
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Broken: fails on valid input.
3437 continue
3438 fi
3439
3440 rm -f conftest.err conftest.$ac_ext
3441
3442   # OK, works on sane cases.  Now check whether nonexistent headers
3443   # can be detected and how.
3444   cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #include <ac_nonexistent.h>
3451 _ACEOF
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } >/dev/null && {
3465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3466          test ! -s conftest.err
3467        }; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478
3479 rm -f conftest.err conftest.$ac_ext
3480
3481 done
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3485   break
3486 fi
3487
3488     done
3489     ac_cv_prog_CPP=$CPP
3490
3491 fi
3492   CPP=$ac_cv_prog_CPP
3493 else
3494   ac_cv_prog_CPP=$CPP
3495 fi
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3498 ac_preproc_ok=false
3499 for ac_c_preproc_warn_flag in '' yes
3500 do
3501   # Use a header file that comes with gcc, so configuring glibc
3502   # with a fresh cross-compiler works.
3503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504   # <limits.h> exists even on freestanding compilers.
3505   # On the NeXT, cc -E runs the code through the compiler's parser,
3506   # not just through cpp. "Syntax error" is here to catch this case.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518                      Syntax error
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null && {
3533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534          test ! -s conftest.err
3535        }; then
3536   :
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541   # Broken: fails on valid input.
3542 continue
3543 fi
3544
3545 rm -f conftest.err conftest.$ac_ext
3546
3547   # OK, works on sane cases.  Now check whether nonexistent headers
3548   # can be detected and how.
3549   cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include <ac_nonexistent.h>
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } >/dev/null && {
3570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571          test ! -s conftest.err
3572        }; then
3573   # Broken: success on invalid input.
3574 continue
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583
3584 rm -f conftest.err conftest.$ac_ext
3585
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3590   :
3591 else
3592   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596    { (exit 1); exit 1; }; }
3597 fi
3598
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604
3605
3606 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3607 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3608 if test "${ac_cv_path_GREP+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   # Extract the first word of "grep ggrep" to use in msg output
3612 if test -z "$GREP"; then
3613 set dummy grep ggrep; ac_prog_name=$2
3614 if test "${ac_cv_path_GREP+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   ac_path_GREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624   for ac_prog in grep ggrep; do
3625   for ac_exec_ext in '' $ac_executable_extensions; do
3626     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3627     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3628     # Check for GNU ac_path_GREP and select it if it is found.
3629   # Check for GNU $ac_path_GREP
3630 case `"$ac_path_GREP" --version 2>&1` in
3631 *GNU*)
3632   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 *)
3634   ac_count=0
3635   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3636   while :
3637   do
3638     cat "conftest.in" "conftest.in" >"conftest.tmp"
3639     mv "conftest.tmp" "conftest.in"
3640     cp "conftest.in" "conftest.nl"
3641     echo 'GREP' >> "conftest.nl"
3642     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644     ac_count=`expr $ac_count + 1`
3645     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3646       # Best one so far, save it but keep looking for a better one
3647       ac_cv_path_GREP="$ac_path_GREP"
3648       ac_path_GREP_max=$ac_count
3649     fi
3650     # 10*(2^10) chars as input seems more than enough
3651     test $ac_count -gt 10 && break
3652   done
3653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 esac
3655
3656
3657     $ac_path_GREP_found && break 3
3658   done
3659 done
3660
3661 done
3662 IFS=$as_save_IFS
3663
3664
3665 fi
3666
3667 GREP="$ac_cv_path_GREP"
3668 if test -z "$GREP"; then
3669   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3671    { (exit 1); exit 1; }; }
3672 fi
3673
3674 else
3675   ac_cv_path_GREP=$GREP
3676 fi
3677
3678
3679 fi
3680 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3681 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3682  GREP="$ac_cv_path_GREP"
3683
3684
3685 { echo "$as_me:$LINENO: checking for egrep" >&5
3686 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3687 if test "${ac_cv_path_EGREP+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3691    then ac_cv_path_EGREP="$GREP -E"
3692    else
3693      # Extract the first word of "egrep" to use in msg output
3694 if test -z "$EGREP"; then
3695 set dummy egrep; ac_prog_name=$2
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   ac_path_EGREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_prog in egrep; do
3707   for ac_exec_ext in '' $ac_executable_extensions; do
3708     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3709     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3710     # Check for GNU ac_path_EGREP and select it if it is found.
3711   # Check for GNU $ac_path_EGREP
3712 case `"$ac_path_EGREP" --version 2>&1` in
3713 *GNU*)
3714   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3715 *)
3716   ac_count=0
3717   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3718   while :
3719   do
3720     cat "conftest.in" "conftest.in" >"conftest.tmp"
3721     mv "conftest.tmp" "conftest.in"
3722     cp "conftest.in" "conftest.nl"
3723     echo 'EGREP' >> "conftest.nl"
3724     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726     ac_count=`expr $ac_count + 1`
3727     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3728       # Best one so far, save it but keep looking for a better one
3729       ac_cv_path_EGREP="$ac_path_EGREP"
3730       ac_path_EGREP_max=$ac_count
3731     fi
3732     # 10*(2^10) chars as input seems more than enough
3733     test $ac_count -gt 10 && break
3734   done
3735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 esac
3737
3738
3739     $ac_path_EGREP_found && break 3
3740   done
3741 done
3742
3743 done
3744 IFS=$as_save_IFS
3745
3746
3747 fi
3748
3749 EGREP="$ac_cv_path_EGREP"
3750 if test -z "$EGREP"; then
3751   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 else
3757   ac_cv_path_EGREP=$EGREP
3758 fi
3759
3760
3761    fi
3762 fi
3763 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3764 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3765  EGREP="$ac_cv_path_EGREP"
3766
3767
3768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3770 if test "${ac_cv_header_stdc+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 #include <stdlib.h>
3780 #include <stdarg.h>
3781 #include <string.h>
3782 #include <float.h>
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799   (eval "$ac_compile") 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } && {
3806          test -z "$ac_c_werror_flag" ||
3807          test ! -s conftest.err
3808        } && test -s conftest.$ac_objext; then
3809   ac_cv_header_stdc=yes
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814         ac_cv_header_stdc=no
3815 fi
3816
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818
3819 if test $ac_cv_header_stdc = yes; then
3820   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3821   cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h.  */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h.  */
3827 #include <string.h>
3828
3829 _ACEOF
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831   $EGREP "memchr" >/dev/null 2>&1; then
3832   :
3833 else
3834   ac_cv_header_stdc=no
3835 fi
3836 rm -f conftest*
3837
3838 fi
3839
3840 if test $ac_cv_header_stdc = yes; then
3841   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3842   cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h.  */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h.  */
3848 #include <stdlib.h>
3849
3850 _ACEOF
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852   $EGREP "free" >/dev/null 2>&1; then
3853   :
3854 else
3855   ac_cv_header_stdc=no
3856 fi
3857 rm -f conftest*
3858
3859 fi
3860
3861 if test $ac_cv_header_stdc = yes; then
3862   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3863   if test "$cross_compiling" = yes; then
3864   :
3865 else
3866   cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h.  */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h.  */
3872 #include <ctype.h>
3873 #include <stdlib.h>
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3877 #else
3878 # define ISLOWER(c) \
3879                    (('a' <= (c) && (c) <= 'i') \
3880                      || ('j' <= (c) && (c) <= 'r') \
3881                      || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3883 #endif
3884
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3886 int
3887 main ()
3888 {
3889   int i;
3890   for (i = 0; i < 256; i++)
3891     if (XOR (islower (i), ISLOWER (i))
3892         || toupper (i) != TOUPPER (i))
3893       return 2;
3894   return 0;
3895 }
3896 _ACEOF
3897 rm -f conftest$ac_exeext
3898 if { (ac_try="$ac_link"
3899 case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904   (eval "$ac_link") 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3908   { (case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_try") 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   :
3918 else
3919   echo "$as_me: program exited with status $ac_status" >&5
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 ( exit $ac_status )
3924 ac_cv_header_stdc=no
3925 fi
3926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3927 fi
3928
3929
3930 fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3934 if test $ac_cv_header_stdc = yes; then
3935
3936 cat >>confdefs.h <<\_ACEOF
3937 #define STDC_HEADERS 1
3938 _ACEOF
3939
3940 fi
3941
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3953                   inttypes.h stdint.h unistd.h
3954 do
3955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 $ac_includes_default
3968
3969 #include <$ac_header>
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978   (eval "$ac_compile") 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && {
3985          test -z "$ac_c_werror_flag" ||
3986          test ! -s conftest.err
3987        } && test -s conftest.$ac_objext; then
3988   eval "$as_ac_Header=yes"
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993         eval "$as_ac_Header=no"
3994 fi
3995
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 ac_res=`eval echo '${'$as_ac_Header'}'`
3999                { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 echo "${ECHO_T}$ac_res" >&6; }
4001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4002   cat >>confdefs.h <<_ACEOF
4003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4004 _ACEOF
4005
4006 fi
4007
4008 done
4009
4010
4011
4012
4013
4014
4015 for ac_header in stdlib.h string.h sys/time.h unistd.h
4016 do
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 fi
4024 ac_res=`eval echo '${'$as_ac_Header'}'`
4025                { echo "$as_me:$LINENO: result: $ac_res" >&5
4026 echo "${ECHO_T}$ac_res" >&6; }
4027 else
4028   # Is the header compilable?
4029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4031 cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h.  */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h.  */
4037 $ac_includes_default
4038 #include <$ac_header>
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4042 case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } && {
4054          test -z "$ac_c_werror_flag" ||
4055          test ! -s conftest.err
4056        } && test -s conftest.$ac_objext; then
4057   ac_header_compiler=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062         ac_header_compiler=no
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4067 echo "${ECHO_T}$ac_header_compiler" >&6; }
4068
4069 # Is the header present?
4070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 #include <$ac_header>
4079 _ACEOF
4080 if { (ac_try="$ac_cpp conftest.$ac_ext"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } >/dev/null && {
4093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        }; then
4096   ac_header_preproc=yes
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101   ac_header_preproc=no
4102 fi
4103
4104 rm -f conftest.err conftest.$ac_ext
4105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4106 echo "${ECHO_T}$ac_header_preproc" >&6; }
4107
4108 # So?  What about this header?
4109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4110   yes:no: )
4111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4115     ac_header_preproc=yes
4116     ;;
4117   no:yes:* )
4118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4130     ( cat <<\_ASBOX
4131 ## --------------------------------------------- ##
4132 ## Report this to michel.vandenbergh@uhasselt.be ##
4133 ## --------------------------------------------- ##
4134 _ASBOX
4135      ) | sed "s/^/$as_me: WARNING:     /" >&2
4136     ;;
4137 esac
4138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   eval "$as_ac_Header=\$ac_header_preproc"
4144 fi
4145 ac_res=`eval echo '${'$as_ac_Header'}'`
4146                { echo "$as_me:$LINENO: result: $ac_res" >&5
4147 echo "${ECHO_T}$ac_res" >&6; }
4148
4149 fi
4150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4151   cat >>confdefs.h <<_ACEOF
4152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4153 _ACEOF
4154
4155 fi
4156
4157 done
4158
4159
4160 # Checks for typedefs, structures, and compiler characteristics.
4161 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4162 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4163 if test "${ac_cv_header_stdbool_h+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172
4173 #include <stdbool.h>
4174 #ifndef bool
4175  "error: bool is not defined"
4176 #endif
4177 #ifndef false
4178  "error: false is not defined"
4179 #endif
4180 #if false
4181  "error: false is not 0"
4182 #endif
4183 #ifndef true
4184  "error: true is not defined"
4185 #endif
4186 #if true != 1
4187  "error: true is not 1"
4188 #endif
4189 #ifndef __bool_true_false_are_defined
4190  "error: __bool_true_false_are_defined is not defined"
4191 #endif
4192
4193         struct s { _Bool s: 1; _Bool t; } s;
4194
4195         char a[true == 1 ? 1 : -1];
4196         char b[false == 0 ? 1 : -1];
4197         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4198         char d[(bool) 0.5 == true ? 1 : -1];
4199         bool e = &s;
4200         char f[(_Bool) 0.0 == false ? 1 : -1];
4201         char g[true];
4202         char h[sizeof (_Bool)];
4203         char i[sizeof s.t];
4204         enum { j = false, k = true, l = false * true, m = true * 256 };
4205         _Bool n[m];
4206         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4207         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4208 #       if defined __xlc__ || defined __GNUC__
4209          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4210             reported by James Lemley on 2005-10-05; see
4211             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4212             This test is not quite right, since xlc is allowed to
4213             reject this program, as the initializer for xlcbug is
4214             not one of the forms that C requires support for.
4215             However, doing the test right would require a runtime
4216             test, and that would make cross-compilation harder.
4217             Let us hope that IBM fixes the xlc bug, and also adds
4218             support for this kind of constant expression.  In the
4219             meantime, this test will reject xlc, which is OK, since
4220             our stdbool.h substitute should suffice.  We also test
4221             this with GCC, where it should work, to detect more
4222             quickly whether someone messes up the test in the
4223             future.  */
4224          char digs[] = "0123456789";
4225          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4226 #       endif
4227         /* Catch a bug in an HP-UX C compiler.  See
4228            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4229            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4230          */
4231         _Bool q = true;
4232         _Bool *pq = &q;
4233
4234 int
4235 main ()
4236 {
4237
4238         *pq |= q;
4239         *pq |= ! q;
4240         /* Refer to every declared value, to avoid compiler optimizations.  */
4241         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4242                 + !m + !n + !o + !p + !q + !pq);
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255   (eval "$ac_compile") 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } && {
4262          test -z "$ac_c_werror_flag" ||
4263          test ! -s conftest.err
4264        } && test -s conftest.$ac_objext; then
4265   ac_cv_header_stdbool_h=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270         ac_cv_header_stdbool_h=no
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4276 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4277 { echo "$as_me:$LINENO: checking for _Bool" >&5
4278 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4279 if test "${ac_cv_type__Bool+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 $ac_includes_default
4289 typedef _Bool ac__type_new_;
4290 int
4291 main ()
4292 {
4293 if ((ac__type_new_ *) 0)
4294   return 0;
4295 if (sizeof (ac__type_new_))
4296   return 0;
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_compile") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest.$ac_objext; then
4318   ac_cv_type__Bool=yes
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323         ac_cv_type__Bool=no
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4329 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4330 if test $ac_cv_type__Bool = yes; then
4331
4332 cat >>confdefs.h <<_ACEOF
4333 #define HAVE__BOOL 1
4334 _ACEOF
4335
4336
4337 fi
4338
4339 if test $ac_cv_header_stdbool_h = yes; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_STDBOOL_H 1
4343 _ACEOF
4344
4345 fi
4346
4347 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4348 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_const+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362 /* FIXME: Include the comments suggested by Paul. */
4363 #ifndef __cplusplus
4364   /* Ultrix mips cc rejects this.  */
4365   typedef int charset[2];
4366   const charset cs;
4367   /* SunOS 4.1.1 cc rejects this.  */
4368   char const *const *pcpcc;
4369   char **ppc;
4370   /* NEC SVR4.0.2 mips cc rejects this.  */
4371   struct point {int x, y;};
4372   static struct point const zero = {0,0};
4373   /* AIX XL C 1.02.0.0 rejects this.
4374      It does not let you subtract one const X* pointer from another in
4375      an arm of an if-expression whose if-part is not a constant
4376      expression */
4377   const char *g = "string";
4378   pcpcc = &g + (g ? g-g : 0);
4379   /* HPUX 7.0 cc rejects these. */
4380   ++pcpcc;
4381   ppc = (char**) pcpcc;
4382   pcpcc = (char const *const *) ppc;
4383   { /* SCO 3.2v4 cc rejects this.  */
4384     char *t;
4385     char const *s = 0 ? (char *) 0 : (char const *) 0;
4386
4387     *t++ = 0;
4388     if (s) return 0;
4389   }
4390   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4391     int x[] = {25, 17};
4392     const int *foo = &x[0];
4393     ++foo;
4394   }
4395   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4396     typedef const int *iptr;
4397     iptr p = 0;
4398     ++p;
4399   }
4400   { /* AIX XL C 1.02.0.0 rejects this saying
4401        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4402     struct s { int j; const int *ap[3]; };
4403     struct s *b; b->j = 5;
4404   }
4405   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4406     const int foo = 10;
4407     if (!foo) return 0;
4408   }
4409   return !cs[0] && !zero.x;
4410 #endif
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_compile") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest.$ac_objext; then
4433   ac_cv_c_const=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438         ac_cv_c_const=no
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4444 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4445 if test $ac_cv_c_const = no; then
4446
4447 cat >>confdefs.h <<\_ACEOF
4448 #define const
4449 _ACEOF
4450
4451 fi
4452
4453 { echo "$as_me:$LINENO: checking for inline" >&5
4454 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4455 if test "${ac_cv_c_inline+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   ac_cv_c_inline=no
4459 for ac_kw in inline __inline__ __inline; do
4460   cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #ifndef __cplusplus
4467 typedef int foo_t;
4468 static $ac_kw foo_t static_foo () {return 0; }
4469 $ac_kw foo_t foo () {return 0; }
4470 #endif
4471
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4475 case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480   (eval "$ac_compile") 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } && {
4487          test -z "$ac_c_werror_flag" ||
4488          test ! -s conftest.err
4489        } && test -s conftest.$ac_objext; then
4490   ac_cv_c_inline=$ac_kw
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495
4496 fi
4497
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499   test "$ac_cv_c_inline" != no && break
4500 done
4501
4502 fi
4503 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4504 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4505
4506
4507 case $ac_cv_c_inline in
4508   inline | yes) ;;
4509   *)
4510     case $ac_cv_c_inline in
4511       no) ac_val=;;
4512       *) ac_val=$ac_cv_c_inline;;
4513     esac
4514     cat >>confdefs.h <<_ACEOF
4515 #ifndef __cplusplus
4516 #define inline $ac_val
4517 #endif
4518 _ACEOF
4519     ;;
4520 esac
4521
4522 { echo "$as_me:$LINENO: checking for pid_t" >&5
4523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4524 if test "${ac_cv_type_pid_t+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534 typedef pid_t ac__type_new_;
4535 int
4536 main ()
4537 {
4538 if ((ac__type_new_ *) 0)
4539   return 0;
4540 if (sizeof (ac__type_new_))
4541   return 0;
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (ac_try="$ac_compile"
4548 case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553   (eval "$ac_compile") 2>conftest.er1
4554   ac_status=$?
4555   grep -v '^ *+' conftest.er1 >conftest.err
4556   rm -f conftest.er1
4557   cat conftest.err >&5
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } && {
4560          test -z "$ac_c_werror_flag" ||
4561          test ! -s conftest.err
4562        } && test -s conftest.$ac_objext; then
4563   ac_cv_type_pid_t=yes
4564 else
4565   echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568         ac_cv_type_pid_t=no
4569 fi
4570
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4574 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4575 if test $ac_cv_type_pid_t = yes; then
4576   :
4577 else
4578
4579 cat >>confdefs.h <<_ACEOF
4580 #define pid_t int
4581 _ACEOF
4582
4583 fi
4584
4585 { echo "$as_me:$LINENO: checking for size_t" >&5
4586 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4587 if test "${ac_cv_type_size_t+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 $ac_includes_default
4597 typedef size_t ac__type_new_;
4598 int
4599 main ()
4600 {
4601 if ((ac__type_new_ *) 0)
4602   return 0;
4603 if (sizeof (ac__type_new_))
4604   return 0;
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4611 case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_compile") 2>conftest.er1
4617   ac_status=$?
4618   grep -v '^ *+' conftest.er1 >conftest.err
4619   rm -f conftest.er1
4620   cat conftest.err >&5
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } && {
4623          test -z "$ac_c_werror_flag" ||
4624          test ! -s conftest.err
4625        } && test -s conftest.$ac_objext; then
4626   ac_cv_type_size_t=yes
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631         ac_cv_type_size_t=no
4632 fi
4633
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4637 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4638 if test $ac_cv_type_size_t = yes; then
4639   :
4640 else
4641
4642 cat >>confdefs.h <<_ACEOF
4643 #define size_t unsigned int
4644 _ACEOF
4645
4646 fi
4647
4648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4650 if test "${ac_cv_header_time+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 #include <sys/types.h>
4660 #include <sys/time.h>
4661 #include <time.h>
4662
4663 int
4664 main ()
4665 {
4666 if ((struct tm *) 0)
4667 return 0;
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_compile") 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } && {
4686          test -z "$ac_c_werror_flag" ||
4687          test ! -s conftest.err
4688        } && test -s conftest.$ac_objext; then
4689   ac_cv_header_time=yes
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694         ac_cv_header_time=no
4695 fi
4696
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 fi
4699 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4700 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4701 if test $ac_cv_header_time = yes; then
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define TIME_WITH_SYS_TIME 1
4705 _ACEOF
4706
4707 fi
4708
4709
4710 # Checks for library functions.
4711
4712 for ac_header in vfork.h
4713 do
4714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 fi
4721 ac_res=`eval echo '${'$as_ac_Header'}'`
4722                { echo "$as_me:$LINENO: result: $ac_res" >&5
4723 echo "${ECHO_T}$ac_res" >&6; }
4724 else
4725   # Is the header compilable?
4726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 $ac_includes_default
4735 #include <$ac_header>
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (ac_try="$ac_compile"
4739 case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_compile") 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } && {
4751          test -z "$ac_c_werror_flag" ||
4752          test ! -s conftest.err
4753        } && test -s conftest.$ac_objext; then
4754   ac_header_compiler=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759         ac_header_compiler=no
4760 fi
4761
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4764 echo "${ECHO_T}$ac_header_compiler" >&6; }
4765
4766 # Is the header present?
4767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <$ac_header>
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } >/dev/null && {
4790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791          test ! -s conftest.err
4792        }; then
4793   ac_header_preproc=yes
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798   ac_header_preproc=no
4799 fi
4800
4801 rm -f conftest.err conftest.$ac_ext
4802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803 echo "${ECHO_T}$ac_header_preproc" >&6; }
4804
4805 # So?  What about this header?
4806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4807   yes:no: )
4808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4812     ac_header_preproc=yes
4813     ;;
4814   no:yes:* )
4815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4827     ( cat <<\_ASBOX
4828 ## --------------------------------------------- ##
4829 ## Report this to michel.vandenbergh@uhasselt.be ##
4830 ## --------------------------------------------- ##
4831 _ASBOX
4832      ) | sed "s/^/$as_me: WARNING:     /" >&2
4833     ;;
4834 esac
4835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   eval "$as_ac_Header=\$ac_header_preproc"
4841 fi
4842 ac_res=`eval echo '${'$as_ac_Header'}'`
4843                { echo "$as_me:$LINENO: result: $ac_res" >&5
4844 echo "${ECHO_T}$ac_res" >&6; }
4845
4846 fi
4847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4848   cat >>confdefs.h <<_ACEOF
4849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850 _ACEOF
4851
4852 fi
4853
4854 done
4855
4856
4857
4858 for ac_func in fork vfork
4859 do
4860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4874 #define $ac_func innocuous_$ac_func
4875
4876 /* System header to define __stub macros and hopefully few prototypes,
4877     which can conflict with char $ac_func (); below.
4878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4879     <limits.h> exists even on freestanding compilers.  */
4880
4881 #ifdef __STDC__
4882 # include <limits.h>
4883 #else
4884 # include <assert.h>
4885 #endif
4886
4887 #undef $ac_func
4888
4889 /* Override any GCC internal prototype to avoid an error.
4890    Use char because int might match the return type of a GCC
4891    builtin and then its argument prototype would still apply.  */
4892 #ifdef __cplusplus
4893 extern "C"
4894 #endif
4895 char $ac_func ();
4896 /* The GNU C library defines this for functions which it implements
4897     to always fail with ENOSYS.  Some functions are actually named
4898     something starting with __ and the normal name is an alias.  */
4899 #if defined __stub_$ac_func || defined __stub___$ac_func
4900 choke me
4901 #endif
4902
4903 int
4904 main ()
4905 {
4906 return $ac_func ();
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (ac_try="$ac_link"
4913 case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918   (eval "$ac_link") 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } && {
4925          test -z "$ac_c_werror_flag" ||
4926          test ! -s conftest.err
4927        } && test -s conftest$ac_exeext &&
4928        $as_test_x conftest$ac_exeext; then
4929   eval "$as_ac_var=yes"
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934         eval "$as_ac_var=no"
4935 fi
4936
4937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4938       conftest$ac_exeext conftest.$ac_ext
4939 fi
4940 ac_res=`eval echo '${'$as_ac_var'}'`
4941                { echo "$as_me:$LINENO: result: $ac_res" >&5
4942 echo "${ECHO_T}$ac_res" >&6; }
4943 if test `eval echo '${'$as_ac_var'}'` = yes; then
4944   cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4946 _ACEOF
4947
4948 fi
4949 done
4950
4951 if test "x$ac_cv_func_fork" = xyes; then
4952   { echo "$as_me:$LINENO: checking for working fork" >&5
4953 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
4954 if test "${ac_cv_func_fork_works+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test "$cross_compiling" = yes; then
4958   ac_cv_func_fork_works=cross
4959 else
4960   cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h.  */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h.  */
4966 $ac_includes_default
4967 int
4968 main ()
4969 {
4970
4971           /* By Ruediger Kuhlmann. */
4972           return fork () < 0;
4973
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest$ac_exeext
4979 if { (ac_try="$ac_link"
4980 case "(($ac_try" in
4981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982   *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985   (eval "$ac_link") 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4989   { (case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994   (eval "$ac_try") 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_func_fork_works=yes
4999 else
5000   echo "$as_me: program exited with status $ac_status" >&5
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 ( exit $ac_status )
5005 ac_cv_func_fork_works=no
5006 fi
5007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5008 fi
5009
5010
5011 fi
5012 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5013 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
5014
5015 else
5016   ac_cv_func_fork_works=$ac_cv_func_fork
5017 fi
5018 if test "x$ac_cv_func_fork_works" = xcross; then
5019   case $host in
5020     *-*-amigaos* | *-*-msdosdjgpp*)
5021       # Override, as these systems have only a dummy fork() stub
5022       ac_cv_func_fork_works=no
5023       ;;
5024     *)
5025       ac_cv_func_fork_works=yes
5026       ;;
5027   esac
5028   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5029 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5030 fi
5031 ac_cv_func_vfork_works=$ac_cv_func_vfork
5032 if test "x$ac_cv_func_vfork" = xyes; then
5033   { echo "$as_me:$LINENO: checking for working vfork" >&5
5034 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
5035 if test "${ac_cv_func_vfork_works+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   if test "$cross_compiling" = yes; then
5039   ac_cv_func_vfork_works=cross
5040 else
5041   cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047 /* Thanks to Paul Eggert for this test.  */
5048 $ac_includes_default
5049 #include <sys/wait.h>
5050 #ifdef HAVE_VFORK_H
5051 # include <vfork.h>
5052 #endif
5053 /* On some sparc systems, changes by the child to local and incoming
5054    argument registers are propagated back to the parent.  The compiler
5055    is told about this with #include <vfork.h>, but some compilers
5056    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5057    static variable whose address is put into a register that is
5058    clobbered by the vfork.  */
5059 static void
5060 #ifdef __cplusplus
5061 sparc_address_test (int arg)
5062 # else
5063 sparc_address_test (arg) int arg;
5064 #endif
5065 {
5066   static pid_t child;
5067   if (!child) {
5068     child = vfork ();
5069     if (child < 0) {
5070       perror ("vfork");
5071       _exit(2);
5072     }
5073     if (!child) {
5074       arg = getpid();
5075       write(-1, "", 0);
5076       _exit (arg);
5077     }
5078   }
5079 }
5080
5081 int
5082 main ()
5083 {
5084   pid_t parent = getpid ();
5085   pid_t child;
5086
5087   sparc_address_test (0);
5088
5089   child = vfork ();
5090
5091   if (child == 0) {
5092     /* Here is another test for sparc vfork register problems.  This
5093        test uses lots of local variables, at least as many local
5094        variables as main has allocated so far including compiler
5095        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5096        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5097        reuse the register of parent for one of the local variables,
5098        since it will think that parent can't possibly be used any more
5099        in this routine.  Assigning to the local variable will thus
5100        munge parent in the parent process.  */
5101     pid_t
5102       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5103       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5104     /* Convince the compiler that p..p7 are live; otherwise, it might
5105        use the same hardware register for all 8 local variables.  */
5106     if (p != p1 || p != p2 || p != p3 || p != p4
5107         || p != p5 || p != p6 || p != p7)
5108       _exit(1);
5109
5110     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5111        from child file descriptors.  If the child closes a descriptor
5112        before it execs or exits, this munges the parent's descriptor
5113        as well.  Test for this by closing stdout in the child.  */
5114     _exit(close(fileno(stdout)) != 0);
5115   } else {
5116     int status;
5117     struct stat st;
5118
5119     while (wait(&status) != child)
5120       ;
5121     return (
5122          /* Was there some problem with vforking?  */
5123          child < 0
5124
5125          /* Did the child fail?  (This shouldn't happen.)  */
5126          || status
5127
5128          /* Did the vfork/compiler bug occur?  */
5129          || parent != getpid()
5130
5131          /* Did the file descriptor bug occur?  */
5132          || fstat(fileno(stdout), &st) != 0
5133          );
5134   }
5135 }
5136 _ACEOF
5137 rm -f conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5139 case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144   (eval "$ac_link") 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148   { (case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_try") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; }; then
5157   ac_cv_func_vfork_works=yes
5158 else
5159   echo "$as_me: program exited with status $ac_status" >&5
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ( exit $ac_status )
5164 ac_cv_func_vfork_works=no
5165 fi
5166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167 fi
5168
5169
5170 fi
5171 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5172 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
5173
5174 fi;
5175 if test "x$ac_cv_func_fork_works" = xcross; then
5176   ac_cv_func_vfork_works=$ac_cv_func_vfork
5177   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5178 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5179 fi
5180
5181 if test "x$ac_cv_func_vfork_works" = xyes; then
5182
5183 cat >>confdefs.h <<\_ACEOF
5184 #define HAVE_WORKING_VFORK 1
5185 _ACEOF
5186
5187 else
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define vfork fork
5191 _ACEOF
5192
5193 fi
5194 if test "x$ac_cv_func_fork_works" = xyes; then
5195
5196 cat >>confdefs.h <<\_ACEOF
5197 #define HAVE_WORKING_FORK 1
5198 _ACEOF
5199
5200 fi
5201
5202
5203 for ac_header in stdlib.h
5204 do
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 fi
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213                { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5215 else
5216   # Is the header compilable?
5217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 $ac_includes_default
5226 #include <$ac_header>
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && {
5242          test -z "$ac_c_werror_flag" ||
5243          test ! -s conftest.err
5244        } && test -s conftest.$ac_objext; then
5245   ac_header_compiler=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250         ac_header_compiler=no
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255 echo "${ECHO_T}$ac_header_compiler" >&6; }
5256
5257 # Is the header present?
5258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #include <$ac_header>
5267 _ACEOF
5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
5269 case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } >/dev/null && {
5281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282          test ! -s conftest.err
5283        }; then
5284   ac_header_preproc=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289   ac_header_preproc=no
5290 fi
5291
5292 rm -f conftest.err conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6; }
5295
5296 # So?  What about this header?
5297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5298   yes:no: )
5299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303     ac_header_preproc=yes
5304     ;;
5305   no:yes:* )
5306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5318     ( cat <<\_ASBOX
5319 ## --------------------------------------------- ##
5320 ## Report this to michel.vandenbergh@uhasselt.be ##
5321 ## --------------------------------------------- ##
5322 _ASBOX
5323      ) | sed "s/^/$as_me: WARNING:     /" >&2
5324     ;;
5325 esac
5326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   eval "$as_ac_Header=\$ac_header_preproc"
5332 fi
5333 ac_res=`eval echo '${'$as_ac_Header'}'`
5334                { echo "$as_me:$LINENO: result: $ac_res" >&5
5335 echo "${ECHO_T}$ac_res" >&6; }
5336
5337 fi
5338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5339   cat >>confdefs.h <<_ACEOF
5340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5341 _ACEOF
5342
5343 fi
5344
5345 done
5346
5347 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5348 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5349 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   if test "$cross_compiling" = yes; then
5353   ac_cv_func_malloc_0_nonnull=no
5354 else
5355   cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5362 # include <stdlib.h>
5363 #else
5364 char *malloc ();
5365 #endif
5366
5367 int
5368 main ()
5369 {
5370 return ! malloc (0);
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest$ac_exeext
5376 if { (ac_try="$ac_link"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_link") 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5386   { (case "(($ac_try" in
5387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388   *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391   (eval "$ac_try") 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; }; then
5395   ac_cv_func_malloc_0_nonnull=yes
5396 else
5397   echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 ( exit $ac_status )
5402 ac_cv_func_malloc_0_nonnull=no
5403 fi
5404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5405 fi
5406
5407
5408 fi
5409 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5410 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5411 if test $ac_cv_func_malloc_0_nonnull = yes; then
5412
5413 cat >>confdefs.h <<\_ACEOF
5414 #define HAVE_MALLOC 1
5415 _ACEOF
5416
5417 else
5418   cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_MALLOC 0
5420 _ACEOF
5421
5422    case " $LIBOBJS " in
5423   *" malloc.$ac_objext "* ) ;;
5424   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5425  ;;
5426 esac
5427
5428
5429 cat >>confdefs.h <<\_ACEOF
5430 #define malloc rpl_malloc
5431 _ACEOF
5432
5433 fi
5434
5435
5436
5437
5438 for ac_header in stdlib.h
5439 do
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 fi
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448                { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5450 else
5451   # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 $ac_includes_default
5461 #include <$ac_header>
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_header_compiler=yes
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         ac_header_compiler=no
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5491
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 #include <$ac_header>
5502 _ACEOF
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } >/dev/null && {
5516          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        }; then
5519   ac_header_preproc=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524   ac_header_preproc=no
5525 fi
5526
5527 rm -f conftest.err conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5530
5531 # So?  What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533   yes:no: )
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538     ac_header_preproc=yes
5539     ;;
5540   no:yes:* )
5541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553     ( cat <<\_ASBOX
5554 ## --------------------------------------------- ##
5555 ## Report this to michel.vandenbergh@uhasselt.be ##
5556 ## --------------------------------------------- ##
5557 _ASBOX
5558      ) | sed "s/^/$as_me: WARNING:     /" >&2
5559     ;;
5560 esac
5561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   eval "$as_ac_Header=\$ac_header_preproc"
5567 fi
5568 ac_res=`eval echo '${'$as_ac_Header'}'`
5569                { echo "$as_me:$LINENO: result: $ac_res" >&5
5570 echo "${ECHO_T}$ac_res" >&6; }
5571
5572 fi
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574   cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579
5580 done
5581
5582 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5583 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
5584 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   if test "$cross_compiling" = yes; then
5588   ac_cv_func_realloc_0_nonnull=no
5589 else
5590   cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5597 # include <stdlib.h>
5598 #else
5599 char *realloc ();
5600 #endif
5601
5602 int
5603 main ()
5604 {
5605 return ! realloc (0, 0);
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest$ac_exeext
5611 if { (ac_try="$ac_link"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_link") 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5621   { (case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_try") 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; }; then
5630   ac_cv_func_realloc_0_nonnull=yes
5631 else
5632   echo "$as_me: program exited with status $ac_status" >&5
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ( exit $ac_status )
5637 ac_cv_func_realloc_0_nonnull=no
5638 fi
5639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5640 fi
5641
5642
5643 fi
5644 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5645 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
5646 if test $ac_cv_func_realloc_0_nonnull = yes; then
5647
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_REALLOC 1
5650 _ACEOF
5651
5652 else
5653   cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_REALLOC 0
5655 _ACEOF
5656
5657    case " $LIBOBJS " in
5658   *" realloc.$ac_objext "* ) ;;
5659   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5660  ;;
5661 esac
5662
5663
5664 cat >>confdefs.h <<\_ACEOF
5665 #define realloc rpl_realloc
5666 _ACEOF
5667
5668 fi
5669
5670
5671
5672
5673
5674 for ac_header in sys/select.h sys/socket.h
5675 do
5676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5678   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 fi
5683 ac_res=`eval echo '${'$as_ac_Header'}'`
5684                { echo "$as_me:$LINENO: result: $ac_res" >&5
5685 echo "${ECHO_T}$ac_res" >&6; }
5686 else
5687   # Is the header compilable?
5688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 $ac_includes_default
5697 #include <$ac_header>
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706   (eval "$ac_compile") 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } && {
5713          test -z "$ac_c_werror_flag" ||
5714          test ! -s conftest.err
5715        } && test -s conftest.$ac_objext; then
5716   ac_header_compiler=yes
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721         ac_header_compiler=no
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5726 echo "${ECHO_T}$ac_header_compiler" >&6; }
5727
5728 # Is the header present?
5729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737 #include <$ac_header>
5738 _ACEOF
5739 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 case "(($ac_try" in
5741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742   *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5746   ac_status=$?
5747   grep -v '^ *+' conftest.er1 >conftest.err
5748   rm -f conftest.er1
5749   cat conftest.err >&5
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); } >/dev/null && {
5752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753          test ! -s conftest.err
5754        }; then
5755   ac_header_preproc=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760   ac_header_preproc=no
5761 fi
5762
5763 rm -f conftest.err conftest.$ac_ext
5764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5765 echo "${ECHO_T}$ac_header_preproc" >&6; }
5766
5767 # So?  What about this header?
5768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5769   yes:no: )
5770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5774     ac_header_preproc=yes
5775     ;;
5776   no:yes:* )
5777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5789     ( cat <<\_ASBOX
5790 ## --------------------------------------------- ##
5791 ## Report this to michel.vandenbergh@uhasselt.be ##
5792 ## --------------------------------------------- ##
5793 _ASBOX
5794      ) | sed "s/^/$as_me: WARNING:     /" >&2
5795     ;;
5796 esac
5797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   eval "$as_ac_Header=\$ac_header_preproc"
5803 fi
5804 ac_res=`eval echo '${'$as_ac_Header'}'`
5805                { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5807
5808 fi
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810   cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 _ACEOF
5813
5814 fi
5815
5816 done
5817
5818 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
5819 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
5820 if test "${ac_cv_func_select_args+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5824  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5825   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5826    cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832 $ac_includes_default
5833 #ifdef HAVE_SYS_SELECT_H
5834 # include <sys/select.h>
5835 #endif
5836 #ifdef HAVE_SYS_SOCKET_H
5837 # include <sys/socket.h>
5838 #endif
5839
5840 int
5841 main ()
5842 {
5843 extern int select ($ac_arg1,
5844                                             $ac_arg234, $ac_arg234, $ac_arg234,
5845                                             $ac_arg5);
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compile") 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } && {
5864          test -z "$ac_c_werror_flag" ||
5865          test ! -s conftest.err
5866        } && test -s conftest.$ac_objext; then
5867   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5868 else
5869   echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872
5873 fi
5874
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876   done
5877  done
5878 done
5879 # Provide a safe default value.
5880 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5881
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5884 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
5885 ac_save_IFS=$IFS; IFS=','
5886 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5887 IFS=$ac_save_IFS
5888 shift
5889
5890 cat >>confdefs.h <<_ACEOF
5891 #define SELECT_TYPE_ARG1 $1
5892 _ACEOF
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define SELECT_TYPE_ARG234 ($2)
5897 _ACEOF
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define SELECT_TYPE_ARG5 ($3)
5902 _ACEOF
5903
5904 rm -f conftest*
5905
5906 { echo "$as_me:$LINENO: checking for function prototypes" >&5
5907 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
5908 if test "$ac_cv_prog_cc_c89" != no; then
5909   { echo "$as_me:$LINENO: result: yes" >&5
5910 echo "${ECHO_T}yes" >&6; }
5911
5912 cat >>confdefs.h <<\_ACEOF
5913 #define PROTOTYPES 1
5914 _ACEOF
5915
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define __PROTOTYPES 1
5919 _ACEOF
5920
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
5927 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
5928 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   ac_cv_func_setvbuf_reversed=no
5932    cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 #include <stdio.h>
5939 #         ifdef PROTOTYPES
5940            int (setvbuf) (FILE *, int, char *, size_t);
5941 #         endif
5942 int
5943 main ()
5944 {
5945 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_link") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest$ac_exeext &&
5967        $as_test_x conftest$ac_exeext; then
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 #include <stdio.h>
5975 #            ifdef PROTOTYPES
5976               int (setvbuf) (FILE *, int, char *, size_t);
5977 #            endif
5978 int
5979 main ()
5980 {
5981 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5988 case "(($ac_try" in
5989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990   *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993   (eval "$ac_link") 2>conftest.er1
5994   ac_status=$?
5995   grep -v '^ *+' conftest.er1 >conftest.err
5996   rm -f conftest.er1
5997   cat conftest.err >&5
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } && {
6000          test -z "$ac_c_werror_flag" ||
6001          test ! -s conftest.err
6002        } && test -s conftest$ac_exeext &&
6003        $as_test_x conftest$ac_exeext; then
6004   # It compiles and links either way, so it must not be declared
6005          # with a prototype and most likely this is a K&R C compiler.
6006          # Try running it.
6007          if test "$cross_compiling" = yes; then
6008   : # Assume setvbuf is not reversed when cross-compiling.
6009 else
6010   cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 $ac_includes_default
6017 int
6018 main ()
6019 {
6020 /* This call has the arguments reversed.
6021                    A reversed system may check and see that the address of buf
6022                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
6023                 char buf;
6024                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
6025                   return 1;
6026                 putchar ('\r');
6027                 return 0; /* Non-reversed systems SEGV here.  */
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest$ac_exeext
6033 if { (ac_try="$ac_link"
6034 case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_link") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043   { (case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_try") 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   ac_cv_func_setvbuf_reversed=yes
6053 else
6054   echo "$as_me: program exited with status $ac_status" >&5
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 fi
6059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6060 fi
6061
6062
6063         ac_cv_func_setvbuf_reversed=yes
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072       conftest$ac_exeext conftest.$ac_ext
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081       conftest$ac_exeext conftest.$ac_ext
6082 fi
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6084 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
6085 if test $ac_cv_func_setvbuf_reversed = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define SETVBUF_REVERSED 1
6089 _ACEOF
6090
6091 fi
6092
6093 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6094 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6095 if test "${ac_cv_type_signal+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h.  */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h.  */
6104 #include <sys/types.h>
6105 #include <signal.h>
6106
6107 int
6108 main ()
6109 {
6110 return *(signal (0, 0)) (0) == 1;
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119   *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122   (eval "$ac_compile") 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } && {
6129          test -z "$ac_c_werror_flag" ||
6130          test ! -s conftest.err
6131        } && test -s conftest.$ac_objext; then
6132   ac_cv_type_signal=int
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137         ac_cv_type_signal=void
6138 fi
6139
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6143 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define RETSIGTYPE $ac_cv_type_signal
6147 _ACEOF
6148
6149
6150
6151 for ac_func in vprintf
6152 do
6153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6167 #define $ac_func innocuous_$ac_func
6168
6169 /* System header to define __stub macros and hopefully few prototypes,
6170     which can conflict with char $ac_func (); below.
6171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172     <limits.h> exists even on freestanding compilers.  */
6173
6174 #ifdef __STDC__
6175 # include <limits.h>
6176 #else
6177 # include <assert.h>
6178 #endif
6179
6180 #undef $ac_func
6181
6182 /* Override any GCC internal prototype to avoid an error.
6183    Use char because int might match the return type of a GCC
6184    builtin and then its argument prototype would still apply.  */
6185 #ifdef __cplusplus
6186 extern "C"
6187 #endif
6188 char $ac_func ();
6189 /* The GNU C library defines this for functions which it implements
6190     to always fail with ENOSYS.  Some functions are actually named
6191     something starting with __ and the normal name is an alias.  */
6192 #if defined __stub_$ac_func || defined __stub___$ac_func
6193 choke me
6194 #endif
6195
6196 int
6197 main ()
6198 {
6199 return $ac_func ();
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6206 case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_link") 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } && {
6218          test -z "$ac_c_werror_flag" ||
6219          test ! -s conftest.err
6220        } && test -s conftest$ac_exeext &&
6221        $as_test_x conftest$ac_exeext; then
6222   eval "$as_ac_var=yes"
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227         eval "$as_ac_var=no"
6228 fi
6229
6230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6231       conftest$ac_exeext conftest.$ac_ext
6232 fi
6233 ac_res=`eval echo '${'$as_ac_var'}'`
6234                { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6236 if test `eval echo '${'$as_ac_var'}'` = yes; then
6237   cat >>confdefs.h <<_ACEOF
6238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6239 _ACEOF
6240
6241 { echo "$as_me:$LINENO: checking for _doprnt" >&5
6242 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6243 if test "${ac_cv_func__doprnt+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6254 #define _doprnt innocuous__doprnt
6255
6256 /* System header to define __stub macros and hopefully few prototypes,
6257     which can conflict with char _doprnt (); below.
6258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6259     <limits.h> exists even on freestanding compilers.  */
6260
6261 #ifdef __STDC__
6262 # include <limits.h>
6263 #else
6264 # include <assert.h>
6265 #endif
6266
6267 #undef _doprnt
6268
6269 /* Override any GCC internal prototype to avoid an error.
6270    Use char because int might match the return type of a GCC
6271    builtin and then its argument prototype would still apply.  */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 char _doprnt ();
6276 /* The GNU C library defines this for functions which it implements
6277     to always fail with ENOSYS.  Some functions are actually named
6278     something starting with __ and the normal name is an alias.  */
6279 #if defined __stub__doprnt || defined __stub____doprnt
6280 choke me
6281 #endif
6282
6283 int
6284 main ()
6285 {
6286 return _doprnt ();
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (ac_try="$ac_link"
6293 case "(($ac_try" in
6294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295   *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298   (eval "$ac_link") 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } && {
6305          test -z "$ac_c_werror_flag" ||
6306          test ! -s conftest.err
6307        } && test -s conftest$ac_exeext &&
6308        $as_test_x conftest$ac_exeext; then
6309   ac_cv_func__doprnt=yes
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314         ac_cv_func__doprnt=no
6315 fi
6316
6317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6318       conftest$ac_exeext conftest.$ac_ext
6319 fi
6320 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6321 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6322 if test $ac_cv_func__doprnt = yes; then
6323
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_DOPRNT 1
6326 _ACEOF
6327
6328 fi
6329
6330 fi
6331 done
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 for ac_func in dup2 floor gettimeofday memchr memmove select strchr strdup strerror strstr
6345 do
6346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6360 #define $ac_func innocuous_$ac_func
6361
6362 /* System header to define __stub macros and hopefully few prototypes,
6363     which can conflict with char $ac_func (); below.
6364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365     <limits.h> exists even on freestanding compilers.  */
6366
6367 #ifdef __STDC__
6368 # include <limits.h>
6369 #else
6370 # include <assert.h>
6371 #endif
6372
6373 #undef $ac_func
6374
6375 /* Override any GCC internal prototype to avoid an error.
6376    Use char because int might match the return type of a GCC
6377    builtin and then its argument prototype would still apply.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 char $ac_func ();
6382 /* The GNU C library defines this for functions which it implements
6383     to always fail with ENOSYS.  Some functions are actually named
6384     something starting with __ and the normal name is an alias.  */
6385 #if defined __stub_$ac_func || defined __stub___$ac_func
6386 choke me
6387 #endif
6388
6389 int
6390 main ()
6391 {
6392 return $ac_func ();
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (ac_try="$ac_link"
6399 case "(($ac_try" in
6400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401   *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404   (eval "$ac_link") 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } && {
6411          test -z "$ac_c_werror_flag" ||
6412          test ! -s conftest.err
6413        } && test -s conftest$ac_exeext &&
6414        $as_test_x conftest$ac_exeext; then
6415   eval "$as_ac_var=yes"
6416 else
6417   echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420         eval "$as_ac_var=no"
6421 fi
6422
6423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6424       conftest$ac_exeext conftest.$ac_ext
6425 fi
6426 ac_res=`eval echo '${'$as_ac_var'}'`
6427                { echo "$as_me:$LINENO: result: $ac_res" >&5
6428 echo "${ECHO_T}$ac_res" >&6; }
6429 if test `eval echo '${'$as_ac_var'}'` = yes; then
6430   cat >>confdefs.h <<_ACEOF
6431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6432 _ACEOF
6433
6434 fi
6435 done
6436
6437
6438
6439 ac_config_files="$ac_config_files Makefile"
6440
6441 cat >confcache <<\_ACEOF
6442 # This file is a shell script that caches the results of configure
6443 # tests run on this system so they can be shared between configure
6444 # scripts and configure runs, see configure's option --config-cache.
6445 # It is not useful on other systems.  If it contains results you don't
6446 # want to keep, you may remove or edit it.
6447 #
6448 # config.status only pays attention to the cache file if you give it
6449 # the --recheck option to rerun configure.
6450 #
6451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6453 # following values.
6454
6455 _ACEOF
6456
6457 # The following way of writing the cache mishandles newlines in values,
6458 # but we know of no workaround that is simple, portable, and efficient.
6459 # So, we kill variables containing newlines.
6460 # Ultrix sh set writes to stderr and can't be redirected directly,
6461 # and sets the high bit in the cache file unless we assign to the vars.
6462 (
6463   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6464     eval ac_val=\$$ac_var
6465     case $ac_val in #(
6466     *${as_nl}*)
6467       case $ac_var in #(
6468       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6469 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6470       esac
6471       case $ac_var in #(
6472       _ | IFS | as_nl) ;; #(
6473       *) $as_unset $ac_var ;;
6474       esac ;;
6475     esac
6476   done
6477
6478   (set) 2>&1 |
6479     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6480     *${as_nl}ac_space=\ *)
6481       # `set' does not quote correctly, so add quotes (double-quote
6482       # substitution turns \\\\ into \\, and sed turns \\ into \).
6483       sed -n \
6484         "s/'/'\\\\''/g;
6485           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6486       ;; #(
6487     *)
6488       # `set' quotes correctly as required by POSIX, so do not add quotes.
6489       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6490       ;;
6491     esac |
6492     sort
6493 ) |
6494   sed '
6495      /^ac_cv_env_/b end
6496      t clear
6497      :clear
6498      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6499      t end
6500      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6501      :end' >>confcache
6502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6503   if test -w "$cache_file"; then
6504     test "x$cache_file" != "x/dev/null" &&
6505       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6506 echo "$as_me: updating cache $cache_file" >&6;}
6507     cat confcache >$cache_file
6508   else
6509     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6510 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6511   fi
6512 fi
6513 rm -f confcache
6514
6515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6516 # Let make expand exec_prefix.
6517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6518
6519 DEFS=-DHAVE_CONFIG_H
6520
6521 ac_libobjs=
6522 ac_ltlibobjs=
6523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6524   # 1. Remove the extension, and $U if already installed.
6525   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6526   ac_i=`echo "$ac_i" | sed "$ac_script"`
6527   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6528   #    will be set to the directory where LIBOBJS objects are built.
6529   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6530   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6531 done
6532 LIBOBJS=$ac_libobjs
6533
6534 LTLIBOBJS=$ac_ltlibobjs
6535
6536
6537 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6538   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6539 Usually this means the macro was only invoked conditionally." >&5
6540 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6541 Usually this means the macro was only invoked conditionally." >&2;}
6542    { (exit 1); exit 1; }; }
6543 fi
6544 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6545   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6546 Usually this means the macro was only invoked conditionally." >&5
6547 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6548 Usually this means the macro was only invoked conditionally." >&2;}
6549    { (exit 1); exit 1; }; }
6550 fi
6551
6552 : ${CONFIG_STATUS=./config.status}
6553 ac_clean_files_save=$ac_clean_files
6554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6557 cat >$CONFIG_STATUS <<_ACEOF
6558 #! $SHELL
6559 # Generated by $as_me.
6560 # Run this file to recreate the current configuration.
6561 # Compiler output produced by configure, useful for debugging
6562 # configure, is in config.log if it exists.
6563
6564 debug=false
6565 ac_cs_recheck=false
6566 ac_cs_silent=false
6567 SHELL=\${CONFIG_SHELL-$SHELL}
6568 _ACEOF
6569
6570 cat >>$CONFIG_STATUS <<\_ACEOF
6571 ## --------------------- ##
6572 ## M4sh Initialization.  ##
6573 ## --------------------- ##
6574
6575 # Be more Bourne compatible
6576 DUALCASE=1; export DUALCASE # for MKS sh
6577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6578   emulate sh
6579   NULLCMD=:
6580   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6581   # is contrary to our usage.  Disable this feature.
6582   alias -g '${1+"$@"}'='"$@"'
6583   setopt NO_GLOB_SUBST
6584 else
6585   case `(set -o) 2>/dev/null` in
6586   *posix*) set -o posix ;;
6587 esac
6588
6589 fi
6590
6591
6592
6593
6594 # PATH needs CR
6595 # Avoid depending upon Character Ranges.
6596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6599 as_cr_digits='0123456789'
6600 as_cr_alnum=$as_cr_Letters$as_cr_digits
6601
6602 # The user is always right.
6603 if test "${PATH_SEPARATOR+set}" != set; then
6604   echo "#! /bin/sh" >conf$$.sh
6605   echo  "exit 0"   >>conf$$.sh
6606   chmod +x conf$$.sh
6607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6608     PATH_SEPARATOR=';'
6609   else
6610     PATH_SEPARATOR=:
6611   fi
6612   rm -f conf$$.sh
6613 fi
6614
6615 # Support unset when possible.
6616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6617   as_unset=unset
6618 else
6619   as_unset=false
6620 fi
6621
6622
6623 # IFS
6624 # We need space, tab and new line, in precisely that order.  Quoting is
6625 # there to prevent editors from complaining about space-tab.
6626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6627 # splitting by setting IFS to empty value.)
6628 as_nl='
6629 '
6630 IFS=" ""        $as_nl"
6631
6632 # Find who we are.  Look in the path if we contain no directory separator.
6633 case $0 in
6634   *[\\/]* ) as_myself=$0 ;;
6635   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6641 done
6642 IFS=$as_save_IFS
6643
6644      ;;
6645 esac
6646 # We did not find ourselves, most probably we were run as `sh COMMAND'
6647 # in which case we are not to be found in the path.
6648 if test "x$as_myself" = x; then
6649   as_myself=$0
6650 fi
6651 if test ! -f "$as_myself"; then
6652   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6653   { (exit 1); exit 1; }
6654 fi
6655
6656 # Work around bugs in pre-3.0 UWIN ksh.
6657 for as_var in ENV MAIL MAILPATH
6658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6659 done
6660 PS1='$ '
6661 PS2='> '
6662 PS4='+ '
6663
6664 # NLS nuisances.
6665 for as_var in \
6666   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6667   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6668   LC_TELEPHONE LC_TIME
6669 do
6670   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6671     eval $as_var=C; export $as_var
6672   else
6673     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6674   fi
6675 done
6676
6677 # Required to use basename.
6678 if expr a : '\(a\)' >/dev/null 2>&1 &&
6679    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6680   as_expr=expr
6681 else
6682   as_expr=false
6683 fi
6684
6685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6686   as_basename=basename
6687 else
6688   as_basename=false
6689 fi
6690
6691
6692 # Name of the executable.
6693 as_me=`$as_basename -- "$0" ||
6694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6695          X"$0" : 'X\(//\)$' \| \
6696          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6697 echo X/"$0" |
6698     sed '/^.*\/\([^/][^/]*\)\/*$/{
6699             s//\1/
6700             q
6701           }
6702           /^X\/\(\/\/\)$/{
6703             s//\1/
6704             q
6705           }
6706           /^X\/\(\/\).*/{
6707             s//\1/
6708             q
6709           }
6710           s/.*/./; q'`
6711
6712 # CDPATH.
6713 $as_unset CDPATH
6714
6715
6716
6717   as_lineno_1=$LINENO
6718   as_lineno_2=$LINENO
6719   test "x$as_lineno_1" != "x$as_lineno_2" &&
6720   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6721
6722   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6723   # uniformly replaced by the line number.  The first 'sed' inserts a
6724   # line-number line after each line using $LINENO; the second 'sed'
6725   # does the real work.  The second script uses 'N' to pair each
6726   # line-number line with the line containing $LINENO, and appends
6727   # trailing '-' during substitution so that $LINENO is not a special
6728   # case at line end.
6729   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6730   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6731   # E. McMahon (1931-1989) for sed's syntax.  :-)
6732   sed -n '
6733     p
6734     /[$]LINENO/=
6735   ' <$as_myself |
6736     sed '
6737       s/[$]LINENO.*/&-/
6738       t lineno
6739       b
6740       :lineno
6741       N
6742       :loop
6743       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6744       t loop
6745       s/-\n.*//
6746     ' >$as_me.lineno &&
6747   chmod +x "$as_me.lineno" ||
6748     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6749    { (exit 1); exit 1; }; }
6750
6751   # Don't try to exec as it changes $[0], causing all sort of problems
6752   # (the dirname of $[0] is not the place where we might find the
6753   # original and so on.  Autoconf is especially sensitive to this).
6754   . "./$as_me.lineno"
6755   # Exit status is that of the last command.
6756   exit
6757 }
6758
6759
6760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6761   as_dirname=dirname
6762 else
6763   as_dirname=false
6764 fi
6765
6766 ECHO_C= ECHO_N= ECHO_T=
6767 case `echo -n x` in
6768 -n*)
6769   case `echo 'x\c'` in
6770   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6771   *)   ECHO_C='\c';;
6772   esac;;
6773 *)
6774   ECHO_N='-n';;
6775 esac
6776
6777 if expr a : '\(a\)' >/dev/null 2>&1 &&
6778    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6779   as_expr=expr
6780 else
6781   as_expr=false
6782 fi
6783
6784 rm -f conf$$ conf$$.exe conf$$.file
6785 if test -d conf$$.dir; then
6786   rm -f conf$$.dir/conf$$.file
6787 else
6788   rm -f conf$$.dir
6789   mkdir conf$$.dir
6790 fi
6791 echo >conf$$.file
6792 if ln -s conf$$.file conf$$ 2>/dev/null; then
6793   as_ln_s='ln -s'
6794   # ... but there are two gotchas:
6795   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6796   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6797   # In both cases, we have to default to `cp -p'.
6798   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6799     as_ln_s='cp -p'
6800 elif ln conf$$.file conf$$ 2>/dev/null; then
6801   as_ln_s=ln
6802 else
6803   as_ln_s='cp -p'
6804 fi
6805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6806 rmdir conf$$.dir 2>/dev/null
6807
6808 if mkdir -p . 2>/dev/null; then
6809   as_mkdir_p=:
6810 else
6811   test -d ./-p && rmdir ./-p
6812   as_mkdir_p=false
6813 fi
6814
6815 if test -x / >/dev/null 2>&1; then
6816   as_test_x='test -x'
6817 else
6818   if ls -dL / >/dev/null 2>&1; then
6819     as_ls_L_option=L
6820   else
6821     as_ls_L_option=
6822   fi
6823   as_test_x='
6824     eval sh -c '\''
6825       if test -d "$1"; then
6826         test -d "$1/.";
6827       else
6828         case $1 in
6829         -*)set "./$1";;
6830         esac;
6831         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6832         ???[sx]*):;;*)false;;esac;fi
6833     '\'' sh
6834   '
6835 fi
6836 as_executable_p=$as_test_x
6837
6838 # Sed expression to map a string onto a valid CPP name.
6839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6840
6841 # Sed expression to map a string onto a valid variable name.
6842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6843
6844
6845 exec 6>&1
6846
6847 # Save the log message, to keep $[0] and so on meaningful, and to
6848 # report actual input values of CONFIG_FILES etc. instead of their
6849 # values after options handling.
6850 ac_log="
6851 This file was extended by polyglot $as_me 1.4.35b, which was
6852 generated by GNU Autoconf 2.61.  Invocation command line was
6853
6854   CONFIG_FILES    = $CONFIG_FILES
6855   CONFIG_HEADERS  = $CONFIG_HEADERS
6856   CONFIG_LINKS    = $CONFIG_LINKS
6857   CONFIG_COMMANDS = $CONFIG_COMMANDS
6858   $ $0 $@
6859
6860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6861 "
6862
6863 _ACEOF
6864
6865 cat >>$CONFIG_STATUS <<_ACEOF
6866 # Files that config.status was made for.
6867 config_files="$ac_config_files"
6868 config_headers="$ac_config_headers"
6869 config_commands="$ac_config_commands"
6870
6871 _ACEOF
6872
6873 cat >>$CONFIG_STATUS <<\_ACEOF
6874 ac_cs_usage="\
6875 \`$as_me' instantiates files from templates according to the
6876 current configuration.
6877
6878 Usage: $0 [OPTIONS] [FILE]...
6879
6880   -h, --help       print this help, then exit
6881   -V, --version    print version number and configuration settings, then exit
6882   -q, --quiet      do not print progress messages
6883   -d, --debug      don't remove temporary files
6884       --recheck    update $as_me by reconfiguring in the same conditions
6885   --file=FILE[:TEMPLATE]
6886                    instantiate the configuration file FILE
6887   --header=FILE[:TEMPLATE]
6888                    instantiate the configuration header FILE
6889
6890 Configuration files:
6891 $config_files
6892
6893 Configuration headers:
6894 $config_headers
6895
6896 Configuration commands:
6897 $config_commands
6898
6899 Report bugs to <bug-autoconf@gnu.org>."
6900
6901 _ACEOF
6902 cat >>$CONFIG_STATUS <<_ACEOF
6903 ac_cs_version="\\
6904 polyglot config.status 1.4.35b
6905 configured by $0, generated by GNU Autoconf 2.61,
6906   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6907
6908 Copyright (C) 2006 Free Software Foundation, Inc.
6909 This config.status script is free software; the Free Software Foundation
6910 gives unlimited permission to copy, distribute and modify it."
6911
6912 ac_pwd='$ac_pwd'
6913 srcdir='$srcdir'
6914 INSTALL='$INSTALL'
6915 MKDIR_P='$MKDIR_P'
6916 _ACEOF
6917
6918 cat >>$CONFIG_STATUS <<\_ACEOF
6919 # If no file are specified by the user, then we need to provide default
6920 # value.  By we need to know if files were specified by the user.
6921 ac_need_defaults=:
6922 while test $# != 0
6923 do
6924   case $1 in
6925   --*=*)
6926     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6927     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6928     ac_shift=:
6929     ;;
6930   *)
6931     ac_option=$1
6932     ac_optarg=$2
6933     ac_shift=shift
6934     ;;
6935   esac
6936
6937   case $ac_option in
6938   # Handling of the options.
6939   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6940     ac_cs_recheck=: ;;
6941   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6942     echo "$ac_cs_version"; exit ;;
6943   --debug | --debu | --deb | --de | --d | -d )
6944     debug=: ;;
6945   --file | --fil | --fi | --f )
6946     $ac_shift
6947     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6948     ac_need_defaults=false;;
6949   --header | --heade | --head | --hea )
6950     $ac_shift
6951     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6952     ac_need_defaults=false;;
6953   --he | --h)
6954     # Conflict between --help and --header
6955     { echo "$as_me: error: ambiguous option: $1
6956 Try \`$0 --help' for more information." >&2
6957    { (exit 1); exit 1; }; };;
6958   --help | --hel | -h )
6959     echo "$ac_cs_usage"; exit ;;
6960   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6961   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6962     ac_cs_silent=: ;;
6963
6964   # This is an error.
6965   -*) { echo "$as_me: error: unrecognized option: $1
6966 Try \`$0 --help' for more information." >&2
6967    { (exit 1); exit 1; }; } ;;
6968
6969   *) ac_config_targets="$ac_config_targets $1"
6970      ac_need_defaults=false ;;
6971
6972   esac
6973   shift
6974 done
6975
6976 ac_configure_extra_args=
6977
6978 if $ac_cs_silent; then
6979   exec 6>/dev/null
6980   ac_configure_extra_args="$ac_configure_extra_args --silent"
6981 fi
6982
6983 _ACEOF
6984 cat >>$CONFIG_STATUS <<_ACEOF
6985 if \$ac_cs_recheck; then
6986   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6987   CONFIG_SHELL=$SHELL
6988   export CONFIG_SHELL
6989   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6990 fi
6991
6992 _ACEOF
6993 cat >>$CONFIG_STATUS <<\_ACEOF
6994 exec 5>>config.log
6995 {
6996   echo
6997   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6998 ## Running $as_me. ##
6999 _ASBOX
7000   echo "$ac_log"
7001 } >&5
7002
7003 _ACEOF
7004 cat >>$CONFIG_STATUS <<_ACEOF
7005 #
7006 # INIT-COMMANDS
7007 #
7008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7009
7010 _ACEOF
7011
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7013
7014 # Handling of arguments.
7015 for ac_config_target in $ac_config_targets
7016 do
7017   case $ac_config_target in
7018     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7019     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7020     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7021
7022   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7024    { (exit 1); exit 1; }; };;
7025   esac
7026 done
7027
7028
7029 # If the user did not use the arguments to specify the items to instantiate,
7030 # then the envvar interface is used.  Set only those that are not.
7031 # We use the long form for the default assignment because of an extremely
7032 # bizarre bug on SunOS 4.1.3.
7033 if $ac_need_defaults; then
7034   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7035   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7036   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7037 fi
7038
7039 # Have a temporary directory for convenience.  Make it in the build tree
7040 # simply because there is no reason against having it here, and in addition,
7041 # creating and moving files from /tmp can sometimes cause problems.
7042 # Hook for its removal unless debugging.
7043 # Note that there is a small window in which the directory will not be cleaned:
7044 # after its creation but before its name has been assigned to `$tmp'.
7045 $debug ||
7046 {
7047   tmp=
7048   trap 'exit_status=$?
7049   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7050 ' 0
7051   trap '{ (exit 1); exit 1; }' 1 2 13 15
7052 }
7053 # Create a (secure) tmp directory for tmp files.
7054
7055 {
7056   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7057   test -n "$tmp" && test -d "$tmp"
7058 }  ||
7059 {
7060   tmp=./conf$$-$RANDOM
7061   (umask 077 && mkdir "$tmp")
7062 } ||
7063 {
7064    echo "$me: cannot create a temporary directory in ." >&2
7065    { (exit 1); exit 1; }
7066 }
7067
7068 #
7069 # Set up the sed scripts for CONFIG_FILES section.
7070 #
7071
7072 # No need to generate the scripts if there are no CONFIG_FILES.
7073 # This happens for instance when ./config.status config.h
7074 if test -n "$CONFIG_FILES"; then
7075
7076 _ACEOF
7077
7078
7079
7080 ac_delim='%!_!# '
7081 for ac_last_try in false false false false false :; do
7082   cat >conf$$subs.sed <<_ACEOF
7083 SHELL!$SHELL$ac_delim
7084 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7085 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7086 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7087 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7088 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7089 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7090 exec_prefix!$exec_prefix$ac_delim
7091 prefix!$prefix$ac_delim
7092 program_transform_name!$program_transform_name$ac_delim
7093 bindir!$bindir$ac_delim
7094 sbindir!$sbindir$ac_delim
7095 libexecdir!$libexecdir$ac_delim
7096 datarootdir!$datarootdir$ac_delim
7097 datadir!$datadir$ac_delim
7098 sysconfdir!$sysconfdir$ac_delim
7099 sharedstatedir!$sharedstatedir$ac_delim
7100 localstatedir!$localstatedir$ac_delim
7101 includedir!$includedir$ac_delim
7102 oldincludedir!$oldincludedir$ac_delim
7103 docdir!$docdir$ac_delim
7104 infodir!$infodir$ac_delim
7105 htmldir!$htmldir$ac_delim
7106 dvidir!$dvidir$ac_delim
7107 pdfdir!$pdfdir$ac_delim
7108 psdir!$psdir$ac_delim
7109 libdir!$libdir$ac_delim
7110 localedir!$localedir$ac_delim
7111 mandir!$mandir$ac_delim
7112 DEFS!$DEFS$ac_delim
7113 ECHO_C!$ECHO_C$ac_delim
7114 ECHO_N!$ECHO_N$ac_delim
7115 ECHO_T!$ECHO_T$ac_delim
7116 LIBS!$LIBS$ac_delim
7117 build_alias!$build_alias$ac_delim
7118 host_alias!$host_alias$ac_delim
7119 target_alias!$target_alias$ac_delim
7120 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7121 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7122 INSTALL_DATA!$INSTALL_DATA$ac_delim
7123 am__isrc!$am__isrc$ac_delim
7124 CYGPATH_W!$CYGPATH_W$ac_delim
7125 PACKAGE!$PACKAGE$ac_delim
7126 VERSION!$VERSION$ac_delim
7127 ACLOCAL!$ACLOCAL$ac_delim
7128 AUTOCONF!$AUTOCONF$ac_delim
7129 AUTOMAKE!$AUTOMAKE$ac_delim
7130 AUTOHEADER!$AUTOHEADER$ac_delim
7131 MAKEINFO!$MAKEINFO$ac_delim
7132 install_sh!$install_sh$ac_delim
7133 STRIP!$STRIP$ac_delim
7134 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7135 mkdir_p!$mkdir_p$ac_delim
7136 AWK!$AWK$ac_delim
7137 SET_MAKE!$SET_MAKE$ac_delim
7138 am__leading_dot!$am__leading_dot$ac_delim
7139 AMTAR!$AMTAR$ac_delim
7140 am__tar!$am__tar$ac_delim
7141 am__untar!$am__untar$ac_delim
7142 CC!$CC$ac_delim
7143 CFLAGS!$CFLAGS$ac_delim
7144 LDFLAGS!$LDFLAGS$ac_delim
7145 CPPFLAGS!$CPPFLAGS$ac_delim
7146 ac_ct_CC!$ac_ct_CC$ac_delim
7147 EXEEXT!$EXEEXT$ac_delim
7148 OBJEXT!$OBJEXT$ac_delim
7149 DEPDIR!$DEPDIR$ac_delim
7150 am__include!$am__include$ac_delim
7151 am__quote!$am__quote$ac_delim
7152 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7153 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7154 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7155 CCDEPMODE!$CCDEPMODE$ac_delim
7156 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7157 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7158 CPP!$CPP$ac_delim
7159 GREP!$GREP$ac_delim
7160 EGREP!$EGREP$ac_delim
7161 LIBOBJS!$LIBOBJS$ac_delim
7162 LTLIBOBJS!$LTLIBOBJS$ac_delim
7163 _ACEOF
7164
7165   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
7166     break
7167   elif $ac_last_try; then
7168     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7169 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7170    { (exit 1); exit 1; }; }
7171   else
7172     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7173   fi
7174 done
7175
7176 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7177 if test -n "$ac_eof"; then
7178   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7179   ac_eof=`expr $ac_eof + 1`
7180 fi
7181
7182 cat >>$CONFIG_STATUS <<_ACEOF
7183 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7185 _ACEOF
7186 sed '
7187 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7188 s/^/s,@/; s/!/@,|#_!!_#|/
7189 :n
7190 t n
7191 s/'"$ac_delim"'$/,g/; t
7192 s/$/\\/; p
7193 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7194 ' >>$CONFIG_STATUS <conf$$subs.sed
7195 rm -f conf$$subs.sed
7196 cat >>$CONFIG_STATUS <<_ACEOF
7197 :end
7198 s/|#_!!_#|//g
7199 CEOF$ac_eof
7200 _ACEOF
7201
7202
7203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7205 # trailing colons and then remove the whole line if VPATH becomes empty
7206 # (actually we leave an empty line to preserve line numbers).
7207 if test "x$srcdir" = x.; then
7208   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7209 s/:*\$(srcdir):*/:/
7210 s/:*\${srcdir}:*/:/
7211 s/:*@srcdir@:*/:/
7212 s/^\([^=]*=[     ]*\):*/\1/
7213 s/:*$//
7214 s/^[^=]*=[       ]*$//
7215 }'
7216 fi
7217
7218 cat >>$CONFIG_STATUS <<\_ACEOF
7219 fi # test -n "$CONFIG_FILES"
7220
7221
7222 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7223 do
7224   case $ac_tag in
7225   :[FHLC]) ac_mode=$ac_tag; continue;;
7226   esac
7227   case $ac_mode$ac_tag in
7228   :[FHL]*:*);;
7229   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7230 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7231    { (exit 1); exit 1; }; };;
7232   :[FH]-) ac_tag=-:-;;
7233   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7234   esac
7235   ac_save_IFS=$IFS
7236   IFS=:
7237   set x $ac_tag
7238   IFS=$ac_save_IFS
7239   shift
7240   ac_file=$1
7241   shift
7242
7243   case $ac_mode in
7244   :L) ac_source=$1;;
7245   :[FH])
7246     ac_file_inputs=
7247     for ac_f
7248     do
7249       case $ac_f in
7250       -) ac_f="$tmp/stdin";;
7251       *) # Look for the file first in the build tree, then in the source tree
7252          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7253          # because $ac_f cannot contain `:'.
7254          test -f "$ac_f" ||
7255            case $ac_f in
7256            [\\/$]*) false;;
7257            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7258            esac ||
7259            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7260 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7261    { (exit 1); exit 1; }; };;
7262       esac
7263       ac_file_inputs="$ac_file_inputs $ac_f"
7264     done
7265
7266     # Let's still pretend it is `configure' which instantiates (i.e., don't
7267     # use $as_me), people would be surprised to read:
7268     #    /* config.h.  Generated by config.status.  */
7269     configure_input="Generated from "`IFS=:
7270           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7271     if test x"$ac_file" != x-; then
7272       configure_input="$ac_file.  $configure_input"
7273       { echo "$as_me:$LINENO: creating $ac_file" >&5
7274 echo "$as_me: creating $ac_file" >&6;}
7275     fi
7276
7277     case $ac_tag in
7278     *:-:* | *:-) cat >"$tmp/stdin";;
7279     esac
7280     ;;
7281   esac
7282
7283   ac_dir=`$as_dirname -- "$ac_file" ||
7284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7285          X"$ac_file" : 'X\(//\)[^/]' \| \
7286          X"$ac_file" : 'X\(//\)$' \| \
7287          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7288 echo X"$ac_file" |
7289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7290             s//\1/
7291             q
7292           }
7293           /^X\(\/\/\)[^/].*/{
7294             s//\1/
7295             q
7296           }
7297           /^X\(\/\/\)$/{
7298             s//\1/
7299             q
7300           }
7301           /^X\(\/\).*/{
7302             s//\1/
7303             q
7304           }
7305           s/.*/./; q'`
7306   { as_dir="$ac_dir"
7307   case $as_dir in #(
7308   -*) as_dir=./$as_dir;;
7309   esac
7310   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7311     as_dirs=
7312     while :; do
7313       case $as_dir in #(
7314       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7315       *) as_qdir=$as_dir;;
7316       esac
7317       as_dirs="'$as_qdir' $as_dirs"
7318       as_dir=`$as_dirname -- "$as_dir" ||
7319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320          X"$as_dir" : 'X\(//\)[^/]' \| \
7321          X"$as_dir" : 'X\(//\)$' \| \
7322          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7323 echo X"$as_dir" |
7324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7325             s//\1/
7326             q
7327           }
7328           /^X\(\/\/\)[^/].*/{
7329             s//\1/
7330             q
7331           }
7332           /^X\(\/\/\)$/{
7333             s//\1/
7334             q
7335           }
7336           /^X\(\/\).*/{
7337             s//\1/
7338             q
7339           }
7340           s/.*/./; q'`
7341       test -d "$as_dir" && break
7342     done
7343     test -z "$as_dirs" || eval "mkdir $as_dirs"
7344   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7346    { (exit 1); exit 1; }; }; }
7347   ac_builddir=.
7348
7349 case "$ac_dir" in
7350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7351 *)
7352   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7353   # A ".." for each directory in $ac_dir_suffix.
7354   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7355   case $ac_top_builddir_sub in
7356   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7357   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7358   esac ;;
7359 esac
7360 ac_abs_top_builddir=$ac_pwd
7361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7362 # for backward compatibility:
7363 ac_top_builddir=$ac_top_build_prefix
7364
7365 case $srcdir in
7366   .)  # We are building in place.
7367     ac_srcdir=.
7368     ac_top_srcdir=$ac_top_builddir_sub
7369     ac_abs_top_srcdir=$ac_pwd ;;
7370   [\\/]* | ?:[\\/]* )  # Absolute name.
7371     ac_srcdir=$srcdir$ac_dir_suffix;
7372     ac_top_srcdir=$srcdir
7373     ac_abs_top_srcdir=$srcdir ;;
7374   *) # Relative name.
7375     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7376     ac_top_srcdir=$ac_top_build_prefix$srcdir
7377     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7378 esac
7379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7380
7381
7382   case $ac_mode in
7383   :F)
7384   #
7385   # CONFIG_FILE
7386   #
7387
7388   case $INSTALL in
7389   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7390   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7391   esac
7392   ac_MKDIR_P=$MKDIR_P
7393   case $MKDIR_P in
7394   [\\/$]* | ?:[\\/]* ) ;;
7395   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7396   esac
7397 _ACEOF
7398
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7400 # If the template does not know about datarootdir, expand it.
7401 # FIXME: This hack should be removed a few years after 2.60.
7402 ac_datarootdir_hack=; ac_datarootdir_seen=
7403
7404 case `sed -n '/datarootdir/ {
7405   p
7406   q
7407 }
7408 /@datadir@/p
7409 /@docdir@/p
7410 /@infodir@/p
7411 /@localedir@/p
7412 /@mandir@/p
7413 ' $ac_file_inputs` in
7414 *datarootdir*) ac_datarootdir_seen=yes;;
7415 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7416   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7417 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7418 _ACEOF
7419 cat >>$CONFIG_STATUS <<_ACEOF
7420   ac_datarootdir_hack='
7421   s&@datadir@&$datadir&g
7422   s&@docdir@&$docdir&g
7423   s&@infodir@&$infodir&g
7424   s&@localedir@&$localedir&g
7425   s&@mandir@&$mandir&g
7426     s&\\\${datarootdir}&$datarootdir&g' ;;
7427 esac
7428 _ACEOF
7429
7430 # Neutralize VPATH when `$srcdir' = `.'.
7431 # Shell code in configure.ac might set extrasub.
7432 # FIXME: do we really want to maintain this feature?
7433 cat >>$CONFIG_STATUS <<_ACEOF
7434   sed "$ac_vpsub
7435 $extrasub
7436 _ACEOF
7437 cat >>$CONFIG_STATUS <<\_ACEOF
7438 :t
7439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7440 s&@configure_input@&$configure_input&;t t
7441 s&@top_builddir@&$ac_top_builddir_sub&;t t
7442 s&@srcdir@&$ac_srcdir&;t t
7443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7444 s&@top_srcdir@&$ac_top_srcdir&;t t
7445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7446 s&@builddir@&$ac_builddir&;t t
7447 s&@abs_builddir@&$ac_abs_builddir&;t t
7448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7449 s&@INSTALL@&$ac_INSTALL&;t t
7450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7451 $ac_datarootdir_hack
7452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7453
7454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7455   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7456   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7457   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7458 which seems to be undefined.  Please make sure it is defined." >&5
7459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7460 which seems to be undefined.  Please make sure it is defined." >&2;}
7461
7462   rm -f "$tmp/stdin"
7463   case $ac_file in
7464   -) cat "$tmp/out"; rm -f "$tmp/out";;
7465   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7466   esac
7467  ;;
7468   :H)
7469   #
7470   # CONFIG_HEADER
7471   #
7472 _ACEOF
7473
7474 # Transform confdefs.h into a sed script `conftest.defines', that
7475 # substitutes the proper values into config.h.in to produce config.h.
7476 rm -f conftest.defines conftest.tail
7477 # First, append a space to every undef/define line, to ease matching.
7478 echo 's/$/ /' >conftest.defines
7479 # Then, protect against being on the right side of a sed subst, or in
7480 # an unquoted here document, in config.status.  If some macros were
7481 # called several times there might be several #defines for the same
7482 # symbol, which is useless.  But do not sort them, since the last
7483 # AC_DEFINE must be honored.
7484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7487 # PARAMS is the parameter list in the macro definition--in most cases, it's
7488 # just an empty string.
7489 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7490 ac_dB='\\)[      (].*,\\1define\\2'
7491 ac_dC=' '
7492 ac_dD=' ,'
7493
7494 uniq confdefs.h |
7495   sed -n '
7496         t rset
7497         :rset
7498         s/^[     ]*#[    ]*define[       ][      ]*//
7499         t ok
7500         d
7501         :ok
7502         s/[\\&,]/\\&/g
7503         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7504         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7505   ' >>conftest.defines
7506
7507 # Remove the space that was appended to ease matching.
7508 # Then replace #undef with comments.  This is necessary, for
7509 # example, in the case of _POSIX_SOURCE, which is predefined and required
7510 # on some systems where configure will not decide to define it.
7511 # (The regexp can be short, since the line contains either #define or #undef.)
7512 echo 's/ $//
7513 s,^[     #]*u.*,/* & */,' >>conftest.defines
7514
7515 # Break up conftest.defines:
7516 ac_max_sed_lines=50
7517
7518 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7519 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7520 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7521 # et cetera.
7522 ac_in='$ac_file_inputs'
7523 ac_out='"$tmp/out1"'
7524 ac_nxt='"$tmp/out2"'
7525
7526 while :
7527 do
7528   # Write a here document:
7529     cat >>$CONFIG_STATUS <<_ACEOF
7530     # First, check the format of the line:
7531     cat >"\$tmp/defines.sed" <<\\CEOF
7532 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
7533 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
7534 b
7535 :def
7536 _ACEOF
7537   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7538   echo 'CEOF
7539     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7540   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7541   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7542   grep . conftest.tail >/dev/null || break
7543   rm -f conftest.defines
7544   mv conftest.tail conftest.defines
7545 done
7546 rm -f conftest.defines conftest.tail
7547
7548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7549 cat >>$CONFIG_STATUS <<\_ACEOF
7550   if test x"$ac_file" != x-; then
7551     echo "/* $configure_input  */" >"$tmp/config.h"
7552     cat "$ac_result" >>"$tmp/config.h"
7553     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7554       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7555 echo "$as_me: $ac_file is unchanged" >&6;}
7556     else
7557       rm -f $ac_file
7558       mv "$tmp/config.h" $ac_file
7559     fi
7560   else
7561     echo "/* $configure_input  */"
7562     cat "$ac_result"
7563   fi
7564   rm -f "$tmp/out12"
7565 # Compute $ac_file's index in $config_headers.
7566 _am_arg=$ac_file
7567 _am_stamp_count=1
7568 for _am_header in $config_headers :; do
7569   case $_am_header in
7570     $_am_arg | $_am_arg:* )
7571       break ;;
7572     * )
7573       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7574   esac
7575 done
7576 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7577 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7578          X"$_am_arg" : 'X\(//\)[^/]' \| \
7579          X"$_am_arg" : 'X\(//\)$' \| \
7580          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7581 echo X"$_am_arg" |
7582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7583             s//\1/
7584             q
7585           }
7586           /^X\(\/\/\)[^/].*/{
7587             s//\1/
7588             q
7589           }
7590           /^X\(\/\/\)$/{
7591             s//\1/
7592             q
7593           }
7594           /^X\(\/\).*/{
7595             s//\1/
7596             q
7597           }
7598           s/.*/./; q'`/stamp-h$_am_stamp_count
7599  ;;
7600
7601   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7602 echo "$as_me: executing $ac_file commands" >&6;}
7603  ;;
7604   esac
7605
7606
7607   case $ac_file$ac_mode in
7608     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7609   # Strip MF so we end up with the name of the file.
7610   mf=`echo "$mf" | sed -e 's/:.*$//'`
7611   # Check whether this is an Automake generated Makefile or not.
7612   # We used to match only the files named `Makefile.in', but
7613   # some people rename them; so instead we look at the file content.
7614   # Grep'ing the first line is not enough: some people post-process
7615   # each Makefile.in and add a new line on top of each file to say so.
7616   # Grep'ing the whole file is not good either: AIX grep has a line
7617   # limit of 2048, but all sed's we know have understand at least 4000.
7618   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7619     dirpart=`$as_dirname -- "$mf" ||
7620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7621          X"$mf" : 'X\(//\)[^/]' \| \
7622          X"$mf" : 'X\(//\)$' \| \
7623          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7624 echo X"$mf" |
7625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7626             s//\1/
7627             q
7628           }
7629           /^X\(\/\/\)[^/].*/{
7630             s//\1/
7631             q
7632           }
7633           /^X\(\/\/\)$/{
7634             s//\1/
7635             q
7636           }
7637           /^X\(\/\).*/{
7638             s//\1/
7639             q
7640           }
7641           s/.*/./; q'`
7642   else
7643     continue
7644   fi
7645   # Extract the definition of DEPDIR, am__include, and am__quote
7646   # from the Makefile without running `make'.
7647   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7648   test -z "$DEPDIR" && continue
7649   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7650   test -z "am__include" && continue
7651   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7652   # When using ansi2knr, U may be empty or an underscore; expand it
7653   U=`sed -n 's/^U = //p' < "$mf"`
7654   # Find all dependency output files, they are included files with
7655   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7656   # simplest approach to changing $(DEPDIR) to its actual value in the
7657   # expansion.
7658   for file in `sed -n "
7659     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7660        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7661     # Make sure the directory exists.
7662     test -f "$dirpart/$file" && continue
7663     fdir=`$as_dirname -- "$file" ||
7664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7665          X"$file" : 'X\(//\)[^/]' \| \
7666          X"$file" : 'X\(//\)$' \| \
7667          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7668 echo X"$file" |
7669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7670             s//\1/
7671             q
7672           }
7673           /^X\(\/\/\)[^/].*/{
7674             s//\1/
7675             q
7676           }
7677           /^X\(\/\/\)$/{
7678             s//\1/
7679             q
7680           }
7681           /^X\(\/\).*/{
7682             s//\1/
7683             q
7684           }
7685           s/.*/./; q'`
7686     { as_dir=$dirpart/$fdir
7687   case $as_dir in #(
7688   -*) as_dir=./$as_dir;;
7689   esac
7690   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7691     as_dirs=
7692     while :; do
7693       case $as_dir in #(
7694       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7695       *) as_qdir=$as_dir;;
7696       esac
7697       as_dirs="'$as_qdir' $as_dirs"
7698       as_dir=`$as_dirname -- "$as_dir" ||
7699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700          X"$as_dir" : 'X\(//\)[^/]' \| \
7701          X"$as_dir" : 'X\(//\)$' \| \
7702          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7703 echo X"$as_dir" |
7704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7705             s//\1/
7706             q
7707           }
7708           /^X\(\/\/\)[^/].*/{
7709             s//\1/
7710             q
7711           }
7712           /^X\(\/\/\)$/{
7713             s//\1/
7714             q
7715           }
7716           /^X\(\/\).*/{
7717             s//\1/
7718             q
7719           }
7720           s/.*/./; q'`
7721       test -d "$as_dir" && break
7722     done
7723     test -z "$as_dirs" || eval "mkdir $as_dirs"
7724   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7725 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7726    { (exit 1); exit 1; }; }; }
7727     # echo "creating $dirpart/$file"
7728     echo '# dummy' > "$dirpart/$file"
7729   done
7730 done
7731  ;;
7732
7733   esac
7734 done # for ac_tag
7735
7736
7737 { (exit 0); exit 0; }
7738 _ACEOF
7739 chmod +x $CONFIG_STATUS
7740 ac_clean_files=$ac_clean_files_save
7741
7742
7743 # configure is writing to config.log, and then calls config.status.
7744 # config.status does its own redirection, appending to config.log.
7745 # Unfortunately, on DOS this fails, as config.log is still kept open
7746 # by configure, so config.status won't be able to write to it; its
7747 # output is simply discarded.  So we exec the FD to /dev/null,
7748 # effectively closing config.log, so it can be properly (re)opened and
7749 # appended to by config.status.  When coming back to configure, we
7750 # need to make the FD available again.
7751 if test "$no_create" != yes; then
7752   ac_cs_success=:
7753   ac_config_status_args=
7754   test "$silent" = yes &&
7755     ac_config_status_args="$ac_config_status_args --quiet"
7756   exec 5>/dev/null
7757   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7758   exec 5>>config.log
7759   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7760   # would make configure fail if this is the last instruction.
7761   $ac_cs_success || { (exit 1); exit 1; }
7762 fi
7763