added chan_lcr and Makefile.am fixes by Matthias
[lcr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.3.
4 #
5 # Report bugs to <andreas@eversberg.eu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='lcr'
598 PACKAGE_TARNAME='lcr'
599 PACKAGE_VERSION='1.3'
600 PACKAGE_STRING='lcr 1.3'
601 PACKAGE_BUGREPORT='andreas@eversberg.eu'
602
603 ac_unique_file="main.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 POW_LIB
642 LIBOBJS
643 LIBCRYPTO
644 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
645 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
646 am__fastdepCXX_FALSE
647 am__fastdepCXX_TRUE
648 CXXDEPMODE
649 ac_ct_CXX
650 CXXFLAGS
651 CXX
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
666 AWK
667 mkdir_p
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 EGREP
683 GREP
684 CPP
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_dependency_tracking
733 with_asterisk
734 with_ssl
735 '
736       ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP
745 CXX
746 CXXFLAGS
747 CCC'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802   # If the previous option needs an argument, assign it.
803   if test -n "$ac_prev"; then
804     eval $ac_prev=\$ac_option
805     ac_prev=
806     continue
807   fi
808
809   case $ac_option in
810   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811   *)    ac_optarg=yes ;;
812   esac
813
814   # Accept the important Cygnus configure options, so we can diagnose typos.
815
816   case $ac_dashdash$ac_option in
817   --)
818     ac_dashdash=yes ;;
819
820   -bindir | --bindir | --bindi | --bind | --bin | --bi)
821     ac_prev=bindir ;;
822   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823     bindir=$ac_optarg ;;
824
825   -build | --build | --buil | --bui | --bu)
826     ac_prev=build_alias ;;
827   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828     build_alias=$ac_optarg ;;
829
830   -cache-file | --cache-file | --cache-fil | --cache-fi \
831   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832     ac_prev=cache_file ;;
833   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835     cache_file=$ac_optarg ;;
836
837   --config-cache | -C)
838     cache_file=config.cache ;;
839
840   -datadir | --datadir | --datadi | --datad)
841     ac_prev=datadir ;;
842   -datadir=* | --datadir=* | --datadi=* | --datad=*)
843     datadir=$ac_optarg ;;
844
845   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846   | --dataroo | --dataro | --datar)
847     ac_prev=datarootdir ;;
848   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850     datarootdir=$ac_optarg ;;
851
852   -disable-* | --disable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
857    { (exit 1); exit 1; }; }
858     ac_useropt_orig=$ac_useropt
859     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860     case $ac_user_opts in
861       *"
862 "enable_$ac_useropt"
863 "*) ;;
864       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865          ac_unrecognized_sep=', ';;
866     esac
867     eval enable_$ac_useropt=no ;;
868
869   -docdir | --docdir | --docdi | --doc | --do)
870     ac_prev=docdir ;;
871   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872     docdir=$ac_optarg ;;
873
874   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875     ac_prev=dvidir ;;
876   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877     dvidir=$ac_optarg ;;
878
879   -enable-* | --enable-*)
880     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881     # Reject names that are not valid shell variable names.
882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
884    { (exit 1); exit 1; }; }
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
895
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
904
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
908
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
915
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
920
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
926
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
933
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
938
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
943
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
950
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
955
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
962
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
967
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
971
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
975
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
979
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
988
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
993
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1000
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1007
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1024
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1029
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1034
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1038
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1044
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1055
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1060
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1065
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1072
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1077
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1080
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1083
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval with_$ac_useropt=\$ac_optarg ;;
1100
1101   -without-* | --without-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=no ;;
1117
1118   --x)
1119     # Obsolete; use --with-x.
1120     with_x=yes ;;
1121
1122   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123   | --x-incl | --x-inc | --x-in | --x-i)
1124     ac_prev=x_includes ;;
1125   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127     x_includes=$ac_optarg ;;
1128
1129   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131     ac_prev=x_libraries ;;
1132   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134     x_libraries=$ac_optarg ;;
1135
1136   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138    { (exit 1); exit 1; }; }
1139     ;;
1140
1141   *=*)
1142     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146    { (exit 1); exit 1; }; }
1147     eval $ac_envvar=\$ac_optarg
1148     export $ac_envvar ;;
1149
1150   *)
1151     # FIXME: should be removed in autoconf 3.0.
1152     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156     ;;
1157
1158   esac
1159 done
1160
1161 if test -n "$ac_prev"; then
1162   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1164    { (exit 1); exit 1; }; }
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168   case $enable_option_checking in
1169     no) ;;
1170     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1171    { (exit 1); exit 1; }; } ;;
1172     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173   esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178                 datadir sysconfdir sharedstatedir localstatedir includedir \
1179                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180                 libdir localedir mandir
1181 do
1182   eval ac_val=\$$ac_var
1183   # Remove trailing slashes.
1184   case $ac_val in
1185     */ )
1186       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187       eval $ac_var=\$ac_val;;
1188   esac
1189   # Be sure to have absolute directory names.
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195    { (exit 1); exit 1; }; }
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210     If a cross compiler is detected then cross compile mode will be used." >&2
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1226    { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1229    { (exit 1); exit 1; }; }
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1274    { (exit 1); exit 1; }; }
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures lcr 1.3 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR            user executables [EPREFIX/bin]
1335   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR        program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR            object code libraries [EPREFIX/lib]
1341   --includedir=DIR        C header files [PREFIX/include]
1342   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR           info documentation [DATAROOTDIR/info]
1346   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR            man documentation [DATAROOTDIR/man]
1348   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1349   --htmldir=DIR           html documentation [DOCDIR]
1350   --dvidir=DIR            dvi documentation [DOCDIR]
1351   --pdfdir=DIR            pdf documentation [DOCDIR]
1352   --psdir=DIR             ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 Program names:
1358   --program-prefix=PREFIX            prepend PREFIX to installed program names
1359   --program-suffix=SUFFIX            append SUFFIX to installed program names
1360   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365   case $ac_init_help in
1366      short | recursive ) echo "Configuration of lcr 1.3:";;
1367    esac
1368   cat <<\_ACEOF
1369
1370 Optional Features:
1371   --disable-option-checking  ignore unrecognized --enable/--with options
1372   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374   --disable-dependency-tracking  speeds up one-time build
1375   --enable-dependency-tracking   do not reject slow dependency extractors
1376
1377 Optional Packages:
1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1380   --with-asterisk         compile with built-in Asterisk channel driver
1381                           [default=check]
1382
1383   --with-ssl              compile with ssl support (libcrypto) [default=check]
1384
1385
1386 Some influential environment variables:
1387   CC          C compiler command
1388   CFLAGS      C compiler flags
1389   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1390               nonstandard directory <lib dir>
1391   LIBS        libraries to pass to the linker, e.g. -l<library>
1392   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393               you have headers in a nonstandard directory <include dir>
1394   CPP         C preprocessor
1395   CXX         C++ compiler command
1396   CXXFLAGS    C++ compiler flags
1397
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1400
1401 Report bugs to <andreas@eversberg.eu>.
1402 _ACEOF
1403 ac_status=$?
1404 fi
1405
1406 if test "$ac_init_help" = "recursive"; then
1407   # If there are subdirs, report their specific --help.
1408   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409     test -d "$ac_dir" ||
1410       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411       continue
1412     ac_builddir=.
1413
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *)
1417   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418   # A ".." for each directory in $ac_dir_suffix.
1419   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420   case $ac_top_builddir_sub in
1421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423   esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1429
1430 case $srcdir in
1431   .)  # We are building in place.
1432     ac_srcdir=.
1433     ac_top_srcdir=$ac_top_builddir_sub
1434     ac_abs_top_srcdir=$ac_pwd ;;
1435   [\\/]* | ?:[\\/]* )  # Absolute name.
1436     ac_srcdir=$srcdir$ac_dir_suffix;
1437     ac_top_srcdir=$srcdir
1438     ac_abs_top_srcdir=$srcdir ;;
1439   *) # Relative name.
1440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441     ac_top_srcdir=$ac_top_build_prefix$srcdir
1442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446     cd "$ac_dir" || { ac_status=$?; continue; }
1447     # Check for guested configure.
1448     if test -f "$ac_srcdir/configure.gnu"; then
1449       echo &&
1450       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451     elif test -f "$ac_srcdir/configure"; then
1452       echo &&
1453       $SHELL "$ac_srcdir/configure" --help=recursive
1454     else
1455       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456     fi || ac_status=$?
1457     cd "$ac_pwd" || { ac_status=$?; break; }
1458   done
1459 fi
1460
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463   cat <<\_ACEOF
1464 lcr configure 1.3
1465 generated by GNU Autoconf 2.63
1466
1467 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1468 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472   exit
1473 fi
1474 cat >config.log <<_ACEOF
1475 This file contains any messages produced by compilers while
1476 running configure, to aid debugging if configure makes a mistake.
1477
1478 It was created by lcr $as_me 1.3, which was
1479 generated by GNU Autoconf 2.63.  Invocation command line was
1480
1481   $ $0 $@
1482
1483 _ACEOF
1484 exec 5>>config.log
1485 {
1486 cat <<_ASUNAME
1487 ## --------- ##
1488 ## Platform. ##
1489 ## --------- ##
1490
1491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496
1497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1499
1500 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1501 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1504 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1505 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1506 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1507
1508 _ASUNAME
1509
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   $as_echo "PATH: $as_dir"
1516 done
1517 IFS=$as_save_IFS
1518
1519 } >&5
1520
1521 cat >&5 <<_ACEOF
1522
1523
1524 ## ----------- ##
1525 ## Core tests. ##
1526 ## ----------- ##
1527
1528 _ACEOF
1529
1530
1531 # Keep a trace of the command line.
1532 # Strip out --no-create and --no-recursion so they do not pile up.
1533 # Strip out --silent because we don't want to record it for future runs.
1534 # Also quote any args containing shell meta-characters.
1535 # Make two passes to allow for proper duplicate-argument suppression.
1536 ac_configure_args=
1537 ac_configure_args0=
1538 ac_configure_args1=
1539 ac_must_keep_next=false
1540 for ac_pass in 1 2
1541 do
1542   for ac_arg
1543   do
1544     case $ac_arg in
1545     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547     | -silent | --silent | --silen | --sile | --sil)
1548       continue ;;
1549     *\'*)
1550       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551     esac
1552     case $ac_pass in
1553     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1554     2)
1555       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1556       if test $ac_must_keep_next = true; then
1557         ac_must_keep_next=false # Got value, back to normal.
1558       else
1559         case $ac_arg in
1560           *=* | --config-cache | -C | -disable-* | --disable-* \
1561           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563           | -with-* | --with-* | -without-* | --without-* | --x)
1564             case "$ac_configure_args0 " in
1565               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566             esac
1567             ;;
1568           -* ) ac_must_keep_next=true ;;
1569         esac
1570       fi
1571       ac_configure_args="$ac_configure_args '$ac_arg'"
1572       ;;
1573     esac
1574   done
1575 done
1576 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1577 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1578
1579 # When interrupted or exit'd, cleanup temporary files, and complete
1580 # config.log.  We remove comments because anyway the quotes in there
1581 # would cause problems or look ugly.
1582 # WARNING: Use '\'' to represent an apostrophe within the trap.
1583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584 trap 'exit_status=$?
1585   # Save into config.log some information that might help in debugging.
1586   {
1587     echo
1588
1589     cat <<\_ASBOX
1590 ## ---------------- ##
1591 ## Cache variables. ##
1592 ## ---------------- ##
1593 _ASBOX
1594     echo
1595     # The following way of writing the cache mishandles newlines in values,
1596 (
1597   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1598     eval ac_val=\$$ac_var
1599     case $ac_val in #(
1600     *${as_nl}*)
1601       case $ac_var in #(
1602       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1604       esac
1605       case $ac_var in #(
1606       _ | IFS | as_nl) ;; #(
1607       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1608       *) $as_unset $ac_var ;;
1609       esac ;;
1610     esac
1611   done
1612   (set) 2>&1 |
1613     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614     *${as_nl}ac_space=\ *)
1615       sed -n \
1616         "s/'\''/'\''\\\\'\'''\''/g;
1617           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618       ;; #(
1619     *)
1620       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621       ;;
1622     esac |
1623     sort
1624 )
1625     echo
1626
1627     cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632     echo
1633     for ac_var in $ac_subst_vars
1634     do
1635       eval ac_val=\$$ac_var
1636       case $ac_val in
1637       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638       esac
1639       $as_echo "$ac_var='\''$ac_val'\''"
1640     done | sort
1641     echo
1642
1643     if test -n "$ac_subst_files"; then
1644       cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649       echo
1650       for ac_var in $ac_subst_files
1651       do
1652         eval ac_val=\$$ac_var
1653         case $ac_val in
1654         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655         esac
1656         $as_echo "$ac_var='\''$ac_val'\''"
1657       done | sort
1658       echo
1659     fi
1660
1661     if test -s confdefs.h; then
1662       cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667       echo
1668       cat confdefs.h
1669       echo
1670     fi
1671     test "$ac_signal" != 0 &&
1672       $as_echo "$as_me: caught signal $ac_signal"
1673     $as_echo "$as_me: exit $exit_status"
1674   } >&5
1675   rm -f core *.core core.conftest.* &&
1676     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677     exit $exit_status
1678 ' 0
1679 for ac_signal in 1 2 13 15; do
1680   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1683
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1686
1687 # Predefined preprocessor variables.
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1712
1713
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer an explicitly selected file to automatically selected ones.
1716 ac_site_file1=NONE
1717 ac_site_file2=NONE
1718 if test -n "$CONFIG_SITE"; then
1719   ac_site_file1=$CONFIG_SITE
1720 elif test "x$prefix" != xNONE; then
1721   ac_site_file1=$prefix/share/config.site
1722   ac_site_file2=$prefix/etc/config.site
1723 else
1724   ac_site_file1=$ac_default_prefix/share/config.site
1725   ac_site_file2=$ac_default_prefix/etc/config.site
1726 fi
1727 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1728 do
1729   test "x$ac_site_file" = xNONE && continue
1730   if test -r "$ac_site_file"; then
1731     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1733     sed 's/^/| /' "$ac_site_file" >&5
1734     . "$ac_site_file"
1735   fi
1736 done
1737
1738 if test -r "$cache_file"; then
1739   # Some versions of bash will fail to source /dev/null (special
1740   # files actually), so we avoid doing that.
1741   if test -f "$cache_file"; then
1742     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 $as_echo "$as_me: loading cache $cache_file" >&6;}
1744     case $cache_file in
1745       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746       *)                      . "./$cache_file";;
1747     esac
1748   fi
1749 else
1750   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 $as_echo "$as_me: creating cache $cache_file" >&6;}
1752   >$cache_file
1753 fi
1754
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760   eval ac_new_set=\$ac_env_${ac_var}_set
1761   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762   eval ac_new_val=\$ac_env_${ac_var}_value
1763   case $ac_old_set,$ac_new_set in
1764     set,)
1765       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767       ac_cache_corrupted=: ;;
1768     ,set)
1769       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771       ac_cache_corrupted=: ;;
1772     ,);;
1773     *)
1774       if test "x$ac_old_val" != "x$ac_new_val"; then
1775         # differences in whitespace do not lead to failure.
1776         ac_old_val_w=`echo x $ac_old_val`
1777         ac_new_val_w=`echo x $ac_new_val`
1778         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1779           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1780 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781           ac_cache_corrupted=:
1782         else
1783           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1784 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1785           eval $ac_var=\$ac_old_val
1786         fi
1787         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1788 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1789         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1790 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1791       fi;;
1792   esac
1793   # Pass precious variables to config.status.
1794   if test "$ac_new_set" = set; then
1795     case $ac_new_val in
1796     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797     *) ac_arg=$ac_var=$ac_new_val ;;
1798     esac
1799     case " $ac_configure_args " in
1800       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1801       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802     esac
1803   fi
1804 done
1805 if $ac_cache_corrupted; then
1806   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1808   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839 ac_ext=c
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844
1845
1846
1847
1848 ac_config_headers="$ac_config_headers config.h"
1849
1850
1851 # fix warnings from autoconf + automake
1852 ac_ext=c
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1857 if test -n "$ac_tool_prefix"; then
1858   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 $as_echo_n "checking for $ac_word... " >&6; }
1862 if test "${ac_cv_prog_CC+set}" = set; then
1863   $as_echo_n "(cached) " >&6
1864 else
1865   if test -n "$CC"; then
1866   ac_cv_prog_CC="$CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 fi
1884 fi
1885 CC=$ac_cv_prog_CC
1886 if test -n "$CC"; then
1887   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1888 $as_echo "$CC" >&6; }
1889 else
1890   { $as_echo "$as_me:$LINENO: result: no" >&5
1891 $as_echo "no" >&6; }
1892 fi
1893
1894
1895 fi
1896 if test -z "$ac_cv_prog_CC"; then
1897   ac_ct_CC=$CC
1898   # Extract the first word of "gcc", so it can be a program name with args.
1899 set dummy gcc; ac_word=$2
1900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 $as_echo_n "checking for $ac_word... " >&6; }
1902 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1903   $as_echo_n "(cached) " >&6
1904 else
1905   if test -n "$ac_ct_CC"; then
1906   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915     ac_cv_prog_ac_ct_CC="gcc"
1916     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921 IFS=$as_save_IFS
1922
1923 fi
1924 fi
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 $as_echo "$ac_ct_CC" >&6; }
1929 else
1930   { $as_echo "$as_me:$LINENO: result: no" >&5
1931 $as_echo "no" >&6; }
1932 fi
1933
1934   if test "x$ac_ct_CC" = x; then
1935     CC=""
1936   else
1937     case $cross_compiling:$ac_tool_warned in
1938 yes:)
1939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1941 ac_tool_warned=yes ;;
1942 esac
1943     CC=$ac_ct_CC
1944   fi
1945 else
1946   CC="$ac_cv_prog_CC"
1947 fi
1948
1949 if test -z "$CC"; then
1950           if test -n "$ac_tool_prefix"; then
1951     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}cc; ac_word=$2
1953 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 $as_echo_n "checking for $ac_word... " >&6; }
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956   $as_echo_n "(cached) " >&6
1957 else
1958   if test -n "$CC"; then
1959   ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968     ac_cv_prog_CC="${ac_tool_prefix}cc"
1969     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974 IFS=$as_save_IFS
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1981 $as_echo "$CC" >&6; }
1982 else
1983   { $as_echo "$as_me:$LINENO: result: no" >&5
1984 $as_echo "no" >&6; }
1985 fi
1986
1987
1988   fi
1989 fi
1990 if test -z "$CC"; then
1991   # Extract the first word of "cc", so it can be a program name with args.
1992 set dummy cc; ac_word=$2
1993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 $as_echo_n "checking for $ac_word... " >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996   $as_echo_n "(cached) " >&6
1997 else
1998   if test -n "$CC"; then
1999   ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001   ac_prog_rejected=no
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010        ac_prog_rejected=yes
2011        continue
2012      fi
2013     ac_cv_prog_CC="cc"
2014     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019 IFS=$as_save_IFS
2020
2021 if test $ac_prog_rejected = yes; then
2022   # We found a bogon in the path, so make sure we never use it.
2023   set dummy $ac_cv_prog_CC
2024   shift
2025   if test $# != 0; then
2026     # We chose a different compiler from the bogus one.
2027     # However, it has the same basename, so the bogon will be chosen
2028     # first if we set CC to just the basename; use the full file name.
2029     shift
2030     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2031   fi
2032 fi
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2038 $as_echo "$CC" >&6; }
2039 else
2040   { $as_echo "$as_me:$LINENO: result: no" >&5
2041 $as_echo "no" >&6; }
2042 fi
2043
2044
2045 fi
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   for ac_prog in cl.exe
2049   do
2050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   $as_echo_n "(cached) " >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2080 $as_echo "$CC" >&6; }
2081 else
2082   { $as_echo "$as_me:$LINENO: result: no" >&5
2083 $as_echo "no" >&6; }
2084 fi
2085
2086
2087     test -n "$CC" && break
2088   done
2089 fi
2090 if test -z "$CC"; then
2091   ac_ct_CC=$CC
2092   for ac_prog in cl.exe
2093 do
2094   # Extract the first word of "$ac_prog", so it can be a program name with args.
2095 set dummy $ac_prog; ac_word=$2
2096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 $as_echo_n "checking for $ac_word... " >&6; }
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099   $as_echo_n "(cached) " >&6
2100 else
2101   if test -n "$ac_ct_CC"; then
2102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111     ac_cv_prog_ac_ct_CC="$ac_prog"
2112     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117 IFS=$as_save_IFS
2118
2119 fi
2120 fi
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 $as_echo "$ac_ct_CC" >&6; }
2125 else
2126   { $as_echo "$as_me:$LINENO: result: no" >&5
2127 $as_echo "no" >&6; }
2128 fi
2129
2130
2131   test -n "$ac_ct_CC" && break
2132 done
2133
2134   if test "x$ac_ct_CC" = x; then
2135     CC=""
2136   else
2137     case $cross_compiling:$ac_tool_warned in
2138 yes:)
2139 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2141 ac_tool_warned=yes ;;
2142 esac
2143     CC=$ac_ct_CC
2144   fi
2145 fi
2146
2147 fi
2148
2149
2150 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&5
2154 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&2;}
2156    { (exit 1); exit 1; }; }; }
2157
2158 # Provide some information about the compiler.
2159 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2160 set X $ac_compile
2161 ac_compiler=$2
2162 { (ac_try="$ac_compiler --version >&5"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2168 $as_echo "$ac_try_echo") >&5
2169   (eval "$ac_compiler --version >&5") 2>&5
2170   ac_status=$?
2171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2179 $as_echo "$ac_try_echo") >&5
2180   (eval "$ac_compiler -v >&5") 2>&5
2181   ac_status=$?
2182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }
2184 { (ac_try="$ac_compiler -V >&5"
2185 case "(($ac_try" in
2186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187   *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2190 $as_echo "$ac_try_echo") >&5
2191   (eval "$ac_compiler -V >&5") 2>&5
2192   ac_status=$?
2193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }
2195
2196 cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 ac_clean_files_save=$ac_clean_files
2212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2213 # Try to create an executable without -o first, disregard a.out.
2214 # It will help us diagnose broken compilers, and finding out an intuition
2215 # of exeext.
2216 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2217 $as_echo_n "checking for C compiler default output file name... " >&6; }
2218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2219
2220 # The possible output files:
2221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2222
2223 ac_rmfiles=
2224 for ac_file in $ac_files
2225 do
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2228     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2229   esac
2230 done
2231 rm -f $ac_rmfiles
2232
2233 if { (ac_try="$ac_link_default"
2234 case "(($ac_try" in
2235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236   *) ac_try_echo=$ac_try;;
2237 esac
2238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2239 $as_echo "$ac_try_echo") >&5
2240   (eval "$ac_link_default") 2>&5
2241   ac_status=$?
2242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; then
2244   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2246 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2247 # so that the user can short-circuit this test for compilers unknown to
2248 # Autoconf.
2249 for ac_file in $ac_files ''
2250 do
2251   test -f "$ac_file" || continue
2252   case $ac_file in
2253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2254         ;;
2255     [ab].out )
2256         # We found the default executable, but exeext='' is most
2257         # certainly right.
2258         break;;
2259     *.* )
2260         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2261         then :; else
2262            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263         fi
2264         # We set ac_cv_exeext here because the later test for it is not
2265         # safe: cross compilers may not add the suffix if given an `-o'
2266         # argument, so we may need to know it at that point already.
2267         # Even if this section looks crufty: it has the advantage of
2268         # actually working.
2269         break;;
2270     * )
2271         break;;
2272   esac
2273 done
2274 test "$ac_cv_exeext" = no && ac_cv_exeext=
2275
2276 else
2277   ac_file=''
2278 fi
2279
2280 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2281 $as_echo "$ac_file" >&6; }
2282 if test -z "$ac_file"; then
2283   $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&5
2290 $as_echo "$as_me: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&2;}
2292    { (exit 77); exit 77; }; }; }
2293 fi
2294
2295 ac_exeext=$ac_cv_exeext
2296
2297 # Check that the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300 $as_echo_n "checking whether the C compiler works... " >&6; }
2301 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302 # If not cross compiling, check that we can run a simple program.
2303 if test "$cross_compiling" != yes; then
2304   if { ac_try='./$ac_file'
2305   { (case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2310 $as_echo "$ac_try_echo") >&5
2311   (eval "$ac_try") 2>&5
2312   ac_status=$?
2313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; }; then
2315     cross_compiling=no
2316   else
2317     if test "$cross_compiling" = maybe; then
2318         cross_compiling=yes
2319     else
2320         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&5
2325 $as_echo "$as_me: error: cannot run C compiled programs.
2326 If you meant to cross compile, use \`--host'.
2327 See \`config.log' for more details." >&2;}
2328    { (exit 1); exit 1; }; }; }
2329     fi
2330   fi
2331 fi
2332 { $as_echo "$as_me:$LINENO: result: yes" >&5
2333 $as_echo "yes" >&6; }
2334
2335 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2336 ac_clean_files=$ac_clean_files_save
2337 # Check that the compiler produces executables we can run.  If not, either
2338 # the compiler is broken, or we cross compile.
2339 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2340 $as_echo_n "checking whether we are cross compiling... " >&6; }
2341 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2342 $as_echo "$cross_compiling" >&6; }
2343
2344 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2345 $as_echo_n "checking for suffix of executables... " >&6; }
2346 if { (ac_try="$ac_link"
2347 case "(($ac_try" in
2348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349   *) ac_try_echo=$ac_try;;
2350 esac
2351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2352 $as_echo "$ac_try_echo") >&5
2353   (eval "$ac_link") 2>&5
2354   ac_status=$?
2355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2359 # work properly (i.e., refer to `conftest.exe'), while it won't with
2360 # `rm'.
2361 for ac_file in conftest.exe conftest conftest.*; do
2362   test -f "$ac_file" || continue
2363   case $ac_file in
2364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2365     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366           break;;
2367     * ) break;;
2368   esac
2369 done
2370 else
2371   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&5
2375 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }; }
2378 fi
2379
2380 rm -f conftest$ac_cv_exeext
2381 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382 $as_echo "$ac_cv_exeext" >&6; }
2383
2384 rm -f conftest.$ac_ext
2385 EXEEXT=$ac_cv_exeext
2386 ac_exeext=$EXEEXT
2387 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2388 $as_echo_n "checking for suffix of object files... " >&6; }
2389 if test "${ac_cv_objext+set}" = set; then
2390   $as_echo_n "(cached) " >&6
2391 else
2392   cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398
2399 int
2400 main ()
2401 {
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.o conftest.obj
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2414 $as_echo "$ac_try_echo") >&5
2415   (eval "$ac_compile") 2>&5
2416   ac_status=$?
2417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; then
2419   for ac_file in conftest.o conftest.obj conftest.*; do
2420   test -f "$ac_file" || continue;
2421   case $ac_file in
2422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2423     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2424        break;;
2425   esac
2426 done
2427 else
2428   $as_echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&5
2435 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }; }
2438 fi
2439
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2441 fi
2442 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443 $as_echo "$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2445 ac_objext=$OBJEXT
2446 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457
2458 int
2459 main ()
2460 {
2461 #ifndef __GNUC__
2462        choke me
2463 #endif
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2476 $as_echo "$ac_try_echo") >&5
2477   (eval "$ac_compile") 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } && {
2484          test -z "$ac_c_werror_flag" ||
2485          test ! -s conftest.err
2486        } && test -s conftest.$ac_objext; then
2487   ac_compiler_gnu=yes
2488 else
2489   $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492         ac_compiler_gnu=no
2493 fi
2494
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2497
2498 fi
2499 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2501 if test $ac_compiler_gnu = yes; then
2502   GCC=yes
2503 else
2504   GCC=
2505 fi
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511   $as_echo_n "(cached) " >&6
2512 else
2513   ac_save_c_werror_flag=$ac_c_werror_flag
2514    ac_c_werror_flag=yes
2515    ac_cv_prog_cc_g=no
2516    CFLAGS="-g"
2517    cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2534 case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539 $as_echo "$ac_try_echo") >&5
2540   (eval "$ac_compile") 2>conftest.er1
2541   ac_status=$?
2542   grep -v '^ *+' conftest.er1 >conftest.err
2543   rm -f conftest.er1
2544   cat conftest.err >&5
2545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } && {
2547          test -z "$ac_c_werror_flag" ||
2548          test ! -s conftest.err
2549        } && test -s conftest.$ac_objext; then
2550   ac_cv_prog_cc_g=yes
2551 else
2552   $as_echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555         CFLAGS=""
2556       cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579   (eval "$ac_compile") 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } && {
2586          test -z "$ac_c_werror_flag" ||
2587          test ! -s conftest.err
2588        } && test -s conftest.$ac_objext; then
2589   :
2590 else
2591   $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594         ac_c_werror_flag=$ac_save_c_werror_flag
2595          CFLAGS="-g"
2596          cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602
2603 int
2604 main ()
2605 {
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2618 $as_echo "$ac_try_echo") >&5
2619   (eval "$ac_compile") 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } && {
2626          test -z "$ac_c_werror_flag" ||
2627          test ! -s conftest.err
2628        } && test -s conftest.$ac_objext; then
2629   ac_cv_prog_cc_g=yes
2630 else
2631   $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644    ac_c_werror_flag=$ac_save_c_werror_flag
2645 fi
2646 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 $as_echo "$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666   $as_echo_n "(cached) " >&6
2667 else
2668   ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709    inside strings and character constants.  */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 do
2730   CC="$ac_save_CC $ac_arg"
2731   rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738 $as_echo "$ac_try_echo") >&5
2739   (eval "$ac_compile") 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } && {
2746          test -z "$ac_c_werror_flag" ||
2747          test ! -s conftest.err
2748        } && test -s conftest.$ac_objext; then
2749   ac_cv_prog_cc_c89=$ac_arg
2750 else
2751   $as_echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754
2755 fi
2756
2757 rm -f core conftest.err conftest.$ac_objext
2758   test "x$ac_cv_prog_cc_c89" != "xno" && break
2759 done
2760 rm -f conftest.$ac_ext
2761 CC=$ac_save_CC
2762
2763 fi
2764 # AC_CACHE_VAL
2765 case "x$ac_cv_prog_cc_c89" in
2766   x)
2767     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2768 $as_echo "none needed" >&6; } ;;
2769   xno)
2770     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2771 $as_echo "unsupported" >&6; } ;;
2772   *)
2773     CC="$CC $ac_cv_prog_cc_c89"
2774     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2776 esac
2777
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785
2786 ac_ext=c
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2793 # On Suns, sometimes $CPP names a directory.
2794 if test -n "$CPP" && test -d "$CPP"; then
2795   CPP=
2796 fi
2797 if test -z "$CPP"; then
2798   if test "${ac_cv_prog_CPP+set}" = set; then
2799   $as_echo_n "(cached) " >&6
2800 else
2801       # Double quotes because CPP needs to be expanded
2802     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2803     do
2804       ac_preproc_ok=false
2805 for ac_c_preproc_warn_flag in '' yes
2806 do
2807   # Use a header file that comes with gcc, so configuring glibc
2808   # with a fresh cross-compiler works.
2809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810   # <limits.h> exists even on freestanding compilers.
2811   # On the NeXT, cc -E runs the code through the compiler's parser,
2812   # not just through cpp. "Syntax error" is here to catch this case.
2813   cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 #ifdef __STDC__
2820 # include <limits.h>
2821 #else
2822 # include <assert.h>
2823 #endif
2824                      Syntax error
2825 _ACEOF
2826 if { (ac_try="$ac_cpp conftest.$ac_ext"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2832 $as_echo "$ac_try_echo") >&5
2833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null && {
2840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2841          test ! -s conftest.err
2842        }; then
2843   :
2844 else
2845   $as_echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848   # Broken: fails on valid input.
2849 continue
2850 fi
2851
2852 rm -f conftest.err conftest.$ac_ext
2853
2854   # OK, works on sane cases.  Now check whether nonexistent headers
2855   # can be detected and how.
2856   cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 #include <ac_nonexistent.h>
2863 _ACEOF
2864 if { (ac_try="$ac_cpp conftest.$ac_ext"
2865 case "(($ac_try" in
2866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867   *) ac_try_echo=$ac_try;;
2868 esac
2869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870 $as_echo "$ac_try_echo") >&5
2871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null && {
2878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2879          test ! -s conftest.err
2880        }; then
2881   # Broken: success on invalid input.
2882 continue
2883 else
2884   $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887   # Passes both tests.
2888 ac_preproc_ok=:
2889 break
2890 fi
2891
2892 rm -f conftest.err conftest.$ac_ext
2893
2894 done
2895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896 rm -f conftest.err conftest.$ac_ext
2897 if $ac_preproc_ok; then
2898   break
2899 fi
2900
2901     done
2902     ac_cv_prog_CPP=$CPP
2903
2904 fi
2905   CPP=$ac_cv_prog_CPP
2906 else
2907   ac_cv_prog_CPP=$CPP
2908 fi
2909 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2910 $as_echo "$CPP" >&6; }
2911 ac_preproc_ok=false
2912 for ac_c_preproc_warn_flag in '' yes
2913 do
2914   # Use a header file that comes with gcc, so configuring glibc
2915   # with a fresh cross-compiler works.
2916   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2917   # <limits.h> exists even on freestanding compilers.
2918   # On the NeXT, cc -E runs the code through the compiler's parser,
2919   # not just through cpp. "Syntax error" is here to catch this case.
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 #ifdef __STDC__
2927 # include <limits.h>
2928 #else
2929 # include <assert.h>
2930 #endif
2931                      Syntax error
2932 _ACEOF
2933 if { (ac_try="$ac_cpp conftest.$ac_ext"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } >/dev/null && {
2947          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2948          test ! -s conftest.err
2949        }; then
2950   :
2951 else
2952   $as_echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955   # Broken: fails on valid input.
2956 continue
2957 fi
2958
2959 rm -f conftest.err conftest.$ac_ext
2960
2961   # OK, works on sane cases.  Now check whether nonexistent headers
2962   # can be detected and how.
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 #include <ac_nonexistent.h>
2970 _ACEOF
2971 if { (ac_try="$ac_cpp conftest.$ac_ext"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977 $as_echo "$ac_try_echo") >&5
2978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null && {
2985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2986          test ! -s conftest.err
2987        }; then
2988   # Broken: success on invalid input.
2989 continue
2990 else
2991   $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994   # Passes both tests.
2995 ac_preproc_ok=:
2996 break
2997 fi
2998
2999 rm -f conftest.err conftest.$ac_ext
3000
3001 done
3002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3003 rm -f conftest.err conftest.$ac_ext
3004 if $ac_preproc_ok; then
3005   :
3006 else
3007   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3012 See \`config.log' for more details." >&2;}
3013    { (exit 1); exit 1; }; }; }
3014 fi
3015
3016 ac_ext=c
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021
3022
3023 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3024 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3025 if test "${ac_cv_path_GREP+set}" = set; then
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -z "$GREP"; then
3029   ac_path_GREP_found=false
3030   # Loop through the user's path and test for each of PROGNAME-LIST
3031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036   for ac_prog in grep ggrep; do
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3039       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3040 # Check for GNU ac_path_GREP and select it if it is found.
3041   # Check for GNU $ac_path_GREP
3042 case `"$ac_path_GREP" --version 2>&1` in
3043 *GNU*)
3044   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3045 *)
3046   ac_count=0
3047   $as_echo_n 0123456789 >"conftest.in"
3048   while :
3049   do
3050     cat "conftest.in" "conftest.in" >"conftest.tmp"
3051     mv "conftest.tmp" "conftest.in"
3052     cp "conftest.in" "conftest.nl"
3053     $as_echo 'GREP' >> "conftest.nl"
3054     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3055     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3056     ac_count=`expr $ac_count + 1`
3057     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3058       # Best one so far, save it but keep looking for a better one
3059       ac_cv_path_GREP="$ac_path_GREP"
3060       ac_path_GREP_max=$ac_count
3061     fi
3062     # 10*(2^10) chars as input seems more than enough
3063     test $ac_count -gt 10 && break
3064   done
3065   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3066 esac
3067
3068       $ac_path_GREP_found && break 3
3069     done
3070   done
3071 done
3072 IFS=$as_save_IFS
3073   if test -z "$ac_cv_path_GREP"; then
3074     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3075 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3076    { (exit 1); exit 1; }; }
3077   fi
3078 else
3079   ac_cv_path_GREP=$GREP
3080 fi
3081
3082 fi
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3084 $as_echo "$ac_cv_path_GREP" >&6; }
3085  GREP="$ac_cv_path_GREP"
3086
3087
3088 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3089 $as_echo_n "checking for egrep... " >&6; }
3090 if test "${ac_cv_path_EGREP+set}" = set; then
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3094    then ac_cv_path_EGREP="$GREP -E"
3095    else
3096      if test -z "$EGREP"; then
3097   ac_path_EGREP_found=false
3098   # Loop through the user's path and test for each of PROGNAME-LIST
3099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_prog in egrep; do
3105     for ac_exec_ext in '' $ac_executable_extensions; do
3106       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3107       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3108 # Check for GNU ac_path_EGREP and select it if it is found.
3109   # Check for GNU $ac_path_EGREP
3110 case `"$ac_path_EGREP" --version 2>&1` in
3111 *GNU*)
3112   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3113 *)
3114   ac_count=0
3115   $as_echo_n 0123456789 >"conftest.in"
3116   while :
3117   do
3118     cat "conftest.in" "conftest.in" >"conftest.tmp"
3119     mv "conftest.tmp" "conftest.in"
3120     cp "conftest.in" "conftest.nl"
3121     $as_echo 'EGREP' >> "conftest.nl"
3122     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3124     ac_count=`expr $ac_count + 1`
3125     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3126       # Best one so far, save it but keep looking for a better one
3127       ac_cv_path_EGREP="$ac_path_EGREP"
3128       ac_path_EGREP_max=$ac_count
3129     fi
3130     # 10*(2^10) chars as input seems more than enough
3131     test $ac_count -gt 10 && break
3132   done
3133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3134 esac
3135
3136       $ac_path_EGREP_found && break 3
3137     done
3138   done
3139 done
3140 IFS=$as_save_IFS
3141   if test -z "$ac_cv_path_EGREP"; then
3142     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3143 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3144    { (exit 1); exit 1; }; }
3145   fi
3146 else
3147   ac_cv_path_EGREP=$EGREP
3148 fi
3149
3150    fi
3151 fi
3152 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3153 $as_echo "$ac_cv_path_EGREP" >&6; }
3154  EGREP="$ac_cv_path_EGREP"
3155
3156
3157 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3158 $as_echo_n "checking for ANSI C header files... " >&6; }
3159 if test "${ac_cv_header_stdc+set}" = set; then
3160   $as_echo_n "(cached) " >&6
3161 else
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <stdlib.h>
3169 #include <stdarg.h>
3170 #include <string.h>
3171 #include <float.h>
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3188 $as_echo "$ac_try_echo") >&5
3189   (eval "$ac_compile") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } && {
3196          test -z "$ac_c_werror_flag" ||
3197          test ! -s conftest.err
3198        } && test -s conftest.$ac_objext; then
3199   ac_cv_header_stdc=yes
3200 else
3201   $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_cv_header_stdc=no
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208
3209 if test $ac_cv_header_stdc = yes; then
3210   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3211   cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217 #include <string.h>
3218
3219 _ACEOF
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221   $EGREP "memchr" >/dev/null 2>&1; then
3222   :
3223 else
3224   ac_cv_header_stdc=no
3225 fi
3226 rm -f conftest*
3227
3228 fi
3229
3230 if test $ac_cv_header_stdc = yes; then
3231   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <stdlib.h>
3239
3240 _ACEOF
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242   $EGREP "free" >/dev/null 2>&1; then
3243   :
3244 else
3245   ac_cv_header_stdc=no
3246 fi
3247 rm -f conftest*
3248
3249 fi
3250
3251 if test $ac_cv_header_stdc = yes; then
3252   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3253   if test "$cross_compiling" = yes; then
3254   :
3255 else
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <ctype.h>
3263 #include <stdlib.h>
3264 #if ((' ' & 0x0FF) == 0x020)
3265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3267 #else
3268 # define ISLOWER(c) \
3269                    (('a' <= (c) && (c) <= 'i') \
3270                      || ('j' <= (c) && (c) <= 'r') \
3271                      || ('s' <= (c) && (c) <= 'z'))
3272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3273 #endif
3274
3275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3276 int
3277 main ()
3278 {
3279   int i;
3280   for (i = 0; i < 256; i++)
3281     if (XOR (islower (i), ISLOWER (i))
3282         || toupper (i) != TOUPPER (i))
3283       return 2;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest$ac_exeext
3288 if { (ac_try="$ac_link"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294 $as_echo "$ac_try_echo") >&5
3295   (eval "$ac_link") 2>&5
3296   ac_status=$?
3297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3299   { (case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; }; then
3309   :
3310 else
3311   $as_echo "$as_me: program exited with status $ac_status" >&5
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 ( exit $ac_status )
3316 ac_cv_header_stdc=no
3317 fi
3318 rm -rf conftest.dSYM
3319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3320 fi
3321
3322
3323 fi
3324 fi
3325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3326 $as_echo "$ac_cv_header_stdc" >&6; }
3327 if test $ac_cv_header_stdc = yes; then
3328
3329 cat >>confdefs.h <<\_ACEOF
3330 #define STDC_HEADERS 1
3331 _ACEOF
3332
3333 fi
3334
3335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3346                   inttypes.h stdint.h unistd.h
3347 do
3348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3350 $as_echo_n "checking for $ac_header... " >&6; }
3351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3352   $as_echo_n "(cached) " >&6
3353 else
3354   cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 $ac_includes_default
3361
3362 #include <$ac_header>
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371 $as_echo "$ac_try_echo") >&5
3372   (eval "$ac_compile") 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } && {
3379          test -z "$ac_c_werror_flag" ||
3380          test ! -s conftest.err
3381        } && test -s conftest.$ac_objext; then
3382   eval "$as_ac_Header=yes"
3383 else
3384   $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387         eval "$as_ac_Header=no"
3388 fi
3389
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 fi
3392 ac_res=`eval 'as_val=${'$as_ac_Header'}
3393                  $as_echo "$as_val"'`
3394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3395 $as_echo "$ac_res" >&6; }
3396 as_val=`eval 'as_val=${'$as_ac_Header'}
3397                  $as_echo "$as_val"'`
3398    if test "x$as_val" = x""yes; then
3399   cat >>confdefs.h <<_ACEOF
3400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3401 _ACEOF
3402
3403 fi
3404
3405 done
3406
3407
3408
3409   if test "${ac_cv_header_minix_config_h+set}" = set; then
3410   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3411 $as_echo_n "checking for minix/config.h... " >&6; }
3412 if test "${ac_cv_header_minix_config_h+set}" = set; then
3413   $as_echo_n "(cached) " >&6
3414 fi
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3416 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3417 else
3418   # Is the header compilable?
3419 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3420 $as_echo_n "checking minix/config.h usability... " >&6; }
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 $ac_includes_default
3428 #include <minix/config.h>
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_compile") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && {
3445          test -z "$ac_c_werror_flag" ||
3446          test ! -s conftest.err
3447        } && test -s conftest.$ac_objext; then
3448   ac_header_compiler=yes
3449 else
3450   $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453         ac_header_compiler=no
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3458 $as_echo "$ac_header_compiler" >&6; }
3459
3460 # Is the header present?
3461 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3462 $as_echo_n "checking minix/config.h presence... " >&6; }
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <minix/config.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } >/dev/null && {
3485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3486          test ! -s conftest.err
3487        }; then
3488   ac_header_preproc=yes
3489 else
3490   $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493   ac_header_preproc=no
3494 fi
3495
3496 rm -f conftest.err conftest.$ac_ext
3497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3498 $as_echo "$ac_header_preproc" >&6; }
3499
3500 # So?  What about this header?
3501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3502   yes:no: )
3503     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3504 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3505     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3506 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3507     ac_header_preproc=yes
3508     ;;
3509   no:yes:* )
3510     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3512     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3513 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3514     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3515 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3516     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3517 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3518     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3519 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3520     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3521 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3522     ( cat <<\_ASBOX
3523 ## ----------------------------------- ##
3524 ## Report this to andreas@eversberg.eu ##
3525 ## ----------------------------------- ##
3526 _ASBOX
3527      ) | sed "s/^/$as_me: WARNING:     /" >&2
3528     ;;
3529 esac
3530 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3531 $as_echo_n "checking for minix/config.h... " >&6; }
3532 if test "${ac_cv_header_minix_config_h+set}" = set; then
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_cv_header_minix_config_h=$ac_header_preproc
3536 fi
3537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3538 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3539
3540 fi
3541 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3542   MINIX=yes
3543 else
3544   MINIX=
3545 fi
3546
3547
3548   if test "$MINIX" = yes; then
3549
3550 cat >>confdefs.h <<\_ACEOF
3551 #define _POSIX_SOURCE 1
3552 _ACEOF
3553
3554
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_1_SOURCE 2
3557 _ACEOF
3558
3559
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _MINIX 1
3562 _ACEOF
3563
3564   fi
3565
3566
3567
3568   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3569 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3570 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3571   $as_echo_n "(cached) " >&6
3572 else
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 #         define __EXTENSIONS__ 1
3581           $ac_includes_default
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598   (eval "$ac_compile") 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } && {
3605          test -z "$ac_c_werror_flag" ||
3606          test ! -s conftest.err
3607        } && test -s conftest.$ac_objext; then
3608   ac_cv_safe_to_define___extensions__=yes
3609 else
3610   $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613         ac_cv_safe_to_define___extensions__=no
3614 fi
3615
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3619 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3620   test $ac_cv_safe_to_define___extensions__ = yes &&
3621     cat >>confdefs.h <<\_ACEOF
3622 #define __EXTENSIONS__ 1
3623 _ACEOF
3624
3625   cat >>confdefs.h <<\_ACEOF
3626 #define _ALL_SOURCE 1
3627 _ACEOF
3628
3629   cat >>confdefs.h <<\_ACEOF
3630 #define _GNU_SOURCE 1
3631 _ACEOF
3632
3633   cat >>confdefs.h <<\_ACEOF
3634 #define _POSIX_PTHREAD_SEMANTICS 1
3635 _ACEOF
3636
3637   cat >>confdefs.h <<\_ACEOF
3638 #define _TANDEM_SOURCE 1
3639 _ACEOF
3640
3641
3642 # AC_USE_SYSTEM_EXTENSIONS
3643 am__api_version="1.9"
3644 ac_aux_dir=
3645 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3646   if test -f "$ac_dir/install-sh"; then
3647     ac_aux_dir=$ac_dir
3648     ac_install_sh="$ac_aux_dir/install-sh -c"
3649     break
3650   elif test -f "$ac_dir/install.sh"; then
3651     ac_aux_dir=$ac_dir
3652     ac_install_sh="$ac_aux_dir/install.sh -c"
3653     break
3654   elif test -f "$ac_dir/shtool"; then
3655     ac_aux_dir=$ac_dir
3656     ac_install_sh="$ac_aux_dir/shtool install -c"
3657     break
3658   fi
3659 done
3660 if test -z "$ac_aux_dir"; then
3661   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3662 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3663    { (exit 1); exit 1; }; }
3664 fi
3665
3666 # These three variables are undocumented and unsupported,
3667 # and are intended to be withdrawn in a future Autoconf release.
3668 # They can cause serious problems if a builder's source tree is in a directory
3669 # whose full name contains unusual characters.
3670 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3671 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3672 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3673
3674
3675 # Find a good install program.  We prefer a C program (faster),
3676 # so one script is as good as another.  But avoid the broken or
3677 # incompatible versions:
3678 # SysV /etc/install, /usr/sbin/install
3679 # SunOS /usr/etc/install
3680 # IRIX /sbin/install
3681 # AIX /bin/install
3682 # AmigaOS /C/install, which installs bootblocks on floppy discs
3683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3686 # OS/2's system install, which has a completely different semantic
3687 # ./install, which can be erroneously created by make from ./install.sh.
3688 # Reject install programs that cannot install multiple files.
3689 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3691 if test -z "$INSTALL"; then
3692 if test "${ac_cv_path_install+set}" = set; then
3693   $as_echo_n "(cached) " >&6
3694 else
3695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   # Account for people who put trailing slashes in PATH elements.
3701 case $as_dir/ in
3702   ./ | .// | /cC/* | \
3703   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3704   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3705   /usr/ucb/* ) ;;
3706   *)
3707     # OSF1 and SCO ODT 3.0 have their own names for install.
3708     # Don't use installbsd from OSF since it installs stuff as root
3709     # by default.
3710     for ac_prog in ginstall scoinst install; do
3711       for ac_exec_ext in '' $ac_executable_extensions; do
3712         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3713           if test $ac_prog = install &&
3714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3715             # AIX install.  It has an incompatible calling convention.
3716             :
3717           elif test $ac_prog = install &&
3718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3719             # program-specific install script used by HP pwplus--don't use.
3720             :
3721           else
3722             rm -rf conftest.one conftest.two conftest.dir
3723             echo one > conftest.one
3724             echo two > conftest.two
3725             mkdir conftest.dir
3726             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3727               test -s conftest.one && test -s conftest.two &&
3728               test -s conftest.dir/conftest.one &&
3729               test -s conftest.dir/conftest.two
3730             then
3731               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3732               break 3
3733             fi
3734           fi
3735         fi
3736       done
3737     done
3738     ;;
3739 esac
3740
3741 done
3742 IFS=$as_save_IFS
3743
3744 rm -rf conftest.one conftest.two conftest.dir
3745
3746 fi
3747   if test "${ac_cv_path_install+set}" = set; then
3748     INSTALL=$ac_cv_path_install
3749   else
3750     # As a last resort, use the slow shell script.  Don't cache a
3751     # value for INSTALL within a source directory, because that will
3752     # break other packages using the cache if that directory is
3753     # removed, or if the value is a relative name.
3754     INSTALL=$ac_install_sh
3755   fi
3756 fi
3757 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3758 $as_echo "$INSTALL" >&6; }
3759
3760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3761 # It thinks the first close brace ends the variable substitution.
3762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3763
3764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3765
3766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3767
3768 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3769 $as_echo_n "checking whether build environment is sane... " >&6; }
3770 # Just in case
3771 sleep 1
3772 echo timestamp > conftest.file
3773 # Do `set' in a subshell so we don't clobber the current shell's
3774 # arguments.  Must try -L first in case configure is actually a
3775 # symlink; some systems play weird games with the mod time of symlinks
3776 # (eg FreeBSD returns the mod time of the symlink's containing
3777 # directory).
3778 if (
3779    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3780    if test "$*" = "X"; then
3781       # -L didn't work.
3782       set X `ls -t $srcdir/configure conftest.file`
3783    fi
3784    rm -f conftest.file
3785    if test "$*" != "X $srcdir/configure conftest.file" \
3786       && test "$*" != "X conftest.file $srcdir/configure"; then
3787
3788       # If neither matched, then we have a broken ls.  This can happen
3789       # if, for instance, CONFIG_SHELL is bash and it inherits a
3790       # broken ls alias from the environment.  This has actually
3791       # happened.  Such a system could not be considered "sane".
3792       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3793 alias in your environment" >&5
3794 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3795 alias in your environment" >&2;}
3796    { (exit 1); exit 1; }; }
3797    fi
3798
3799    test "$2" = conftest.file
3800    )
3801 then
3802    # Ok.
3803    :
3804 else
3805    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3806 Check your system clock" >&5
3807 $as_echo "$as_me: error: newly created file is older than distributed files!
3808 Check your system clock" >&2;}
3809    { (exit 1); exit 1; }; }
3810 fi
3811 { $as_echo "$as_me:$LINENO: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 test "$program_prefix" != NONE &&
3814   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3815 # Use a double $ so make ignores it.
3816 test "$program_suffix" != NONE &&
3817   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3818 # Double any \ or $.
3819 # By default was `s,x,x', remove it if useless.
3820 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3821 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3822
3823 # expand $ac_aux_dir to an absolute path
3824 am_aux_dir=`cd $ac_aux_dir && pwd`
3825
3826 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3827 # Use eval to expand $SHELL
3828 if eval "$MISSING --run true"; then
3829   am_missing_run="$MISSING --run "
3830 else
3831   am_missing_run=
3832   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3833 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3834 fi
3835
3836 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3837   # We used to keeping the `.' as first argument, in order to
3838   # allow $(mkdir_p) to be used without argument.  As in
3839   #   $(mkdir_p) $(somedir)
3840   # where $(somedir) is conditionally defined.  However this is wrong
3841   # for two reasons:
3842   #  1. if the package is installed by a user who cannot write `.'
3843   #     make install will fail,
3844   #  2. the above comment should most certainly read
3845   #     $(mkdir_p) $(DESTDIR)$(somedir)
3846   #     so it does not work when $(somedir) is undefined and
3847   #     $(DESTDIR) is not.
3848   #  To support the latter case, we have to write
3849   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3850   #  so the `.' trick is pointless.
3851   mkdir_p='mkdir -p --'
3852 else
3853   # On NextStep and OpenStep, the `mkdir' command does not
3854   # recognize any option.  It will interpret all options as
3855   # directories to create, and then abort because `.' already
3856   # exists.
3857   for d in ./-p ./--version;
3858   do
3859     test -d $d && rmdir $d
3860   done
3861   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3862   if test -f "$ac_aux_dir/mkinstalldirs"; then
3863     mkdir_p='$(mkinstalldirs)'
3864   else
3865     mkdir_p='$(install_sh) -d'
3866   fi
3867 fi
3868
3869 for ac_prog in gawk mawk nawk awk
3870 do
3871   # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_AWK+set}" = set; then
3876   $as_echo_n "(cached) " >&6
3877 else
3878   if test -n "$AWK"; then
3879   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888     ac_cv_prog_AWK="$ac_prog"
3889     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 AWK=$ac_cv_prog_AWK
3899 if test -n "$AWK"; then
3900   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3901 $as_echo "$AWK" >&6; }
3902 else
3903   { $as_echo "$as_me:$LINENO: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908   test -n "$AWK" && break
3909 done
3910
3911 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3912 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3913 set x ${MAKE-make}
3914 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3915 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3916   $as_echo_n "(cached) " >&6
3917 else
3918   cat >conftest.make <<\_ACEOF
3919 SHELL = /bin/sh
3920 all:
3921         @echo '@@@%%%=$(MAKE)=@@@%%%'
3922 _ACEOF
3923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3924 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3925   *@@@%%%=?*=@@@%%%*)
3926     eval ac_cv_prog_make_${ac_make}_set=yes;;
3927   *)
3928     eval ac_cv_prog_make_${ac_make}_set=no;;
3929 esac
3930 rm -f conftest.make
3931 fi
3932 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3933   { $as_echo "$as_me:$LINENO: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935   SET_MAKE=
3936 else
3937   { $as_echo "$as_me:$LINENO: result: no" >&5
3938 $as_echo "no" >&6; }
3939   SET_MAKE="MAKE=${MAKE-make}"
3940 fi
3941
3942 rm -rf .tst 2>/dev/null
3943 mkdir .tst 2>/dev/null
3944 if test -d .tst; then
3945   am__leading_dot=.
3946 else
3947   am__leading_dot=_
3948 fi
3949 rmdir .tst 2>/dev/null
3950
3951 DEPDIR="${am__leading_dot}deps"
3952
3953 ac_config_commands="$ac_config_commands depfiles"
3954
3955
3956 am_make=${MAKE-make}
3957 cat > confinc << 'END'
3958 am__doit:
3959         @echo done
3960 .PHONY: am__doit
3961 END
3962 # If we don't find an include directive, just comment out the code.
3963 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3965 am__include="#"
3966 am__quote=
3967 _am_result=none
3968 # First try GNU make style include.
3969 echo "include confinc" > confmf
3970 # We grep out `Entering directory' and `Leaving directory'
3971 # messages which can occur if `w' ends up in MAKEFLAGS.
3972 # In particular we don't look at `^make:' because GNU make might
3973 # be invoked under some other name (usually "gmake"), in which
3974 # case it prints its new name instead of `make'.
3975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3976    am__include=include
3977    am__quote=
3978    _am_result=GNU
3979 fi
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982    echo '.include "confinc"' > confmf
3983    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3984       am__include=.include
3985       am__quote="\""
3986       _am_result=BSD
3987    fi
3988 fi
3989
3990
3991 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3992 $as_echo "$_am_result" >&6; }
3993 rm -f confinc confmf
3994
3995 # Check whether --enable-dependency-tracking was given.
3996 if test "${enable_dependency_tracking+set}" = set; then
3997   enableval=$enable_dependency_tracking;
3998 fi
3999
4000 if test "x$enable_dependency_tracking" != xno; then
4001   am_depcomp="$ac_aux_dir/depcomp"
4002   AMDEPBACKSLASH='\'
4003 fi
4004
4005
4006 if test "x$enable_dependency_tracking" != xno; then
4007   AMDEP_TRUE=
4008   AMDEP_FALSE='#'
4009 else
4010   AMDEP_TRUE='#'
4011   AMDEP_FALSE=
4012 fi
4013
4014
4015
4016 # test to see if srcdir already configured
4017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4018    test -f $srcdir/config.status; then
4019   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4020 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4021    { (exit 1); exit 1; }; }
4022 fi
4023
4024 # test whether we have cygpath
4025 if test -z "$CYGPATH_W"; then
4026   if (cygpath --version) >/dev/null 2>/dev/null; then
4027     CYGPATH_W='cygpath -w'
4028   else
4029     CYGPATH_W=echo
4030   fi
4031 fi
4032
4033
4034 # Define the identity of the package.
4035  PACKAGE=lcr
4036  VERSION=1.3
4037
4038
4039 cat >>confdefs.h <<_ACEOF
4040 #define PACKAGE "$PACKAGE"
4041 _ACEOF
4042
4043
4044 cat >>confdefs.h <<_ACEOF
4045 #define VERSION "$VERSION"
4046 _ACEOF
4047
4048 # Some tools Automake needs.
4049
4050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4051
4052
4053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4054
4055
4056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4057
4058
4059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4060
4061
4062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4063
4064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4065
4066 # Installed binaries are usually stripped using `strip' when the user
4067 # run `make install-strip'.  However `strip' might not be the right
4068 # tool to use in cross-compilation environments, therefore Automake
4069 # will honor the `STRIP' environment variable to overrule this program.
4070 if test "$cross_compiling" != no; then
4071   if test -n "$ac_tool_prefix"; then
4072   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}strip; ac_word=$2
4074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_STRIP+set}" = set; then
4077   $as_echo_n "(cached) " >&6
4078 else
4079   if test -n "$STRIP"; then
4080   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 fi
4098 fi
4099 STRIP=$ac_cv_prog_STRIP
4100 if test -n "$STRIP"; then
4101   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4102 $as_echo "$STRIP" >&6; }
4103 else
4104   { $as_echo "$as_me:$LINENO: result: no" >&5
4105 $as_echo "no" >&6; }
4106 fi
4107
4108
4109 fi
4110 if test -z "$ac_cv_prog_STRIP"; then
4111   ac_ct_STRIP=$STRIP
4112   # Extract the first word of "strip", so it can be a program name with args.
4113 set dummy strip; ac_word=$2
4114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4117   $as_echo_n "(cached) " >&6
4118 else
4119   if test -n "$ac_ct_STRIP"; then
4120   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129     ac_cv_prog_ac_ct_STRIP="strip"
4130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135 IFS=$as_save_IFS
4136
4137 fi
4138 fi
4139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4140 if test -n "$ac_ct_STRIP"; then
4141   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4142 $as_echo "$ac_ct_STRIP" >&6; }
4143 else
4144   { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148   if test "x$ac_ct_STRIP" = x; then
4149     STRIP=":"
4150   else
4151     case $cross_compiling:$ac_tool_warned in
4152 yes:)
4153 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155 ac_tool_warned=yes ;;
4156 esac
4157     STRIP=$ac_ct_STRIP
4158   fi
4159 else
4160   STRIP="$ac_cv_prog_STRIP"
4161 fi
4162
4163 fi
4164 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4165
4166 # We need awk for the "check" target.  The system "awk" is bad on
4167 # some platforms.
4168 # Always define AMTAR for backward compatibility.
4169
4170 AMTAR=${AMTAR-"${am_missing_run}tar"}
4171
4172 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4173
4174
4175
4176
4177 depcc="$CC"   am_compiler_list=
4178
4179 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185   # We make a subdir and do the tests there.  Otherwise we can end up
4186   # making bogus files that we don't know about and never remove.  For
4187   # instance it was reported that on HP-UX the gcc test will end up
4188   # making a dummy file named `D' -- because `-MD' means `put the output
4189   # in D'.
4190   mkdir conftest.dir
4191   # Copy depcomp to subdir because otherwise we won't find it if we're
4192   # using a relative directory.
4193   cp "$am_depcomp" conftest.dir
4194   cd conftest.dir
4195   # We will build objects and dependencies in a subdirectory because
4196   # it helps to detect inapplicable dependency modes.  For instance
4197   # both Tru64's cc and ICC support -MD to output dependencies as a
4198   # side effect of compilation, but ICC will put the dependencies in
4199   # the current directory while Tru64 will put them in the object
4200   # directory.
4201   mkdir sub
4202
4203   am_cv_CC_dependencies_compiler_type=none
4204   if test "$am_compiler_list" = ""; then
4205      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4206   fi
4207   for depmode in $am_compiler_list; do
4208     # Setup a source with many dependencies, because some compilers
4209     # like to wrap large dependency lists on column 80 (with \), and
4210     # we should not choose a depcomp mode which is confused by this.
4211     #
4212     # We need to recreate these files for each test, as the compiler may
4213     # overwrite some of them when testing with obscure command lines.
4214     # This happens at least with the AIX C compiler.
4215     : > sub/conftest.c
4216     for i in 1 2 3 4 5 6; do
4217       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4218       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4219       # Solaris 8's {/usr,}/bin/sh.
4220       touch sub/conftst$i.h
4221     done
4222     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4223
4224     case $depmode in
4225     nosideeffect)
4226       # after this tag, mechanisms are not by side-effect, so they'll
4227       # only be used when explicitly requested
4228       if test "x$enable_dependency_tracking" = xyes; then
4229         continue
4230       else
4231         break
4232       fi
4233       ;;
4234     none) break ;;
4235     esac
4236     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237     # mode.  It turns out that the SunPro C++ compiler does not properly
4238     # handle `-M -o', and we need to detect this.
4239     if depmode=$depmode \
4240        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4241        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4243          >/dev/null 2>conftest.err &&
4244        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4246        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247       # icc doesn't choke on unknown options, it will just issue warnings
4248       # or remarks (even with -Werror).  So we grep stderr for any message
4249       # that says an option was ignored or not supported.
4250       # When given -MP, icc 7.0 and 7.1 complain thusly:
4251       #   icc: Command line warning: ignoring option '-M'; no argument required
4252       # The diagnosis changed in icc 8.0:
4253       #   icc: Command line remark: option '-MP' not supported
4254       if (grep 'ignoring option' conftest.err ||
4255           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256         am_cv_CC_dependencies_compiler_type=$depmode
4257         break
4258       fi
4259     fi
4260   done
4261
4262   cd ..
4263   rm -rf conftest.dir
4264 else
4265   am_cv_CC_dependencies_compiler_type=none
4266 fi
4267
4268 fi
4269 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4272
4273
4274
4275 if
4276   test "x$enable_dependency_tracking" != xno \
4277   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4278   am__fastdepCC_TRUE=
4279   am__fastdepCC_FALSE='#'
4280 else
4281   am__fastdepCC_TRUE='#'
4282   am__fastdepCC_FALSE=
4283 fi
4284
4285
4286
4287
4288
4289
4290 # Checks for programs.
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4298 # On Suns, sometimes $CPP names a directory.
4299 if test -n "$CPP" && test -d "$CPP"; then
4300   CPP=
4301 fi
4302 if test -z "$CPP"; then
4303   if test "${ac_cv_prog_CPP+set}" = set; then
4304   $as_echo_n "(cached) " >&6
4305 else
4306       # Double quotes because CPP needs to be expanded
4307     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4308     do
4309       ac_preproc_ok=false
4310 for ac_c_preproc_warn_flag in '' yes
4311 do
4312   # Use a header file that comes with gcc, so configuring glibc
4313   # with a fresh cross-compiler works.
4314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315   # <limits.h> exists even on freestanding compilers.
4316   # On the NeXT, cc -E runs the code through the compiler's parser,
4317   # not just through cpp. "Syntax error" is here to catch this case.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #ifdef __STDC__
4325 # include <limits.h>
4326 #else
4327 # include <assert.h>
4328 #endif
4329                      Syntax error
4330 _ACEOF
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337 $as_echo "$ac_try_echo") >&5
4338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } >/dev/null && {
4345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346          test ! -s conftest.err
4347        }; then
4348   :
4349 else
4350   $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353   # Broken: fails on valid input.
4354 continue
4355 fi
4356
4357 rm -f conftest.err conftest.$ac_ext
4358
4359   # OK, works on sane cases.  Now check whether nonexistent headers
4360   # can be detected and how.
4361   cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <ac_nonexistent.h>
4368 _ACEOF
4369 if { (ac_try="$ac_cpp conftest.$ac_ext"
4370 case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375 $as_echo "$ac_try_echo") >&5
4376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4377   ac_status=$?
4378   grep -v '^ *+' conftest.er1 >conftest.err
4379   rm -f conftest.er1
4380   cat conftest.err >&5
4381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } >/dev/null && {
4383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384          test ! -s conftest.err
4385        }; then
4386   # Broken: success on invalid input.
4387 continue
4388 else
4389   $as_echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392   # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396
4397 rm -f conftest.err conftest.$ac_ext
4398
4399 done
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then
4403   break
4404 fi
4405
4406     done
4407     ac_cv_prog_CPP=$CPP
4408
4409 fi
4410   CPP=$ac_cv_prog_CPP
4411 else
4412   ac_cv_prog_CPP=$CPP
4413 fi
4414 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4415 $as_echo "$CPP" >&6; }
4416 ac_preproc_ok=false
4417 for ac_c_preproc_warn_flag in '' yes
4418 do
4419   # Use a header file that comes with gcc, so configuring glibc
4420   # with a fresh cross-compiler works.
4421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422   # <limits.h> exists even on freestanding compilers.
4423   # On the NeXT, cc -E runs the code through the compiler's parser,
4424   # not just through cpp. "Syntax error" is here to catch this case.
4425   cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436                      Syntax error
4437 _ACEOF
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444 $as_echo "$ac_try_echo") >&5
4445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446   ac_status=$?
4447   grep -v '^ *+' conftest.er1 >conftest.err
4448   rm -f conftest.er1
4449   cat conftest.err >&5
4450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } >/dev/null && {
4452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4453          test ! -s conftest.err
4454        }; then
4455   :
4456 else
4457   $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460   # Broken: fails on valid input.
4461 continue
4462 fi
4463
4464 rm -f conftest.err conftest.$ac_ext
4465
4466   # OK, works on sane cases.  Now check whether nonexistent headers
4467   # can be detected and how.
4468   cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <ac_nonexistent.h>
4475 _ACEOF
4476 if { (ac_try="$ac_cpp conftest.$ac_ext"
4477 case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482 $as_echo "$ac_try_echo") >&5
4483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } >/dev/null && {
4490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491          test ! -s conftest.err
4492        }; then
4493   # Broken: success on invalid input.
4494 continue
4495 else
4496   $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499   # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4502 fi
4503
4504 rm -f conftest.err conftest.$ac_ext
4505
4506 done
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then
4510   :
4511 else
4512   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details." >&5
4516 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4517 See \`config.log' for more details." >&2;}
4518    { (exit 1); exit 1; }; }; }
4519 fi
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527 ac_ext=cpp
4528 ac_cpp='$CXXCPP $CPPFLAGS'
4529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4532 if test -z "$CXX"; then
4533   if test -n "$CCC"; then
4534     CXX=$CCC
4535   else
4536     if test -n "$ac_tool_prefix"; then
4537   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538   do
4539     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_prog_CXX+set}" = set; then
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -n "$CXX"; then
4547   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 CXX=$ac_cv_prog_CXX
4567 if test -n "$CXX"; then
4568   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4569 $as_echo "$CXX" >&6; }
4570 else
4571   { $as_echo "$as_me:$LINENO: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576     test -n "$CXX" && break
4577   done
4578 fi
4579 if test -z "$CXX"; then
4580   ac_ct_CXX=$CXX
4581   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4582 do
4583   # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -n "$ac_ct_CXX"; then
4591   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_ac_ct_CXX="$ac_prog"
4601     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4611 if test -n "$ac_ct_CXX"; then
4612   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4613 $as_echo "$ac_ct_CXX" >&6; }
4614 else
4615   { $as_echo "$as_me:$LINENO: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619
4620   test -n "$ac_ct_CXX" && break
4621 done
4622
4623   if test "x$ac_ct_CXX" = x; then
4624     CXX="g++"
4625   else
4626     case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632     CXX=$ac_ct_CXX
4633   fi
4634 fi
4635
4636   fi
4637 fi
4638 # Provide some information about the compiler.
4639 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4640 set X $ac_compile
4641 ac_compiler=$2
4642 { (ac_try="$ac_compiler --version >&5"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649   (eval "$ac_compiler --version >&5") 2>&5
4650   ac_status=$?
4651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }
4653 { (ac_try="$ac_compiler -v >&5"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660   (eval "$ac_compiler -v >&5") 2>&5
4661   ac_status=$?
4662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }
4664 { (ac_try="$ac_compiler -V >&5"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671   (eval "$ac_compiler -V >&5") 2>&5
4672   ac_status=$?
4673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }
4675
4676 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4679   $as_echo_n "(cached) " >&6
4680 else
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687
4688 int
4689 main ()
4690 {
4691 #ifndef __GNUC__
4692        choke me
4693 #endif
4694
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703   *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707   (eval "$ac_compile") 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } && {
4714          test -z "$ac_cxx_werror_flag" ||
4715          test ! -s conftest.err
4716        } && test -s conftest.$ac_objext; then
4717   ac_compiler_gnu=yes
4718 else
4719   $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722         ac_compiler_gnu=no
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4727
4728 fi
4729 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4730 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4731 if test $ac_compiler_gnu = yes; then
4732   GXX=yes
4733 else
4734   GXX=
4735 fi
4736 ac_test_CXXFLAGS=${CXXFLAGS+set}
4737 ac_save_CXXFLAGS=$CXXFLAGS
4738 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4739 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4740 if test "${ac_cv_prog_cxx_g+set}" = set; then
4741   $as_echo_n "(cached) " >&6
4742 else
4743   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4744    ac_cxx_werror_flag=yes
4745    ac_cv_prog_cxx_g=no
4746    CXXFLAGS="-g"
4747    cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753
4754 int
4755 main ()
4756 {
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770   (eval "$ac_compile") 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } && {
4777          test -z "$ac_cxx_werror_flag" ||
4778          test ! -s conftest.err
4779        } && test -s conftest.$ac_objext; then
4780   ac_cv_prog_cxx_g=yes
4781 else
4782   $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         CXXFLAGS=""
4786       cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792
4793 int
4794 main ()
4795 {
4796
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext
4802 if { (ac_try="$ac_compile"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4808 $as_echo "$ac_try_echo") >&5
4809   (eval "$ac_compile") 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } && {
4816          test -z "$ac_cxx_werror_flag" ||
4817          test ! -s conftest.err
4818        } && test -s conftest.$ac_objext; then
4819   :
4820 else
4821   $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4825          CXXFLAGS="-g"
4826          cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832
4833 int
4834 main ()
4835 {
4836
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4843 case "(($ac_try" in
4844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845   *) ac_try_echo=$ac_try;;
4846 esac
4847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4848 $as_echo "$ac_try_echo") >&5
4849   (eval "$ac_compile") 2>conftest.er1
4850   ac_status=$?
4851   grep -v '^ *+' conftest.er1 >conftest.err
4852   rm -f conftest.er1
4853   cat conftest.err >&5
4854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } && {
4856          test -z "$ac_cxx_werror_flag" ||
4857          test ! -s conftest.err
4858        } && test -s conftest.$ac_objext; then
4859   ac_cv_prog_cxx_g=yes
4860 else
4861   $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864
4865 fi
4866
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4875 fi
4876 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4877 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4878 if test "$ac_test_CXXFLAGS" = set; then
4879   CXXFLAGS=$ac_save_CXXFLAGS
4880 elif test $ac_cv_prog_cxx_g = yes; then
4881   if test "$GXX" = yes; then
4882     CXXFLAGS="-g -O2"
4883   else
4884     CXXFLAGS="-g"
4885   fi
4886 else
4887   if test "$GXX" = yes; then
4888     CXXFLAGS="-O2"
4889   else
4890     CXXFLAGS=
4891   fi
4892 fi
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899 depcc="$CXX"  am_compiler_list=
4900
4901 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4902 $as_echo_n "checking dependency style of $depcc... " >&6; }
4903 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4904   $as_echo_n "(cached) " >&6
4905 else
4906   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4907   # We make a subdir and do the tests there.  Otherwise we can end up
4908   # making bogus files that we don't know about and never remove.  For
4909   # instance it was reported that on HP-UX the gcc test will end up
4910   # making a dummy file named `D' -- because `-MD' means `put the output
4911   # in D'.
4912   mkdir conftest.dir
4913   # Copy depcomp to subdir because otherwise we won't find it if we're
4914   # using a relative directory.
4915   cp "$am_depcomp" conftest.dir
4916   cd conftest.dir
4917   # We will build objects and dependencies in a subdirectory because
4918   # it helps to detect inapplicable dependency modes.  For instance
4919   # both Tru64's cc and ICC support -MD to output dependencies as a
4920   # side effect of compilation, but ICC will put the dependencies in
4921   # the current directory while Tru64 will put them in the object
4922   # directory.
4923   mkdir sub
4924
4925   am_cv_CXX_dependencies_compiler_type=none
4926   if test "$am_compiler_list" = ""; then
4927      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4928   fi
4929   for depmode in $am_compiler_list; do
4930     # Setup a source with many dependencies, because some compilers
4931     # like to wrap large dependency lists on column 80 (with \), and
4932     # we should not choose a depcomp mode which is confused by this.
4933     #
4934     # We need to recreate these files for each test, as the compiler may
4935     # overwrite some of them when testing with obscure command lines.
4936     # This happens at least with the AIX C compiler.
4937     : > sub/conftest.c
4938     for i in 1 2 3 4 5 6; do
4939       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4940       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4941       # Solaris 8's {/usr,}/bin/sh.
4942       touch sub/conftst$i.h
4943     done
4944     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945
4946     case $depmode in
4947     nosideeffect)
4948       # after this tag, mechanisms are not by side-effect, so they'll
4949       # only be used when explicitly requested
4950       if test "x$enable_dependency_tracking" = xyes; then
4951         continue
4952       else
4953         break
4954       fi
4955       ;;
4956     none) break ;;
4957     esac
4958     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4959     # mode.  It turns out that the SunPro C++ compiler does not properly
4960     # handle `-M -o', and we need to detect this.
4961     if depmode=$depmode \
4962        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4963        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4964        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4965          >/dev/null 2>conftest.err &&
4966        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4968        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969       # icc doesn't choke on unknown options, it will just issue warnings
4970       # or remarks (even with -Werror).  So we grep stderr for any message
4971       # that says an option was ignored or not supported.
4972       # When given -MP, icc 7.0 and 7.1 complain thusly:
4973       #   icc: Command line warning: ignoring option '-M'; no argument required
4974       # The diagnosis changed in icc 8.0:
4975       #   icc: Command line remark: option '-MP' not supported
4976       if (grep 'ignoring option' conftest.err ||
4977           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978         am_cv_CXX_dependencies_compiler_type=$depmode
4979         break
4980       fi
4981     fi
4982   done
4983
4984   cd ..
4985   rm -rf conftest.dir
4986 else
4987   am_cv_CXX_dependencies_compiler_type=none
4988 fi
4989
4990 fi
4991 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4992 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4993 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4994
4995
4996
4997 if
4998   test "x$enable_dependency_tracking" != xno \
4999   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5000   am__fastdepCXX_TRUE=
5001   am__fastdepCXX_FALSE='#'
5002 else
5003   am__fastdepCXX_TRUE='#'
5004   am__fastdepCXX_FALSE=
5005 fi
5006
5007
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 if test -n "$ac_tool_prefix"; then
5014   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -n "$CC"; then
5022   ac_cv_prog_CC="$CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 CC=$ac_cv_prog_CC
5042 if test -n "$CC"; then
5043   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5044 $as_echo "$CC" >&6; }
5045 else
5046   { $as_echo "$as_me:$LINENO: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050
5051 fi
5052 if test -z "$ac_cv_prog_CC"; then
5053   ac_ct_CC=$CC
5054   # Extract the first word of "gcc", so it can be a program name with args.
5055 set dummy gcc; ac_word=$2
5056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$ac_ct_CC"; then
5062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069   for ac_exec_ext in '' $ac_executable_extensions; do
5070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071     ac_cv_prog_ac_ct_CC="gcc"
5072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5082 if test -n "$ac_ct_CC"; then
5083   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5084 $as_echo "$ac_ct_CC" >&6; }
5085 else
5086   { $as_echo "$as_me:$LINENO: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090   if test "x$ac_ct_CC" = x; then
5091     CC=""
5092   else
5093     case $cross_compiling:$ac_tool_warned in
5094 yes:)
5095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097 ac_tool_warned=yes ;;
5098 esac
5099     CC=$ac_ct_CC
5100   fi
5101 else
5102   CC="$ac_cv_prog_CC"
5103 fi
5104
5105 if test -z "$CC"; then
5106           if test -n "$ac_tool_prefix"; then
5107     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5108 set dummy ${ac_tool_prefix}cc; ac_word=$2
5109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_CC+set}" = set; then
5112   $as_echo_n "(cached) " >&6
5113 else
5114   if test -n "$CC"; then
5115   ac_cv_prog_CC="$CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122   for ac_exec_ext in '' $ac_executable_extensions; do
5123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124     ac_cv_prog_CC="${ac_tool_prefix}cc"
5125     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5138 else
5139   { $as_echo "$as_me:$LINENO: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144   fi
5145 fi
5146 if test -z "$CC"; then
5147   # Extract the first word of "cc", so it can be a program name with args.
5148 set dummy cc; ac_word=$2
5149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_CC+set}" = set; then
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -n "$CC"; then
5155   ac_cv_prog_CC="$CC" # Let the user override the test.
5156 else
5157   ac_prog_rejected=no
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163   for ac_exec_ext in '' $ac_executable_extensions; do
5164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5166        ac_prog_rejected=yes
5167        continue
5168      fi
5169     ac_cv_prog_CC="cc"
5170     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 if test $ac_prog_rejected = yes; then
5178   # We found a bogon in the path, so make sure we never use it.
5179   set dummy $ac_cv_prog_CC
5180   shift
5181   if test $# != 0; then
5182     # We chose a different compiler from the bogus one.
5183     # However, it has the same basename, so the bogon will be chosen
5184     # first if we set CC to just the basename; use the full file name.
5185     shift
5186     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5187   fi
5188 fi
5189 fi
5190 fi
5191 CC=$ac_cv_prog_CC
5192 if test -n "$CC"; then
5193   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5194 $as_echo "$CC" >&6; }
5195 else
5196   { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201 fi
5202 if test -z "$CC"; then
5203   if test -n "$ac_tool_prefix"; then
5204   for ac_prog in cl.exe
5205   do
5206     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_CC+set}" = set; then
5211   $as_echo_n "(cached) " >&6
5212 else
5213   if test -n "$CC"; then
5214   ac_cv_prog_CC="$CC" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5224     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 CC=$ac_cv_prog_CC
5234 if test -n "$CC"; then
5235   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5236 $as_echo "$CC" >&6; }
5237 else
5238   { $as_echo "$as_me:$LINENO: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243     test -n "$CC" && break
5244   done
5245 fi
5246 if test -z "$CC"; then
5247   ac_ct_CC=$CC
5248   for ac_prog in cl.exe
5249 do
5250   # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$ac_ct_CC"; then
5258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265   for ac_exec_ext in '' $ac_executable_extensions; do
5266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267     ac_cv_prog_ac_ct_CC="$ac_prog"
5268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5278 if test -n "$ac_ct_CC"; then
5279   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5280 $as_echo "$ac_ct_CC" >&6; }
5281 else
5282   { $as_echo "$as_me:$LINENO: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287   test -n "$ac_ct_CC" && break
5288 done
5289
5290   if test "x$ac_ct_CC" = x; then
5291     CC=""
5292   else
5293     case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299     CC=$ac_ct_CC
5300   fi
5301 fi
5302
5303 fi
5304
5305
5306 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5308 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5309 See \`config.log' for more details." >&5
5310 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5311 See \`config.log' for more details." >&2;}
5312    { (exit 1); exit 1; }; }; }
5313
5314 # Provide some information about the compiler.
5315 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5316 set X $ac_compile
5317 ac_compiler=$2
5318 { (ac_try="$ac_compiler --version >&5"
5319 case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325   (eval "$ac_compiler --version >&5") 2>&5
5326   ac_status=$?
5327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }
5329 { (ac_try="$ac_compiler -v >&5"
5330 case "(($ac_try" in
5331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332   *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5335 $as_echo "$ac_try_echo") >&5
5336   (eval "$ac_compiler -v >&5") 2>&5
5337   ac_status=$?
5338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }
5340 { (ac_try="$ac_compiler -V >&5"
5341 case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5346 $as_echo "$ac_try_echo") >&5
5347   (eval "$ac_compiler -V >&5") 2>&5
5348   ac_status=$?
5349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }
5351
5352 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5353 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5355   $as_echo_n "(cached) " >&6
5356 else
5357   cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363
5364 int
5365 main ()
5366 {
5367 #ifndef __GNUC__
5368        choke me
5369 #endif
5370
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383   (eval "$ac_compile") 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } && {
5390          test -z "$ac_c_werror_flag" ||
5391          test ! -s conftest.err
5392        } && test -s conftest.$ac_objext; then
5393   ac_compiler_gnu=yes
5394 else
5395   $as_echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398         ac_compiler_gnu=no
5399 fi
5400
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5403
5404 fi
5405 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5406 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5407 if test $ac_compiler_gnu = yes; then
5408   GCC=yes
5409 else
5410   GCC=
5411 fi
5412 ac_test_CFLAGS=${CFLAGS+set}
5413 ac_save_CFLAGS=$CFLAGS
5414 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5415 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5416 if test "${ac_cv_prog_cc_g+set}" = set; then
5417   $as_echo_n "(cached) " >&6
5418 else
5419   ac_save_c_werror_flag=$ac_c_werror_flag
5420    ac_c_werror_flag=yes
5421    ac_cv_prog_cc_g=no
5422    CFLAGS="-g"
5423    cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429
5430 int
5431 main ()
5432 {
5433
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (ac_try="$ac_compile"
5440 case "(($ac_try" in
5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442   *) ac_try_echo=$ac_try;;
5443 esac
5444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5445 $as_echo "$ac_try_echo") >&5
5446   (eval "$ac_compile") 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } && {
5453          test -z "$ac_c_werror_flag" ||
5454          test ! -s conftest.err
5455        } && test -s conftest.$ac_objext; then
5456   ac_cv_prog_cc_g=yes
5457 else
5458   $as_echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461         CFLAGS=""
5462       cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468
5469 int
5470 main ()
5471 {
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5479 case "(($ac_try" in
5480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481   *) ac_try_echo=$ac_try;;
5482 esac
5483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485   (eval "$ac_compile") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } && {
5492          test -z "$ac_c_werror_flag" ||
5493          test ! -s conftest.err
5494        } && test -s conftest.$ac_objext; then
5495   :
5496 else
5497   $as_echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500         ac_c_werror_flag=$ac_save_c_werror_flag
5501          CFLAGS="-g"
5502          cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508
5509 int
5510 main ()
5511 {
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_c_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   ac_cv_prog_cc_g=yes
5536 else
5537   $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540
5541 fi
5542
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 fi
5545
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550    ac_c_werror_flag=$ac_save_c_werror_flag
5551 fi
5552 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5553 $as_echo "$ac_cv_prog_cc_g" >&6; }
5554 if test "$ac_test_CFLAGS" = set; then
5555   CFLAGS=$ac_save_CFLAGS
5556 elif test $ac_cv_prog_cc_g = yes; then
5557   if test "$GCC" = yes; then
5558     CFLAGS="-g -O2"
5559   else
5560     CFLAGS="-g"
5561   fi
5562 else
5563   if test "$GCC" = yes; then
5564     CFLAGS="-O2"
5565   else
5566     CFLAGS=
5567   fi
5568 fi
5569 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5571 if test "${ac_cv_prog_cc_c89+set}" = set; then
5572   $as_echo_n "(cached) " >&6
5573 else
5574   ac_cv_prog_cc_c89=no
5575 ac_save_CC=$CC
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h.  */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h.  */
5582 #include <stdarg.h>
5583 #include <stdio.h>
5584 #include <sys/types.h>
5585 #include <sys/stat.h>
5586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5587 struct buf { int x; };
5588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5589 static char *e (p, i)
5590      char **p;
5591      int i;
5592 {
5593   return p[i];
5594 }
5595 static char *f (char * (*g) (char **, int), char **p, ...)
5596 {
5597   char *s;
5598   va_list v;
5599   va_start (v,p);
5600   s = g (p, va_arg (v,int));
5601   va_end (v);
5602   return s;
5603 }
5604
5605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5606    function prototypes and stuff, but not '\xHH' hex character constants.
5607    These don't provoke an error unfortunately, instead are silently treated
5608    as 'x'.  The following induces an error, until -std is added to get
5609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5610    array size at least.  It's necessary to write '\x00'==0 to get something
5611    that's true only with -std.  */
5612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5613
5614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5615    inside strings and character constants.  */
5616 #define FOO(x) 'x'
5617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5618
5619 int test (int i, double x);
5620 struct s1 {int (*f) (int a);};
5621 struct s2 {int (*f) (double a);};
5622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5623 int argc;
5624 char **argv;
5625 int
5626 main ()
5627 {
5628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5635 do
5636   CC="$ac_save_CC $ac_arg"
5637   rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5639 case "(($ac_try" in
5640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641   *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5644 $as_echo "$ac_try_echo") >&5
5645   (eval "$ac_compile") 2>conftest.er1
5646   ac_status=$?
5647   grep -v '^ *+' conftest.er1 >conftest.err
5648   rm -f conftest.er1
5649   cat conftest.err >&5
5650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); } && {
5652          test -z "$ac_c_werror_flag" ||
5653          test ! -s conftest.err
5654        } && test -s conftest.$ac_objext; then
5655   ac_cv_prog_cc_c89=$ac_arg
5656 else
5657   $as_echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext
5664   test "x$ac_cv_prog_cc_c89" != "xno" && break
5665 done
5666 rm -f conftest.$ac_ext
5667 CC=$ac_save_CC
5668
5669 fi
5670 # AC_CACHE_VAL
5671 case "x$ac_cv_prog_cc_c89" in
5672   x)
5673     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5674 $as_echo "none needed" >&6; } ;;
5675   xno)
5676     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5677 $as_echo "unsupported" >&6; } ;;
5678   *)
5679     CC="$CC $ac_cv_prog_cc_c89"
5680     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5682 esac
5683
5684
5685 ac_ext=c
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
5691 # Find a good install program.  We prefer a C program (faster),
5692 # so one script is as good as another.  But avoid the broken or
5693 # incompatible versions:
5694 # SysV /etc/install, /usr/sbin/install
5695 # SunOS /usr/etc/install
5696 # IRIX /sbin/install
5697 # AIX /bin/install
5698 # AmigaOS /C/install, which installs bootblocks on floppy discs
5699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5702 # OS/2's system install, which has a completely different semantic
5703 # ./install, which can be erroneously created by make from ./install.sh.
5704 # Reject install programs that cannot install multiple files.
5705 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5706 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5707 if test -z "$INSTALL"; then
5708 if test "${ac_cv_path_install+set}" = set; then
5709   $as_echo_n "(cached) " >&6
5710 else
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716   # Account for people who put trailing slashes in PATH elements.
5717 case $as_dir/ in
5718   ./ | .// | /cC/* | \
5719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5721   /usr/ucb/* ) ;;
5722   *)
5723     # OSF1 and SCO ODT 3.0 have their own names for install.
5724     # Don't use installbsd from OSF since it installs stuff as root
5725     # by default.
5726     for ac_prog in ginstall scoinst install; do
5727       for ac_exec_ext in '' $ac_executable_extensions; do
5728         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5729           if test $ac_prog = install &&
5730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5731             # AIX install.  It has an incompatible calling convention.
5732             :
5733           elif test $ac_prog = install &&
5734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5735             # program-specific install script used by HP pwplus--don't use.
5736             :
5737           else
5738             rm -rf conftest.one conftest.two conftest.dir
5739             echo one > conftest.one
5740             echo two > conftest.two
5741             mkdir conftest.dir
5742             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5743               test -s conftest.one && test -s conftest.two &&
5744               test -s conftest.dir/conftest.one &&
5745               test -s conftest.dir/conftest.two
5746             then
5747               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5748               break 3
5749             fi
5750           fi
5751         fi
5752       done
5753     done
5754     ;;
5755 esac
5756
5757 done
5758 IFS=$as_save_IFS
5759
5760 rm -rf conftest.one conftest.two conftest.dir
5761
5762 fi
5763   if test "${ac_cv_path_install+set}" = set; then
5764     INSTALL=$ac_cv_path_install
5765   else
5766     # As a last resort, use the slow shell script.  Don't cache a
5767     # value for INSTALL within a source directory, because that will
5768     # break other packages using the cache if that directory is
5769     # removed, or if the value is a relative name.
5770     INSTALL=$ac_install_sh
5771   fi
5772 fi
5773 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5774 $as_echo "$INSTALL" >&6; }
5775
5776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5777 # It thinks the first close brace ends the variable substitution.
5778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5779
5780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5781
5782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5783
5784 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5786 set x ${MAKE-make}
5787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5788 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5789   $as_echo_n "(cached) " >&6
5790 else
5791   cat >conftest.make <<\_ACEOF
5792 SHELL = /bin/sh
5793 all:
5794         @echo '@@@%%%=$(MAKE)=@@@%%%'
5795 _ACEOF
5796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5798   *@@@%%%=?*=@@@%%%*)
5799     eval ac_cv_prog_make_${ac_make}_set=yes;;
5800   *)
5801     eval ac_cv_prog_make_${ac_make}_set=no;;
5802 esac
5803 rm -f conftest.make
5804 fi
5805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5806   { $as_echo "$as_me:$LINENO: result: yes" >&5
5807 $as_echo "yes" >&6; }
5808   SET_MAKE=
5809 else
5810   { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5812   SET_MAKE="MAKE=${MAKE-make}"
5813 fi
5814
5815
5816
5817 # site specific configs
5818
5819 # check for asterisk
5820
5821 # Check whether --with-asterisk was given.
5822 if test "${with_asterisk+set}" = set; then
5823   withval=$with_asterisk;
5824 else
5825   with_asterisk="check"
5826 fi
5827
5828
5829 if test "x$with_asterisk" != xno; then
5830
5831 for ac_header in asterisk/channel.h
5832 do
5833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5835   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5836 $as_echo_n "checking for $ac_header... " >&6; }
5837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5838   $as_echo_n "(cached) " >&6
5839 fi
5840 ac_res=`eval 'as_val=${'$as_ac_Header'}
5841                  $as_echo "$as_val"'`
5842                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5843 $as_echo "$ac_res" >&6; }
5844 else
5845   # Is the header compilable?
5846 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5847 $as_echo_n "checking $ac_header usability... " >&6; }
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 $ac_includes_default
5855 #include <$ac_header>
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5859 case "(($ac_try" in
5860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861   *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865   (eval "$ac_compile") 2>conftest.er1
5866   ac_status=$?
5867   grep -v '^ *+' conftest.er1 >conftest.err
5868   rm -f conftest.er1
5869   cat conftest.err >&5
5870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } && {
5872          test -z "$ac_c_werror_flag" ||
5873          test ! -s conftest.err
5874        } && test -s conftest.$ac_objext; then
5875   ac_header_compiler=yes
5876 else
5877   $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880         ac_header_compiler=no
5881 fi
5882
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5885 $as_echo "$ac_header_compiler" >&6; }
5886
5887 # Is the header present?
5888 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5889 $as_echo_n "checking $ac_header presence... " >&6; }
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #include <$ac_header>
5897 _ACEOF
5898 if { (ac_try="$ac_cpp conftest.$ac_ext"
5899 case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5904 $as_echo "$ac_try_echo") >&5
5905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } >/dev/null && {
5912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5913          test ! -s conftest.err
5914        }; then
5915   ac_header_preproc=yes
5916 else
5917   $as_echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920   ac_header_preproc=no
5921 fi
5922
5923 rm -f conftest.err conftest.$ac_ext
5924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5925 $as_echo "$ac_header_preproc" >&6; }
5926
5927 # So?  What about this header?
5928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5929   yes:no: )
5930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5931 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5934     ac_header_preproc=yes
5935     ;;
5936   no:yes:* )
5937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5940 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5942 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5944 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5948 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5949     ( cat <<\_ASBOX
5950 ## ----------------------------------- ##
5951 ## Report this to andreas@eversberg.eu ##
5952 ## ----------------------------------- ##
5953 _ASBOX
5954      ) | sed "s/^/$as_me: WARNING:     /" >&2
5955     ;;
5956 esac
5957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 $as_echo_n "checking for $ac_header... " >&6; }
5959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5960   $as_echo_n "(cached) " >&6
5961 else
5962   eval "$as_ac_Header=\$ac_header_preproc"
5963 fi
5964 ac_res=`eval 'as_val=${'$as_ac_Header'}
5965                  $as_echo "$as_val"'`
5966                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5967 $as_echo "$ac_res" >&6; }
5968
5969 fi
5970 as_val=`eval 'as_val=${'$as_ac_Header'}
5971                  $as_echo "$as_val"'`
5972    if test "x$as_val" = x""yes; then
5973   cat >>confdefs.h <<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 _ACEOF
5976  with_asterisk="yes"
5977 else
5978   if test "x$with_asterisk" != xcheck ; then
5979                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed
5982 See \`config.log' for more details." >&5
5983 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed
5984 See \`config.log' for more details." >&2;}
5985    { (exit 1); exit 1; }; }; }
5986                      fi
5987
5988 fi
5989
5990 done
5991
5992
5993 fi
5994
5995
5996
5997
5998 if test "x$with_asterisk" == "xyes" ; then
5999   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6000   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6001 else
6002   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6003   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6004 fi
6005
6006
6007 # check for crypto
6008
6009 # Check whether --with-ssl was given.
6010 if test "${with_ssl+set}" = set; then
6011   withval=$with_ssl;
6012 else
6013   with_ssl=check
6014 fi
6015
6016 LIBCRYPTO=
6017 if test "x$with_ssl" != xno; then
6018
6019 for ac_header in openssl/rsa.h
6020 do
6021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 $as_echo_n "checking for $ac_header... " >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026   $as_echo_n "(cached) " >&6
6027 fi
6028 ac_res=`eval 'as_val=${'$as_ac_Header'}
6029                  $as_echo "$as_val"'`
6030                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6031 $as_echo "$ac_res" >&6; }
6032 else
6033   # Is the header compilable?
6034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 $as_echo_n "checking $ac_header usability... " >&6; }
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 $ac_includes_default
6043 #include <$ac_header>
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052 $as_echo "$ac_try_echo") >&5
6053   (eval "$ac_compile") 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } && {
6060          test -z "$ac_c_werror_flag" ||
6061          test ! -s conftest.err
6062        } && test -s conftest.$ac_objext; then
6063   ac_header_compiler=yes
6064 else
6065   $as_echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068         ac_header_compiler=no
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6073 $as_echo "$ac_header_compiler" >&6; }
6074
6075 # Is the header present?
6076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6077 $as_echo_n "checking $ac_header presence... " >&6; }
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 #include <$ac_header>
6085 _ACEOF
6086 if { (ac_try="$ac_cpp conftest.$ac_ext"
6087 case "(($ac_try" in
6088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089   *) ac_try_echo=$ac_try;;
6090 esac
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } >/dev/null && {
6100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6101          test ! -s conftest.err
6102        }; then
6103   ac_header_preproc=yes
6104 else
6105   $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108   ac_header_preproc=no
6109 fi
6110
6111 rm -f conftest.err conftest.$ac_ext
6112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6113 $as_echo "$ac_header_preproc" >&6; }
6114
6115 # So?  What about this header?
6116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6117   yes:no: )
6118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6122     ac_header_preproc=yes
6123     ;;
6124   no:yes:* )
6125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6128 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6132 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6137     ( cat <<\_ASBOX
6138 ## ----------------------------------- ##
6139 ## Report this to andreas@eversberg.eu ##
6140 ## ----------------------------------- ##
6141 _ASBOX
6142      ) | sed "s/^/$as_me: WARNING:     /" >&2
6143     ;;
6144 esac
6145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6146 $as_echo_n "checking for $ac_header... " >&6; }
6147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6148   $as_echo_n "(cached) " >&6
6149 else
6150   eval "$as_ac_Header=\$ac_header_preproc"
6151 fi
6152 ac_res=`eval 'as_val=${'$as_ac_Header'}
6153                  $as_echo "$as_val"'`
6154                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6155 $as_echo "$ac_res" >&6; }
6156
6157 fi
6158 as_val=`eval 'as_val=${'$as_ac_Header'}
6159                  $as_echo "$as_val"'`
6160    if test "x$as_val" = x""yes; then
6161   cat >>confdefs.h <<_ACEOF
6162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163 _ACEOF
6164
6165 fi
6166
6167 done
6168
6169        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6170 $as_echo_n "checking for main in -lcrypto... " >&6; }
6171 if test "${ac_cv_lib_crypto_main+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   ac_check_lib_save_LIBS=$LIBS
6175 LIBS="-lcrypto -lcrypto
6176                     $LIBS"
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183
6184
6185 int
6186 main ()
6187 {
6188 return main ();
6189   ;
6190   return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext conftest$ac_exeext
6194 if { (ac_try="$ac_link"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201   (eval "$ac_link") 2>conftest.er1
6202   ac_status=$?
6203   grep -v '^ *+' conftest.er1 >conftest.err
6204   rm -f conftest.er1
6205   cat conftest.err >&5
6206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } && {
6208          test -z "$ac_c_werror_flag" ||
6209          test ! -s conftest.err
6210        } && test -s conftest$ac_exeext && {
6211          test "$cross_compiling" = yes ||
6212          $as_test_x conftest$ac_exeext
6213        }; then
6214   ac_cv_lib_crypto_main=yes
6215 else
6216   $as_echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219         ac_cv_lib_crypto_main=no
6220 fi
6221
6222 rm -rf conftest.dSYM
6223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6224       conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6226 fi
6227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6228 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6229 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6230   LIBCRYPTO="-lcrypto"
6231
6232
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_LIBCRYPTO 1
6235 _ACEOF
6236
6237
6238 else
6239   if test "x$with_ssl" != xcheck ; then
6240                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6243 See \`config.log' for more details." >&5
6244 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6245 See \`config.log' for more details." >&2;}
6246    { (exit 1); exit 1; }; }; }
6247                      fi
6248
6249 fi
6250
6251
6252
6253 fi
6254
6255
6256 # Checks for libraries.
6257
6258 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6259 $as_echo_n "checking for main in -lm... " >&6; }
6260 if test "${ac_cv_lib_m_main+set}" = set; then
6261   $as_echo_n "(cached) " >&6
6262 else
6263   ac_check_lib_save_LIBS=$LIBS
6264 LIBS="-lm  $LIBS"
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271
6272
6273 int
6274 main ()
6275 {
6276 return main ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289   (eval "$ac_link") 2>conftest.er1
6290   ac_status=$?
6291   grep -v '^ *+' conftest.er1 >conftest.err
6292   rm -f conftest.er1
6293   cat conftest.err >&5
6294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } && {
6296          test -z "$ac_c_werror_flag" ||
6297          test ! -s conftest.err
6298        } && test -s conftest$ac_exeext && {
6299          test "$cross_compiling" = yes ||
6300          $as_test_x conftest$ac_exeext
6301        }; then
6302   ac_cv_lib_m_main=yes
6303 else
6304   $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307         ac_cv_lib_m_main=no
6308 fi
6309
6310 rm -rf conftest.dSYM
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312       conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6314 fi
6315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6316 $as_echo "$ac_cv_lib_m_main" >&6; }
6317 if test "x$ac_cv_lib_m_main" = x""yes; then
6318   cat >>confdefs.h <<_ACEOF
6319 #define HAVE_LIBM 1
6320 _ACEOF
6321
6322   LIBS="-lm $LIBS"
6323
6324 fi
6325
6326
6327 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6328 $as_echo_n "checking for main in -lncurses... " >&6; }
6329 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6330   $as_echo_n "(cached) " >&6
6331 else
6332   ac_check_lib_save_LIBS=$LIBS
6333 LIBS="-lncurses  $LIBS"
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340
6341
6342 int
6343 main ()
6344 {
6345 return main ();
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (ac_try="$ac_link"
6352 case "(($ac_try" in
6353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354   *) ac_try_echo=$ac_try;;
6355 esac
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358   (eval "$ac_link") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_c_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest$ac_exeext && {
6368          test "$cross_compiling" = yes ||
6369          $as_test_x conftest$ac_exeext
6370        }; then
6371   ac_cv_lib_ncurses_main=yes
6372 else
6373   $as_echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376         ac_cv_lib_ncurses_main=no
6377 fi
6378
6379 rm -rf conftest.dSYM
6380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6381       conftest$ac_exeext conftest.$ac_ext
6382 LIBS=$ac_check_lib_save_LIBS
6383 fi
6384 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6385 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6386 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6387   cat >>confdefs.h <<_ACEOF
6388 #define HAVE_LIBNCURSES 1
6389 _ACEOF
6390
6391   LIBS="-lncurses $LIBS"
6392
6393 fi
6394
6395
6396 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6397 $as_echo_n "checking for main in -lpthread... " >&6; }
6398 if test "${ac_cv_lib_pthread_main+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401   ac_check_lib_save_LIBS=$LIBS
6402 LIBS="-lpthread  $LIBS"
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409
6410
6411 int
6412 main ()
6413 {
6414 return main ();
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423   *) ac_try_echo=$ac_try;;
6424 esac
6425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6426 $as_echo "$ac_try_echo") >&5
6427   (eval "$ac_link") 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } && {
6434          test -z "$ac_c_werror_flag" ||
6435          test ! -s conftest.err
6436        } && test -s conftest$ac_exeext && {
6437          test "$cross_compiling" = yes ||
6438          $as_test_x conftest$ac_exeext
6439        }; then
6440   ac_cv_lib_pthread_main=yes
6441 else
6442   $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445         ac_cv_lib_pthread_main=no
6446 fi
6447
6448 rm -rf conftest.dSYM
6449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6450       conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6452 fi
6453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6454 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6455 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6456   cat >>confdefs.h <<_ACEOF
6457 #define HAVE_LIBPTHREAD 1
6458 _ACEOF
6459
6460   LIBS="-lpthread $LIBS"
6461
6462 fi
6463
6464
6465 # Checks for header files.
6466
6467
6468
6469
6470
6471 ac_header_dirent=no
6472 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6473   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6474 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6475 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6477   $as_echo_n "(cached) " >&6
6478 else
6479   cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 #include <sys/types.h>
6486 #include <$ac_hdr>
6487
6488 int
6489 main ()
6490 {
6491 if ((DIR *) 0)
6492 return 0;
6493   ;
6494   return 0;
6495 }
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6499 case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505   (eval "$ac_compile") 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } && {
6512          test -z "$ac_c_werror_flag" ||
6513          test ! -s conftest.err
6514        } && test -s conftest.$ac_objext; then
6515   eval "$as_ac_Header=yes"
6516 else
6517   $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520         eval "$as_ac_Header=no"
6521 fi
6522
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 fi
6525 ac_res=`eval 'as_val=${'$as_ac_Header'}
6526                  $as_echo "$as_val"'`
6527                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 as_val=`eval 'as_val=${'$as_ac_Header'}
6530                  $as_echo "$as_val"'`
6531    if test "x$as_val" = x""yes; then
6532   cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 ac_header_dirent=$ac_hdr; break
6537 fi
6538
6539 done
6540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6541 if test $ac_header_dirent = dirent.h; then
6542   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 $as_echo_n "checking for library containing opendir... " >&6; }
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545   $as_echo_n "(cached) " >&6
6546 else
6547   ac_func_search_save_LIBS=$LIBS
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554
6555 /* Override any GCC internal prototype to avoid an error.
6556    Use char because int might match the return type of a GCC
6557    builtin and then its argument prototype would still apply.  */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 char opendir ();
6562 int
6563 main ()
6564 {
6565 return opendir ();
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 for ac_lib in '' dir; do
6571   if test -z "$ac_lib"; then
6572     ac_res="none required"
6573   else
6574     ac_res=-l$ac_lib
6575     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6576   fi
6577   rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (ac_try="$ac_link"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585   (eval "$ac_link") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest$ac_exeext && {
6595          test "$cross_compiling" = yes ||
6596          $as_test_x conftest$ac_exeext
6597        }; then
6598   ac_cv_search_opendir=$ac_res
6599 else
6600   $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603
6604 fi
6605
6606 rm -rf conftest.dSYM
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608       conftest$ac_exeext
6609   if test "${ac_cv_search_opendir+set}" = set; then
6610   break
6611 fi
6612 done
6613 if test "${ac_cv_search_opendir+set}" = set; then
6614   :
6615 else
6616   ac_cv_search_opendir=no
6617 fi
6618 rm conftest.$ac_ext
6619 LIBS=$ac_func_search_save_LIBS
6620 fi
6621 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6622 $as_echo "$ac_cv_search_opendir" >&6; }
6623 ac_res=$ac_cv_search_opendir
6624 if test "$ac_res" != no; then
6625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6626
6627 fi
6628
6629 else
6630   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6631 $as_echo_n "checking for library containing opendir... " >&6; }
6632 if test "${ac_cv_search_opendir+set}" = set; then
6633   $as_echo_n "(cached) " >&6
6634 else
6635   ac_func_search_save_LIBS=$LIBS
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642
6643 /* Override any GCC internal prototype to avoid an error.
6644    Use char because int might match the return type of a GCC
6645    builtin and then its argument prototype would still apply.  */
6646 #ifdef __cplusplus
6647 extern "C"
6648 #endif
6649 char opendir ();
6650 int
6651 main ()
6652 {
6653 return opendir ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 for ac_lib in '' x; do
6659   if test -z "$ac_lib"; then
6660     ac_res="none required"
6661   else
6662     ac_res=-l$ac_lib
6663     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6664   fi
6665   rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6667 case "(($ac_try" in
6668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669   *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673   (eval "$ac_link") 2>conftest.er1
6674   ac_status=$?
6675   grep -v '^ *+' conftest.er1 >conftest.err
6676   rm -f conftest.er1
6677   cat conftest.err >&5
6678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } && {
6680          test -z "$ac_c_werror_flag" ||
6681          test ! -s conftest.err
6682        } && test -s conftest$ac_exeext && {
6683          test "$cross_compiling" = yes ||
6684          $as_test_x conftest$ac_exeext
6685        }; then
6686   ac_cv_search_opendir=$ac_res
6687 else
6688   $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691
6692 fi
6693
6694 rm -rf conftest.dSYM
6695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6696       conftest$ac_exeext
6697   if test "${ac_cv_search_opendir+set}" = set; then
6698   break
6699 fi
6700 done
6701 if test "${ac_cv_search_opendir+set}" = set; then
6702   :
6703 else
6704   ac_cv_search_opendir=no
6705 fi
6706 rm conftest.$ac_ext
6707 LIBS=$ac_func_search_save_LIBS
6708 fi
6709 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6710 $as_echo "$ac_cv_search_opendir" >&6; }
6711 ac_res=$ac_cv_search_opendir
6712 if test "$ac_res" != no; then
6713   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6714
6715 fi
6716
6717 fi
6718
6719 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6720 $as_echo_n "checking for ANSI C header files... " >&6; }
6721 if test "${ac_cv_header_stdc+set}" = set; then
6722   $as_echo_n "(cached) " >&6
6723 else
6724   cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h.  */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h.  */
6730 #include <stdlib.h>
6731 #include <stdarg.h>
6732 #include <string.h>
6733 #include <float.h>
6734
6735 int
6736 main ()
6737 {
6738
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747   *) ac_try_echo=$ac_try;;
6748 esac
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751   (eval "$ac_compile") 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } && {
6758          test -z "$ac_c_werror_flag" ||
6759          test ! -s conftest.err
6760        } && test -s conftest.$ac_objext; then
6761   ac_cv_header_stdc=yes
6762 else
6763   $as_echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766         ac_cv_header_stdc=no
6767 fi
6768
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770
6771 if test $ac_cv_header_stdc = yes; then
6772   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6773   cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779 #include <string.h>
6780
6781 _ACEOF
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783   $EGREP "memchr" >/dev/null 2>&1; then
6784   :
6785 else
6786   ac_cv_header_stdc=no
6787 fi
6788 rm -f conftest*
6789
6790 fi
6791
6792 if test $ac_cv_header_stdc = yes; then
6793   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 #include <stdlib.h>
6801
6802 _ACEOF
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804   $EGREP "free" >/dev/null 2>&1; then
6805   :
6806 else
6807   ac_cv_header_stdc=no
6808 fi
6809 rm -f conftest*
6810
6811 fi
6812
6813 if test $ac_cv_header_stdc = yes; then
6814   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6815   if test "$cross_compiling" = yes; then
6816   :
6817 else
6818   cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h.  */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h.  */
6824 #include <ctype.h>
6825 #include <stdlib.h>
6826 #if ((' ' & 0x0FF) == 0x020)
6827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6829 #else
6830 # define ISLOWER(c) \
6831                    (('a' <= (c) && (c) <= 'i') \
6832                      || ('j' <= (c) && (c) <= 'r') \
6833                      || ('s' <= (c) && (c) <= 'z'))
6834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6835 #endif
6836
6837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6838 int
6839 main ()
6840 {
6841   int i;
6842   for (i = 0; i < 256; i++)
6843     if (XOR (islower (i), ISLOWER (i))
6844         || toupper (i) != TOUPPER (i))
6845       return 2;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest$ac_exeext
6850 if { (ac_try="$ac_link"
6851 case "(($ac_try" in
6852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853   *) ac_try_echo=$ac_try;;
6854 esac
6855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6856 $as_echo "$ac_try_echo") >&5
6857   (eval "$ac_link") 2>&5
6858   ac_status=$?
6859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6861   { (case "(($ac_try" in
6862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863   *) ac_try_echo=$ac_try;;
6864 esac
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867   (eval "$ac_try") 2>&5
6868   ac_status=$?
6869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   :
6872 else
6873   $as_echo "$as_me: program exited with status $ac_status" >&5
6874 $as_echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ( exit $ac_status )
6878 ac_cv_header_stdc=no
6879 fi
6880 rm -rf conftest.dSYM
6881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6882 fi
6883
6884
6885 fi
6886 fi
6887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6888 $as_echo "$ac_cv_header_stdc" >&6; }
6889 if test $ac_cv_header_stdc = yes; then
6890
6891 cat >>confdefs.h <<\_ACEOF
6892 #define STDC_HEADERS 1
6893 _ACEOF
6894
6895 fi
6896
6897 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6898 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6899 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6900   $as_echo_n "(cached) " >&6
6901 else
6902   cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 #include <sys/types.h>
6909 #include <sys/wait.h>
6910 #ifndef WEXITSTATUS
6911 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6912 #endif
6913 #ifndef WIFEXITED
6914 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6915 #endif
6916
6917 int
6918 main ()
6919 {
6920   int s;
6921   wait (&s);
6922   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6923   ;
6924   return 0;
6925 }
6926 _ACEOF
6927 rm -f conftest.$ac_objext
6928 if { (ac_try="$ac_compile"
6929 case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934 $as_echo "$ac_try_echo") >&5
6935   (eval "$ac_compile") 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } && {
6942          test -z "$ac_c_werror_flag" ||
6943          test ! -s conftest.err
6944        } && test -s conftest.$ac_objext; then
6945   ac_cv_header_sys_wait_h=yes
6946 else
6947   $as_echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950         ac_cv_header_sys_wait_h=no
6951 fi
6952
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6956 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6957 if test $ac_cv_header_sys_wait_h = yes; then
6958
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_SYS_WAIT_H 1
6961 _ACEOF
6962
6963 fi
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
6979 do
6980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6982   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 $as_echo_n "checking for $ac_header... " >&6; }
6984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985   $as_echo_n "(cached) " >&6
6986 fi
6987 ac_res=`eval 'as_val=${'$as_ac_Header'}
6988                  $as_echo "$as_val"'`
6989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6990 $as_echo "$ac_res" >&6; }
6991 else
6992   # Is the header compilable?
6993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6994 $as_echo_n "checking $ac_header usability... " >&6; }
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001 $ac_includes_default
7002 #include <$ac_header>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7006 case "(($ac_try" in
7007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008   *) ac_try_echo=$ac_try;;
7009 esac
7010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7011 $as_echo "$ac_try_echo") >&5
7012   (eval "$ac_compile") 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && {
7019          test -z "$ac_c_werror_flag" ||
7020          test ! -s conftest.err
7021        } && test -s conftest.$ac_objext; then
7022   ac_header_compiler=yes
7023 else
7024   $as_echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027         ac_header_compiler=no
7028 fi
7029
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7032 $as_echo "$ac_header_compiler" >&6; }
7033
7034 # Is the header present?
7035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7036 $as_echo_n "checking $ac_header presence... " >&6; }
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 #include <$ac_header>
7044 _ACEOF
7045 if { (ac_try="$ac_cpp conftest.$ac_ext"
7046 case "(($ac_try" in
7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048   *) ac_try_echo=$ac_try;;
7049 esac
7050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7051 $as_echo "$ac_try_echo") >&5
7052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7053   ac_status=$?
7054   grep -v '^ *+' conftest.er1 >conftest.err
7055   rm -f conftest.er1
7056   cat conftest.err >&5
7057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } >/dev/null && {
7059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7060          test ! -s conftest.err
7061        }; then
7062   ac_header_preproc=yes
7063 else
7064   $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067   ac_header_preproc=no
7068 fi
7069
7070 rm -f conftest.err conftest.$ac_ext
7071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7072 $as_echo "$ac_header_preproc" >&6; }
7073
7074 # So?  What about this header?
7075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7076   yes:no: )
7077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7081     ac_header_preproc=yes
7082     ;;
7083   no:yes:* )
7084     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7087 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7091 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7096     ( cat <<\_ASBOX
7097 ## ----------------------------------- ##
7098 ## Report this to andreas@eversberg.eu ##
7099 ## ----------------------------------- ##
7100 _ASBOX
7101      ) | sed "s/^/$as_me: WARNING:     /" >&2
7102     ;;
7103 esac
7104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 $as_echo_n "checking for $ac_header... " >&6; }
7106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7107   $as_echo_n "(cached) " >&6
7108 else
7109   eval "$as_ac_Header=\$ac_header_preproc"
7110 fi
7111 ac_res=`eval 'as_val=${'$as_ac_Header'}
7112                  $as_echo "$as_val"'`
7113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7114 $as_echo "$ac_res" >&6; }
7115
7116 fi
7117 as_val=`eval 'as_val=${'$as_ac_Header'}
7118                  $as_echo "$as_val"'`
7119    if test "x$as_val" = x""yes; then
7120   cat >>confdefs.h <<_ACEOF
7121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 _ACEOF
7123
7124 fi
7125
7126 done
7127
7128
7129 # Checks for typedefs, structures, and compiler characteristics.
7130 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7131 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7132 if test "${ac_cv_header_stdbool_h+set}" = set; then
7133   $as_echo_n "(cached) " >&6
7134 else
7135   cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142 #include <stdbool.h>
7143 #ifndef bool
7144  "error: bool is not defined"
7145 #endif
7146 #ifndef false
7147  "error: false is not defined"
7148 #endif
7149 #if false
7150  "error: false is not 0"
7151 #endif
7152 #ifndef true
7153  "error: true is not defined"
7154 #endif
7155 #if true != 1
7156  "error: true is not 1"
7157 #endif
7158 #ifndef __bool_true_false_are_defined
7159  "error: __bool_true_false_are_defined is not defined"
7160 #endif
7161
7162         struct s { _Bool s: 1; _Bool t; } s;
7163
7164         char a[true == 1 ? 1 : -1];
7165         char b[false == 0 ? 1 : -1];
7166         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7167         char d[(bool) 0.5 == true ? 1 : -1];
7168         bool e = &s;
7169         char f[(_Bool) 0.0 == false ? 1 : -1];
7170         char g[true];
7171         char h[sizeof (_Bool)];
7172         char i[sizeof s.t];
7173         enum { j = false, k = true, l = false * true, m = true * 256 };
7174         /* The following fails for
7175            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7176         _Bool n[m];
7177         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7178         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7179 #       if defined __xlc__ || defined __GNUC__
7180          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7181             reported by James Lemley on 2005-10-05; see
7182             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7183             This test is not quite right, since xlc is allowed to
7184             reject this program, as the initializer for xlcbug is
7185             not one of the forms that C requires support for.
7186             However, doing the test right would require a runtime
7187             test, and that would make cross-compilation harder.
7188             Let us hope that IBM fixes the xlc bug, and also adds
7189             support for this kind of constant expression.  In the
7190             meantime, this test will reject xlc, which is OK, since
7191             our stdbool.h substitute should suffice.  We also test
7192             this with GCC, where it should work, to detect more
7193             quickly whether someone messes up the test in the
7194             future.  */
7195          char digs[] = "0123456789";
7196          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7197 #       endif
7198         /* Catch a bug in an HP-UX C compiler.  See
7199            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7200            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7201          */
7202         _Bool q = true;
7203         _Bool *pq = &q;
7204
7205 int
7206 main ()
7207 {
7208
7209         *pq |= q;
7210         *pq |= ! q;
7211         /* Refer to every declared value, to avoid compiler optimizations.  */
7212         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7213                 + !m + !n + !o + !p + !q + !pq);
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223   *) ac_try_echo=$ac_try;;
7224 esac
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227   (eval "$ac_compile") 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } && {
7234          test -z "$ac_c_werror_flag" ||
7235          test ! -s conftest.err
7236        } && test -s conftest.$ac_objext; then
7237   ac_cv_header_stdbool_h=yes
7238 else
7239   $as_echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242         ac_cv_header_stdbool_h=no
7243 fi
7244
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7248 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7249 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7250 $as_echo_n "checking for _Bool... " >&6; }
7251 if test "${ac_cv_type__Bool+set}" = set; then
7252   $as_echo_n "(cached) " >&6
7253 else
7254   ac_cv_type__Bool=no
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 $ac_includes_default
7262 int
7263 main ()
7264 {
7265 if (sizeof (_Bool))
7266        return 0;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275   *) ac_try_echo=$ac_try;;
7276 esac
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279   (eval "$ac_compile") 2>conftest.er1
7280   ac_status=$?
7281   grep -v '^ *+' conftest.er1 >conftest.err
7282   rm -f conftest.er1
7283   cat conftest.err >&5
7284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } && {
7286          test -z "$ac_c_werror_flag" ||
7287          test ! -s conftest.err
7288        } && test -s conftest.$ac_objext; then
7289   cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 $ac_includes_default
7296 int
7297 main ()
7298 {
7299 if (sizeof ((_Bool)))
7300           return 0;
7301   ;
7302   return 0;
7303 }
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7312 $as_echo "$ac_try_echo") >&5
7313   (eval "$ac_compile") 2>conftest.er1
7314   ac_status=$?
7315   grep -v '^ *+' conftest.er1 >conftest.err
7316   rm -f conftest.er1
7317   cat conftest.err >&5
7318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } && {
7320          test -z "$ac_c_werror_flag" ||
7321          test ! -s conftest.err
7322        } && test -s conftest.$ac_objext; then
7323   :
7324 else
7325   $as_echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328         ac_cv_type__Bool=yes
7329 fi
7330
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 else
7333   $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336
7337 fi
7338
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7342 $as_echo "$ac_cv_type__Bool" >&6; }
7343 if test "x$ac_cv_type__Bool" = x""yes; then
7344
7345 cat >>confdefs.h <<_ACEOF
7346 #define HAVE__BOOL 1
7347 _ACEOF
7348
7349
7350 fi
7351
7352 if test $ac_cv_header_stdbool_h = yes; then
7353
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_STDBOOL_H 1
7356 _ACEOF
7357
7358 fi
7359
7360 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7362 if test "${ac_cv_c_const+set}" = set; then
7363   $as_echo_n "(cached) " >&6
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371
7372 int
7373 main ()
7374 {
7375 /* FIXME: Include the comments suggested by Paul. */
7376 #ifndef __cplusplus
7377   /* Ultrix mips cc rejects this.  */
7378   typedef int charset[2];
7379   const charset cs;
7380   /* SunOS 4.1.1 cc rejects this.  */
7381   char const *const *pcpcc;
7382   char **ppc;
7383   /* NEC SVR4.0.2 mips cc rejects this.  */
7384   struct point {int x, y;};
7385   static struct point const zero = {0,0};
7386   /* AIX XL C 1.02.0.0 rejects this.
7387      It does not let you subtract one const X* pointer from another in
7388      an arm of an if-expression whose if-part is not a constant
7389      expression */
7390   const char *g = "string";
7391   pcpcc = &g + (g ? g-g : 0);
7392   /* HPUX 7.0 cc rejects these. */
7393   ++pcpcc;
7394   ppc = (char**) pcpcc;
7395   pcpcc = (char const *const *) ppc;
7396   { /* SCO 3.2v4 cc rejects this.  */
7397     char *t;
7398     char const *s = 0 ? (char *) 0 : (char const *) 0;
7399
7400     *t++ = 0;
7401     if (s) return 0;
7402   }
7403   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7404     int x[] = {25, 17};
7405     const int *foo = &x[0];
7406     ++foo;
7407   }
7408   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7409     typedef const int *iptr;
7410     iptr p = 0;
7411     ++p;
7412   }
7413   { /* AIX XL C 1.02.0.0 rejects this saying
7414        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7415     struct s { int j; const int *ap[3]; };
7416     struct s *b; b->j = 5;
7417   }
7418   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7419     const int foo = 10;
7420     if (!foo) return 0;
7421   }
7422   return !cs[0] && !zero.x;
7423 #endif
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7431 case "(($ac_try" in
7432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433   *) ac_try_echo=$ac_try;;
7434 esac
7435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436 $as_echo "$ac_try_echo") >&5
7437   (eval "$ac_compile") 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } && {
7444          test -z "$ac_c_werror_flag" ||
7445          test ! -s conftest.err
7446        } && test -s conftest.$ac_objext; then
7447   ac_cv_c_const=yes
7448 else
7449   $as_echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452         ac_cv_c_const=no
7453 fi
7454
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7458 $as_echo "$ac_cv_c_const" >&6; }
7459 if test $ac_cv_c_const = no; then
7460
7461 cat >>confdefs.h <<\_ACEOF
7462 #define const /**/
7463 _ACEOF
7464
7465 fi
7466
7467 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7468 $as_echo_n "checking for inline... " >&6; }
7469 if test "${ac_cv_c_inline+set}" = set; then
7470   $as_echo_n "(cached) " >&6
7471 else
7472   ac_cv_c_inline=no
7473 for ac_kw in inline __inline__ __inline; do
7474   cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480 #ifndef __cplusplus
7481 typedef int foo_t;
7482 static $ac_kw foo_t static_foo () {return 0; }
7483 $ac_kw foo_t foo () {return 0; }
7484 #endif
7485
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491   *) ac_try_echo=$ac_try;;
7492 esac
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495   (eval "$ac_compile") 2>conftest.er1
7496   ac_status=$?
7497   grep -v '^ *+' conftest.er1 >conftest.err
7498   rm -f conftest.er1
7499   cat conftest.err >&5
7500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } && {
7502          test -z "$ac_c_werror_flag" ||
7503          test ! -s conftest.err
7504        } && test -s conftest.$ac_objext; then
7505   ac_cv_c_inline=$ac_kw
7506 else
7507   $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514   test "$ac_cv_c_inline" != no && break
7515 done
7516
7517 fi
7518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7519 $as_echo "$ac_cv_c_inline" >&6; }
7520
7521
7522 case $ac_cv_c_inline in
7523   inline | yes) ;;
7524   *)
7525     case $ac_cv_c_inline in
7526       no) ac_val=;;
7527       *) ac_val=$ac_cv_c_inline;;
7528     esac
7529     cat >>confdefs.h <<_ACEOF
7530 #ifndef __cplusplus
7531 #define inline $ac_val
7532 #endif
7533 _ACEOF
7534     ;;
7535 esac
7536
7537 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7538 $as_echo_n "checking for pid_t... " >&6; }
7539 if test "${ac_cv_type_pid_t+set}" = set; then
7540   $as_echo_n "(cached) " >&6
7541 else
7542   ac_cv_type_pid_t=no
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h.  */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h.  */
7549 $ac_includes_default
7550 int
7551 main ()
7552 {
7553 if (sizeof (pid_t))
7554        return 0;
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563   *) ac_try_echo=$ac_try;;
7564 esac
7565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7566 $as_echo "$ac_try_echo") >&5
7567   (eval "$ac_compile") 2>conftest.er1
7568   ac_status=$?
7569   grep -v '^ *+' conftest.er1 >conftest.err
7570   rm -f conftest.er1
7571   cat conftest.err >&5
7572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } && {
7574          test -z "$ac_c_werror_flag" ||
7575          test ! -s conftest.err
7576        } && test -s conftest.$ac_objext; then
7577   cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583 $ac_includes_default
7584 int
7585 main ()
7586 {
7587 if (sizeof ((pid_t)))
7588           return 0;
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597   *) ac_try_echo=$ac_try;;
7598 esac
7599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7600 $as_echo "$ac_try_echo") >&5
7601   (eval "$ac_compile") 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } && {
7608          test -z "$ac_c_werror_flag" ||
7609          test ! -s conftest.err
7610        } && test -s conftest.$ac_objext; then
7611   :
7612 else
7613   $as_echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616         ac_cv_type_pid_t=yes
7617 fi
7618
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 else
7621   $as_echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624
7625 fi
7626
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7630 $as_echo "$ac_cv_type_pid_t" >&6; }
7631 if test "x$ac_cv_type_pid_t" = x""yes; then
7632   :
7633 else
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define pid_t int
7637 _ACEOF
7638
7639 fi
7640
7641 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7642 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7643 if test "${ac_cv_header_time+set}" = set; then
7644   $as_echo_n "(cached) " >&6
7645 else
7646   cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h.  */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h.  */
7652 #include <sys/types.h>
7653 #include <sys/time.h>
7654 #include <time.h>
7655
7656 int
7657 main ()
7658 {
7659 if ((struct tm *) 0)
7660 return 0;
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673   (eval "$ac_compile") 2>conftest.er1
7674   ac_status=$?
7675   grep -v '^ *+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } && {
7680          test -z "$ac_c_werror_flag" ||
7681          test ! -s conftest.err
7682        } && test -s conftest.$ac_objext; then
7683   ac_cv_header_time=yes
7684 else
7685   $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688         ac_cv_header_time=no
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7694 $as_echo "$ac_cv_header_time" >&6; }
7695 if test $ac_cv_header_time = yes; then
7696
7697 cat >>confdefs.h <<\_ACEOF
7698 #define TIME_WITH_SYS_TIME 1
7699 _ACEOF
7700
7701 fi
7702
7703 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7704 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7705 if test "${ac_cv_struct_tm+set}" = set; then
7706   $as_echo_n "(cached) " >&6
7707 else
7708   cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714 #include <sys/types.h>
7715 #include <time.h>
7716
7717 int
7718 main ()
7719 {
7720 struct tm tm;
7721                                      int *p = &tm.tm_sec;
7722                                      return !p;
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7729 case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735   (eval "$ac_compile") 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && {
7742          test -z "$ac_c_werror_flag" ||
7743          test ! -s conftest.err
7744        } && test -s conftest.$ac_objext; then
7745   ac_cv_struct_tm=time.h
7746 else
7747   $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750         ac_cv_struct_tm=sys/time.h
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7756 $as_echo "$ac_cv_struct_tm" >&6; }
7757 if test $ac_cv_struct_tm = sys/time.h; then
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define TM_IN_SYS_TIME 1
7761 _ACEOF
7762
7763 fi
7764
7765
7766 # Checks for library functions.
7767
7768 for ac_header in vfork.h
7769 do
7770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7772   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 $as_echo_n "checking for $ac_header... " >&6; }
7774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7775   $as_echo_n "(cached) " >&6
7776 fi
7777 ac_res=`eval 'as_val=${'$as_ac_Header'}
7778                  $as_echo "$as_val"'`
7779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7780 $as_echo "$ac_res" >&6; }
7781 else
7782   # Is the header compilable?
7783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7784 $as_echo_n "checking $ac_header usability... " >&6; }
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 $ac_includes_default
7792 #include <$ac_header>
7793 _ACEOF
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7796 case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802   (eval "$ac_compile") 2>conftest.er1
7803   ac_status=$?
7804   grep -v '^ *+' conftest.er1 >conftest.err
7805   rm -f conftest.er1
7806   cat conftest.err >&5
7807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } && {
7809          test -z "$ac_c_werror_flag" ||
7810          test ! -s conftest.err
7811        } && test -s conftest.$ac_objext; then
7812   ac_header_compiler=yes
7813 else
7814   $as_echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817         ac_header_compiler=no
7818 fi
7819
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7822 $as_echo "$ac_header_compiler" >&6; }
7823
7824 # Is the header present?
7825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7826 $as_echo_n "checking $ac_header presence... " >&6; }
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h.  */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h.  */
7833 #include <$ac_header>
7834 _ACEOF
7835 if { (ac_try="$ac_cpp conftest.$ac_ext"
7836 case "(($ac_try" in
7837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838   *) ac_try_echo=$ac_try;;
7839 esac
7840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841 $as_echo "$ac_try_echo") >&5
7842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } >/dev/null && {
7849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7850          test ! -s conftest.err
7851        }; then
7852   ac_header_preproc=yes
7853 else
7854   $as_echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857   ac_header_preproc=no
7858 fi
7859
7860 rm -f conftest.err conftest.$ac_ext
7861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862 $as_echo "$ac_header_preproc" >&6; }
7863
7864 # So?  What about this header?
7865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7866   yes:no: )
7867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7871     ac_header_preproc=yes
7872     ;;
7873   no:yes:* )
7874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7877 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7881 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7886     ( cat <<\_ASBOX
7887 ## ----------------------------------- ##
7888 ## Report this to andreas@eversberg.eu ##
7889 ## ----------------------------------- ##
7890 _ASBOX
7891      ) | sed "s/^/$as_me: WARNING:     /" >&2
7892     ;;
7893 esac
7894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7895 $as_echo_n "checking for $ac_header... " >&6; }
7896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7897   $as_echo_n "(cached) " >&6
7898 else
7899   eval "$as_ac_Header=\$ac_header_preproc"
7900 fi
7901 ac_res=`eval 'as_val=${'$as_ac_Header'}
7902                  $as_echo "$as_val"'`
7903                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7904 $as_echo "$ac_res" >&6; }
7905
7906 fi
7907 as_val=`eval 'as_val=${'$as_ac_Header'}
7908                  $as_echo "$as_val"'`
7909    if test "x$as_val" = x""yes; then
7910   cat >>confdefs.h <<_ACEOF
7911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912 _ACEOF
7913
7914 fi
7915
7916 done
7917
7918
7919
7920 for ac_func in fork vfork
7921 do
7922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7924 $as_echo_n "checking for $ac_func... " >&6; }
7925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7926   $as_echo_n "(cached) " >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7936 #define $ac_func innocuous_$ac_func
7937
7938 /* System header to define __stub macros and hopefully few prototypes,
7939     which can conflict with char $ac_func (); below.
7940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941     <limits.h> exists even on freestanding compilers.  */
7942
7943 #ifdef __STDC__
7944 # include <limits.h>
7945 #else
7946 # include <assert.h>
7947 #endif
7948
7949 #undef $ac_func
7950
7951 /* Override any GCC internal prototype to avoid an error.
7952    Use char because int might match the return type of a GCC
7953    builtin and then its argument prototype would still apply.  */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 char $ac_func ();
7958 /* The GNU C library defines this for functions which it implements
7959     to always fail with ENOSYS.  Some functions are actually named
7960     something starting with __ and the normal name is an alias.  */
7961 #if defined __stub_$ac_func || defined __stub___$ac_func
7962 choke me
7963 #endif
7964
7965 int
7966 main ()
7967 {
7968 return $ac_func ();
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981   (eval "$ac_link") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest$ac_exeext && {
7991          test "$cross_compiling" = yes ||
7992          $as_test_x conftest$ac_exeext
7993        }; then
7994   eval "$as_ac_var=yes"
7995 else
7996   $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999         eval "$as_ac_var=no"
8000 fi
8001
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext conftest.$ac_ext
8005 fi
8006 ac_res=`eval 'as_val=${'$as_ac_var'}
8007                  $as_echo "$as_val"'`
8008                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8009 $as_echo "$ac_res" >&6; }
8010 as_val=`eval 'as_val=${'$as_ac_var'}
8011                  $as_echo "$as_val"'`
8012    if test "x$as_val" = x""yes; then
8013   cat >>confdefs.h <<_ACEOF
8014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8015 _ACEOF
8016
8017 fi
8018 done
8019
8020 if test "x$ac_cv_func_fork" = xyes; then
8021   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8022 $as_echo_n "checking for working fork... " >&6; }
8023 if test "${ac_cv_func_fork_works+set}" = set; then
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test "$cross_compiling" = yes; then
8027   ac_cv_func_fork_works=cross
8028 else
8029   cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 $ac_includes_default
8036 int
8037 main ()
8038 {
8039
8040           /* By Ruediger Kuhlmann. */
8041           return fork () < 0;
8042
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8049 case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8054 $as_echo "$ac_try_echo") >&5
8055   (eval "$ac_link") 2>&5
8056   ac_status=$?
8057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8059   { (case "(($ac_try" in
8060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061   *) ac_try_echo=$ac_try;;
8062 esac
8063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8064 $as_echo "$ac_try_echo") >&5
8065   (eval "$ac_try") 2>&5
8066   ac_status=$?
8067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; }; then
8069   ac_cv_func_fork_works=yes
8070 else
8071   $as_echo "$as_me: program exited with status $ac_status" >&5
8072 $as_echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ( exit $ac_status )
8076 ac_cv_func_fork_works=no
8077 fi
8078 rm -rf conftest.dSYM
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8080 fi
8081
8082
8083 fi
8084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8085 $as_echo "$ac_cv_func_fork_works" >&6; }
8086
8087 else
8088   ac_cv_func_fork_works=$ac_cv_func_fork
8089 fi
8090 if test "x$ac_cv_func_fork_works" = xcross; then
8091   case $host in
8092     *-*-amigaos* | *-*-msdosdjgpp*)
8093       # Override, as these systems have only a dummy fork() stub
8094       ac_cv_func_fork_works=no
8095       ;;
8096     *)
8097       ac_cv_func_fork_works=yes
8098       ;;
8099   esac
8100   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8101 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8102 fi
8103 ac_cv_func_vfork_works=$ac_cv_func_vfork
8104 if test "x$ac_cv_func_vfork" = xyes; then
8105   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8106 $as_echo_n "checking for working vfork... " >&6; }
8107 if test "${ac_cv_func_vfork_works+set}" = set; then
8108   $as_echo_n "(cached) " >&6
8109 else
8110   if test "$cross_compiling" = yes; then
8111   ac_cv_func_vfork_works=cross
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 /* Thanks to Paul Eggert for this test.  */
8120 $ac_includes_default
8121 #include <sys/wait.h>
8122 #ifdef HAVE_VFORK_H
8123 # include <vfork.h>
8124 #endif
8125 /* On some sparc systems, changes by the child to local and incoming
8126    argument registers are propagated back to the parent.  The compiler
8127    is told about this with #include <vfork.h>, but some compilers
8128    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8129    static variable whose address is put into a register that is
8130    clobbered by the vfork.  */
8131 static void
8132 #ifdef __cplusplus
8133 sparc_address_test (int arg)
8134 # else
8135 sparc_address_test (arg) int arg;
8136 #endif
8137 {
8138   static pid_t child;
8139   if (!child) {
8140     child = vfork ();
8141     if (child < 0) {
8142       perror ("vfork");
8143       _exit(2);
8144     }
8145     if (!child) {
8146       arg = getpid();
8147       write(-1, "", 0);
8148       _exit (arg);
8149     }
8150   }
8151 }
8152
8153 int
8154 main ()
8155 {
8156   pid_t parent = getpid ();
8157   pid_t child;
8158
8159   sparc_address_test (0);
8160
8161   child = vfork ();
8162
8163   if (child == 0) {
8164     /* Here is another test for sparc vfork register problems.  This
8165        test uses lots of local variables, at least as many local
8166        variables as main has allocated so far including compiler
8167        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8168        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8169        reuse the register of parent for one of the local variables,
8170        since it will think that parent can't possibly be used any more
8171        in this routine.  Assigning to the local variable will thus
8172        munge parent in the parent process.  */
8173     pid_t
8174       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8175       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8176     /* Convince the compiler that p..p7 are live; otherwise, it might
8177        use the same hardware register for all 8 local variables.  */
8178     if (p != p1 || p != p2 || p != p3 || p != p4
8179         || p != p5 || p != p6 || p != p7)
8180       _exit(1);
8181
8182     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8183        from child file descriptors.  If the child closes a descriptor
8184        before it execs or exits, this munges the parent's descriptor
8185        as well.  Test for this by closing stdout in the child.  */
8186     _exit(close(fileno(stdout)) != 0);
8187   } else {
8188     int status;
8189     struct stat st;
8190
8191     while (wait(&status) != child)
8192       ;
8193     return (
8194          /* Was there some problem with vforking?  */
8195          child < 0
8196
8197          /* Did the child fail?  (This shouldn't happen.)  */
8198          || status
8199
8200          /* Did the vfork/compiler bug occur?  */
8201          || parent != getpid()
8202
8203          /* Did the file descriptor bug occur?  */
8204          || fstat(fileno(stdout), &st) != 0
8205          );
8206   }
8207 }
8208 _ACEOF
8209 rm -f conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217   (eval "$ac_link") 2>&5
8218   ac_status=$?
8219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227   (eval "$ac_try") 2>&5
8228   ac_status=$?
8229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_cv_func_vfork_works=yes
8232 else
8233   $as_echo "$as_me: program exited with status $ac_status" >&5
8234 $as_echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 ( exit $ac_status )
8238 ac_cv_func_vfork_works=no
8239 fi
8240 rm -rf conftest.dSYM
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8242 fi
8243
8244
8245 fi
8246 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8247 $as_echo "$ac_cv_func_vfork_works" >&6; }
8248
8249 fi;
8250 if test "x$ac_cv_func_fork_works" = xcross; then
8251   ac_cv_func_vfork_works=$ac_cv_func_vfork
8252   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8254 fi
8255
8256 if test "x$ac_cv_func_vfork_works" = xyes; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_WORKING_VFORK 1
8260 _ACEOF
8261
8262 else
8263
8264 cat >>confdefs.h <<\_ACEOF
8265 #define vfork fork
8266 _ACEOF
8267
8268 fi
8269 if test "x$ac_cv_func_fork_works" = xyes; then
8270
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_WORKING_FORK 1
8273 _ACEOF
8274
8275 fi
8276
8277 if test $ac_cv_c_compiler_gnu = yes; then
8278     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8279 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8280 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8281   $as_echo_n "(cached) " >&6
8282 else
8283     ac_pattern="Autoconf.*'x'"
8284   cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290 #include <sgtty.h>
8291 Autoconf TIOCGETP
8292 _ACEOF
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8295   ac_cv_prog_gcc_traditional=yes
8296 else
8297   ac_cv_prog_gcc_traditional=no
8298 fi
8299 rm -f conftest*
8300
8301
8302   if test $ac_cv_prog_gcc_traditional = no; then
8303     cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 #include <termio.h>
8310 Autoconf TCGETA
8311 _ACEOF
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8314   ac_cv_prog_gcc_traditional=yes
8315 fi
8316 rm -f conftest*
8317
8318   fi
8319 fi
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8321 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8322   if test $ac_cv_prog_gcc_traditional = yes; then
8323     CC="$CC -traditional"
8324   fi
8325 fi
8326
8327 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8328 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8329 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8330   $as_echo_n "(cached) " >&6
8331 else
8332   rm -f conftest.sym conftest.file
8333 echo >conftest.file
8334 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8335   if test "$cross_compiling" = yes; then
8336   ac_cv_func_lstat_dereferences_slashed_symlink=no
8337 else
8338   cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344 $ac_includes_default
8345 int
8346 main ()
8347 {
8348 struct stat sbuf;
8349      /* Linux will dereference the symlink and fail.
8350         That is better in the sense that it means we will not
8351         have to compile and use the lstat wrapper.  */
8352      return lstat ("conftest.sym/", &sbuf) == 0;
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8359 case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364 $as_echo "$ac_try_echo") >&5
8365   (eval "$ac_link") 2>&5
8366   ac_status=$?
8367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375   (eval "$ac_try") 2>&5
8376   ac_status=$?
8377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8380 else
8381   $as_echo "$as_me: program exited with status $ac_status" >&5
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ( exit $ac_status )
8386 ac_cv_func_lstat_dereferences_slashed_symlink=no
8387 fi
8388 rm -rf conftest.dSYM
8389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8390 fi
8391
8392
8393 else
8394   # If the `ln -s' command failed, then we probably don't even
8395   # have an lstat function.
8396   ac_cv_func_lstat_dereferences_slashed_symlink=no
8397 fi
8398 rm -f conftest.sym conftest.file
8399
8400 fi
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8402 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8403
8404 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8408 _ACEOF
8409
8410
8411 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8412   case " $LIBOBJS " in
8413   *" lstat.$ac_objext "* ) ;;
8414   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8415  ;;
8416 esac
8417
8418 fi
8419
8420 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8421 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8422 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8423   $as_echo_n "(cached) " >&6
8424 else
8425   if test "$cross_compiling" = yes; then
8426   ac_cv_func_lstat_empty_string_bug=yes
8427 else
8428   cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 int
8436 main ()
8437 {
8438 struct stat sbuf;
8439   return lstat ("", &sbuf) == 0;
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452   (eval "$ac_link") 2>&5
8453   ac_status=$?
8454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462   (eval "$ac_try") 2>&5
8463   ac_status=$?
8464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   ac_cv_func_lstat_empty_string_bug=no
8467 else
8468   $as_echo "$as_me: program exited with status $ac_status" >&5
8469 $as_echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ( exit $ac_status )
8473 ac_cv_func_lstat_empty_string_bug=yes
8474 fi
8475 rm -rf conftest.dSYM
8476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8477 fi
8478
8479
8480 fi
8481 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8482 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8483 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8484   case " $LIBOBJS " in
8485   *" lstat.$ac_objext "* ) ;;
8486   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8487  ;;
8488 esac
8489
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8493 _ACEOF
8494
8495 fi
8496
8497 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8498 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8499 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8500   $as_echo_n "(cached) " >&6
8501 else
8502   rm -f conftest.sym conftest.file
8503 echo >conftest.file
8504 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8505   if test "$cross_compiling" = yes; then
8506   ac_cv_func_lstat_dereferences_slashed_symlink=no
8507 else
8508   cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 $ac_includes_default
8515 int
8516 main ()
8517 {
8518 struct stat sbuf;
8519      /* Linux will dereference the symlink and fail.
8520         That is better in the sense that it means we will not
8521         have to compile and use the lstat wrapper.  */
8522      return lstat ("conftest.sym/", &sbuf) == 0;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8529 case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535   (eval "$ac_link") 2>&5
8536   ac_status=$?
8537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8544 $as_echo "$ac_try_echo") >&5
8545   (eval "$ac_try") 2>&5
8546   ac_status=$?
8547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8550 else
8551   $as_echo "$as_me: program exited with status $ac_status" >&5
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ( exit $ac_status )
8556 ac_cv_func_lstat_dereferences_slashed_symlink=no
8557 fi
8558 rm -rf conftest.dSYM
8559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8560 fi
8561
8562
8563 else
8564   # If the `ln -s' command failed, then we probably don't even
8565   # have an lstat function.
8566   ac_cv_func_lstat_dereferences_slashed_symlink=no
8567 fi
8568 rm -f conftest.sym conftest.file
8569
8570 fi
8571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8572 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8573
8574 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8575
8576 cat >>confdefs.h <<_ACEOF
8577 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8578 _ACEOF
8579
8580
8581 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8582   case " $LIBOBJS " in
8583   *" lstat.$ac_objext "* ) ;;
8584   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8585  ;;
8586 esac
8587
8588 fi
8589
8590
8591 for ac_header in stdlib.h
8592 do
8593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 $as_echo_n "checking for $ac_header... " >&6; }
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598   $as_echo_n "(cached) " >&6
8599 fi
8600 ac_res=`eval 'as_val=${'$as_ac_Header'}
8601                  $as_echo "$as_val"'`
8602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8603 $as_echo "$ac_res" >&6; }
8604 else
8605   # Is the header compilable?
8606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8607 $as_echo_n "checking $ac_header usability... " >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 $ac_includes_default
8615 #include <$ac_header>
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8619 case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8624 $as_echo "$ac_try_echo") >&5
8625   (eval "$ac_compile") 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } && {
8632          test -z "$ac_c_werror_flag" ||
8633          test ! -s conftest.err
8634        } && test -s conftest.$ac_objext; then
8635   ac_header_compiler=yes
8636 else
8637   $as_echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640         ac_header_compiler=no
8641 fi
8642
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 $as_echo "$ac_header_compiler" >&6; }
8646
8647 # Is the header present?
8648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 $as_echo_n "checking $ac_header presence... " >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8659 case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8666   ac_status=$?
8667   grep -v '^ *+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } >/dev/null && {
8672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8673          test ! -s conftest.err
8674        }; then
8675   ac_header_preproc=yes
8676 else
8677   $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680   ac_header_preproc=no
8681 fi
8682
8683 rm -f conftest.err conftest.$ac_ext
8684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 $as_echo "$ac_header_preproc" >&6; }
8686
8687 # So?  What about this header?
8688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8689   yes:no: )
8690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8694     ac_header_preproc=yes
8695     ;;
8696   no:yes:* )
8697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8700 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8704 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8709     ( cat <<\_ASBOX
8710 ## ----------------------------------- ##
8711 ## Report this to andreas@eversberg.eu ##
8712 ## ----------------------------------- ##
8713 _ASBOX
8714      ) | sed "s/^/$as_me: WARNING:     /" >&2
8715     ;;
8716 esac
8717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8718 $as_echo_n "checking for $ac_header... " >&6; }
8719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8720   $as_echo_n "(cached) " >&6
8721 else
8722   eval "$as_ac_Header=\$ac_header_preproc"
8723 fi
8724 ac_res=`eval 'as_val=${'$as_ac_Header'}
8725                  $as_echo "$as_val"'`
8726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8727 $as_echo "$ac_res" >&6; }
8728
8729 fi
8730 as_val=`eval 'as_val=${'$as_ac_Header'}
8731                  $as_echo "$as_val"'`
8732    if test "x$as_val" = x""yes; then
8733   cat >>confdefs.h <<_ACEOF
8734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 _ACEOF
8736
8737 fi
8738
8739 done
8740
8741 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8742 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8743 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8744   $as_echo_n "(cached) " >&6
8745 else
8746   if test "$cross_compiling" = yes; then
8747   ac_cv_func_malloc_0_nonnull=no
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8756 # include <stdlib.h>
8757 #else
8758 char *malloc ();
8759 #endif
8760
8761 int
8762 main ()
8763 {
8764 return ! malloc (0);
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest$ac_exeext
8770 if { (ac_try="$ac_link"
8771 case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777   (eval "$ac_link") 2>&5
8778   ac_status=$?
8779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8781   { (case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8786 $as_echo "$ac_try_echo") >&5
8787   (eval "$ac_try") 2>&5
8788   ac_status=$?
8789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_func_malloc_0_nonnull=yes
8792 else
8793   $as_echo "$as_me: program exited with status $ac_status" >&5
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ( exit $ac_status )
8798 ac_cv_func_malloc_0_nonnull=no
8799 fi
8800 rm -rf conftest.dSYM
8801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8802 fi
8803
8804
8805 fi
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8807 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8808 if test $ac_cv_func_malloc_0_nonnull = yes; then
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_MALLOC 1
8812 _ACEOF
8813
8814 else
8815   cat >>confdefs.h <<\_ACEOF
8816 #define HAVE_MALLOC 0
8817 _ACEOF
8818
8819    case " $LIBOBJS " in
8820   *" malloc.$ac_objext "* ) ;;
8821   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8822  ;;
8823 esac
8824
8825
8826 cat >>confdefs.h <<\_ACEOF
8827 #define malloc rpl_malloc
8828 _ACEOF
8829
8830 fi
8831
8832
8833
8834 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8835 $as_echo_n "checking for working memcmp... " >&6; }
8836 if test "${ac_cv_func_memcmp_working+set}" = set; then
8837   $as_echo_n "(cached) " >&6
8838 else
8839   if test "$cross_compiling" = yes; then
8840   ac_cv_func_memcmp_working=no
8841 else
8842   cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848 $ac_includes_default
8849 int
8850 main ()
8851 {
8852
8853   /* Some versions of memcmp are not 8-bit clean.  */
8854   char c0 = '\100', c1 = '\200', c2 = '\201';
8855   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8856     return 1;
8857
8858   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8859      or more and with at least one buffer not starting on a 4-byte boundary.
8860      William Lewis provided this test program.   */
8861   {
8862     char foo[21];
8863     char bar[21];
8864     int i;
8865     for (i = 0; i < 4; i++)
8866       {
8867         char *a = foo + i;
8868         char *b = bar + i;
8869         strcpy (a, "--------01111111");
8870         strcpy (b, "--------10000000");
8871         if (memcmp (a, b, 16) >= 0)
8872           return 1;
8873       }
8874     return 0;
8875   }
8876
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest$ac_exeext
8882 if { (ac_try="$ac_link"
8883 case "(($ac_try" in
8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885   *) ac_try_echo=$ac_try;;
8886 esac
8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888 $as_echo "$ac_try_echo") >&5
8889   (eval "$ac_link") 2>&5
8890   ac_status=$?
8891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8893   { (case "(($ac_try" in
8894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895   *) ac_try_echo=$ac_try;;
8896 esac
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899   (eval "$ac_try") 2>&5
8900   ac_status=$?
8901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   ac_cv_func_memcmp_working=yes
8904 else
8905   $as_echo "$as_me: program exited with status $ac_status" >&5
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ( exit $ac_status )
8910 ac_cv_func_memcmp_working=no
8911 fi
8912 rm -rf conftest.dSYM
8913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8914 fi
8915
8916
8917 fi
8918 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8919 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8920 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8921   *" memcmp.$ac_objext "* ) ;;
8922   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8923  ;;
8924 esac
8925
8926
8927 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8928 $as_echo_n "checking return type of signal handlers... " >&6; }
8929 if test "${ac_cv_type_signal+set}" = set; then
8930   $as_echo_n "(cached) " >&6
8931 else
8932   cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938 #include <sys/types.h>
8939 #include <signal.h>
8940
8941 int
8942 main ()
8943 {
8944 return *(signal (0, 0)) (0) == 1;
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8951 case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8956 $as_echo "$ac_try_echo") >&5
8957   (eval "$ac_compile") 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } && {
8964          test -z "$ac_c_werror_flag" ||
8965          test ! -s conftest.err
8966        } && test -s conftest.$ac_objext; then
8967   ac_cv_type_signal=int
8968 else
8969   $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972         ac_cv_type_signal=void
8973 fi
8974
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 fi
8977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8978 $as_echo "$ac_cv_type_signal" >&6; }
8979
8980 cat >>confdefs.h <<_ACEOF
8981 #define RETSIGTYPE $ac_cv_type_signal
8982 _ACEOF
8983
8984
8985 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
8986 $as_echo_n "checking for working strnlen... " >&6; }
8987 if test "${ac_cv_func_strnlen_working+set}" = set; then
8988   $as_echo_n "(cached) " >&6
8989 else
8990   if test "$cross_compiling" = yes; then
8991   ac_cv_func_strnlen_working=no
8992 else
8993   cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999 $ac_includes_default
9000 int
9001 main ()
9002 {
9003
9004 #define S "foobar"
9005 #define S_LEN (sizeof S - 1)
9006
9007   /* At least one implementation is buggy: that of AIX 4.3 would
9008      give strnlen (S, 1) == 3.  */
9009
9010   int i;
9011   for (i = 0; i < S_LEN + 1; ++i)
9012     {
9013       int expected = i <= S_LEN ? i : S_LEN;
9014       if (strnlen (S, i) != expected)
9015         return 1;
9016     }
9017   return 0;
9018
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest$ac_exeext
9024 if { (ac_try="$ac_link"
9025 case "(($ac_try" in
9026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027   *) ac_try_echo=$ac_try;;
9028 esac
9029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9030 $as_echo "$ac_try_echo") >&5
9031   (eval "$ac_link") 2>&5
9032   ac_status=$?
9033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035   { (case "(($ac_try" in
9036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037   *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041   (eval "$ac_try") 2>&5
9042   ac_status=$?
9043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_func_strnlen_working=yes
9046 else
9047   $as_echo "$as_me: program exited with status $ac_status" >&5
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ( exit $ac_status )
9052 ac_cv_func_strnlen_working=no
9053 fi
9054 rm -rf conftest.dSYM
9055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056 fi
9057
9058
9059 fi
9060 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9061 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9062 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9063   *" strnlen.$ac_objext "* ) ;;
9064   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9065  ;;
9066 esac
9067
9068
9069 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9070 $as_echo_n "checking for working strtod... " >&6; }
9071 if test "${ac_cv_func_strtod+set}" = set; then
9072   $as_echo_n "(cached) " >&6
9073 else
9074   if test "$cross_compiling" = yes; then
9075   ac_cv_func_strtod=no
9076 else
9077   cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083
9084 $ac_includes_default
9085 #ifndef strtod
9086 double strtod ();
9087 #endif
9088 int
9089 main()
9090 {
9091   {
9092     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9093     char *string = " +69";
9094     char *term;
9095     double value;
9096     value = strtod (string, &term);
9097     if (value != 69 || term != (string + 4))
9098       return 1;
9099   }
9100
9101   {
9102     /* Under Solaris 2.4, strtod returns the wrong value for the
9103        terminating character under some conditions.  */
9104     char *string = "NaN";
9105     char *term;
9106     strtod (string, &term);
9107     if (term != string && *(term - 1) == 0)
9108       return 1;
9109   }
9110   return 0;
9111 }
9112
9113 _ACEOF
9114 rm -f conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118   *) ac_try_echo=$ac_try;;
9119 esac
9120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121 $as_echo "$ac_try_echo") >&5
9122   (eval "$ac_link") 2>&5
9123   ac_status=$?
9124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9126   { (case "(($ac_try" in
9127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128   *) ac_try_echo=$ac_try;;
9129 esac
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132   (eval "$ac_try") 2>&5
9133   ac_status=$?
9134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); }; }; then
9136   ac_cv_func_strtod=yes
9137 else
9138   $as_echo "$as_me: program exited with status $ac_status" >&5
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ( exit $ac_status )
9143 ac_cv_func_strtod=no
9144 fi
9145 rm -rf conftest.dSYM
9146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9147 fi
9148
9149
9150 fi
9151 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9152 $as_echo "$ac_cv_func_strtod" >&6; }
9153 if test $ac_cv_func_strtod = no; then
9154   case " $LIBOBJS " in
9155   *" strtod.$ac_objext "* ) ;;
9156   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9157  ;;
9158 esac
9159
9160 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9161 $as_echo_n "checking for pow... " >&6; }
9162 if test "${ac_cv_func_pow+set}" = set; then
9163   $as_echo_n "(cached) " >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9173 #define pow innocuous_pow
9174
9175 /* System header to define __stub macros and hopefully few prototypes,
9176     which can conflict with char pow (); below.
9177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9178     <limits.h> exists even on freestanding compilers.  */
9179
9180 #ifdef __STDC__
9181 # include <limits.h>
9182 #else
9183 # include <assert.h>
9184 #endif
9185
9186 #undef pow
9187
9188 /* Override any GCC internal prototype to avoid an error.
9189    Use char because int might match the return type of a GCC
9190    builtin and then its argument prototype would still apply.  */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char pow ();
9195 /* The GNU C library defines this for functions which it implements
9196     to always fail with ENOSYS.  Some functions are actually named
9197     something starting with __ and the normal name is an alias.  */
9198 #if defined __stub_pow || defined __stub___pow
9199 choke me
9200 #endif
9201
9202 int
9203 main ()
9204 {
9205 return pow ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214   *) ac_try_echo=$ac_try;;
9215 esac
9216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9217 $as_echo "$ac_try_echo") >&5
9218   (eval "$ac_link") 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } && {
9225          test -z "$ac_c_werror_flag" ||
9226          test ! -s conftest.err
9227        } && test -s conftest$ac_exeext && {
9228          test "$cross_compiling" = yes ||
9229          $as_test_x conftest$ac_exeext
9230        }; then
9231   ac_cv_func_pow=yes
9232 else
9233   $as_echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236         ac_cv_func_pow=no
9237 fi
9238
9239 rm -rf conftest.dSYM
9240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9241       conftest$ac_exeext conftest.$ac_ext
9242 fi
9243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9244 $as_echo "$ac_cv_func_pow" >&6; }
9245
9246 if test $ac_cv_func_pow = no; then
9247   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9248 $as_echo_n "checking for pow in -lm... " >&6; }
9249 if test "${ac_cv_lib_m_pow+set}" = set; then
9250   $as_echo_n "(cached) " >&6
9251 else
9252   ac_check_lib_save_LIBS=$LIBS
9253 LIBS="-lm  $LIBS"
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260
9261 /* Override any GCC internal prototype to avoid an error.
9262    Use char because int might match the return type of a GCC
9263    builtin and then its argument prototype would still apply.  */
9264 #ifdef __cplusplus
9265 extern "C"
9266 #endif
9267 char pow ();
9268 int
9269 main ()
9270 {
9271 return pow ();
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (ac_try="$ac_link"
9278 case "(($ac_try" in
9279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280   *) ac_try_echo=$ac_try;;
9281 esac
9282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9283 $as_echo "$ac_try_echo") >&5
9284   (eval "$ac_link") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_c_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest$ac_exeext && {
9294          test "$cross_compiling" = yes ||
9295          $as_test_x conftest$ac_exeext
9296        }; then
9297   ac_cv_lib_m_pow=yes
9298 else
9299   $as_echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302         ac_cv_lib_m_pow=no
9303 fi
9304
9305 rm -rf conftest.dSYM
9306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9307       conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9309 fi
9310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9311 $as_echo "$ac_cv_lib_m_pow" >&6; }
9312 if test "x$ac_cv_lib_m_pow" = x""yes; then
9313   POW_LIB=-lm
9314 else
9315   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9316 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9317 fi
9318
9319 fi
9320
9321 fi
9322
9323
9324 for ac_func in vprintf
9325 do
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9328 $as_echo_n "checking for $ac_func... " >&6; }
9329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9330   $as_echo_n "(cached) " >&6
9331 else
9332   cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9340 #define $ac_func innocuous_$ac_func
9341
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char $ac_func (); below.
9344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345     <limits.h> exists even on freestanding compilers.  */
9346
9347 #ifdef __STDC__
9348 # include <limits.h>
9349 #else
9350 # include <assert.h>
9351 #endif
9352
9353 #undef $ac_func
9354
9355 /* Override any GCC internal prototype to avoid an error.
9356    Use char because int might match the return type of a GCC
9357    builtin and then its argument prototype would still apply.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char $ac_func ();
9362 /* The GNU C library defines this for functions which it implements
9363     to always fail with ENOSYS.  Some functions are actually named
9364     something starting with __ and the normal name is an alias.  */
9365 #if defined __stub_$ac_func || defined __stub___$ac_func
9366 choke me
9367 #endif
9368
9369 int
9370 main ()
9371 {
9372 return $ac_func ();
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385   (eval "$ac_link") 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } && {
9392          test -z "$ac_c_werror_flag" ||
9393          test ! -s conftest.err
9394        } && test -s conftest$ac_exeext && {
9395          test "$cross_compiling" = yes ||
9396          $as_test_x conftest$ac_exeext
9397        }; then
9398   eval "$as_ac_var=yes"
9399 else
9400   $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403         eval "$as_ac_var=no"
9404 fi
9405
9406 rm -rf conftest.dSYM
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408       conftest$ac_exeext conftest.$ac_ext
9409 fi
9410 ac_res=`eval 'as_val=${'$as_ac_var'}
9411                  $as_echo "$as_val"'`
9412                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9413 $as_echo "$ac_res" >&6; }
9414 as_val=`eval 'as_val=${'$as_ac_var'}
9415                  $as_echo "$as_val"'`
9416    if test "x$as_val" = x""yes; then
9417   cat >>confdefs.h <<_ACEOF
9418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9419 _ACEOF
9420
9421 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9422 $as_echo_n "checking for _doprnt... " >&6; }
9423 if test "${ac_cv_func__doprnt+set}" = set; then
9424   $as_echo_n "(cached) " >&6
9425 else
9426   cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9434 #define _doprnt innocuous__doprnt
9435
9436 /* System header to define __stub macros and hopefully few prototypes,
9437     which can conflict with char _doprnt (); below.
9438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9439     <limits.h> exists even on freestanding compilers.  */
9440
9441 #ifdef __STDC__
9442 # include <limits.h>
9443 #else
9444 # include <assert.h>
9445 #endif
9446
9447 #undef _doprnt
9448
9449 /* Override any GCC internal prototype to avoid an error.
9450    Use char because int might match the return type of a GCC
9451    builtin and then its argument prototype would still apply.  */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char _doprnt ();
9456 /* The GNU C library defines this for functions which it implements
9457     to always fail with ENOSYS.  Some functions are actually named
9458     something starting with __ and the normal name is an alias.  */
9459 #if defined __stub__doprnt || defined __stub____doprnt
9460 choke me
9461 #endif
9462
9463 int
9464 main ()
9465 {
9466 return _doprnt ();
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9478 $as_echo "$ac_try_echo") >&5
9479   (eval "$ac_link") 2>conftest.er1
9480   ac_status=$?
9481   grep -v '^ *+' conftest.er1 >conftest.err
9482   rm -f conftest.er1
9483   cat conftest.err >&5
9484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } && {
9486          test -z "$ac_c_werror_flag" ||
9487          test ! -s conftest.err
9488        } && test -s conftest$ac_exeext && {
9489          test "$cross_compiling" = yes ||
9490          $as_test_x conftest$ac_exeext
9491        }; then
9492   ac_cv_func__doprnt=yes
9493 else
9494   $as_echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497         ac_cv_func__doprnt=no
9498 fi
9499
9500 rm -rf conftest.dSYM
9501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9502       conftest$ac_exeext conftest.$ac_ext
9503 fi
9504 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9505 $as_echo "$ac_cv_func__doprnt" >&6; }
9506 if test "x$ac_cv_func__doprnt" = x""yes; then
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_DOPRNT 1
9510 _ACEOF
9511
9512 fi
9513
9514 fi
9515 done
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9531 do
9532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9533 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9534 $as_echo_n "checking for $ac_func... " >&6; }
9535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9536   $as_echo_n "(cached) " >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9546 #define $ac_func innocuous_$ac_func
9547
9548 /* System header to define __stub macros and hopefully few prototypes,
9549     which can conflict with char $ac_func (); below.
9550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551     <limits.h> exists even on freestanding compilers.  */
9552
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9558
9559 #undef $ac_func
9560
9561 /* Override any GCC internal prototype to avoid an error.
9562    Use char because int might match the return type of a GCC
9563    builtin and then its argument prototype would still apply.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char $ac_func ();
9568 /* The GNU C library defines this for functions which it implements
9569     to always fail with ENOSYS.  Some functions are actually named
9570     something starting with __ and the normal name is an alias.  */
9571 #if defined __stub_$ac_func || defined __stub___$ac_func
9572 choke me
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578 return $ac_func ();
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } && {
9598          test -z "$ac_c_werror_flag" ||
9599          test ! -s conftest.err
9600        } && test -s conftest$ac_exeext && {
9601          test "$cross_compiling" = yes ||
9602          $as_test_x conftest$ac_exeext
9603        }; then
9604   eval "$as_ac_var=yes"
9605 else
9606   $as_echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609         eval "$as_ac_var=no"
9610 fi
9611
9612 rm -rf conftest.dSYM
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614       conftest$ac_exeext conftest.$ac_ext
9615 fi
9616 ac_res=`eval 'as_val=${'$as_ac_var'}
9617                  $as_echo "$as_val"'`
9618                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9619 $as_echo "$ac_res" >&6; }
9620 as_val=`eval 'as_val=${'$as_ac_var'}
9621                  $as_echo "$as_val"'`
9622    if test "x$as_val" = x""yes; then
9623   cat >>confdefs.h <<_ACEOF
9624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9625 _ACEOF
9626
9627 fi
9628 done
9629
9630
9631
9632 ac_config_files="$ac_config_files Makefile"
9633
9634 cat >confcache <<\_ACEOF
9635 # This file is a shell script that caches the results of configure
9636 # tests run on this system so they can be shared between configure
9637 # scripts and configure runs, see configure's option --config-cache.
9638 # It is not useful on other systems.  If it contains results you don't
9639 # want to keep, you may remove or edit it.
9640 #
9641 # config.status only pays attention to the cache file if you give it
9642 # the --recheck option to rerun configure.
9643 #
9644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9646 # following values.
9647
9648 _ACEOF
9649
9650 # The following way of writing the cache mishandles newlines in values,
9651 # but we know of no workaround that is simple, portable, and efficient.
9652 # So, we kill variables containing newlines.
9653 # Ultrix sh set writes to stderr and can't be redirected directly,
9654 # and sets the high bit in the cache file unless we assign to the vars.
9655 (
9656   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9657     eval ac_val=\$$ac_var
9658     case $ac_val in #(
9659     *${as_nl}*)
9660       case $ac_var in #(
9661       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9663       esac
9664       case $ac_var in #(
9665       _ | IFS | as_nl) ;; #(
9666       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9667       *) $as_unset $ac_var ;;
9668       esac ;;
9669     esac
9670   done
9671
9672   (set) 2>&1 |
9673     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9674     *${as_nl}ac_space=\ *)
9675       # `set' does not quote correctly, so add quotes (double-quote
9676       # substitution turns \\\\ into \\, and sed turns \\ into \).
9677       sed -n \
9678         "s/'/'\\\\''/g;
9679           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9680       ;; #(
9681     *)
9682       # `set' quotes correctly as required by POSIX, so do not add quotes.
9683       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9684       ;;
9685     esac |
9686     sort
9687 ) |
9688   sed '
9689      /^ac_cv_env_/b end
9690      t clear
9691      :clear
9692      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9693      t end
9694      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9695      :end' >>confcache
9696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9697   if test -w "$cache_file"; then
9698     test "x$cache_file" != "x/dev/null" &&
9699       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9700 $as_echo "$as_me: updating cache $cache_file" >&6;}
9701     cat confcache >$cache_file
9702   else
9703     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9705   fi
9706 fi
9707 rm -f confcache
9708
9709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9710 # Let make expand exec_prefix.
9711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9712
9713 DEFS=-DHAVE_CONFIG_H
9714
9715 ac_libobjs=
9716 ac_ltlibobjs=
9717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9718   # 1. Remove the extension, and $U if already installed.
9719   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9720   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9721   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9722   #    will be set to the directory where LIBOBJS objects are built.
9723   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9724   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9725 done
9726 LIBOBJS=$ac_libobjs
9727
9728 LTLIBOBJS=$ac_ltlibobjs
9729
9730
9731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9732   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9733 Usually this means the macro was only invoked conditionally." >&5
9734 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9735 Usually this means the macro was only invoked conditionally." >&2;}
9736    { (exit 1); exit 1; }; }
9737 fi
9738 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9739   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9740 Usually this means the macro was only invoked conditionally." >&5
9741 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9742 Usually this means the macro was only invoked conditionally." >&2;}
9743    { (exit 1); exit 1; }; }
9744 fi
9745 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9746   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9747 Usually this means the macro was only invoked conditionally." >&5
9748 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9749 Usually this means the macro was only invoked conditionally." >&2;}
9750    { (exit 1); exit 1; }; }
9751 fi
9752 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9753   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9754 Usually this means the macro was only invoked conditionally." >&5
9755 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9756 Usually this means the macro was only invoked conditionally." >&2;}
9757    { (exit 1); exit 1; }; }
9758 fi
9759
9760 : ${CONFIG_STATUS=./config.status}
9761 ac_write_fail=0
9762 ac_clean_files_save=$ac_clean_files
9763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9764 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9766 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9767 #! $SHELL
9768 # Generated by $as_me.
9769 # Run this file to recreate the current configuration.
9770 # Compiler output produced by configure, useful for debugging
9771 # configure, is in config.log if it exists.
9772
9773 debug=false
9774 ac_cs_recheck=false
9775 ac_cs_silent=false
9776 SHELL=\${CONFIG_SHELL-$SHELL}
9777 _ACEOF
9778
9779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9780 ## --------------------- ##
9781 ## M4sh Initialization.  ##
9782 ## --------------------- ##
9783
9784 # Be more Bourne compatible
9785 DUALCASE=1; export DUALCASE # for MKS sh
9786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9787   emulate sh
9788   NULLCMD=:
9789   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9790   # is contrary to our usage.  Disable this feature.
9791   alias -g '${1+"$@"}'='"$@"'
9792   setopt NO_GLOB_SUBST
9793 else
9794   case `(set -o) 2>/dev/null` in
9795   *posix*) set -o posix ;;
9796 esac
9797
9798 fi
9799
9800
9801
9802
9803 # PATH needs CR
9804 # Avoid depending upon Character Ranges.
9805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9808 as_cr_digits='0123456789'
9809 as_cr_alnum=$as_cr_Letters$as_cr_digits
9810
9811 as_nl='
9812 '
9813 export as_nl
9814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9818 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9819   as_echo='printf %s\n'
9820   as_echo_n='printf %s'
9821 else
9822   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9823     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9824     as_echo_n='/usr/ucb/echo -n'
9825   else
9826     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9827     as_echo_n_body='eval
9828       arg=$1;
9829       case $arg in
9830       *"$as_nl"*)
9831         expr "X$arg" : "X\\(.*\\)$as_nl";
9832         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9833       esac;
9834       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9835     '
9836     export as_echo_n_body
9837     as_echo_n='sh -c $as_echo_n_body as_echo'
9838   fi
9839   export as_echo_body
9840   as_echo='sh -c $as_echo_body as_echo'
9841 fi
9842
9843 # The user is always right.
9844 if test "${PATH_SEPARATOR+set}" != set; then
9845   PATH_SEPARATOR=:
9846   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9847     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9848       PATH_SEPARATOR=';'
9849   }
9850 fi
9851
9852 # Support unset when possible.
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9854   as_unset=unset
9855 else
9856   as_unset=false
9857 fi
9858
9859
9860 # IFS
9861 # We need space, tab and new line, in precisely that order.  Quoting is
9862 # there to prevent editors from complaining about space-tab.
9863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9864 # splitting by setting IFS to empty value.)
9865 IFS=" ""        $as_nl"
9866
9867 # Find who we are.  Look in the path if we contain no directory separator.
9868 case $0 in
9869   *[\\/]* ) as_myself=$0 ;;
9870   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9876 done
9877 IFS=$as_save_IFS
9878
9879      ;;
9880 esac
9881 # We did not find ourselves, most probably we were run as `sh COMMAND'
9882 # in which case we are not to be found in the path.
9883 if test "x$as_myself" = x; then
9884   as_myself=$0
9885 fi
9886 if test ! -f "$as_myself"; then
9887   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9888   { (exit 1); exit 1; }
9889 fi
9890
9891 # Work around bugs in pre-3.0 UWIN ksh.
9892 for as_var in ENV MAIL MAILPATH
9893 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9894 done
9895 PS1='$ '
9896 PS2='> '
9897 PS4='+ '
9898
9899 # NLS nuisances.
9900 LC_ALL=C
9901 export LC_ALL
9902 LANGUAGE=C
9903 export LANGUAGE
9904
9905 # Required to use basename.
9906 if expr a : '\(a\)' >/dev/null 2>&1 &&
9907    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9908   as_expr=expr
9909 else
9910   as_expr=false
9911 fi
9912
9913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9914   as_basename=basename
9915 else
9916   as_basename=false
9917 fi
9918
9919
9920 # Name of the executable.
9921 as_me=`$as_basename -- "$0" ||
9922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9923          X"$0" : 'X\(//\)$' \| \
9924          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9925 $as_echo X/"$0" |
9926     sed '/^.*\/\([^/][^/]*\)\/*$/{
9927             s//\1/
9928             q
9929           }
9930           /^X\/\(\/\/\)$/{
9931             s//\1/
9932             q
9933           }
9934           /^X\/\(\/\).*/{
9935             s//\1/
9936             q
9937           }
9938           s/.*/./; q'`
9939
9940 # CDPATH.
9941 $as_unset CDPATH
9942
9943
9944
9945   as_lineno_1=$LINENO
9946   as_lineno_2=$LINENO
9947   test "x$as_lineno_1" != "x$as_lineno_2" &&
9948   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9949
9950   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9951   # uniformly replaced by the line number.  The first 'sed' inserts a
9952   # line-number line after each line using $LINENO; the second 'sed'
9953   # does the real work.  The second script uses 'N' to pair each
9954   # line-number line with the line containing $LINENO, and appends
9955   # trailing '-' during substitution so that $LINENO is not a special
9956   # case at line end.
9957   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9958   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9959   # E. McMahon (1931-1989) for sed's syntax.  :-)
9960   sed -n '
9961     p
9962     /[$]LINENO/=
9963   ' <$as_myself |
9964     sed '
9965       s/[$]LINENO.*/&-/
9966       t lineno
9967       b
9968       :lineno
9969       N
9970       :loop
9971       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9972       t loop
9973       s/-\n.*//
9974     ' >$as_me.lineno &&
9975   chmod +x "$as_me.lineno" ||
9976     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9977    { (exit 1); exit 1; }; }
9978
9979   # Don't try to exec as it changes $[0], causing all sort of problems
9980   # (the dirname of $[0] is not the place where we might find the
9981   # original and so on.  Autoconf is especially sensitive to this).
9982   . "./$as_me.lineno"
9983   # Exit status is that of the last command.
9984   exit
9985 }
9986
9987
9988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9989   as_dirname=dirname
9990 else
9991   as_dirname=false
9992 fi
9993
9994 ECHO_C= ECHO_N= ECHO_T=
9995 case `echo -n x` in
9996 -n*)
9997   case `echo 'x\c'` in
9998   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9999   *)   ECHO_C='\c';;
10000   esac;;
10001 *)
10002   ECHO_N='-n';;
10003 esac
10004 if expr a : '\(a\)' >/dev/null 2>&1 &&
10005    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10006   as_expr=expr
10007 else
10008   as_expr=false
10009 fi
10010
10011 rm -f conf$$ conf$$.exe conf$$.file
10012 if test -d conf$$.dir; then
10013   rm -f conf$$.dir/conf$$.file
10014 else
10015   rm -f conf$$.dir
10016   mkdir conf$$.dir 2>/dev/null
10017 fi
10018 if (echo >conf$$.file) 2>/dev/null; then
10019   if ln -s conf$$.file conf$$ 2>/dev/null; then
10020     as_ln_s='ln -s'
10021     # ... but there are two gotchas:
10022     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10023     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10024     # In both cases, we have to default to `cp -p'.
10025     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10026       as_ln_s='cp -p'
10027   elif ln conf$$.file conf$$ 2>/dev/null; then
10028     as_ln_s=ln
10029   else
10030     as_ln_s='cp -p'
10031   fi
10032 else
10033   as_ln_s='cp -p'
10034 fi
10035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10036 rmdir conf$$.dir 2>/dev/null
10037
10038 if mkdir -p . 2>/dev/null; then
10039   as_mkdir_p=:
10040 else
10041   test -d ./-p && rmdir ./-p
10042   as_mkdir_p=false
10043 fi
10044
10045 if test -x / >/dev/null 2>&1; then
10046   as_test_x='test -x'
10047 else
10048   if ls -dL / >/dev/null 2>&1; then
10049     as_ls_L_option=L
10050   else
10051     as_ls_L_option=
10052   fi
10053   as_test_x='
10054     eval sh -c '\''
10055       if test -d "$1"; then
10056         test -d "$1/.";
10057       else
10058         case $1 in
10059         -*)set "./$1";;
10060         esac;
10061         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10062         ???[sx]*):;;*)false;;esac;fi
10063     '\'' sh
10064   '
10065 fi
10066 as_executable_p=$as_test_x
10067
10068 # Sed expression to map a string onto a valid CPP name.
10069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10070
10071 # Sed expression to map a string onto a valid variable name.
10072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10073
10074
10075 exec 6>&1
10076
10077 # Save the log message, to keep $[0] and so on meaningful, and to
10078 # report actual input values of CONFIG_FILES etc. instead of their
10079 # values after options handling.
10080 ac_log="
10081 This file was extended by lcr $as_me 1.3, which was
10082 generated by GNU Autoconf 2.63.  Invocation command line was
10083
10084   CONFIG_FILES    = $CONFIG_FILES
10085   CONFIG_HEADERS  = $CONFIG_HEADERS
10086   CONFIG_LINKS    = $CONFIG_LINKS
10087   CONFIG_COMMANDS = $CONFIG_COMMANDS
10088   $ $0 $@
10089
10090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10091 "
10092
10093 _ACEOF
10094
10095 case $ac_config_files in *"
10096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10097 esac
10098
10099 case $ac_config_headers in *"
10100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10101 esac
10102
10103
10104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10105 # Files that config.status was made for.
10106 config_files="$ac_config_files"
10107 config_headers="$ac_config_headers"
10108 config_commands="$ac_config_commands"
10109
10110 _ACEOF
10111
10112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10113 ac_cs_usage="\
10114 \`$as_me' instantiates files from templates according to the
10115 current configuration.
10116
10117 Usage: $0 [OPTION]... [FILE]...
10118
10119   -h, --help       print this help, then exit
10120   -V, --version    print version number and configuration settings, then exit
10121   -q, --quiet, --silent
10122                    do not print progress messages
10123   -d, --debug      don't remove temporary files
10124       --recheck    update $as_me by reconfiguring in the same conditions
10125       --file=FILE[:TEMPLATE]
10126                    instantiate the configuration file FILE
10127       --header=FILE[:TEMPLATE]
10128                    instantiate the configuration header FILE
10129
10130 Configuration files:
10131 $config_files
10132
10133 Configuration headers:
10134 $config_headers
10135
10136 Configuration commands:
10137 $config_commands
10138
10139 Report bugs to <bug-autoconf@gnu.org>."
10140
10141 _ACEOF
10142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10143 ac_cs_version="\\
10144 lcr config.status 1.3
10145 configured by $0, generated by GNU Autoconf 2.63,
10146   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10147
10148 Copyright (C) 2008 Free Software Foundation, Inc.
10149 This config.status script is free software; the Free Software Foundation
10150 gives unlimited permission to copy, distribute and modify it."
10151
10152 ac_pwd='$ac_pwd'
10153 srcdir='$srcdir'
10154 INSTALL='$INSTALL'
10155 AWK='$AWK'
10156 test -n "\$AWK" || AWK=awk
10157 _ACEOF
10158
10159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10160 # The default lists apply if the user does not specify any file.
10161 ac_need_defaults=:
10162 while test $# != 0
10163 do
10164   case $1 in
10165   --*=*)
10166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10167     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10168     ac_shift=:
10169     ;;
10170   *)
10171     ac_option=$1
10172     ac_optarg=$2
10173     ac_shift=shift
10174     ;;
10175   esac
10176
10177   case $ac_option in
10178   # Handling of the options.
10179   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10180     ac_cs_recheck=: ;;
10181   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10182     $as_echo "$ac_cs_version"; exit ;;
10183   --debug | --debu | --deb | --de | --d | -d )
10184     debug=: ;;
10185   --file | --fil | --fi | --f )
10186     $ac_shift
10187     case $ac_optarg in
10188     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10189     esac
10190     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10191     ac_need_defaults=false;;
10192   --header | --heade | --head | --hea )
10193     $ac_shift
10194     case $ac_optarg in
10195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10196     esac
10197     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10198     ac_need_defaults=false;;
10199   --he | --h)
10200     # Conflict between --help and --header
10201     { $as_echo "$as_me: error: ambiguous option: $1
10202 Try \`$0 --help' for more information." >&2
10203    { (exit 1); exit 1; }; };;
10204   --help | --hel | -h )
10205     $as_echo "$ac_cs_usage"; exit ;;
10206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10207   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10208     ac_cs_silent=: ;;
10209
10210   # This is an error.
10211   -*) { $as_echo "$as_me: error: unrecognized option: $1
10212 Try \`$0 --help' for more information." >&2
10213    { (exit 1); exit 1; }; } ;;
10214
10215   *) ac_config_targets="$ac_config_targets $1"
10216      ac_need_defaults=false ;;
10217
10218   esac
10219   shift
10220 done
10221
10222 ac_configure_extra_args=
10223
10224 if $ac_cs_silent; then
10225   exec 6>/dev/null
10226   ac_configure_extra_args="$ac_configure_extra_args --silent"
10227 fi
10228
10229 _ACEOF
10230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10231 if \$ac_cs_recheck; then
10232   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10233   shift
10234   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10235   CONFIG_SHELL='$SHELL'
10236   export CONFIG_SHELL
10237   exec "\$@"
10238 fi
10239
10240 _ACEOF
10241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10242 exec 5>>config.log
10243 {
10244   echo
10245   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10246 ## Running $as_me. ##
10247 _ASBOX
10248   $as_echo "$ac_log"
10249 } >&5
10250
10251 _ACEOF
10252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10253 #
10254 # INIT-COMMANDS
10255 #
10256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10257
10258 _ACEOF
10259
10260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10261
10262 # Handling of arguments.
10263 for ac_config_target in $ac_config_targets
10264 do
10265   case $ac_config_target in
10266     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10267     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10268     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10269
10270   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10271 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10272    { (exit 1); exit 1; }; };;
10273   esac
10274 done
10275
10276
10277 # If the user did not use the arguments to specify the items to instantiate,
10278 # then the envvar interface is used.  Set only those that are not.
10279 # We use the long form for the default assignment because of an extremely
10280 # bizarre bug on SunOS 4.1.3.
10281 if $ac_need_defaults; then
10282   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10283   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10284   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10285 fi
10286
10287 # Have a temporary directory for convenience.  Make it in the build tree
10288 # simply because there is no reason against having it here, and in addition,
10289 # creating and moving files from /tmp can sometimes cause problems.
10290 # Hook for its removal unless debugging.
10291 # Note that there is a small window in which the directory will not be cleaned:
10292 # after its creation but before its name has been assigned to `$tmp'.
10293 $debug ||
10294 {
10295   tmp=
10296   trap 'exit_status=$?
10297   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10298 ' 0
10299   trap '{ (exit 1); exit 1; }' 1 2 13 15
10300 }
10301 # Create a (secure) tmp directory for tmp files.
10302
10303 {
10304   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10305   test -n "$tmp" && test -d "$tmp"
10306 }  ||
10307 {
10308   tmp=./conf$$-$RANDOM
10309   (umask 077 && mkdir "$tmp")
10310 } ||
10311 {
10312    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10313    { (exit 1); exit 1; }
10314 }
10315
10316 # Set up the scripts for CONFIG_FILES section.
10317 # No need to generate them if there are no CONFIG_FILES.
10318 # This happens for instance with `./config.status config.h'.
10319 if test -n "$CONFIG_FILES"; then
10320
10321
10322 ac_cr='\r'
10323 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10324 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10325   ac_cs_awk_cr='\\r'
10326 else
10327   ac_cs_awk_cr=$ac_cr
10328 fi
10329
10330 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10331 _ACEOF
10332
10333
10334 {
10335   echo "cat >conf$$subs.awk <<_ACEOF" &&
10336   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10337   echo "_ACEOF"
10338 } >conf$$subs.sh ||
10339   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10340 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10341    { (exit 1); exit 1; }; }
10342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10343 ac_delim='%!_!# '
10344 for ac_last_try in false false false false false :; do
10345   . ./conf$$subs.sh ||
10346     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10347 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10348    { (exit 1); exit 1; }; }
10349
10350   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10351   if test $ac_delim_n = $ac_delim_num; then
10352     break
10353   elif $ac_last_try; then
10354     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10355 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10356    { (exit 1); exit 1; }; }
10357   else
10358     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10359   fi
10360 done
10361 rm -f conf$$subs.sh
10362
10363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10365 _ACEOF
10366 sed -n '
10367 h
10368 s/^/S["/; s/!.*/"]=/
10369 p
10370 g
10371 s/^[^!]*!//
10372 :repl
10373 t repl
10374 s/'"$ac_delim"'$//
10375 t delim
10376 :nl
10377 h
10378 s/\(.\{148\}\).*/\1/
10379 t more1
10380 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10381 p
10382 n
10383 b repl
10384 :more1
10385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10386 p
10387 g
10388 s/.\{148\}//
10389 t nl
10390 :delim
10391 h
10392 s/\(.\{148\}\).*/\1/
10393 t more2
10394 s/["\\]/\\&/g; s/^/"/; s/$/"/
10395 p
10396 b
10397 :more2
10398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10399 p
10400 g
10401 s/.\{148\}//
10402 t delim
10403 ' <conf$$subs.awk | sed '
10404 /^[^""]/{
10405   N
10406   s/\n//
10407 }
10408 ' >>$CONFIG_STATUS || ac_write_fail=1
10409 rm -f conf$$subs.awk
10410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10411 _ACAWK
10412 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10413   for (key in S) S_is_set[key] = 1
10414   FS = "\a"
10415
10416 }
10417 {
10418   line = $ 0
10419   nfields = split(line, field, "@")
10420   substed = 0
10421   len = length(field[1])
10422   for (i = 2; i < nfields; i++) {
10423     key = field[i]
10424     keylen = length(key)
10425     if (S_is_set[key]) {
10426       value = S[key]
10427       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10428       len += length(value) + length(field[++i])
10429       substed = 1
10430     } else
10431       len += 1 + keylen
10432   }
10433
10434   print line
10435 }
10436
10437 _ACAWK
10438 _ACEOF
10439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10440 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10441   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10442 else
10443   cat
10444 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10445   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10446 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10447    { (exit 1); exit 1; }; }
10448 _ACEOF
10449
10450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10452 # trailing colons and then remove the whole line if VPATH becomes empty
10453 # (actually we leave an empty line to preserve line numbers).
10454 if test "x$srcdir" = x.; then
10455   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10456 s/:*\$(srcdir):*/:/
10457 s/:*\${srcdir}:*/:/
10458 s/:*@srcdir@:*/:/
10459 s/^\([^=]*=[     ]*\):*/\1/
10460 s/:*$//
10461 s/^[^=]*=[       ]*$//
10462 }'
10463 fi
10464
10465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10466 fi # test -n "$CONFIG_FILES"
10467
10468 # Set up the scripts for CONFIG_HEADERS section.
10469 # No need to generate them if there are no CONFIG_HEADERS.
10470 # This happens for instance with `./config.status Makefile'.
10471 if test -n "$CONFIG_HEADERS"; then
10472 cat >"$tmp/defines.awk" <<\_ACAWK ||
10473 BEGIN {
10474 _ACEOF
10475
10476 # Transform confdefs.h into an awk script `defines.awk', embedded as
10477 # here-document in config.status, that substitutes the proper values into
10478 # config.h.in to produce config.h.
10479
10480 # Create a delimiter string that does not exist in confdefs.h, to ease
10481 # handling of long lines.
10482 ac_delim='%!_!# '
10483 for ac_last_try in false false :; do
10484   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10485   if test -z "$ac_t"; then
10486     break
10487   elif $ac_last_try; then
10488     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10489 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10490    { (exit 1); exit 1; }; }
10491   else
10492     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10493   fi
10494 done
10495
10496 # For the awk script, D is an array of macro values keyed by name,
10497 # likewise P contains macro parameters if any.  Preserve backslash
10498 # newline sequences.
10499
10500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10501 sed -n '
10502 s/.\{148\}/&'"$ac_delim"'/g
10503 t rset
10504 :rset
10505 s/^[     ]*#[    ]*define[       ][      ]*/ /
10506 t def
10507 d
10508 :def
10509 s/\\$//
10510 t bsnl
10511 s/["\\]/\\&/g
10512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10513 D["\1"]=" \3"/p
10514 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10515 d
10516 :bsnl
10517 s/["\\]/\\&/g
10518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10519 D["\1"]=" \3\\\\\\n"\\/p
10520 t cont
10521 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10522 t cont
10523 d
10524 :cont
10525 n
10526 s/.\{148\}/&'"$ac_delim"'/g
10527 t clear
10528 :clear
10529 s/\\$//
10530 t bsnlc
10531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10532 d
10533 :bsnlc
10534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10535 b cont
10536 ' <confdefs.h | sed '
10537 s/'"$ac_delim"'/"\\\
10538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10539
10540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10541   for (key in D) D_is_set[key] = 1
10542   FS = "\a"
10543 }
10544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10545   line = \$ 0
10546   split(line, arg, " ")
10547   if (arg[1] == "#") {
10548     defundef = arg[2]
10549     mac1 = arg[3]
10550   } else {
10551     defundef = substr(arg[1], 2)
10552     mac1 = arg[2]
10553   }
10554   split(mac1, mac2, "(") #)
10555   macro = mac2[1]
10556   prefix = substr(line, 1, index(line, defundef) - 1)
10557   if (D_is_set[macro]) {
10558     # Preserve the white space surrounding the "#".
10559     print prefix "define", macro P[macro] D[macro]
10560     next
10561   } else {
10562     # Replace #undef with comments.  This is necessary, for example,
10563     # in the case of _POSIX_SOURCE, which is predefined and required
10564     # on some systems where configure will not decide to define it.
10565     if (defundef == "undef") {
10566       print "/*", prefix defundef, macro, "*/"
10567       next
10568     }
10569   }
10570 }
10571 { print }
10572 _ACAWK
10573 _ACEOF
10574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10575   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10576 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10577    { (exit 1); exit 1; }; }
10578 fi # test -n "$CONFIG_HEADERS"
10579
10580
10581 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10582 shift
10583 for ac_tag
10584 do
10585   case $ac_tag in
10586   :[FHLC]) ac_mode=$ac_tag; continue;;
10587   esac
10588   case $ac_mode$ac_tag in
10589   :[FHL]*:*);;
10590   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10591 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10592    { (exit 1); exit 1; }; };;
10593   :[FH]-) ac_tag=-:-;;
10594   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10595   esac
10596   ac_save_IFS=$IFS
10597   IFS=:
10598   set x $ac_tag
10599   IFS=$ac_save_IFS
10600   shift
10601   ac_file=$1
10602   shift
10603
10604   case $ac_mode in
10605   :L) ac_source=$1;;
10606   :[FH])
10607     ac_file_inputs=
10608     for ac_f
10609     do
10610       case $ac_f in
10611       -) ac_f="$tmp/stdin";;
10612       *) # Look for the file first in the build tree, then in the source tree
10613          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10614          # because $ac_f cannot contain `:'.
10615          test -f "$ac_f" ||
10616            case $ac_f in
10617            [\\/$]*) false;;
10618            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10619            esac ||
10620            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10621 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10622    { (exit 1); exit 1; }; };;
10623       esac
10624       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10625       ac_file_inputs="$ac_file_inputs '$ac_f'"
10626     done
10627
10628     # Let's still pretend it is `configure' which instantiates (i.e., don't
10629     # use $as_me), people would be surprised to read:
10630     #    /* config.h.  Generated by config.status.  */
10631     configure_input='Generated from '`
10632           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10633         `' by configure.'
10634     if test x"$ac_file" != x-; then
10635       configure_input="$ac_file.  $configure_input"
10636       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10637 $as_echo "$as_me: creating $ac_file" >&6;}
10638     fi
10639     # Neutralize special characters interpreted by sed in replacement strings.
10640     case $configure_input in #(
10641     *\&* | *\|* | *\\* )
10642        ac_sed_conf_input=`$as_echo "$configure_input" |
10643        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10644     *) ac_sed_conf_input=$configure_input;;
10645     esac
10646
10647     case $ac_tag in
10648     *:-:* | *:-) cat >"$tmp/stdin" \
10649       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10650 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10651    { (exit 1); exit 1; }; } ;;
10652     esac
10653     ;;
10654   esac
10655
10656   ac_dir=`$as_dirname -- "$ac_file" ||
10657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10658          X"$ac_file" : 'X\(//\)[^/]' \| \
10659          X"$ac_file" : 'X\(//\)$' \| \
10660          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10661 $as_echo X"$ac_file" |
10662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10663             s//\1/
10664             q
10665           }
10666           /^X\(\/\/\)[^/].*/{
10667             s//\1/
10668             q
10669           }
10670           /^X\(\/\/\)$/{
10671             s//\1/
10672             q
10673           }
10674           /^X\(\/\).*/{
10675             s//\1/
10676             q
10677           }
10678           s/.*/./; q'`
10679   { as_dir="$ac_dir"
10680   case $as_dir in #(
10681   -*) as_dir=./$as_dir;;
10682   esac
10683   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10684     as_dirs=
10685     while :; do
10686       case $as_dir in #(
10687       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10688       *) as_qdir=$as_dir;;
10689       esac
10690       as_dirs="'$as_qdir' $as_dirs"
10691       as_dir=`$as_dirname -- "$as_dir" ||
10692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10693          X"$as_dir" : 'X\(//\)[^/]' \| \
10694          X"$as_dir" : 'X\(//\)$' \| \
10695          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10696 $as_echo X"$as_dir" |
10697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10698             s//\1/
10699             q
10700           }
10701           /^X\(\/\/\)[^/].*/{
10702             s//\1/
10703             q
10704           }
10705           /^X\(\/\/\)$/{
10706             s//\1/
10707             q
10708           }
10709           /^X\(\/\).*/{
10710             s//\1/
10711             q
10712           }
10713           s/.*/./; q'`
10714       test -d "$as_dir" && break
10715     done
10716     test -z "$as_dirs" || eval "mkdir $as_dirs"
10717   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10718 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10719    { (exit 1); exit 1; }; }; }
10720   ac_builddir=.
10721
10722 case "$ac_dir" in
10723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10724 *)
10725   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10726   # A ".." for each directory in $ac_dir_suffix.
10727   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10728   case $ac_top_builddir_sub in
10729   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10730   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10731   esac ;;
10732 esac
10733 ac_abs_top_builddir=$ac_pwd
10734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10735 # for backward compatibility:
10736 ac_top_builddir=$ac_top_build_prefix
10737
10738 case $srcdir in
10739   .)  # We are building in place.
10740     ac_srcdir=.
10741     ac_top_srcdir=$ac_top_builddir_sub
10742     ac_abs_top_srcdir=$ac_pwd ;;
10743   [\\/]* | ?:[\\/]* )  # Absolute name.
10744     ac_srcdir=$srcdir$ac_dir_suffix;
10745     ac_top_srcdir=$srcdir
10746     ac_abs_top_srcdir=$srcdir ;;
10747   *) # Relative name.
10748     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10749     ac_top_srcdir=$ac_top_build_prefix$srcdir
10750     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10751 esac
10752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10753
10754
10755   case $ac_mode in
10756   :F)
10757   #
10758   # CONFIG_FILE
10759   #
10760
10761   case $INSTALL in
10762   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10763   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10764   esac
10765 _ACEOF
10766
10767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10768 # If the template does not know about datarootdir, expand it.
10769 # FIXME: This hack should be removed a few years after 2.60.
10770 ac_datarootdir_hack=; ac_datarootdir_seen=
10771
10772 ac_sed_dataroot='
10773 /datarootdir/ {
10774   p
10775   q
10776 }
10777 /@datadir@/p
10778 /@docdir@/p
10779 /@infodir@/p
10780 /@localedir@/p
10781 /@mandir@/p
10782 '
10783 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10784 *datarootdir*) ac_datarootdir_seen=yes;;
10785 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10786   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10787 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10788 _ACEOF
10789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10790   ac_datarootdir_hack='
10791   s&@datadir@&$datadir&g
10792   s&@docdir@&$docdir&g
10793   s&@infodir@&$infodir&g
10794   s&@localedir@&$localedir&g
10795   s&@mandir@&$mandir&g
10796     s&\\\${datarootdir}&$datarootdir&g' ;;
10797 esac
10798 _ACEOF
10799
10800 # Neutralize VPATH when `$srcdir' = `.'.
10801 # Shell code in configure.ac might set extrasub.
10802 # FIXME: do we really want to maintain this feature?
10803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10804 ac_sed_extra="$ac_vpsub
10805 $extrasub
10806 _ACEOF
10807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10808 :t
10809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10810 s|@configure_input@|$ac_sed_conf_input|;t t
10811 s&@top_builddir@&$ac_top_builddir_sub&;t t
10812 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10813 s&@srcdir@&$ac_srcdir&;t t
10814 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10815 s&@top_srcdir@&$ac_top_srcdir&;t t
10816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10817 s&@builddir@&$ac_builddir&;t t
10818 s&@abs_builddir@&$ac_abs_builddir&;t t
10819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10820 s&@INSTALL@&$ac_INSTALL&;t t
10821 $ac_datarootdir_hack
10822 "
10823 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10824   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10825 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10826    { (exit 1); exit 1; }; }
10827
10828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10829   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10830   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10831   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10832 which seems to be undefined.  Please make sure it is defined." >&5
10833 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10834 which seems to be undefined.  Please make sure it is defined." >&2;}
10835
10836   rm -f "$tmp/stdin"
10837   case $ac_file in
10838   -) cat "$tmp/out" && rm -f "$tmp/out";;
10839   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10840   esac \
10841   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10842 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10843    { (exit 1); exit 1; }; }
10844  ;;
10845   :H)
10846   #
10847   # CONFIG_HEADER
10848   #
10849   if test x"$ac_file" != x-; then
10850     {
10851       $as_echo "/* $configure_input  */" \
10852       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10853     } >"$tmp/config.h" \
10854       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10855 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10856    { (exit 1); exit 1; }; }
10857     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10858       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10859 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10860     else
10861       rm -f "$ac_file"
10862       mv "$tmp/config.h" "$ac_file" \
10863         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10864 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10865    { (exit 1); exit 1; }; }
10866     fi
10867   else
10868     $as_echo "/* $configure_input  */" \
10869       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10870       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10871 $as_echo "$as_me: error: could not create -" >&2;}
10872    { (exit 1); exit 1; }; }
10873   fi
10874 # Compute "$ac_file"'s index in $config_headers.
10875 _am_stamp_count=1
10876 for _am_header in $config_headers :; do
10877   case $_am_header in
10878     "$ac_file" | "$ac_file":* )
10879       break ;;
10880     * )
10881       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10882   esac
10883 done
10884 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886          X"$ac_file" : 'X\(//\)[^/]' \| \
10887          X"$ac_file" : 'X\(//\)$' \| \
10888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10889 $as_echo X"$ac_file" |
10890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10891             s//\1/
10892             q
10893           }
10894           /^X\(\/\/\)[^/].*/{
10895             s//\1/
10896             q
10897           }
10898           /^X\(\/\/\)$/{
10899             s//\1/
10900             q
10901           }
10902           /^X\(\/\).*/{
10903             s//\1/
10904             q
10905           }
10906           s/.*/./; q'`/stamp-h$_am_stamp_count
10907  ;;
10908
10909   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10910 $as_echo "$as_me: executing $ac_file commands" >&6;}
10911  ;;
10912   esac
10913
10914
10915   case $ac_file$ac_mode in
10916     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10917   # Strip MF so we end up with the name of the file.
10918   mf=`echo "$mf" | sed -e 's/:.*$//'`
10919   # Check whether this is an Automake generated Makefile or not.
10920   # We used to match only the files named `Makefile.in', but
10921   # some people rename them; so instead we look at the file content.
10922   # Grep'ing the first line is not enough: some people post-process
10923   # each Makefile.in and add a new line on top of each file to say so.
10924   # So let's grep whole file.
10925   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10926     dirpart=`$as_dirname -- "$mf" ||
10927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10928          X"$mf" : 'X\(//\)[^/]' \| \
10929          X"$mf" : 'X\(//\)$' \| \
10930          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10931 $as_echo X"$mf" |
10932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10933             s//\1/
10934             q
10935           }
10936           /^X\(\/\/\)[^/].*/{
10937             s//\1/
10938             q
10939           }
10940           /^X\(\/\/\)$/{
10941             s//\1/
10942             q
10943           }
10944           /^X\(\/\).*/{
10945             s//\1/
10946             q
10947           }
10948           s/.*/./; q'`
10949   else
10950     continue
10951   fi
10952   # Extract the definition of DEPDIR, am__include, and am__quote
10953   # from the Makefile without running `make'.
10954   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10955   test -z "$DEPDIR" && continue
10956   am__include=`sed -n 's/^am__include = //p' < "$mf"`
10957   test -z "am__include" && continue
10958   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10959   # When using ansi2knr, U may be empty or an underscore; expand it
10960   U=`sed -n 's/^U = //p' < "$mf"`
10961   # Find all dependency output files, they are included files with
10962   # $(DEPDIR) in their names.  We invoke sed twice because it is the
10963   # simplest approach to changing $(DEPDIR) to its actual value in the
10964   # expansion.
10965   for file in `sed -n "
10966     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10967        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10968     # Make sure the directory exists.
10969     test -f "$dirpart/$file" && continue
10970     fdir=`$as_dirname -- "$file" ||
10971 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10972          X"$file" : 'X\(//\)[^/]' \| \
10973          X"$file" : 'X\(//\)$' \| \
10974          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10975 $as_echo X"$file" |
10976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10977             s//\1/
10978             q
10979           }
10980           /^X\(\/\/\)[^/].*/{
10981             s//\1/
10982             q
10983           }
10984           /^X\(\/\/\)$/{
10985             s//\1/
10986             q
10987           }
10988           /^X\(\/\).*/{
10989             s//\1/
10990             q
10991           }
10992           s/.*/./; q'`
10993     { as_dir=$dirpart/$fdir
10994   case $as_dir in #(
10995   -*) as_dir=./$as_dir;;
10996   esac
10997   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10998     as_dirs=
10999     while :; do
11000       case $as_dir in #(
11001       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11002       *) as_qdir=$as_dir;;
11003       esac
11004       as_dirs="'$as_qdir' $as_dirs"
11005       as_dir=`$as_dirname -- "$as_dir" ||
11006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11007          X"$as_dir" : 'X\(//\)[^/]' \| \
11008          X"$as_dir" : 'X\(//\)$' \| \
11009          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11010 $as_echo X"$as_dir" |
11011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11012             s//\1/
11013             q
11014           }
11015           /^X\(\/\/\)[^/].*/{
11016             s//\1/
11017             q
11018           }
11019           /^X\(\/\/\)$/{
11020             s//\1/
11021             q
11022           }
11023           /^X\(\/\).*/{
11024             s//\1/
11025             q
11026           }
11027           s/.*/./; q'`
11028       test -d "$as_dir" && break
11029     done
11030     test -z "$as_dirs" || eval "mkdir $as_dirs"
11031   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11032 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11033    { (exit 1); exit 1; }; }; }
11034     # echo "creating $dirpart/$file"
11035     echo '# dummy' > "$dirpart/$file"
11036   done
11037 done
11038  ;;
11039
11040   esac
11041 done # for ac_tag
11042
11043
11044 { (exit 0); exit 0; }
11045 _ACEOF
11046 chmod +x $CONFIG_STATUS
11047 ac_clean_files=$ac_clean_files_save
11048
11049 test $ac_write_fail = 0 ||
11050   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11051 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11052    { (exit 1); exit 1; }; }
11053
11054
11055 # configure is writing to config.log, and then calls config.status.
11056 # config.status does its own redirection, appending to config.log.
11057 # Unfortunately, on DOS this fails, as config.log is still kept open
11058 # by configure, so config.status won't be able to write to it; its
11059 # output is simply discarded.  So we exec the FD to /dev/null,
11060 # effectively closing config.log, so it can be properly (re)opened and
11061 # appended to by config.status.  When coming back to configure, we
11062 # need to make the FD available again.
11063 if test "$no_create" != yes; then
11064   ac_cs_success=:
11065   ac_config_status_args=
11066   test "$silent" = yes &&
11067     ac_config_status_args="$ac_config_status_args --quiet"
11068   exec 5>/dev/null
11069   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11070   exec 5>>config.log
11071   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11072   # would make configure fail if this is the last instruction.
11073   $ac_cs_success || { (exit 1); exit 1; }
11074 fi
11075 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11076   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11077 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11078 fi
11079