62e9cd7281be8845e5244e225f0ea1cb804d00b9
[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.7.
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.7'
600 PACKAGE_STRING='lcr 1.7'
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 ENABLE_SS5_FALSE
644 ENABLE_SS5_TRUE
645 ENABLE_GSM_FALSE
646 ENABLE_GSM_TRUE
647 LIBCRYPTO
648 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
649 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
655 CXX
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
670 AWK
671 mkdir_p
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 EGREP
687 GREP
688 CPP
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_dependency_tracking
737 with_asterisk
738 with_ssl
739 with_gsm
740 with_ss5
741 '
742       ac_precious_vars='build_alias
743 host_alias
744 target_alias
745 CC
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP
751 CXX
752 CXXFLAGS
753 CCC'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808   # If the previous option needs an argument, assign it.
809   if test -n "$ac_prev"; then
810     eval $ac_prev=\$ac_option
811     ac_prev=
812     continue
813   fi
814
815   case $ac_option in
816   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817   *)    ac_optarg=yes ;;
818   esac
819
820   # Accept the important Cygnus configure options, so we can diagnose typos.
821
822   case $ac_dashdash$ac_option in
823   --)
824     ac_dashdash=yes ;;
825
826   -bindir | --bindir | --bindi | --bind | --bin | --bi)
827     ac_prev=bindir ;;
828   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829     bindir=$ac_optarg ;;
830
831   -build | --build | --buil | --bui | --bu)
832     ac_prev=build_alias ;;
833   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834     build_alias=$ac_optarg ;;
835
836   -cache-file | --cache-file | --cache-fil | --cache-fi \
837   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838     ac_prev=cache_file ;;
839   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841     cache_file=$ac_optarg ;;
842
843   --config-cache | -C)
844     cache_file=config.cache ;;
845
846   -datadir | --datadir | --datadi | --datad)
847     ac_prev=datadir ;;
848   -datadir=* | --datadir=* | --datadi=* | --datad=*)
849     datadir=$ac_optarg ;;
850
851   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852   | --dataroo | --dataro | --datar)
853     ac_prev=datarootdir ;;
854   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856     datarootdir=$ac_optarg ;;
857
858   -disable-* | --disable-*)
859     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860     # Reject names that are not valid shell variable names.
861     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
863    { (exit 1); exit 1; }; }
864     ac_useropt_orig=$ac_useropt
865     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866     case $ac_user_opts in
867       *"
868 "enable_$ac_useropt"
869 "*) ;;
870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871          ac_unrecognized_sep=', ';;
872     esac
873     eval enable_$ac_useropt=no ;;
874
875   -docdir | --docdir | --docdi | --doc | --do)
876     ac_prev=docdir ;;
877   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878     docdir=$ac_optarg ;;
879
880   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881     ac_prev=dvidir ;;
882   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883     dvidir=$ac_optarg ;;
884
885   -enable-* | --enable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
890    { (exit 1); exit 1; }; }
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=\$ac_optarg ;;
901
902   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904   | --exec | --exe | --ex)
905     ac_prev=exec_prefix ;;
906   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908   | --exec=* | --exe=* | --ex=*)
909     exec_prefix=$ac_optarg ;;
910
911   -gas | --gas | --ga | --g)
912     # Obsolete; use --with-gas.
913     with_gas=yes ;;
914
915   -help | --help | --hel | --he | -h)
916     ac_init_help=long ;;
917   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918     ac_init_help=recursive ;;
919   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920     ac_init_help=short ;;
921
922   -host | --host | --hos | --ho)
923     ac_prev=host_alias ;;
924   -host=* | --host=* | --hos=* | --ho=*)
925     host_alias=$ac_optarg ;;
926
927   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928     ac_prev=htmldir ;;
929   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930   | --ht=*)
931     htmldir=$ac_optarg ;;
932
933   -includedir | --includedir | --includedi | --included | --include \
934   | --includ | --inclu | --incl | --inc)
935     ac_prev=includedir ;;
936   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937   | --includ=* | --inclu=* | --incl=* | --inc=*)
938     includedir=$ac_optarg ;;
939
940   -infodir | --infodir | --infodi | --infod | --info | --inf)
941     ac_prev=infodir ;;
942   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943     infodir=$ac_optarg ;;
944
945   -libdir | --libdir | --libdi | --libd)
946     ac_prev=libdir ;;
947   -libdir=* | --libdir=* | --libdi=* | --libd=*)
948     libdir=$ac_optarg ;;
949
950   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951   | --libexe | --libex | --libe)
952     ac_prev=libexecdir ;;
953   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954   | --libexe=* | --libex=* | --libe=*)
955     libexecdir=$ac_optarg ;;
956
957   -localedir | --localedir | --localedi | --localed | --locale)
958     ac_prev=localedir ;;
959   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960     localedir=$ac_optarg ;;
961
962   -localstatedir | --localstatedir | --localstatedi | --localstated \
963   | --localstate | --localstat | --localsta | --localst | --locals)
964     ac_prev=localstatedir ;;
965   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967     localstatedir=$ac_optarg ;;
968
969   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970     ac_prev=mandir ;;
971   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972     mandir=$ac_optarg ;;
973
974   -nfp | --nfp | --nf)
975     # Obsolete; use --without-fp.
976     with_fp=no ;;
977
978   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979   | --no-cr | --no-c | -n)
980     no_create=yes ;;
981
982   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984     no_recursion=yes ;;
985
986   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988   | --oldin | --oldi | --old | --ol | --o)
989     ac_prev=oldincludedir ;;
990   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993     oldincludedir=$ac_optarg ;;
994
995   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996     ac_prev=prefix ;;
997   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998     prefix=$ac_optarg ;;
999
1000   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001   | --program-pre | --program-pr | --program-p)
1002     ac_prev=program_prefix ;;
1003   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005     program_prefix=$ac_optarg ;;
1006
1007   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008   | --program-suf | --program-su | --program-s)
1009     ac_prev=program_suffix ;;
1010   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012     program_suffix=$ac_optarg ;;
1013
1014   -program-transform-name | --program-transform-name \
1015   | --program-transform-nam | --program-transform-na \
1016   | --program-transform-n | --program-transform- \
1017   | --program-transform | --program-transfor \
1018   | --program-transfo | --program-transf \
1019   | --program-trans | --program-tran \
1020   | --progr-tra | --program-tr | --program-t)
1021     ac_prev=program_transform_name ;;
1022   -program-transform-name=* | --program-transform-name=* \
1023   | --program-transform-nam=* | --program-transform-na=* \
1024   | --program-transform-n=* | --program-transform-=* \
1025   | --program-transform=* | --program-transfor=* \
1026   | --program-transfo=* | --program-transf=* \
1027   | --program-trans=* | --program-tran=* \
1028   | --progr-tra=* | --program-tr=* | --program-t=*)
1029     program_transform_name=$ac_optarg ;;
1030
1031   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032     ac_prev=pdfdir ;;
1033   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034     pdfdir=$ac_optarg ;;
1035
1036   -psdir | --psdir | --psdi | --psd | --ps)
1037     ac_prev=psdir ;;
1038   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039     psdir=$ac_optarg ;;
1040
1041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042   | -silent | --silent | --silen | --sile | --sil)
1043     silent=yes ;;
1044
1045   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046     ac_prev=sbindir ;;
1047   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048   | --sbi=* | --sb=*)
1049     sbindir=$ac_optarg ;;
1050
1051   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053   | --sharedst | --shareds | --shared | --share | --shar \
1054   | --sha | --sh)
1055     ac_prev=sharedstatedir ;;
1056   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059   | --sha=* | --sh=*)
1060     sharedstatedir=$ac_optarg ;;
1061
1062   -site | --site | --sit)
1063     ac_prev=site ;;
1064   -site=* | --site=* | --sit=*)
1065     site=$ac_optarg ;;
1066
1067   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068     ac_prev=srcdir ;;
1069   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070     srcdir=$ac_optarg ;;
1071
1072   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073   | --syscon | --sysco | --sysc | --sys | --sy)
1074     ac_prev=sysconfdir ;;
1075   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077     sysconfdir=$ac_optarg ;;
1078
1079   -target | --target | --targe | --targ | --tar | --ta | --t)
1080     ac_prev=target_alias ;;
1081   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082     target_alias=$ac_optarg ;;
1083
1084   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085     verbose=yes ;;
1086
1087   -version | --version | --versio | --versi | --vers | -V)
1088     ac_init_version=: ;;
1089
1090   -with-* | --with-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1112    { (exit 1); exit 1; }; }
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval with_$ac_useropt=no ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129   | --x-incl | --x-inc | --x-in | --x-i)
1130     ac_prev=x_includes ;;
1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133     x_includes=$ac_optarg ;;
1134
1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137     ac_prev=x_libraries ;;
1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140     x_libraries=$ac_optarg ;;
1141
1142   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144    { (exit 1); exit 1; }; }
1145     ;;
1146
1147   *=*)
1148     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152    { (exit 1); exit 1; }; }
1153     eval $ac_envvar=\$ac_optarg
1154     export $ac_envvar ;;
1155
1156   *)
1157     # FIXME: should be removed in autoconf 3.0.
1158     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162     ;;
1163
1164   esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1170    { (exit 1); exit 1; }; }
1171 fi
1172
1173 if test -n "$ac_unrecognized_opts"; then
1174   case $enable_option_checking in
1175     no) ;;
1176     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1177    { (exit 1); exit 1; }; } ;;
1178     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179   esac
1180 fi
1181
1182 # Check all directory arguments for consistency.
1183 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184                 datadir sysconfdir sharedstatedir localstatedir includedir \
1185                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186                 libdir localedir mandir
1187 do
1188   eval ac_val=\$$ac_var
1189   # Remove trailing slashes.
1190   case $ac_val in
1191     */ )
1192       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193       eval $ac_var=\$ac_val;;
1194   esac
1195   # Be sure to have absolute directory names.
1196   case $ac_val in
1197     [\\/$]* | ?:[\\/]* )  continue;;
1198     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199   esac
1200   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1201    { (exit 1); exit 1; }; }
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213   if test "x$build_alias" = x; then
1214     cross_compiling=maybe
1215     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216     If a cross compiler is detected then cross compile mode will be used." >&2
1217   elif test "x$build_alias" != "x$host_alias"; then
1218     cross_compiling=yes
1219   fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1232    { (exit 1); exit 1; }; }
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1235    { (exit 1); exit 1; }; }
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$as_myself" : 'X\(//\)[^/]' \| \
1245          X"$as_myself" : 'X\(//\)$' \| \
1246          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1280    { (exit 1); exit 1; }; }
1281         pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284   srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_env_${ac_var}_value=\$${ac_var}
1295   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303   # Omit some internal or obsolete options to make the list less imposing.
1304   # This message is too long to be a string in the A/UX 3.1 sh.
1305   cat <<_ACEOF
1306 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316   -h, --help              display this help and exit
1317       --help=short        display options specific to this package
1318       --help=recursive    display the short help of all the included packages
1319   -V, --version           display version information and exit
1320   -q, --quiet, --silent   do not print \`checking...' messages
1321       --cache-file=FILE   cache test results in FILE [disabled]
1322   -C, --config-cache      alias for \`--cache-file=config.cache'
1323   -n, --no-create         do not create output files
1324       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327   --prefix=PREFIX         install architecture-independent files in PREFIX
1328                           [$ac_default_prefix]
1329   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                           [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340   --bindir=DIR            user executables [EPREFIX/bin]
1341   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1342   --libexecdir=DIR        program executables [EPREFIX/libexec]
1343   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1344   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1345   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1346   --libdir=DIR            object code libraries [EPREFIX/lib]
1347   --includedir=DIR        C header files [PREFIX/include]
1348   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1349   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1350   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1351   --infodir=DIR           info documentation [DATAROOTDIR/info]
1352   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1353   --mandir=DIR            man documentation [DATAROOTDIR/man]
1354   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1355   --htmldir=DIR           html documentation [DOCDIR]
1356   --dvidir=DIR            dvi documentation [DOCDIR]
1357   --pdfdir=DIR            pdf documentation [DOCDIR]
1358   --psdir=DIR             ps documentation [DOCDIR]
1359 _ACEOF
1360
1361   cat <<\_ACEOF
1362
1363 Program names:
1364   --program-prefix=PREFIX            prepend PREFIX to installed program names
1365   --program-suffix=SUFFIX            append SUFFIX to installed program names
1366   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371   case $ac_init_help in
1372      short | recursive ) echo "Configuration of lcr 1.7:";;
1373    esac
1374   cat <<\_ACEOF
1375
1376 Optional Features:
1377   --disable-option-checking  ignore unrecognized --enable/--with options
1378   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1379   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1380   --disable-dependency-tracking  speeds up one-time build
1381   --enable-dependency-tracking   do not reject slow dependency extractors
1382
1383 Optional Packages:
1384   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386   --with-asterisk         compile with built-in Asterisk channel driver
1387                           [default=check]
1388
1389   --with-ssl              compile with ssl support (libcrypto) [default=check]
1390
1391   --with-gsm              compile with OpenBSC support [default=check]
1392
1393   --with-ss5              compile with CCITT No. 5 support [default=no]
1394
1395
1396 Some influential environment variables:
1397   CC          C compiler command
1398   CFLAGS      C compiler flags
1399   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400               nonstandard directory <lib dir>
1401   LIBS        libraries to pass to the linker, e.g. -l<library>
1402   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403               you have headers in a nonstandard directory <include dir>
1404   CPP         C preprocessor
1405   CXX         C++ compiler command
1406   CXXFLAGS    C++ compiler flags
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 Report bugs to <andreas@eversberg.eu>.
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 lcr configure 1.7
1475 generated by GNU Autoconf 2.63
1476
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1487
1488 It was created by lcr $as_me 1.7, which was
1489 generated by GNU Autoconf 2.63.  Invocation command line was
1490
1491   $ $0 $@
1492
1493 _ACEOF
1494 exec 5>>config.log
1495 {
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1500
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1509
1510 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1511 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1514 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1515 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1516 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1517
1518 _ASUNAME
1519
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   $as_echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1528
1529 } >&5
1530
1531 cat >&5 <<_ACEOF
1532
1533
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1537
1538 _ACEOF
1539
1540
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1551 do
1552   for ac_arg
1553   do
1554     case $ac_arg in
1555     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557     | -silent | --silent | --silen | --sile | --sil)
1558       continue ;;
1559     *\'*)
1560       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561     esac
1562     case $ac_pass in
1563     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564     2)
1565       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566       if test $ac_must_keep_next = true; then
1567         ac_must_keep_next=false # Got value, back to normal.
1568       else
1569         case $ac_arg in
1570           *=* | --config-cache | -C | -disable-* | --disable-* \
1571           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573           | -with-* | --with-* | -without-* | --without-* | --x)
1574             case "$ac_configure_args0 " in
1575               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576             esac
1577             ;;
1578           -* ) ac_must_keep_next=true ;;
1579         esac
1580       fi
1581       ac_configure_args="$ac_configure_args '$ac_arg'"
1582       ;;
1583     esac
1584   done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log.  We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595   # Save into config.log some information that might help in debugging.
1596   {
1597     echo
1598
1599     cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604     echo
1605     # The following way of writing the cache mishandles newlines in values,
1606 (
1607   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608     eval ac_val=\$$ac_var
1609     case $ac_val in #(
1610     *${as_nl}*)
1611       case $ac_var in #(
1612       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1614       esac
1615       case $ac_var in #(
1616       _ | IFS | as_nl) ;; #(
1617       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618       *) $as_unset $ac_var ;;
1619       esac ;;
1620     esac
1621   done
1622   (set) 2>&1 |
1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624     *${as_nl}ac_space=\ *)
1625       sed -n \
1626         "s/'\''/'\''\\\\'\'''\''/g;
1627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628       ;; #(
1629     *)
1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631       ;;
1632     esac |
1633     sort
1634 )
1635     echo
1636
1637     cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642     echo
1643     for ac_var in $ac_subst_vars
1644     do
1645       eval ac_val=\$$ac_var
1646       case $ac_val in
1647       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648       esac
1649       $as_echo "$ac_var='\''$ac_val'\''"
1650     done | sort
1651     echo
1652
1653     if test -n "$ac_subst_files"; then
1654       cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659       echo
1660       for ac_var in $ac_subst_files
1661       do
1662         eval ac_val=\$$ac_var
1663         case $ac_val in
1664         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665         esac
1666         $as_echo "$ac_var='\''$ac_val'\''"
1667       done | sort
1668       echo
1669     fi
1670
1671     if test -s confdefs.h; then
1672       cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677       echo
1678       cat confdefs.h
1679       echo
1680     fi
1681     test "$ac_signal" != 0 &&
1682       $as_echo "$as_me: caught signal $ac_signal"
1683     $as_echo "$as_me: exit $exit_status"
1684   } >&5
1685   rm -f core *.core core.conftest.* &&
1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687     exit $exit_status
1688 ' 0
1689 for ac_signal in 1 2 13 15; do
1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1693
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1696
1697 # Predefined preprocessor variables.
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1722
1723
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1726 ac_site_file1=NONE
1727 ac_site_file2=NONE
1728 if test -n "$CONFIG_SITE"; then
1729   ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731   ac_site_file1=$prefix/share/config.site
1732   ac_site_file2=$prefix/etc/config.site
1733 else
1734   ac_site_file1=$ac_default_prefix/share/config.site
1735   ac_site_file2=$ac_default_prefix/etc/config.site
1736 fi
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1738 do
1739   test "x$ac_site_file" = xNONE && continue
1740   if test -r "$ac_site_file"; then
1741     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743     sed 's/^/| /' "$ac_site_file" >&5
1744     . "$ac_site_file"
1745   fi
1746 done
1747
1748 if test -r "$cache_file"; then
1749   # Some versions of bash will fail to source /dev/null (special
1750   # files actually), so we avoid doing that.
1751   if test -f "$cache_file"; then
1752     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1754     case $cache_file in
1755       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756       *)                      . "./$cache_file";;
1757     esac
1758   fi
1759 else
1760   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1762   >$cache_file
1763 fi
1764
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770   eval ac_new_set=\$ac_env_${ac_var}_set
1771   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772   eval ac_new_val=\$ac_env_${ac_var}_value
1773   case $ac_old_set,$ac_new_set in
1774     set,)
1775       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777       ac_cache_corrupted=: ;;
1778     ,set)
1779       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781       ac_cache_corrupted=: ;;
1782     ,);;
1783     *)
1784       if test "x$ac_old_val" != "x$ac_new_val"; then
1785         # differences in whitespace do not lead to failure.
1786         ac_old_val_w=`echo x $ac_old_val`
1787         ac_new_val_w=`echo x $ac_new_val`
1788         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791           ac_cache_corrupted=:
1792         else
1793           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795           eval $ac_var=\$ac_old_val
1796         fi
1797         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1798 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1799         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1801       fi;;
1802   esac
1803   # Pass precious variables to config.status.
1804   if test "$ac_new_set" = set; then
1805     case $ac_new_val in
1806     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807     *) ac_arg=$ac_var=$ac_new_val ;;
1808     esac
1809     case " $ac_configure_args " in
1810       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1811       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1812     esac
1813   fi
1814 done
1815 if $ac_cache_corrupted; then
1816   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849 ac_ext=c
1850 ac_cpp='$CPP $CPPFLAGS'
1851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854
1855
1856
1857
1858 ac_config_headers="$ac_config_headers config.h"
1859
1860
1861 # fix warnings from autoconf + automake
1862 ac_ext=c
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 $as_echo_n "checking for $ac_word... " >&6; }
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873   $as_echo_n "(cached) " >&6
1874 else
1875   if test -n "$CC"; then
1876   ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1885     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1886     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891 IFS=$as_save_IFS
1892
1893 fi
1894 fi
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1898 $as_echo "$CC" >&6; }
1899 else
1900   { $as_echo "$as_me:$LINENO: result: no" >&5
1901 $as_echo "no" >&6; }
1902 fi
1903
1904
1905 fi
1906 if test -z "$ac_cv_prog_CC"; then
1907   ac_ct_CC=$CC
1908   # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 $as_echo_n "checking for $ac_word... " >&6; }
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913   $as_echo_n "(cached) " >&6
1914 else
1915   if test -n "$ac_ct_CC"; then
1916   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923   for ac_exec_ext in '' $ac_executable_extensions; do
1924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1925     ac_cv_prog_ac_ct_CC="gcc"
1926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928   fi
1929 done
1930 done
1931 IFS=$as_save_IFS
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 $as_echo "$ac_ct_CC" >&6; }
1939 else
1940   { $as_echo "$as_me:$LINENO: result: no" >&5
1941 $as_echo "no" >&6; }
1942 fi
1943
1944   if test "x$ac_ct_CC" = x; then
1945     CC=""
1946   else
1947     case $cross_compiling:$ac_tool_warned in
1948 yes:)
1949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1951 ac_tool_warned=yes ;;
1952 esac
1953     CC=$ac_ct_CC
1954   fi
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 if test -z "$CC"; then
1960           if test -n "$ac_tool_prefix"; then
1961     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 $as_echo_n "checking for $ac_word... " >&6; }
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   $as_echo_n "(cached) " >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1978     ac_cv_prog_CC="${ac_tool_prefix}cc"
1979     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984 IFS=$as_save_IFS
1985
1986 fi
1987 fi
1988 CC=$ac_cv_prog_CC
1989 if test -n "$CC"; then
1990   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1991 $as_echo "$CC" >&6; }
1992 else
1993   { $as_echo "$as_me:$LINENO: result: no" >&5
1994 $as_echo "no" >&6; }
1995 fi
1996
1997
1998   fi
1999 fi
2000 if test -z "$CC"; then
2001   # Extract the first word of "cc", so it can be a program name with args.
2002 set dummy cc; ac_word=$2
2003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 $as_echo_n "checking for $ac_word... " >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   $as_echo_n "(cached) " >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011   ac_prog_rejected=no
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2019     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2020        ac_prog_rejected=yes
2021        continue
2022      fi
2023     ac_cv_prog_CC="cc"
2024     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 if test $ac_prog_rejected = yes; then
2032   # We found a bogon in the path, so make sure we never use it.
2033   set dummy $ac_cv_prog_CC
2034   shift
2035   if test $# != 0; then
2036     # We chose a different compiler from the bogus one.
2037     # However, it has the same basename, so the bogon will be chosen
2038     # first if we set CC to just the basename; use the full file name.
2039     shift
2040     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2041   fi
2042 fi
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2048 $as_echo "$CC" >&6; }
2049 else
2050   { $as_echo "$as_me:$LINENO: result: no" >&5
2051 $as_echo "no" >&6; }
2052 fi
2053
2054
2055 fi
2056 if test -z "$CC"; then
2057   if test -n "$ac_tool_prefix"; then
2058   for ac_prog in cl.exe
2059   do
2060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 $as_echo_n "checking for $ac_word... " >&6; }
2064 if test "${ac_cv_prog_CC+set}" = set; then
2065   $as_echo_n "(cached) " >&6
2066 else
2067   if test -n "$CC"; then
2068   ac_cv_prog_CC="$CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2078     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083 IFS=$as_save_IFS
2084
2085 fi
2086 fi
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2090 $as_echo "$CC" >&6; }
2091 else
2092   { $as_echo "$as_me:$LINENO: result: no" >&5
2093 $as_echo "no" >&6; }
2094 fi
2095
2096
2097     test -n "$CC" && break
2098   done
2099 fi
2100 if test -z "$CC"; then
2101   ac_ct_CC=$CC
2102   for ac_prog in cl.exe
2103 do
2104   # Extract the first word of "$ac_prog", so it can be a program name with args.
2105 set dummy $ac_prog; ac_word=$2
2106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 $as_echo_n "checking for $ac_word... " >&6; }
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109   $as_echo_n "(cached) " >&6
2110 else
2111   if test -n "$ac_ct_CC"; then
2112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119   for ac_exec_ext in '' $ac_executable_extensions; do
2120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121     ac_cv_prog_ac_ct_CC="$ac_prog"
2122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123     break 2
2124   fi
2125 done
2126 done
2127 IFS=$as_save_IFS
2128
2129 fi
2130 fi
2131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132 if test -n "$ac_ct_CC"; then
2133   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134 $as_echo "$ac_ct_CC" >&6; }
2135 else
2136   { $as_echo "$as_me:$LINENO: result: no" >&5
2137 $as_echo "no" >&6; }
2138 fi
2139
2140
2141   test -n "$ac_ct_CC" && break
2142 done
2143
2144   if test "x$ac_ct_CC" = x; then
2145     CC=""
2146   else
2147     case $cross_compiling:$ac_tool_warned in
2148 yes:)
2149 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2151 ac_tool_warned=yes ;;
2152 esac
2153     CC=$ac_ct_CC
2154   fi
2155 fi
2156
2157 fi
2158
2159
2160 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2163 See \`config.log' for more details." >&5
2164 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2165 See \`config.log' for more details." >&2;}
2166    { (exit 1); exit 1; }; }; }
2167
2168 # Provide some information about the compiler.
2169 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2170 set X $ac_compile
2171 ac_compiler=$2
2172 { (ac_try="$ac_compiler --version >&5"
2173 case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2178 $as_echo "$ac_try_echo") >&5
2179   (eval "$ac_compiler --version >&5") 2>&5
2180   ac_status=$?
2181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (ac_try="$ac_compiler -v >&5"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2189 $as_echo "$ac_try_echo") >&5
2190   (eval "$ac_compiler -v >&5") 2>&5
2191   ac_status=$?
2192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }
2194 { (ac_try="$ac_compiler -V >&5"
2195 case "(($ac_try" in
2196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197   *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2200 $as_echo "$ac_try_echo") >&5
2201   (eval "$ac_compiler -V >&5") 2>&5
2202   ac_status=$?
2203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }
2205
2206 cat >conftest.$ac_ext <<_ACEOF
2207 /* confdefs.h.  */
2208 _ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h.  */
2212
2213 int
2214 main ()
2215 {
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 ac_clean_files_save=$ac_clean_files
2222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2223 # Try to create an executable without -o first, disregard a.out.
2224 # It will help us diagnose broken compilers, and finding out an intuition
2225 # of exeext.
2226 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2227 $as_echo_n "checking for C compiler default output file name... " >&6; }
2228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2229
2230 # The possible output files:
2231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2232
2233 ac_rmfiles=
2234 for ac_file in $ac_files
2235 do
2236   case $ac_file in
2237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2238     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2239   esac
2240 done
2241 rm -f $ac_rmfiles
2242
2243 if { (ac_try="$ac_link_default"
2244 case "(($ac_try" in
2245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246   *) ac_try_echo=$ac_try;;
2247 esac
2248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2249 $as_echo "$ac_try_echo") >&5
2250   (eval "$ac_link_default") 2>&5
2251   ac_status=$?
2252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; then
2254   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2256 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2257 # so that the user can short-circuit this test for compilers unknown to
2258 # Autoconf.
2259 for ac_file in $ac_files ''
2260 do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2264         ;;
2265     [ab].out )
2266         # We found the default executable, but exeext='' is most
2267         # certainly right.
2268         break;;
2269     *.* )
2270         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2271         then :; else
2272            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273         fi
2274         # We set ac_cv_exeext here because the later test for it is not
2275         # safe: cross compilers may not add the suffix if given an `-o'
2276         # argument, so we may need to know it at that point already.
2277         # Even if this section looks crufty: it has the advantage of
2278         # actually working.
2279         break;;
2280     * )
2281         break;;
2282   esac
2283 done
2284 test "$ac_cv_exeext" = no && ac_cv_exeext=
2285
2286 else
2287   ac_file=''
2288 fi
2289
2290 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2291 $as_echo "$ac_file" >&6; }
2292 if test -z "$ac_file"; then
2293   $as_echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 $as_echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302    { (exit 77); exit 77; }; }; }
2303 fi
2304
2305 ac_exeext=$ac_cv_exeext
2306
2307 # Check that the compiler produces executables we can run.  If not, either
2308 # the compiler is broken, or we cross compile.
2309 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2310 $as_echo_n "checking whether the C compiler works... " >&6; }
2311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2312 # If not cross compiling, check that we can run a simple program.
2313 if test "$cross_compiling" != yes; then
2314   if { ac_try='./$ac_file'
2315   { (case "(($ac_try" in
2316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317   *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2320 $as_echo "$ac_try_echo") >&5
2321   (eval "$ac_try") 2>&5
2322   ac_status=$?
2323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325     cross_compiling=no
2326   else
2327     if test "$cross_compiling" = maybe; then
2328         cross_compiling=yes
2329     else
2330         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2333 If you meant to cross compile, use \`--host'.
2334 See \`config.log' for more details." >&5
2335 $as_echo "$as_me: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }; }
2339     fi
2340   fi
2341 fi
2342 { $as_echo "$as_me:$LINENO: result: yes" >&5
2343 $as_echo "yes" >&6; }
2344
2345 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2346 ac_clean_files=$ac_clean_files_save
2347 # Check that the compiler produces executables we can run.  If not, either
2348 # the compiler is broken, or we cross compile.
2349 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2350 $as_echo_n "checking whether we are cross compiling... " >&6; }
2351 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2352 $as_echo "$cross_compiling" >&6; }
2353
2354 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2355 $as_echo_n "checking for suffix of executables... " >&6; }
2356 if { (ac_try="$ac_link"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2362 $as_echo "$ac_try_echo") >&5
2363   (eval "$ac_link") 2>&5
2364   ac_status=$?
2365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; then
2367   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2368 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2369 # work properly (i.e., refer to `conftest.exe'), while it won't with
2370 # `rm'.
2371 for ac_file in conftest.exe conftest conftest.*; do
2372   test -f "$ac_file" || continue
2373   case $ac_file in
2374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2375     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376           break;;
2377     * ) break;;
2378   esac
2379 done
2380 else
2381   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387    { (exit 1); exit 1; }; }; }
2388 fi
2389
2390 rm -f conftest$ac_cv_exeext
2391 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 $as_echo "$ac_cv_exeext" >&6; }
2393
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2396 ac_exeext=$EXEEXT
2397 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 $as_echo_n "checking for suffix of object files... " >&6; }
2399 if test "${ac_cv_objext+set}" = set; then
2400   $as_echo_n "(cached) " >&6
2401 else
2402   cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h.  */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h.  */
2408
2409 int
2410 main ()
2411 {
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.o conftest.obj
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2424 $as_echo "$ac_try_echo") >&5
2425   (eval "$ac_compile") 2>&5
2426   ac_status=$?
2427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; then
2429   for ac_file in conftest.o conftest.obj conftest.*; do
2430   test -f "$ac_file" || continue;
2431   case $ac_file in
2432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2433     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2434        break;;
2435   esac
2436 done
2437 else
2438   $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&5
2445 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }; }
2448 fi
2449
2450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2451 fi
2452 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453 $as_echo "$ac_cv_objext" >&6; }
2454 OBJEXT=$ac_cv_objext
2455 ac_objext=$OBJEXT
2456 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459   $as_echo_n "(cached) " >&6
2460 else
2461   cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471 #ifndef __GNUC__
2472        choke me
2473 #endif
2474
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2481 case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } && {
2494          test -z "$ac_c_werror_flag" ||
2495          test ! -s conftest.err
2496        } && test -s conftest.$ac_objext; then
2497   ac_compiler_gnu=yes
2498 else
2499   $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         ac_compiler_gnu=no
2503 fi
2504
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2507
2508 fi
2509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2511 if test $ac_compiler_gnu = yes; then
2512   GCC=yes
2513 else
2514   GCC=
2515 fi
2516 ac_test_CFLAGS=${CFLAGS+set}
2517 ac_save_CFLAGS=$CFLAGS
2518 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2520 if test "${ac_cv_prog_cc_g+set}" = set; then
2521   $as_echo_n "(cached) " >&6
2522 else
2523   ac_save_c_werror_flag=$ac_c_werror_flag
2524    ac_c_werror_flag=yes
2525    ac_cv_prog_cc_g=no
2526    CFLAGS="-g"
2527    cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
2544 case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549 $as_echo "$ac_try_echo") >&5
2550   (eval "$ac_compile") 2>conftest.er1
2551   ac_status=$?
2552   grep -v '^ *+' conftest.er1 >conftest.err
2553   rm -f conftest.er1
2554   cat conftest.err >&5
2555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } && {
2557          test -z "$ac_c_werror_flag" ||
2558          test ! -s conftest.err
2559        } && test -s conftest.$ac_objext; then
2560   ac_cv_prog_cc_g=yes
2561 else
2562   $as_echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565         CFLAGS=""
2566       cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588 $as_echo "$ac_try_echo") >&5
2589   (eval "$ac_compile") 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } && {
2596          test -z "$ac_c_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest.$ac_objext; then
2599   :
2600 else
2601   $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604         ac_c_werror_flag=$ac_save_c_werror_flag
2605          CFLAGS="-g"
2606          cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2623 case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629   (eval "$ac_compile") 2>conftest.er1
2630   ac_status=$?
2631   grep -v '^ *+' conftest.er1 >conftest.err
2632   rm -f conftest.er1
2633   cat conftest.err >&5
2634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } && {
2636          test -z "$ac_c_werror_flag" ||
2637          test ! -s conftest.err
2638        } && test -s conftest.$ac_objext; then
2639   ac_cv_prog_cc_g=yes
2640 else
2641   $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644
2645 fi
2646
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 fi
2649
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654    ac_c_werror_flag=$ac_save_c_werror_flag
2655 fi
2656 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657 $as_echo "$ac_cv_prog_cc_g" >&6; }
2658 if test "$ac_test_CFLAGS" = set; then
2659   CFLAGS=$ac_save_CFLAGS
2660 elif test $ac_cv_prog_cc_g = yes; then
2661   if test "$GCC" = yes; then
2662     CFLAGS="-g -O2"
2663   else
2664     CFLAGS="-g"
2665   fi
2666 else
2667   if test "$GCC" = yes; then
2668     CFLAGS="-O2"
2669   else
2670     CFLAGS=
2671   fi
2672 fi
2673 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2675 if test "${ac_cv_prog_cc_c89+set}" = set; then
2676   $as_echo_n "(cached) " >&6
2677 else
2678   ac_cv_prog_cc_c89=no
2679 ac_save_CC=$CC
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 #include <stdarg.h>
2687 #include <stdio.h>
2688 #include <sys/types.h>
2689 #include <sys/stat.h>
2690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2691 struct buf { int x; };
2692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693 static char *e (p, i)
2694      char **p;
2695      int i;
2696 {
2697   return p[i];
2698 }
2699 static char *f (char * (*g) (char **, int), char **p, ...)
2700 {
2701   char *s;
2702   va_list v;
2703   va_start (v,p);
2704   s = g (p, va_arg (v,int));
2705   va_end (v);
2706   return s;
2707 }
2708
2709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2710    function prototypes and stuff, but not '\xHH' hex character constants.
2711    These don't provoke an error unfortunately, instead are silently treated
2712    as 'x'.  The following induces an error, until -std is added to get
2713    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2714    array size at least.  It's necessary to write '\x00'==0 to get something
2715    that's true only with -std.  */
2716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717
2718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2719    inside strings and character constants.  */
2720 #define FOO(x) 'x'
2721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2722
2723 int test (int i, double x);
2724 struct s1 {int (*f) (int a);};
2725 struct s2 {int (*f) (double a);};
2726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 int argc;
2728 char **argv;
2729 int
2730 main ()
2731 {
2732 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2738         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739 do
2740   CC="$ac_save_CC $ac_arg"
2741   rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748 $as_echo "$ac_try_echo") >&5
2749   (eval "$ac_compile") 2>conftest.er1
2750   ac_status=$?
2751   grep -v '^ *+' conftest.er1 >conftest.err
2752   rm -f conftest.er1
2753   cat conftest.err >&5
2754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); } && {
2756          test -z "$ac_c_werror_flag" ||
2757          test ! -s conftest.err
2758        } && test -s conftest.$ac_objext; then
2759   ac_cv_prog_cc_c89=$ac_arg
2760 else
2761   $as_echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext
2768   test "x$ac_cv_prog_cc_c89" != "xno" && break
2769 done
2770 rm -f conftest.$ac_ext
2771 CC=$ac_save_CC
2772
2773 fi
2774 # AC_CACHE_VAL
2775 case "x$ac_cv_prog_cc_c89" in
2776   x)
2777     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2778 $as_echo "none needed" >&6; } ;;
2779   xno)
2780     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2781 $as_echo "unsupported" >&6; } ;;
2782   *)
2783     CC="$CC $ac_cv_prog_cc_c89"
2784     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2786 esac
2787
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2803 # On Suns, sometimes $CPP names a directory.
2804 if test -n "$CPP" && test -d "$CPP"; then
2805   CPP=
2806 fi
2807 if test -z "$CPP"; then
2808   if test "${ac_cv_prog_CPP+set}" = set; then
2809   $as_echo_n "(cached) " >&6
2810 else
2811       # Double quotes because CPP needs to be expanded
2812     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2813     do
2814       ac_preproc_ok=false
2815 for ac_c_preproc_warn_flag in '' yes
2816 do
2817   # Use a header file that comes with gcc, so configuring glibc
2818   # with a fresh cross-compiler works.
2819   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820   # <limits.h> exists even on freestanding compilers.
2821   # On the NeXT, cc -E runs the code through the compiler's parser,
2822   # not just through cpp. "Syntax error" is here to catch this case.
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 #ifdef __STDC__
2830 # include <limits.h>
2831 #else
2832 # include <assert.h>
2833 #endif
2834                      Syntax error
2835 _ACEOF
2836 if { (ac_try="$ac_cpp conftest.$ac_ext"
2837 case "(($ac_try" in
2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839   *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } >/dev/null && {
2850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2851          test ! -s conftest.err
2852        }; then
2853   :
2854 else
2855   $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858   # Broken: fails on valid input.
2859 continue
2860 fi
2861
2862 rm -f conftest.err conftest.$ac_ext
2863
2864   # OK, works on sane cases.  Now check whether nonexistent headers
2865   # can be detected and how.
2866   cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872 #include <ac_nonexistent.h>
2873 _ACEOF
2874 if { (ac_try="$ac_cpp conftest.$ac_ext"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } >/dev/null && {
2888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2889          test ! -s conftest.err
2890        }; then
2891   # Broken: success on invalid input.
2892 continue
2893 else
2894   $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897   # Passes both tests.
2898 ac_preproc_ok=:
2899 break
2900 fi
2901
2902 rm -f conftest.err conftest.$ac_ext
2903
2904 done
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.$ac_ext
2907 if $ac_preproc_ok; then
2908   break
2909 fi
2910
2911     done
2912     ac_cv_prog_CPP=$CPP
2913
2914 fi
2915   CPP=$ac_cv_prog_CPP
2916 else
2917   ac_cv_prog_CPP=$CPP
2918 fi
2919 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2920 $as_echo "$CPP" >&6; }
2921 ac_preproc_ok=false
2922 for ac_c_preproc_warn_flag in '' yes
2923 do
2924   # Use a header file that comes with gcc, so configuring glibc
2925   # with a fresh cross-compiler works.
2926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2927   # <limits.h> exists even on freestanding compilers.
2928   # On the NeXT, cc -E runs the code through the compiler's parser,
2929   # not just through cpp. "Syntax error" is here to catch this case.
2930   cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2941                      Syntax error
2942 _ACEOF
2943 if { (ac_try="$ac_cpp conftest.$ac_ext"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2949 $as_echo "$ac_try_echo") >&5
2950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null && {
2957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2958          test ! -s conftest.err
2959        }; then
2960   :
2961 else
2962   $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965   # Broken: fails on valid input.
2966 continue
2967 fi
2968
2969 rm -f conftest.err conftest.$ac_ext
2970
2971   # OK, works on sane cases.  Now check whether nonexistent headers
2972   # can be detected and how.
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #include <ac_nonexistent.h>
2980 _ACEOF
2981 if { (ac_try="$ac_cpp conftest.$ac_ext"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null && {
2995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996          test ! -s conftest.err
2997        }; then
2998   # Broken: success on invalid input.
2999 continue
3000 else
3001   $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004   # Passes both tests.
3005 ac_preproc_ok=:
3006 break
3007 fi
3008
3009 rm -f conftest.err conftest.$ac_ext
3010
3011 done
3012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3013 rm -f conftest.err conftest.$ac_ext
3014 if $ac_preproc_ok; then
3015   :
3016 else
3017   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }; }
3024 fi
3025
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032
3033 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3034 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3035 if test "${ac_cv_path_GREP+set}" = set; then
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -z "$GREP"; then
3039   ac_path_GREP_found=false
3040   # Loop through the user's path and test for each of PROGNAME-LIST
3041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046   for ac_prog in grep ggrep; do
3047     for ac_exec_ext in '' $ac_executable_extensions; do
3048       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3049       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3050 # Check for GNU ac_path_GREP and select it if it is found.
3051   # Check for GNU $ac_path_GREP
3052 case `"$ac_path_GREP" --version 2>&1` in
3053 *GNU*)
3054   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3055 *)
3056   ac_count=0
3057   $as_echo_n 0123456789 >"conftest.in"
3058   while :
3059   do
3060     cat "conftest.in" "conftest.in" >"conftest.tmp"
3061     mv "conftest.tmp" "conftest.in"
3062     cp "conftest.in" "conftest.nl"
3063     $as_echo 'GREP' >> "conftest.nl"
3064     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3065     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3066     ac_count=`expr $ac_count + 1`
3067     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3068       # Best one so far, save it but keep looking for a better one
3069       ac_cv_path_GREP="$ac_path_GREP"
3070       ac_path_GREP_max=$ac_count
3071     fi
3072     # 10*(2^10) chars as input seems more than enough
3073     test $ac_count -gt 10 && break
3074   done
3075   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3076 esac
3077
3078       $ac_path_GREP_found && break 3
3079     done
3080   done
3081 done
3082 IFS=$as_save_IFS
3083   if test -z "$ac_cv_path_GREP"; then
3084     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3085 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3086    { (exit 1); exit 1; }; }
3087   fi
3088 else
3089   ac_cv_path_GREP=$GREP
3090 fi
3091
3092 fi
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3094 $as_echo "$ac_cv_path_GREP" >&6; }
3095  GREP="$ac_cv_path_GREP"
3096
3097
3098 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3099 $as_echo_n "checking for egrep... " >&6; }
3100 if test "${ac_cv_path_EGREP+set}" = set; then
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3104    then ac_cv_path_EGREP="$GREP -E"
3105    else
3106      if test -z "$EGREP"; then
3107   ac_path_EGREP_found=false
3108   # Loop through the user's path and test for each of PROGNAME-LIST
3109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_prog in egrep; do
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3117       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3118 # Check for GNU ac_path_EGREP and select it if it is found.
3119   # Check for GNU $ac_path_EGREP
3120 case `"$ac_path_EGREP" --version 2>&1` in
3121 *GNU*)
3122   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3123 *)
3124   ac_count=0
3125   $as_echo_n 0123456789 >"conftest.in"
3126   while :
3127   do
3128     cat "conftest.in" "conftest.in" >"conftest.tmp"
3129     mv "conftest.tmp" "conftest.in"
3130     cp "conftest.in" "conftest.nl"
3131     $as_echo 'EGREP' >> "conftest.nl"
3132     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3134     ac_count=`expr $ac_count + 1`
3135     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3136       # Best one so far, save it but keep looking for a better one
3137       ac_cv_path_EGREP="$ac_path_EGREP"
3138       ac_path_EGREP_max=$ac_count
3139     fi
3140     # 10*(2^10) chars as input seems more than enough
3141     test $ac_count -gt 10 && break
3142   done
3143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3144 esac
3145
3146       $ac_path_EGREP_found && break 3
3147     done
3148   done
3149 done
3150 IFS=$as_save_IFS
3151   if test -z "$ac_cv_path_EGREP"; then
3152     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3153 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3154    { (exit 1); exit 1; }; }
3155   fi
3156 else
3157   ac_cv_path_EGREP=$EGREP
3158 fi
3159
3160    fi
3161 fi
3162 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3163 $as_echo "$ac_cv_path_EGREP" >&6; }
3164  EGREP="$ac_cv_path_EGREP"
3165
3166
3167 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3168 $as_echo_n "checking for ANSI C header files... " >&6; }
3169 if test "${ac_cv_header_stdc+set}" = set; then
3170   $as_echo_n "(cached) " >&6
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <stdlib.h>
3179 #include <stdarg.h>
3180 #include <string.h>
3181 #include <float.h>
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199   (eval "$ac_compile") 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } && {
3206          test -z "$ac_c_werror_flag" ||
3207          test ! -s conftest.err
3208        } && test -s conftest.$ac_objext; then
3209   ac_cv_header_stdc=yes
3210 else
3211   $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214         ac_cv_header_stdc=no
3215 fi
3216
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218
3219 if test $ac_cv_header_stdc = yes; then
3220   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227 #include <string.h>
3228
3229 _ACEOF
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231   $EGREP "memchr" >/dev/null 2>&1; then
3232   :
3233 else
3234   ac_cv_header_stdc=no
3235 fi
3236 rm -f conftest*
3237
3238 fi
3239
3240 if test $ac_cv_header_stdc = yes; then
3241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3242   cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248 #include <stdlib.h>
3249
3250 _ACEOF
3251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3252   $EGREP "free" >/dev/null 2>&1; then
3253   :
3254 else
3255   ac_cv_header_stdc=no
3256 fi
3257 rm -f conftest*
3258
3259 fi
3260
3261 if test $ac_cv_header_stdc = yes; then
3262   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3263   if test "$cross_compiling" = yes; then
3264   :
3265 else
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ctype.h>
3273 #include <stdlib.h>
3274 #if ((' ' & 0x0FF) == 0x020)
3275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3277 #else
3278 # define ISLOWER(c) \
3279                    (('a' <= (c) && (c) <= 'i') \
3280                      || ('j' <= (c) && (c) <= 'r') \
3281                      || ('s' <= (c) && (c) <= 'z'))
3282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3283 #endif
3284
3285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3286 int
3287 main ()
3288 {
3289   int i;
3290   for (i = 0; i < 256; i++)
3291     if (XOR (islower (i), ISLOWER (i))
3292         || toupper (i) != TOUPPER (i))
3293       return 2;
3294   return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest$ac_exeext
3298 if { (ac_try="$ac_link"
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_link") 2>&5
3306   ac_status=$?
3307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3309   { (case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3314 $as_echo "$ac_try_echo") >&5
3315   (eval "$ac_try") 2>&5
3316   ac_status=$?
3317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   :
3320 else
3321   $as_echo "$as_me: program exited with status $ac_status" >&5
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 ( exit $ac_status )
3326 ac_cv_header_stdc=no
3327 fi
3328 rm -rf conftest.dSYM
3329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3330 fi
3331
3332
3333 fi
3334 fi
3335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3336 $as_echo "$ac_cv_header_stdc" >&6; }
3337 if test $ac_cv_header_stdc = yes; then
3338
3339 cat >>confdefs.h <<\_ACEOF
3340 #define STDC_HEADERS 1
3341 _ACEOF
3342
3343 fi
3344
3345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3356                   inttypes.h stdint.h unistd.h
3357 do
3358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3360 $as_echo_n "checking for $ac_header... " >&6; }
3361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3362   $as_echo_n "(cached) " >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 $ac_includes_default
3371
3372 #include <$ac_header>
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381 $as_echo "$ac_try_echo") >&5
3382   (eval "$ac_compile") 2>conftest.er1
3383   ac_status=$?
3384   grep -v '^ *+' conftest.er1 >conftest.err
3385   rm -f conftest.er1
3386   cat conftest.err >&5
3387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } && {
3389          test -z "$ac_c_werror_flag" ||
3390          test ! -s conftest.err
3391        } && test -s conftest.$ac_objext; then
3392   eval "$as_ac_Header=yes"
3393 else
3394   $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397         eval "$as_ac_Header=no"
3398 fi
3399
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 fi
3402 ac_res=`eval 'as_val=${'$as_ac_Header'}
3403                  $as_echo "$as_val"'`
3404                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3405 $as_echo "$ac_res" >&6; }
3406 as_val=`eval 'as_val=${'$as_ac_Header'}
3407                  $as_echo "$as_val"'`
3408    if test "x$as_val" = x""yes; then
3409   cat >>confdefs.h <<_ACEOF
3410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3411 _ACEOF
3412
3413 fi
3414
3415 done
3416
3417
3418
3419   if test "${ac_cv_header_minix_config_h+set}" = set; then
3420   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3421 $as_echo_n "checking for minix/config.h... " >&6; }
3422 if test "${ac_cv_header_minix_config_h+set}" = set; then
3423   $as_echo_n "(cached) " >&6
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3426 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3427 else
3428   # Is the header compilable?
3429 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3430 $as_echo_n "checking minix/config.h usability... " >&6; }
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 $ac_includes_default
3438 #include <minix/config.h>
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (ac_try="$ac_compile"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3447 $as_echo "$ac_try_echo") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_c_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_header_compiler=yes
3459 else
3460   $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_header_compiler=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3468 $as_echo "$ac_header_compiler" >&6; }
3469
3470 # Is the header present?
3471 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3472 $as_echo_n "checking minix/config.h presence... " >&6; }
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479 #include <minix/config.h>
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null && {
3495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        }; then
3498   ac_header_preproc=yes
3499 else
3500   $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   ac_header_preproc=no
3504 fi
3505
3506 rm -f conftest.err conftest.$ac_ext
3507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3508 $as_echo "$ac_header_preproc" >&6; }
3509
3510 # So?  What about this header?
3511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3512   yes:no: )
3513     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3514 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3515     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3517     ac_header_preproc=yes
3518     ;;
3519   no:yes:* )
3520     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3521 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3522     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3523 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3524     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3525 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3526     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3527 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3528     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3529 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3530     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3531 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3532     ( cat <<\_ASBOX
3533 ## ----------------------------------- ##
3534 ## Report this to andreas@eversberg.eu ##
3535 ## ----------------------------------- ##
3536 _ASBOX
3537      ) | sed "s/^/$as_me: WARNING:     /" >&2
3538     ;;
3539 esac
3540 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3541 $as_echo_n "checking for minix/config.h... " >&6; }
3542 if test "${ac_cv_header_minix_config_h+set}" = set; then
3543   $as_echo_n "(cached) " >&6
3544 else
3545   ac_cv_header_minix_config_h=$ac_header_preproc
3546 fi
3547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3548 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3549
3550 fi
3551 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3552   MINIX=yes
3553 else
3554   MINIX=
3555 fi
3556
3557
3558   if test "$MINIX" = yes; then
3559
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_SOURCE 1
3562 _ACEOF
3563
3564
3565 cat >>confdefs.h <<\_ACEOF
3566 #define _POSIX_1_SOURCE 2
3567 _ACEOF
3568
3569
3570 cat >>confdefs.h <<\_ACEOF
3571 #define _MINIX 1
3572 _ACEOF
3573
3574   fi
3575
3576
3577
3578   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3579 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3580 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3581   $as_echo_n "(cached) " >&6
3582 else
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589
3590 #         define __EXTENSIONS__ 1
3591           $ac_includes_default
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608   (eval "$ac_compile") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } && {
3615          test -z "$ac_c_werror_flag" ||
3616          test ! -s conftest.err
3617        } && test -s conftest.$ac_objext; then
3618   ac_cv_safe_to_define___extensions__=yes
3619 else
3620   $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623         ac_cv_safe_to_define___extensions__=no
3624 fi
3625
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3629 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3630   test $ac_cv_safe_to_define___extensions__ = yes &&
3631     cat >>confdefs.h <<\_ACEOF
3632 #define __EXTENSIONS__ 1
3633 _ACEOF
3634
3635   cat >>confdefs.h <<\_ACEOF
3636 #define _ALL_SOURCE 1
3637 _ACEOF
3638
3639   cat >>confdefs.h <<\_ACEOF
3640 #define _GNU_SOURCE 1
3641 _ACEOF
3642
3643   cat >>confdefs.h <<\_ACEOF
3644 #define _POSIX_PTHREAD_SEMANTICS 1
3645 _ACEOF
3646
3647   cat >>confdefs.h <<\_ACEOF
3648 #define _TANDEM_SOURCE 1
3649 _ACEOF
3650
3651
3652 # AC_USE_SYSTEM_EXTENSIONS
3653 am__api_version="1.9"
3654 ac_aux_dir=
3655 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3656   if test -f "$ac_dir/install-sh"; then
3657     ac_aux_dir=$ac_dir
3658     ac_install_sh="$ac_aux_dir/install-sh -c"
3659     break
3660   elif test -f "$ac_dir/install.sh"; then
3661     ac_aux_dir=$ac_dir
3662     ac_install_sh="$ac_aux_dir/install.sh -c"
3663     break
3664   elif test -f "$ac_dir/shtool"; then
3665     ac_aux_dir=$ac_dir
3666     ac_install_sh="$ac_aux_dir/shtool install -c"
3667     break
3668   fi
3669 done
3670 if test -z "$ac_aux_dir"; then
3671   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3672 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3673    { (exit 1); exit 1; }; }
3674 fi
3675
3676 # These three variables are undocumented and unsupported,
3677 # and are intended to be withdrawn in a future Autoconf release.
3678 # They can cause serious problems if a builder's source tree is in a directory
3679 # whose full name contains unusual characters.
3680 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3681 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3682 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3683
3684
3685 # Find a good install program.  We prefer a C program (faster),
3686 # so one script is as good as another.  But avoid the broken or
3687 # incompatible versions:
3688 # SysV /etc/install, /usr/sbin/install
3689 # SunOS /usr/etc/install
3690 # IRIX /sbin/install
3691 # AIX /bin/install
3692 # AmigaOS /C/install, which installs bootblocks on floppy discs
3693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3696 # OS/2's system install, which has a completely different semantic
3697 # ./install, which can be erroneously created by make from ./install.sh.
3698 # Reject install programs that cannot install multiple files.
3699 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3700 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3701 if test -z "$INSTALL"; then
3702 if test "${ac_cv_path_install+set}" = set; then
3703   $as_echo_n "(cached) " >&6
3704 else
3705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   # Account for people who put trailing slashes in PATH elements.
3711 case $as_dir/ in
3712   ./ | .// | /cC/* | \
3713   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3714   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3715   /usr/ucb/* ) ;;
3716   *)
3717     # OSF1 and SCO ODT 3.0 have their own names for install.
3718     # Don't use installbsd from OSF since it installs stuff as root
3719     # by default.
3720     for ac_prog in ginstall scoinst install; do
3721       for ac_exec_ext in '' $ac_executable_extensions; do
3722         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3723           if test $ac_prog = install &&
3724             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725             # AIX install.  It has an incompatible calling convention.
3726             :
3727           elif test $ac_prog = install &&
3728             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3729             # program-specific install script used by HP pwplus--don't use.
3730             :
3731           else
3732             rm -rf conftest.one conftest.two conftest.dir
3733             echo one > conftest.one
3734             echo two > conftest.two
3735             mkdir conftest.dir
3736             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3737               test -s conftest.one && test -s conftest.two &&
3738               test -s conftest.dir/conftest.one &&
3739               test -s conftest.dir/conftest.two
3740             then
3741               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3742               break 3
3743             fi
3744           fi
3745         fi
3746       done
3747     done
3748     ;;
3749 esac
3750
3751 done
3752 IFS=$as_save_IFS
3753
3754 rm -rf conftest.one conftest.two conftest.dir
3755
3756 fi
3757   if test "${ac_cv_path_install+set}" = set; then
3758     INSTALL=$ac_cv_path_install
3759   else
3760     # As a last resort, use the slow shell script.  Don't cache a
3761     # value for INSTALL within a source directory, because that will
3762     # break other packages using the cache if that directory is
3763     # removed, or if the value is a relative name.
3764     INSTALL=$ac_install_sh
3765   fi
3766 fi
3767 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3768 $as_echo "$INSTALL" >&6; }
3769
3770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3771 # It thinks the first close brace ends the variable substitution.
3772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3773
3774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3775
3776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3777
3778 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3779 $as_echo_n "checking whether build environment is sane... " >&6; }
3780 # Just in case
3781 sleep 1
3782 echo timestamp > conftest.file
3783 # Do `set' in a subshell so we don't clobber the current shell's
3784 # arguments.  Must try -L first in case configure is actually a
3785 # symlink; some systems play weird games with the mod time of symlinks
3786 # (eg FreeBSD returns the mod time of the symlink's containing
3787 # directory).
3788 if (
3789    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3790    if test "$*" = "X"; then
3791       # -L didn't work.
3792       set X `ls -t $srcdir/configure conftest.file`
3793    fi
3794    rm -f conftest.file
3795    if test "$*" != "X $srcdir/configure conftest.file" \
3796       && test "$*" != "X conftest.file $srcdir/configure"; then
3797
3798       # If neither matched, then we have a broken ls.  This can happen
3799       # if, for instance, CONFIG_SHELL is bash and it inherits a
3800       # broken ls alias from the environment.  This has actually
3801       # happened.  Such a system could not be considered "sane".
3802       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3803 alias in your environment" >&5
3804 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3805 alias in your environment" >&2;}
3806    { (exit 1); exit 1; }; }
3807    fi
3808
3809    test "$2" = conftest.file
3810    )
3811 then
3812    # Ok.
3813    :
3814 else
3815    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3816 Check your system clock" >&5
3817 $as_echo "$as_me: error: newly created file is older than distributed files!
3818 Check your system clock" >&2;}
3819    { (exit 1); exit 1; }; }
3820 fi
3821 { $as_echo "$as_me:$LINENO: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 test "$program_prefix" != NONE &&
3824   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825 # Use a double $ so make ignores it.
3826 test "$program_suffix" != NONE &&
3827   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828 # Double any \ or $.
3829 # By default was `s,x,x', remove it if useless.
3830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3832
3833 # expand $ac_aux_dir to an absolute path
3834 am_aux_dir=`cd $ac_aux_dir && pwd`
3835
3836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3837 # Use eval to expand $SHELL
3838 if eval "$MISSING --run true"; then
3839   am_missing_run="$MISSING --run "
3840 else
3841   am_missing_run=
3842   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3844 fi
3845
3846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3847   # We used to keeping the `.' as first argument, in order to
3848   # allow $(mkdir_p) to be used without argument.  As in
3849   #   $(mkdir_p) $(somedir)
3850   # where $(somedir) is conditionally defined.  However this is wrong
3851   # for two reasons:
3852   #  1. if the package is installed by a user who cannot write `.'
3853   #     make install will fail,
3854   #  2. the above comment should most certainly read
3855   #     $(mkdir_p) $(DESTDIR)$(somedir)
3856   #     so it does not work when $(somedir) is undefined and
3857   #     $(DESTDIR) is not.
3858   #  To support the latter case, we have to write
3859   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3860   #  so the `.' trick is pointless.
3861   mkdir_p='mkdir -p --'
3862 else
3863   # On NextStep and OpenStep, the `mkdir' command does not
3864   # recognize any option.  It will interpret all options as
3865   # directories to create, and then abort because `.' already
3866   # exists.
3867   for d in ./-p ./--version;
3868   do
3869     test -d $d && rmdir $d
3870   done
3871   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3872   if test -f "$ac_aux_dir/mkinstalldirs"; then
3873     mkdir_p='$(mkinstalldirs)'
3874   else
3875     mkdir_p='$(install_sh) -d'
3876   fi
3877 fi
3878
3879 for ac_prog in gawk mawk nawk awk
3880 do
3881   # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_AWK+set}" = set; then
3886   $as_echo_n "(cached) " >&6
3887 else
3888   if test -n "$AWK"; then
3889   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898     ac_cv_prog_AWK="$ac_prog"
3899     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 AWK=$ac_cv_prog_AWK
3909 if test -n "$AWK"; then
3910   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3911 $as_echo "$AWK" >&6; }
3912 else
3913   { $as_echo "$as_me:$LINENO: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918   test -n "$AWK" && break
3919 done
3920
3921 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3922 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3923 set x ${MAKE-make}
3924 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3925 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3926   $as_echo_n "(cached) " >&6
3927 else
3928   cat >conftest.make <<\_ACEOF
3929 SHELL = /bin/sh
3930 all:
3931         @echo '@@@%%%=$(MAKE)=@@@%%%'
3932 _ACEOF
3933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3935   *@@@%%%=?*=@@@%%%*)
3936     eval ac_cv_prog_make_${ac_make}_set=yes;;
3937   *)
3938     eval ac_cv_prog_make_${ac_make}_set=no;;
3939 esac
3940 rm -f conftest.make
3941 fi
3942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3943   { $as_echo "$as_me:$LINENO: result: yes" >&5
3944 $as_echo "yes" >&6; }
3945   SET_MAKE=
3946 else
3947   { $as_echo "$as_me:$LINENO: result: no" >&5
3948 $as_echo "no" >&6; }
3949   SET_MAKE="MAKE=${MAKE-make}"
3950 fi
3951
3952 rm -rf .tst 2>/dev/null
3953 mkdir .tst 2>/dev/null
3954 if test -d .tst; then
3955   am__leading_dot=.
3956 else
3957   am__leading_dot=_
3958 fi
3959 rmdir .tst 2>/dev/null
3960
3961 DEPDIR="${am__leading_dot}deps"
3962
3963 ac_config_commands="$ac_config_commands depfiles"
3964
3965
3966 am_make=${MAKE-make}
3967 cat > confinc << 'END'
3968 am__doit:
3969         @echo done
3970 .PHONY: am__doit
3971 END
3972 # If we don't find an include directive, just comment out the code.
3973 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3974 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3975 am__include="#"
3976 am__quote=
3977 _am_result=none
3978 # First try GNU make style include.
3979 echo "include confinc" > confmf
3980 # We grep out `Entering directory' and `Leaving directory'
3981 # messages which can occur if `w' ends up in MAKEFLAGS.
3982 # In particular we don't look at `^make:' because GNU make might
3983 # be invoked under some other name (usually "gmake"), in which
3984 # case it prints its new name instead of `make'.
3985 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3986    am__include=include
3987    am__quote=
3988    _am_result=GNU
3989 fi
3990 # Now try BSD make style include.
3991 if test "$am__include" = "#"; then
3992    echo '.include "confinc"' > confmf
3993    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3994       am__include=.include
3995       am__quote="\""
3996       _am_result=BSD
3997    fi
3998 fi
3999
4000
4001 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4002 $as_echo "$_am_result" >&6; }
4003 rm -f confinc confmf
4004
4005 # Check whether --enable-dependency-tracking was given.
4006 if test "${enable_dependency_tracking+set}" = set; then
4007   enableval=$enable_dependency_tracking;
4008 fi
4009
4010 if test "x$enable_dependency_tracking" != xno; then
4011   am_depcomp="$ac_aux_dir/depcomp"
4012   AMDEPBACKSLASH='\'
4013 fi
4014
4015
4016 if test "x$enable_dependency_tracking" != xno; then
4017   AMDEP_TRUE=
4018   AMDEP_FALSE='#'
4019 else
4020   AMDEP_TRUE='#'
4021   AMDEP_FALSE=
4022 fi
4023
4024
4025
4026 # test to see if srcdir already configured
4027 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4028    test -f $srcdir/config.status; then
4029   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4030 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4031    { (exit 1); exit 1; }; }
4032 fi
4033
4034 # test whether we have cygpath
4035 if test -z "$CYGPATH_W"; then
4036   if (cygpath --version) >/dev/null 2>/dev/null; then
4037     CYGPATH_W='cygpath -w'
4038   else
4039     CYGPATH_W=echo
4040   fi
4041 fi
4042
4043
4044 # Define the identity of the package.
4045  PACKAGE=lcr
4046  VERSION=1.7
4047
4048
4049 cat >>confdefs.h <<_ACEOF
4050 #define PACKAGE "$PACKAGE"
4051 _ACEOF
4052
4053
4054 cat >>confdefs.h <<_ACEOF
4055 #define VERSION "$VERSION"
4056 _ACEOF
4057
4058 # Some tools Automake needs.
4059
4060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4061
4062
4063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4064
4065
4066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4067
4068
4069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4070
4071
4072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4073
4074 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4075
4076 # Installed binaries are usually stripped using `strip' when the user
4077 # run `make install-strip'.  However `strip' might not be the right
4078 # tool to use in cross-compilation environments, therefore Automake
4079 # will honor the `STRIP' environment variable to overrule this program.
4080 if test "$cross_compiling" != no; then
4081   if test -n "$ac_tool_prefix"; then
4082   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}strip; ac_word=$2
4084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_STRIP+set}" = set; then
4087   $as_echo_n "(cached) " >&6
4088 else
4089   if test -n "$STRIP"; then
4090   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4099     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105 IFS=$as_save_IFS
4106
4107 fi
4108 fi
4109 STRIP=$ac_cv_prog_STRIP
4110 if test -n "$STRIP"; then
4111   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4112 $as_echo "$STRIP" >&6; }
4113 else
4114   { $as_echo "$as_me:$LINENO: result: no" >&5
4115 $as_echo "no" >&6; }
4116 fi
4117
4118
4119 fi
4120 if test -z "$ac_cv_prog_STRIP"; then
4121   ac_ct_STRIP=$STRIP
4122   # Extract the first word of "strip", so it can be a program name with args.
4123 set dummy strip; ac_word=$2
4124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4127   $as_echo_n "(cached) " >&6
4128 else
4129   if test -n "$ac_ct_STRIP"; then
4130   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_prog_ac_ct_STRIP="strip"
4140     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147 fi
4148 fi
4149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4150 if test -n "$ac_ct_STRIP"; then
4151   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4152 $as_echo "$ac_ct_STRIP" >&6; }
4153 else
4154   { $as_echo "$as_me:$LINENO: result: no" >&5
4155 $as_echo "no" >&6; }
4156 fi
4157
4158   if test "x$ac_ct_STRIP" = x; then
4159     STRIP=":"
4160   else
4161     case $cross_compiling:$ac_tool_warned in
4162 yes:)
4163 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4166 esac
4167     STRIP=$ac_ct_STRIP
4168   fi
4169 else
4170   STRIP="$ac_cv_prog_STRIP"
4171 fi
4172
4173 fi
4174 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4175
4176 # We need awk for the "check" target.  The system "awk" is bad on
4177 # some platforms.
4178 # Always define AMTAR for backward compatibility.
4179
4180 AMTAR=${AMTAR-"${am_missing_run}tar"}
4181
4182 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4183
4184
4185
4186
4187 depcc="$CC"   am_compiler_list=
4188
4189 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195   # We make a subdir and do the tests there.  Otherwise we can end up
4196   # making bogus files that we don't know about and never remove.  For
4197   # instance it was reported that on HP-UX the gcc test will end up
4198   # making a dummy file named `D' -- because `-MD' means `put the output
4199   # in D'.
4200   mkdir conftest.dir
4201   # Copy depcomp to subdir because otherwise we won't find it if we're
4202   # using a relative directory.
4203   cp "$am_depcomp" conftest.dir
4204   cd conftest.dir
4205   # We will build objects and dependencies in a subdirectory because
4206   # it helps to detect inapplicable dependency modes.  For instance
4207   # both Tru64's cc and ICC support -MD to output dependencies as a
4208   # side effect of compilation, but ICC will put the dependencies in
4209   # the current directory while Tru64 will put them in the object
4210   # directory.
4211   mkdir sub
4212
4213   am_cv_CC_dependencies_compiler_type=none
4214   if test "$am_compiler_list" = ""; then
4215      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216   fi
4217   for depmode in $am_compiler_list; do
4218     # Setup a source with many dependencies, because some compilers
4219     # like to wrap large dependency lists on column 80 (with \), and
4220     # we should not choose a depcomp mode which is confused by this.
4221     #
4222     # We need to recreate these files for each test, as the compiler may
4223     # overwrite some of them when testing with obscure command lines.
4224     # This happens at least with the AIX C compiler.
4225     : > sub/conftest.c
4226     for i in 1 2 3 4 5 6; do
4227       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4228       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4229       # Solaris 8's {/usr,}/bin/sh.
4230       touch sub/conftst$i.h
4231     done
4232     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4233
4234     case $depmode in
4235     nosideeffect)
4236       # after this tag, mechanisms are not by side-effect, so they'll
4237       # only be used when explicitly requested
4238       if test "x$enable_dependency_tracking" = xyes; then
4239         continue
4240       else
4241         break
4242       fi
4243       ;;
4244     none) break ;;
4245     esac
4246     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4247     # mode.  It turns out that the SunPro C++ compiler does not properly
4248     # handle `-M -o', and we need to detect this.
4249     if depmode=$depmode \
4250        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4251        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4252        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4253          >/dev/null 2>conftest.err &&
4254        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4256        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257       # icc doesn't choke on unknown options, it will just issue warnings
4258       # or remarks (even with -Werror).  So we grep stderr for any message
4259       # that says an option was ignored or not supported.
4260       # When given -MP, icc 7.0 and 7.1 complain thusly:
4261       #   icc: Command line warning: ignoring option '-M'; no argument required
4262       # The diagnosis changed in icc 8.0:
4263       #   icc: Command line remark: option '-MP' not supported
4264       if (grep 'ignoring option' conftest.err ||
4265           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266         am_cv_CC_dependencies_compiler_type=$depmode
4267         break
4268       fi
4269     fi
4270   done
4271
4272   cd ..
4273   rm -rf conftest.dir
4274 else
4275   am_cv_CC_dependencies_compiler_type=none
4276 fi
4277
4278 fi
4279 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4280 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4281 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4282
4283
4284
4285 if
4286   test "x$enable_dependency_tracking" != xno \
4287   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4288   am__fastdepCC_TRUE=
4289   am__fastdepCC_FALSE='#'
4290 else
4291   am__fastdepCC_TRUE='#'
4292   am__fastdepCC_FALSE=
4293 fi
4294
4295
4296
4297
4298
4299
4300 # Checks for programs.
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4308 # On Suns, sometimes $CPP names a directory.
4309 if test -n "$CPP" && test -d "$CPP"; then
4310   CPP=
4311 fi
4312 if test -z "$CPP"; then
4313   if test "${ac_cv_prog_CPP+set}" = set; then
4314   $as_echo_n "(cached) " >&6
4315 else
4316       # Double quotes because CPP needs to be expanded
4317     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4318     do
4319       ac_preproc_ok=false
4320 for ac_c_preproc_warn_flag in '' yes
4321 do
4322   # Use a header file that comes with gcc, so configuring glibc
4323   # with a fresh cross-compiler works.
4324   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325   # <limits.h> exists even on freestanding compilers.
4326   # On the NeXT, cc -E runs the code through the compiler's parser,
4327   # not just through cpp. "Syntax error" is here to catch this case.
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 #ifdef __STDC__
4335 # include <limits.h>
4336 #else
4337 # include <assert.h>
4338 #endif
4339                      Syntax error
4340 _ACEOF
4341 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } >/dev/null && {
4355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356          test ! -s conftest.err
4357        }; then
4358   :
4359 else
4360   $as_echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363   # Broken: fails on valid input.
4364 continue
4365 fi
4366
4367 rm -f conftest.err conftest.$ac_ext
4368
4369   # OK, works on sane cases.  Now check whether nonexistent headers
4370   # can be detected and how.
4371   cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <ac_nonexistent.h>
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null && {
4393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394          test ! -s conftest.err
4395        }; then
4396   # Broken: success on invalid input.
4397 continue
4398 else
4399   $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406
4407 rm -f conftest.err conftest.$ac_ext
4408
4409 done
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then
4413   break
4414 fi
4415
4416     done
4417     ac_cv_prog_CPP=$CPP
4418
4419 fi
4420   CPP=$ac_cv_prog_CPP
4421 else
4422   ac_cv_prog_CPP=$CPP
4423 fi
4424 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4425 $as_echo "$CPP" >&6; }
4426 ac_preproc_ok=false
4427 for ac_c_preproc_warn_flag in '' yes
4428 do
4429   # Use a header file that comes with gcc, so configuring glibc
4430   # with a fresh cross-compiler works.
4431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4432   # <limits.h> exists even on freestanding compilers.
4433   # On the NeXT, cc -E runs the code through the compiler's parser,
4434   # not just through cpp. "Syntax error" is here to catch this case.
4435   cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #ifdef __STDC__
4442 # include <limits.h>
4443 #else
4444 # include <assert.h>
4445 #endif
4446                      Syntax error
4447 _ACEOF
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454 $as_echo "$ac_try_echo") >&5
4455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } >/dev/null && {
4462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463          test ! -s conftest.err
4464        }; then
4465   :
4466 else
4467   $as_echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470   # Broken: fails on valid input.
4471 continue
4472 fi
4473
4474 rm -f conftest.err conftest.$ac_ext
4475
4476   # OK, works on sane cases.  Now check whether nonexistent headers
4477   # can be detected and how.
4478   cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 #include <ac_nonexistent.h>
4485 _ACEOF
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } >/dev/null && {
4500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501          test ! -s conftest.err
4502        }; then
4503   # Broken: success on invalid input.
4504 continue
4505 else
4506   $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509   # Passes both tests.
4510 ac_preproc_ok=:
4511 break
4512 fi
4513
4514 rm -f conftest.err conftest.$ac_ext
4515
4516 done
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4520   :
4521 else
4522   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log' for more details." >&5
4526 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details." >&2;}
4528    { (exit 1); exit 1; }; }; }
4529 fi
4530
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 ac_ext=cpp
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543   if test -n "$CCC"; then
4544     CXX=$CCC
4545   else
4546     if test -n "$ac_tool_prefix"; then
4547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548   do
4549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CXX+set}" = set; then
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$CXX"; then
4557   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 CXX=$ac_cv_prog_CXX
4577 if test -n "$CXX"; then
4578   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586     test -n "$CXX" && break
4587   done
4588 fi
4589 if test -z "$CXX"; then
4590   ac_ct_CXX=$CXX
4591   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 do
4593   # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$ac_ct_CXX"; then
4601   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610     ac_cv_prog_ac_ct_CXX="$ac_prog"
4611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4624 else
4625   { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630   test -n "$ac_ct_CXX" && break
4631 done
4632
4633   if test "x$ac_ct_CXX" = x; then
4634     CXX="g++"
4635   else
4636     case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642     CXX=$ac_ct_CXX
4643   fi
4644 fi
4645
4646   fi
4647 fi
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4650 set X $ac_compile
4651 ac_compiler=$2
4652 { (ac_try="$ac_compiler --version >&5"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659   (eval "$ac_compiler --version >&5") 2>&5
4660   ac_status=$?
4661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }
4663 { (ac_try="$ac_compiler -v >&5"
4664 case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4669 $as_echo "$ac_try_echo") >&5
4670   (eval "$ac_compiler -v >&5") 2>&5
4671   ac_status=$?
4672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }
4674 { (ac_try="$ac_compiler -V >&5"
4675 case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4680 $as_echo "$ac_try_echo") >&5
4681   (eval "$ac_compiler -V >&5") 2>&5
4682   ac_status=$?
4683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }
4685
4686 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4687 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4688 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4689   $as_echo_n "(cached) " >&6
4690 else
4691   cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697
4698 int
4699 main ()
4700 {
4701 #ifndef __GNUC__
4702        choke me
4703 #endif
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4711 case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717   (eval "$ac_compile") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && {
4724          test -z "$ac_cxx_werror_flag" ||
4725          test ! -s conftest.err
4726        } && test -s conftest.$ac_objext; then
4727   ac_compiler_gnu=yes
4728 else
4729   $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732         ac_compiler_gnu=no
4733 fi
4734
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4737
4738 fi
4739 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4740 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4742   GXX=yes
4743 else
4744   GXX=
4745 fi
4746 ac_test_CXXFLAGS=${CXXFLAGS+set}
4747 ac_save_CXXFLAGS=$CXXFLAGS
4748 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4749 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4750 if test "${ac_cv_prog_cxx_g+set}" = set; then
4751   $as_echo_n "(cached) " >&6
4752 else
4753   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4754    ac_cxx_werror_flag=yes
4755    ac_cv_prog_cxx_g=no
4756    CXXFLAGS="-g"
4757    cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763
4764 int
4765 main ()
4766 {
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4774 case "(($ac_try" in
4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776   *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780   (eval "$ac_compile") 2>conftest.er1
4781   ac_status=$?
4782   grep -v '^ *+' conftest.er1 >conftest.err
4783   rm -f conftest.er1
4784   cat conftest.err >&5
4785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } && {
4787          test -z "$ac_cxx_werror_flag" ||
4788          test ! -s conftest.err
4789        } && test -s conftest.$ac_objext; then
4790   ac_cv_prog_cxx_g=yes
4791 else
4792   $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795         CXXFLAGS=""
4796       cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 int
4804 main ()
4805 {
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (ac_try="$ac_compile"
4813 case "(($ac_try" in
4814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815   *) ac_try_echo=$ac_try;;
4816 esac
4817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4818 $as_echo "$ac_try_echo") >&5
4819   (eval "$ac_compile") 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } && {
4826          test -z "$ac_cxx_werror_flag" ||
4827          test ! -s conftest.err
4828        } && test -s conftest.$ac_objext; then
4829   :
4830 else
4831   $as_echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4835          CXXFLAGS="-g"
4836          cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842
4843 int
4844 main ()
4845 {
4846
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4853 case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859   (eval "$ac_compile") 2>conftest.er1
4860   ac_status=$?
4861   grep -v '^ *+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } && {
4866          test -z "$ac_cxx_werror_flag" ||
4867          test ! -s conftest.err
4868        } && test -s conftest.$ac_objext; then
4869   ac_cv_prog_cxx_g=yes
4870 else
4871   $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 fi
4882
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4885 fi
4886 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4887 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4888 if test "$ac_test_CXXFLAGS" = set; then
4889   CXXFLAGS=$ac_save_CXXFLAGS
4890 elif test $ac_cv_prog_cxx_g = yes; then
4891   if test "$GXX" = yes; then
4892     CXXFLAGS="-g -O2"
4893   else
4894     CXXFLAGS="-g"
4895   fi
4896 else
4897   if test "$GXX" = yes; then
4898     CXXFLAGS="-O2"
4899   else
4900     CXXFLAGS=
4901   fi
4902 fi
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909 depcc="$CXX"  am_compiler_list=
4910
4911 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4912 $as_echo_n "checking dependency style of $depcc... " >&6; }
4913 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4917   # We make a subdir and do the tests there.  Otherwise we can end up
4918   # making bogus files that we don't know about and never remove.  For
4919   # instance it was reported that on HP-UX the gcc test will end up
4920   # making a dummy file named `D' -- because `-MD' means `put the output
4921   # in D'.
4922   mkdir conftest.dir
4923   # Copy depcomp to subdir because otherwise we won't find it if we're
4924   # using a relative directory.
4925   cp "$am_depcomp" conftest.dir
4926   cd conftest.dir
4927   # We will build objects and dependencies in a subdirectory because
4928   # it helps to detect inapplicable dependency modes.  For instance
4929   # both Tru64's cc and ICC support -MD to output dependencies as a
4930   # side effect of compilation, but ICC will put the dependencies in
4931   # the current directory while Tru64 will put them in the object
4932   # directory.
4933   mkdir sub
4934
4935   am_cv_CXX_dependencies_compiler_type=none
4936   if test "$am_compiler_list" = ""; then
4937      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4938   fi
4939   for depmode in $am_compiler_list; do
4940     # Setup a source with many dependencies, because some compilers
4941     # like to wrap large dependency lists on column 80 (with \), and
4942     # we should not choose a depcomp mode which is confused by this.
4943     #
4944     # We need to recreate these files for each test, as the compiler may
4945     # overwrite some of them when testing with obscure command lines.
4946     # This happens at least with the AIX C compiler.
4947     : > sub/conftest.c
4948     for i in 1 2 3 4 5 6; do
4949       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4950       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4951       # Solaris 8's {/usr,}/bin/sh.
4952       touch sub/conftst$i.h
4953     done
4954     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4955
4956     case $depmode in
4957     nosideeffect)
4958       # after this tag, mechanisms are not by side-effect, so they'll
4959       # only be used when explicitly requested
4960       if test "x$enable_dependency_tracking" = xyes; then
4961         continue
4962       else
4963         break
4964       fi
4965       ;;
4966     none) break ;;
4967     esac
4968     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4969     # mode.  It turns out that the SunPro C++ compiler does not properly
4970     # handle `-M -o', and we need to detect this.
4971     if depmode=$depmode \
4972        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4973        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4974        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4975          >/dev/null 2>conftest.err &&
4976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979       # icc doesn't choke on unknown options, it will just issue warnings
4980       # or remarks (even with -Werror).  So we grep stderr for any message
4981       # that says an option was ignored or not supported.
4982       # When given -MP, icc 7.0 and 7.1 complain thusly:
4983       #   icc: Command line warning: ignoring option '-M'; no argument required
4984       # The diagnosis changed in icc 8.0:
4985       #   icc: Command line remark: option '-MP' not supported
4986       if (grep 'ignoring option' conftest.err ||
4987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988         am_cv_CXX_dependencies_compiler_type=$depmode
4989         break
4990       fi
4991     fi
4992   done
4993
4994   cd ..
4995   rm -rf conftest.dir
4996 else
4997   am_cv_CXX_dependencies_compiler_type=none
4998 fi
4999
5000 fi
5001 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5003 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5004
5005
5006
5007 if
5008   test "x$enable_dependency_tracking" != xno \
5009   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5010   am__fastdepCXX_TRUE=
5011   am__fastdepCXX_FALSE='#'
5012 else
5013   am__fastdepCXX_TRUE='#'
5014   am__fastdepCXX_FALSE=
5015 fi
5016
5017
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 if test -n "$ac_tool_prefix"; then
5024   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_CC+set}" = set; then
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -n "$CC"; then
5032   ac_cv_prog_CC="$CC" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039   for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5042     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 CC=$ac_cv_prog_CC
5052 if test -n "$CC"; then
5053   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5054 $as_echo "$CC" >&6; }
5055 else
5056   { $as_echo "$as_me:$LINENO: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060
5061 fi
5062 if test -z "$ac_cv_prog_CC"; then
5063   ac_ct_CC=$CC
5064   # Extract the first word of "gcc", so it can be a program name with args.
5065 set dummy gcc; ac_word=$2
5066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$ac_ct_CC"; then
5072   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_prog_ac_ct_CC="gcc"
5082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5092 if test -n "$ac_ct_CC"; then
5093   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5094 $as_echo "$ac_ct_CC" >&6; }
5095 else
5096   { $as_echo "$as_me:$LINENO: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100   if test "x$ac_ct_CC" = x; then
5101     CC=""
5102   else
5103     case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     CC=$ac_ct_CC
5110   fi
5111 else
5112   CC="$ac_cv_prog_CC"
5113 fi
5114
5115 if test -z "$CC"; then
5116           if test -n "$ac_tool_prefix"; then
5117     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5118 set dummy ${ac_tool_prefix}cc; ac_word=$2
5119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_CC+set}" = set; then
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$CC"; then
5125   ac_cv_prog_CC="$CC" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_CC="${ac_tool_prefix}cc"
5135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 CC=$ac_cv_prog_CC
5145 if test -n "$CC"; then
5146   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5147 $as_echo "$CC" >&6; }
5148 else
5149   { $as_echo "$as_me:$LINENO: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154   fi
5155 fi
5156 if test -z "$CC"; then
5157   # Extract the first word of "cc", so it can be a program name with args.
5158 set dummy cc; ac_word=$2
5159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if test "${ac_cv_prog_CC+set}" = set; then
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test -n "$CC"; then
5165   ac_cv_prog_CC="$CC" # Let the user override the test.
5166 else
5167   ac_prog_rejected=no
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5176        ac_prog_rejected=yes
5177        continue
5178      fi
5179     ac_cv_prog_CC="cc"
5180     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 if test $ac_prog_rejected = yes; then
5188   # We found a bogon in the path, so make sure we never use it.
5189   set dummy $ac_cv_prog_CC
5190   shift
5191   if test $# != 0; then
5192     # We chose a different compiler from the bogus one.
5193     # However, it has the same basename, so the bogon will be chosen
5194     # first if we set CC to just the basename; use the full file name.
5195     shift
5196     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5197   fi
5198 fi
5199 fi
5200 fi
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5205 else
5206   { $as_echo "$as_me:$LINENO: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 fi
5212 if test -z "$CC"; then
5213   if test -n "$ac_tool_prefix"; then
5214   for ac_prog in cl.exe
5215   do
5216     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_CC+set}" = set; then
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$CC"; then
5224   ac_cv_prog_CC="$CC" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231   for ac_exec_ext in '' $ac_executable_extensions; do
5232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238 done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 CC=$ac_cv_prog_CC
5244 if test -n "$CC"; then
5245   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5246 $as_echo "$CC" >&6; }
5247 else
5248   { $as_echo "$as_me:$LINENO: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253     test -n "$CC" && break
5254   done
5255 fi
5256 if test -z "$CC"; then
5257   ac_ct_CC=$CC
5258   for ac_prog in cl.exe
5259 do
5260   # Extract the first word of "$ac_prog", so it can be a program name with args.
5261 set dummy $ac_prog; ac_word=$2
5262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5265   $as_echo_n "(cached) " >&6
5266 else
5267   if test -n "$ac_ct_CC"; then
5268   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277     ac_cv_prog_ac_ct_CC="$ac_prog"
5278     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5288 if test -n "$ac_ct_CC"; then
5289   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5290 $as_echo "$ac_ct_CC" >&6; }
5291 else
5292   { $as_echo "$as_me:$LINENO: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297   test -n "$ac_ct_CC" && break
5298 done
5299
5300   if test "x$ac_ct_CC" = x; then
5301     CC=""
5302   else
5303     case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307 ac_tool_warned=yes ;;
5308 esac
5309     CC=$ac_ct_CC
5310   fi
5311 fi
5312
5313 fi
5314
5315
5316 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5319 See \`config.log' for more details." >&5
5320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5321 See \`config.log' for more details." >&2;}
5322    { (exit 1); exit 1; }; }; }
5323
5324 # Provide some information about the compiler.
5325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5326 set X $ac_compile
5327 ac_compiler=$2
5328 { (ac_try="$ac_compiler --version >&5"
5329 case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335   (eval "$ac_compiler --version >&5") 2>&5
5336   ac_status=$?
5337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }
5339 { (ac_try="$ac_compiler -v >&5"
5340 case "(($ac_try" in
5341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342   *) ac_try_echo=$ac_try;;
5343 esac
5344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5345 $as_echo "$ac_try_echo") >&5
5346   (eval "$ac_compiler -v >&5") 2>&5
5347   ac_status=$?
5348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }
5350 { (ac_try="$ac_compiler -V >&5"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5356 $as_echo "$ac_try_echo") >&5
5357   (eval "$ac_compiler -V >&5") 2>&5
5358   ac_status=$?
5359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }
5361
5362 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5363 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5365   $as_echo_n "(cached) " >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373
5374 int
5375 main ()
5376 {
5377 #ifndef __GNUC__
5378        choke me
5379 #endif
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5392 $as_echo "$ac_try_echo") >&5
5393   (eval "$ac_compile") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } && {
5400          test -z "$ac_c_werror_flag" ||
5401          test ! -s conftest.err
5402        } && test -s conftest.$ac_objext; then
5403   ac_compiler_gnu=yes
5404 else
5405   $as_echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408         ac_compiler_gnu=no
5409 fi
5410
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5413
5414 fi
5415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5417 if test $ac_compiler_gnu = yes; then
5418   GCC=yes
5419 else
5420   GCC=
5421 fi
5422 ac_test_CFLAGS=${CFLAGS+set}
5423 ac_save_CFLAGS=$CFLAGS
5424 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5426 if test "${ac_cv_prog_cc_g+set}" = set; then
5427   $as_echo_n "(cached) " >&6
5428 else
5429   ac_save_c_werror_flag=$ac_c_werror_flag
5430    ac_c_werror_flag=yes
5431    ac_cv_prog_cc_g=no
5432    CFLAGS="-g"
5433    cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439
5440 int
5441 main ()
5442 {
5443
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5450 case "(($ac_try" in
5451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452   *) ac_try_echo=$ac_try;;
5453 esac
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456   (eval "$ac_compile") 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && {
5463          test -z "$ac_c_werror_flag" ||
5464          test ! -s conftest.err
5465        } && test -s conftest.$ac_objext; then
5466   ac_cv_prog_cc_g=yes
5467 else
5468   $as_echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471         CFLAGS=""
5472       cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478
5479 int
5480 main ()
5481 {
5482
5483   ;
5484   return 0;
5485 }
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5489 case "(($ac_try" in
5490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491   *) ac_try_echo=$ac_try;;
5492 esac
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495   (eval "$ac_compile") 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } && {
5502          test -z "$ac_c_werror_flag" ||
5503          test ! -s conftest.err
5504        } && test -s conftest.$ac_objext; then
5505   :
5506 else
5507   $as_echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510         ac_c_werror_flag=$ac_save_c_werror_flag
5511          CFLAGS="-g"
5512          cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518
5519 int
5520 main ()
5521 {
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535   (eval "$ac_compile") 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } && {
5542          test -z "$ac_c_werror_flag" ||
5543          test ! -s conftest.err
5544        } && test -s conftest.$ac_objext; then
5545   ac_cv_prog_cc_g=yes
5546 else
5547   $as_echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550
5551 fi
5552
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 fi
5555
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560    ac_c_werror_flag=$ac_save_c_werror_flag
5561 fi
5562 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5563 $as_echo "$ac_cv_prog_cc_g" >&6; }
5564 if test "$ac_test_CFLAGS" = set; then
5565   CFLAGS=$ac_save_CFLAGS
5566 elif test $ac_cv_prog_cc_g = yes; then
5567   if test "$GCC" = yes; then
5568     CFLAGS="-g -O2"
5569   else
5570     CFLAGS="-g"
5571   fi
5572 else
5573   if test "$GCC" = yes; then
5574     CFLAGS="-O2"
5575   else
5576     CFLAGS=
5577   fi
5578 fi
5579 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5581 if test "${ac_cv_prog_cc_c89+set}" = set; then
5582   $as_echo_n "(cached) " >&6
5583 else
5584   ac_cv_prog_cc_c89=no
5585 ac_save_CC=$CC
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 #include <stdarg.h>
5593 #include <stdio.h>
5594 #include <sys/types.h>
5595 #include <sys/stat.h>
5596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5597 struct buf { int x; };
5598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5599 static char *e (p, i)
5600      char **p;
5601      int i;
5602 {
5603   return p[i];
5604 }
5605 static char *f (char * (*g) (char **, int), char **p, ...)
5606 {
5607   char *s;
5608   va_list v;
5609   va_start (v,p);
5610   s = g (p, va_arg (v,int));
5611   va_end (v);
5612   return s;
5613 }
5614
5615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5616    function prototypes and stuff, but not '\xHH' hex character constants.
5617    These don't provoke an error unfortunately, instead are silently treated
5618    as 'x'.  The following induces an error, until -std is added to get
5619    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5620    array size at least.  It's necessary to write '\x00'==0 to get something
5621    that's true only with -std.  */
5622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5623
5624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5625    inside strings and character constants.  */
5626 #define FOO(x) 'x'
5627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5628
5629 int test (int i, double x);
5630 struct s1 {int (*f) (int a);};
5631 struct s2 {int (*f) (double a);};
5632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5633 int argc;
5634 char **argv;
5635 int
5636 main ()
5637 {
5638 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5639   ;
5640   return 0;
5641 }
5642 _ACEOF
5643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5644         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5645 do
5646   CC="$ac_save_CC $ac_arg"
5647   rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651   *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655   (eval "$ac_compile") 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } && {
5662          test -z "$ac_c_werror_flag" ||
5663          test ! -s conftest.err
5664        } && test -s conftest.$ac_objext; then
5665   ac_cv_prog_cc_c89=$ac_arg
5666 else
5667   $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670
5671 fi
5672
5673 rm -f core conftest.err conftest.$ac_objext
5674   test "x$ac_cv_prog_cc_c89" != "xno" && break
5675 done
5676 rm -f conftest.$ac_ext
5677 CC=$ac_save_CC
5678
5679 fi
5680 # AC_CACHE_VAL
5681 case "x$ac_cv_prog_cc_c89" in
5682   x)
5683     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5684 $as_echo "none needed" >&6; } ;;
5685   xno)
5686     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5687 $as_echo "unsupported" >&6; } ;;
5688   *)
5689     CC="$CC $ac_cv_prog_cc_c89"
5690     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5692 esac
5693
5694
5695 ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701 # Find a good install program.  We prefer a C program (faster),
5702 # so one script is as good as another.  But avoid the broken or
5703 # incompatible versions:
5704 # SysV /etc/install, /usr/sbin/install
5705 # SunOS /usr/etc/install
5706 # IRIX /sbin/install
5707 # AIX /bin/install
5708 # AmigaOS /C/install, which installs bootblocks on floppy discs
5709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5712 # OS/2's system install, which has a completely different semantic
5713 # ./install, which can be erroneously created by make from ./install.sh.
5714 # Reject install programs that cannot install multiple files.
5715 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5717 if test -z "$INSTALL"; then
5718 if test "${ac_cv_path_install+set}" = set; then
5719   $as_echo_n "(cached) " >&6
5720 else
5721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726   # Account for people who put trailing slashes in PATH elements.
5727 case $as_dir/ in
5728   ./ | .// | /cC/* | \
5729   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5730   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5731   /usr/ucb/* ) ;;
5732   *)
5733     # OSF1 and SCO ODT 3.0 have their own names for install.
5734     # Don't use installbsd from OSF since it installs stuff as root
5735     # by default.
5736     for ac_prog in ginstall scoinst install; do
5737       for ac_exec_ext in '' $ac_executable_extensions; do
5738         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5739           if test $ac_prog = install &&
5740             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5741             # AIX install.  It has an incompatible calling convention.
5742             :
5743           elif test $ac_prog = install &&
5744             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745             # program-specific install script used by HP pwplus--don't use.
5746             :
5747           else
5748             rm -rf conftest.one conftest.two conftest.dir
5749             echo one > conftest.one
5750             echo two > conftest.two
5751             mkdir conftest.dir
5752             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5753               test -s conftest.one && test -s conftest.two &&
5754               test -s conftest.dir/conftest.one &&
5755               test -s conftest.dir/conftest.two
5756             then
5757               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5758               break 3
5759             fi
5760           fi
5761         fi
5762       done
5763     done
5764     ;;
5765 esac
5766
5767 done
5768 IFS=$as_save_IFS
5769
5770 rm -rf conftest.one conftest.two conftest.dir
5771
5772 fi
5773   if test "${ac_cv_path_install+set}" = set; then
5774     INSTALL=$ac_cv_path_install
5775   else
5776     # As a last resort, use the slow shell script.  Don't cache a
5777     # value for INSTALL within a source directory, because that will
5778     # break other packages using the cache if that directory is
5779     # removed, or if the value is a relative name.
5780     INSTALL=$ac_install_sh
5781   fi
5782 fi
5783 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5784 $as_echo "$INSTALL" >&6; }
5785
5786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5787 # It thinks the first close brace ends the variable substitution.
5788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5789
5790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5791
5792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5793
5794 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5795 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5796 set x ${MAKE-make}
5797 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5798 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5799   $as_echo_n "(cached) " >&6
5800 else
5801   cat >conftest.make <<\_ACEOF
5802 SHELL = /bin/sh
5803 all:
5804         @echo '@@@%%%=$(MAKE)=@@@%%%'
5805 _ACEOF
5806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5807 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5808   *@@@%%%=?*=@@@%%%*)
5809     eval ac_cv_prog_make_${ac_make}_set=yes;;
5810   *)
5811     eval ac_cv_prog_make_${ac_make}_set=no;;
5812 esac
5813 rm -f conftest.make
5814 fi
5815 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5816   { $as_echo "$as_me:$LINENO: result: yes" >&5
5817 $as_echo "yes" >&6; }
5818   SET_MAKE=
5819 else
5820   { $as_echo "$as_me:$LINENO: result: no" >&5
5821 $as_echo "no" >&6; }
5822   SET_MAKE="MAKE=${MAKE-make}"
5823 fi
5824
5825
5826
5827 # site specific configs
5828
5829 # check for asterisk
5830
5831 # Check whether --with-asterisk was given.
5832 if test "${with_asterisk+set}" = set; then
5833   withval=$with_asterisk;
5834 else
5835   with_asterisk="check"
5836 fi
5837
5838
5839 if test "x$with_asterisk" != xno; then
5840
5841 for ac_header in asterisk/compiler.h
5842 do
5843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5846 $as_echo_n "checking for $ac_header... " >&6; }
5847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5848   $as_echo_n "(cached) " >&6
5849 fi
5850 ac_res=`eval 'as_val=${'$as_ac_Header'}
5851                  $as_echo "$as_val"'`
5852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5853 $as_echo "$ac_res" >&6; }
5854 else
5855   # Is the header compilable?
5856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5857 $as_echo_n "checking $ac_header usability... " >&6; }
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 $ac_includes_default
5865 #include <$ac_header>
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871   *) ac_try_echo=$ac_try;;
5872 esac
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875   (eval "$ac_compile") 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } && {
5882          test -z "$ac_c_werror_flag" ||
5883          test ! -s conftest.err
5884        } && test -s conftest.$ac_objext; then
5885   ac_header_compiler=yes
5886 else
5887   $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890         ac_header_compiler=no
5891 fi
5892
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5895 $as_echo "$ac_header_compiler" >&6; }
5896
5897 # Is the header present?
5898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5899 $as_echo_n "checking $ac_header presence... " >&6; }
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 #include <$ac_header>
5907 _ACEOF
5908 if { (ac_try="$ac_cpp conftest.$ac_ext"
5909 case "(($ac_try" in
5910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911   *) ac_try_echo=$ac_try;;
5912 esac
5913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914 $as_echo "$ac_try_echo") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null && {
5922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923          test ! -s conftest.err
5924        }; then
5925   ac_header_preproc=yes
5926 else
5927   $as_echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930   ac_header_preproc=no
5931 fi
5932
5933 rm -f conftest.err conftest.$ac_ext
5934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5935 $as_echo "$ac_header_preproc" >&6; }
5936
5937 # So?  What about this header?
5938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5939   yes:no: )
5940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5944     ac_header_preproc=yes
5945     ;;
5946   no:yes:* )
5947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5950 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5953     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5954 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5959     ( cat <<\_ASBOX
5960 ## ----------------------------------- ##
5961 ## Report this to andreas@eversberg.eu ##
5962 ## ----------------------------------- ##
5963 _ASBOX
5964      ) | sed "s/^/$as_me: WARNING:     /" >&2
5965     ;;
5966 esac
5967 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5968 $as_echo_n "checking for $ac_header... " >&6; }
5969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5970   $as_echo_n "(cached) " >&6
5971 else
5972   eval "$as_ac_Header=\$ac_header_preproc"
5973 fi
5974 ac_res=`eval 'as_val=${'$as_ac_Header'}
5975                  $as_echo "$as_val"'`
5976                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5977 $as_echo "$ac_res" >&6; }
5978
5979 fi
5980 as_val=`eval 'as_val=${'$as_ac_Header'}
5981                  $as_echo "$as_val"'`
5982    if test "x$as_val" = x""yes; then
5983   cat >>confdefs.h <<_ACEOF
5984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 _ACEOF
5986  with_asterisk="yes"
5987 else
5988   if test "x$with_asterisk" != xcheck ; then
5989                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5991 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5992 See \`config.log' for more details." >&5
5993 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5994 See \`config.log' for more details." >&2;}
5995    { (exit 1); exit 1; }; }; }
5996                      fi
5997
5998 fi
5999
6000 done
6001
6002
6003 fi
6004
6005
6006
6007
6008 if test "x$with_asterisk" == "xyes" ; then
6009   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6010   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6011 else
6012   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6013   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6014 fi
6015
6016
6017 # check for crypto
6018
6019 # Check whether --with-ssl was given.
6020 if test "${with_ssl+set}" = set; then
6021   withval=$with_ssl;
6022 else
6023   with_ssl=check
6024 fi
6025
6026 LIBCRYPTO=
6027 if test "x$with_ssl" != xno; then
6028
6029 for ac_header in openssl/rsa.h
6030 do
6031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6034 $as_echo_n "checking for $ac_header... " >&6; }
6035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6036   $as_echo_n "(cached) " >&6
6037 fi
6038 ac_res=`eval 'as_val=${'$as_ac_Header'}
6039                  $as_echo "$as_val"'`
6040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6041 $as_echo "$ac_res" >&6; }
6042 else
6043   # Is the header compilable?
6044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6045 $as_echo_n "checking $ac_header usability... " >&6; }
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 $ac_includes_default
6053 #include <$ac_header>
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062 $as_echo "$ac_try_echo") >&5
6063   (eval "$ac_compile") 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } && {
6070          test -z "$ac_c_werror_flag" ||
6071          test ! -s conftest.err
6072        } && test -s conftest.$ac_objext; then
6073   ac_header_compiler=yes
6074 else
6075   $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078         ac_header_compiler=no
6079 fi
6080
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083 $as_echo "$ac_header_compiler" >&6; }
6084
6085 # Is the header present?
6086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6087 $as_echo_n "checking $ac_header presence... " >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094 #include <$ac_header>
6095 _ACEOF
6096 if { (ac_try="$ac_cpp conftest.$ac_ext"
6097 case "(($ac_try" in
6098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099   *) ac_try_echo=$ac_try;;
6100 esac
6101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102 $as_echo "$ac_try_echo") >&5
6103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } >/dev/null && {
6110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6111          test ! -s conftest.err
6112        }; then
6113   ac_header_preproc=yes
6114 else
6115   $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118   ac_header_preproc=no
6119 fi
6120
6121 rm -f conftest.err conftest.$ac_ext
6122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6123 $as_echo "$ac_header_preproc" >&6; }
6124
6125 # So?  What about this header?
6126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6127   yes:no: )
6128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6132     ac_header_preproc=yes
6133     ;;
6134   no:yes:* )
6135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6138 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6142 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6147     ( cat <<\_ASBOX
6148 ## ----------------------------------- ##
6149 ## Report this to andreas@eversberg.eu ##
6150 ## ----------------------------------- ##
6151 _ASBOX
6152      ) | sed "s/^/$as_me: WARNING:     /" >&2
6153     ;;
6154 esac
6155 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6156 $as_echo_n "checking for $ac_header... " >&6; }
6157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6158   $as_echo_n "(cached) " >&6
6159 else
6160   eval "$as_ac_Header=\$ac_header_preproc"
6161 fi
6162 ac_res=`eval 'as_val=${'$as_ac_Header'}
6163                  $as_echo "$as_val"'`
6164                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6165 $as_echo "$ac_res" >&6; }
6166
6167 fi
6168 as_val=`eval 'as_val=${'$as_ac_Header'}
6169                  $as_echo "$as_val"'`
6170    if test "x$as_val" = x""yes; then
6171   cat >>confdefs.h <<_ACEOF
6172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF
6174
6175 fi
6176
6177 done
6178
6179        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6180 $as_echo_n "checking for main in -lcrypto... " >&6; }
6181 if test "${ac_cv_lib_crypto_main+set}" = set; then
6182   $as_echo_n "(cached) " >&6
6183 else
6184   ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-lcrypto -lcrypto
6186                     $LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193
6194
6195 int
6196 main ()
6197 {
6198 return main ();
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6205 case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211   (eval "$ac_link") 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } && {
6218          test -z "$ac_c_werror_flag" ||
6219          test ! -s conftest.err
6220        } && test -s conftest$ac_exeext && {
6221          test "$cross_compiling" = yes ||
6222          $as_test_x conftest$ac_exeext
6223        }; then
6224   ac_cv_lib_crypto_main=yes
6225 else
6226   $as_echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229         ac_cv_lib_crypto_main=no
6230 fi
6231
6232 rm -rf conftest.dSYM
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234       conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6236 fi
6237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6238 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6239 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6240   LIBCRYPTO="-lcrypto"
6241
6242
6243 cat >>confdefs.h <<\_ACEOF
6244 #define HAVE_LIBCRYPTO 1
6245 _ACEOF
6246
6247
6248 else
6249   if test "x$with_ssl" != xcheck ; then
6250                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6252 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6253 See \`config.log' for more details." >&5
6254 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6255 See \`config.log' for more details." >&2;}
6256    { (exit 1); exit 1; }; }; }
6257                      fi
6258
6259 fi
6260
6261
6262
6263 fi
6264
6265
6266 # check for gsm
6267
6268 # Check whether --with-gsm was given.
6269 if test "${with_gsm+set}" = set; then
6270   withval=$with_gsm;
6271 else
6272   with_gsm="check"
6273 fi
6274
6275
6276 if test "x$with_gsm" != xno; then
6277   { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6278 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6279 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6280   $as_echo_n "(cached) " >&6
6281 else
6282   test "$cross_compiling" = yes &&
6283   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6284 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6285    { (exit 1); exit 1; }; }
6286 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6287   ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6288 else
6289   ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6290 fi
6291 fi
6292 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6293 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6294 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6295   with_gsm="yes"
6296 else
6297   if test "x$with_gsm" != xcheck ; then
6298                           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6300 { { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore
6301 See \`config.log' for more details." >&5
6302 $as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore
6303 See \`config.log' for more details." >&2;}
6304    { (exit 1); exit 1; }; }; }
6305                      fi
6306
6307 fi
6308
6309
6310 fi
6311
6312
6313
6314
6315 if test "x$with_gsm" == "xyes" ; then
6316   ENABLE_GSM_TRUE=
6317   ENABLE_GSM_FALSE='#'
6318 else
6319   ENABLE_GSM_TRUE='#'
6320   ENABLE_GSM_FALSE=
6321 fi
6322
6323
6324 # check for ss5
6325
6326 # Check whether --with-ss5 was given.
6327 if test "${with_ss5+set}" = set; then
6328   withval=$with_ss5;
6329 else
6330   with_ss5="check"
6331 fi
6332
6333
6334
6335
6336 if test "x$with_ss5" == "xyes" ; then
6337   ENABLE_SS5_TRUE=
6338   ENABLE_SS5_FALSE='#'
6339 else
6340   ENABLE_SS5_TRUE='#'
6341   ENABLE_SS5_FALSE=
6342 fi
6343
6344
6345 # Checks for libraries.
6346
6347 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6348 $as_echo_n "checking for main in -lm... " >&6; }
6349 if test "${ac_cv_lib_m_main+set}" = set; then
6350   $as_echo_n "(cached) " >&6
6351 else
6352   ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lm  $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360
6361
6362 int
6363 main ()
6364 {
6365 return main ();
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6372 case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377 $as_echo "$ac_try_echo") >&5
6378   (eval "$ac_link") 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } && {
6385          test -z "$ac_c_werror_flag" ||
6386          test ! -s conftest.err
6387        } && test -s conftest$ac_exeext && {
6388          test "$cross_compiling" = yes ||
6389          $as_test_x conftest$ac_exeext
6390        }; then
6391   ac_cv_lib_m_main=yes
6392 else
6393   $as_echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396         ac_cv_lib_m_main=no
6397 fi
6398
6399 rm -rf conftest.dSYM
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401       conftest$ac_exeext conftest.$ac_ext
6402 LIBS=$ac_check_lib_save_LIBS
6403 fi
6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6405 $as_echo "$ac_cv_lib_m_main" >&6; }
6406 if test "x$ac_cv_lib_m_main" = x""yes; then
6407   cat >>confdefs.h <<_ACEOF
6408 #define HAVE_LIBM 1
6409 _ACEOF
6410
6411   LIBS="-lm $LIBS"
6412
6413 fi
6414
6415
6416 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6417 $as_echo_n "checking for main in -lncurses... " >&6; }
6418 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6419   $as_echo_n "(cached) " >&6
6420 else
6421   ac_check_lib_save_LIBS=$LIBS
6422 LIBS="-lncurses  $LIBS"
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429
6430
6431 int
6432 main ()
6433 {
6434 return main ();
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (ac_try="$ac_link"
6441 case "(($ac_try" in
6442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443   *) ac_try_echo=$ac_try;;
6444 esac
6445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6446 $as_echo "$ac_try_echo") >&5
6447   (eval "$ac_link") 2>conftest.er1
6448   ac_status=$?
6449   grep -v '^ *+' conftest.er1 >conftest.err
6450   rm -f conftest.er1
6451   cat conftest.err >&5
6452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); } && {
6454          test -z "$ac_c_werror_flag" ||
6455          test ! -s conftest.err
6456        } && test -s conftest$ac_exeext && {
6457          test "$cross_compiling" = yes ||
6458          $as_test_x conftest$ac_exeext
6459        }; then
6460   ac_cv_lib_ncurses_main=yes
6461 else
6462   $as_echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465         ac_cv_lib_ncurses_main=no
6466 fi
6467
6468 rm -rf conftest.dSYM
6469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6470       conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6472 fi
6473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6474 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6475 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6476   cat >>confdefs.h <<_ACEOF
6477 #define HAVE_LIBNCURSES 1
6478 _ACEOF
6479
6480   LIBS="-lncurses $LIBS"
6481
6482 fi
6483
6484
6485 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6486 $as_echo_n "checking for main in -lpthread... " >&6; }
6487 if test "${ac_cv_lib_pthread_main+set}" = set; then
6488   $as_echo_n "(cached) " >&6
6489 else
6490   ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lpthread  $LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498
6499
6500 int
6501 main ()
6502 {
6503 return main ();
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6510 case "(($ac_try" in
6511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512   *) ac_try_echo=$ac_try;;
6513 esac
6514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516   (eval "$ac_link") 2>conftest.er1
6517   ac_status=$?
6518   grep -v '^ *+' conftest.er1 >conftest.err
6519   rm -f conftest.er1
6520   cat conftest.err >&5
6521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } && {
6523          test -z "$ac_c_werror_flag" ||
6524          test ! -s conftest.err
6525        } && test -s conftest$ac_exeext && {
6526          test "$cross_compiling" = yes ||
6527          $as_test_x conftest$ac_exeext
6528        }; then
6529   ac_cv_lib_pthread_main=yes
6530 else
6531   $as_echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6533
6534         ac_cv_lib_pthread_main=no
6535 fi
6536
6537 rm -rf conftest.dSYM
6538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6539       conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS
6541 fi
6542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6543 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6544 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6545   cat >>confdefs.h <<_ACEOF
6546 #define HAVE_LIBPTHREAD 1
6547 _ACEOF
6548
6549   LIBS="-lpthread $LIBS"
6550
6551 fi
6552
6553
6554 # Checks for header files.
6555
6556
6557
6558
6559
6560 ac_header_dirent=no
6561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6562   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6563 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6564 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566   $as_echo_n "(cached) " >&6
6567 else
6568   cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 #include <sys/types.h>
6575 #include <$ac_hdr>
6576
6577 int
6578 main ()
6579 {
6580 if ((DIR *) 0)
6581 return 0;
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (ac_try="$ac_compile"
6588 case "(($ac_try" in
6589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590   *) ac_try_echo=$ac_try;;
6591 esac
6592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593 $as_echo "$ac_try_echo") >&5
6594   (eval "$ac_compile") 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } && {
6601          test -z "$ac_c_werror_flag" ||
6602          test ! -s conftest.err
6603        } && test -s conftest.$ac_objext; then
6604   eval "$as_ac_Header=yes"
6605 else
6606   $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609         eval "$as_ac_Header=no"
6610 fi
6611
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 ac_res=`eval 'as_val=${'$as_ac_Header'}
6615                  $as_echo "$as_val"'`
6616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6617 $as_echo "$ac_res" >&6; }
6618 as_val=`eval 'as_val=${'$as_ac_Header'}
6619                  $as_echo "$as_val"'`
6620    if test "x$as_val" = x""yes; then
6621   cat >>confdefs.h <<_ACEOF
6622 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6623 _ACEOF
6624
6625 ac_header_dirent=$ac_hdr; break
6626 fi
6627
6628 done
6629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6630 if test $ac_header_dirent = dirent.h; then
6631   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6632 $as_echo_n "checking for library containing opendir... " >&6; }
6633 if test "${ac_cv_search_opendir+set}" = set; then
6634   $as_echo_n "(cached) " >&6
6635 else
6636   ac_func_search_save_LIBS=$LIBS
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643
6644 /* Override any GCC internal prototype to avoid an error.
6645    Use char because int might match the return type of a GCC
6646    builtin and then its argument prototype would still apply.  */
6647 #ifdef __cplusplus
6648 extern "C"
6649 #endif
6650 char opendir ();
6651 int
6652 main ()
6653 {
6654 return opendir ();
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 for ac_lib in '' dir; do
6660   if test -z "$ac_lib"; then
6661     ac_res="none required"
6662   else
6663     ac_res=-l$ac_lib
6664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6665   fi
6666   rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6668 case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673 $as_echo "$ac_try_echo") >&5
6674   (eval "$ac_link") 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } && {
6681          test -z "$ac_c_werror_flag" ||
6682          test ! -s conftest.err
6683        } && test -s conftest$ac_exeext && {
6684          test "$cross_compiling" = yes ||
6685          $as_test_x conftest$ac_exeext
6686        }; then
6687   ac_cv_search_opendir=$ac_res
6688 else
6689   $as_echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692
6693 fi
6694
6695 rm -rf conftest.dSYM
6696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6697       conftest$ac_exeext
6698   if test "${ac_cv_search_opendir+set}" = set; then
6699   break
6700 fi
6701 done
6702 if test "${ac_cv_search_opendir+set}" = set; then
6703   :
6704 else
6705   ac_cv_search_opendir=no
6706 fi
6707 rm conftest.$ac_ext
6708 LIBS=$ac_func_search_save_LIBS
6709 fi
6710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6711 $as_echo "$ac_cv_search_opendir" >&6; }
6712 ac_res=$ac_cv_search_opendir
6713 if test "$ac_res" != no; then
6714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6715
6716 fi
6717
6718 else
6719   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6720 $as_echo_n "checking for library containing opendir... " >&6; }
6721 if test "${ac_cv_search_opendir+set}" = set; then
6722   $as_echo_n "(cached) " >&6
6723 else
6724   ac_func_search_save_LIBS=$LIBS
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h.  */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h.  */
6731
6732 /* Override any GCC internal prototype to avoid an error.
6733    Use char because int might match the return type of a GCC
6734    builtin and then its argument prototype would still apply.  */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 char opendir ();
6739 int
6740 main ()
6741 {
6742 return opendir ();
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 for ac_lib in '' x; do
6748   if test -z "$ac_lib"; then
6749     ac_res="none required"
6750   else
6751     ac_res=-l$ac_lib
6752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6753   fi
6754   rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6756 case "(($ac_try" in
6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758   *) ac_try_echo=$ac_try;;
6759 esac
6760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761 $as_echo "$ac_try_echo") >&5
6762   (eval "$ac_link") 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } && {
6769          test -z "$ac_c_werror_flag" ||
6770          test ! -s conftest.err
6771        } && test -s conftest$ac_exeext && {
6772          test "$cross_compiling" = yes ||
6773          $as_test_x conftest$ac_exeext
6774        }; then
6775   ac_cv_search_opendir=$ac_res
6776 else
6777   $as_echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780
6781 fi
6782
6783 rm -rf conftest.dSYM
6784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6785       conftest$ac_exeext
6786   if test "${ac_cv_search_opendir+set}" = set; then
6787   break
6788 fi
6789 done
6790 if test "${ac_cv_search_opendir+set}" = set; then
6791   :
6792 else
6793   ac_cv_search_opendir=no
6794 fi
6795 rm conftest.$ac_ext
6796 LIBS=$ac_func_search_save_LIBS
6797 fi
6798 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6799 $as_echo "$ac_cv_search_opendir" >&6; }
6800 ac_res=$ac_cv_search_opendir
6801 if test "$ac_res" != no; then
6802   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6803
6804 fi
6805
6806 fi
6807
6808 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 $as_echo_n "checking for ANSI C header files... " >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811   $as_echo_n "(cached) " >&6
6812 else
6813   cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819 #include <stdlib.h>
6820 #include <stdarg.h>
6821 #include <string.h>
6822 #include <float.h>
6823
6824 int
6825 main ()
6826 {
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840   (eval "$ac_compile") 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } && {
6847          test -z "$ac_c_werror_flag" ||
6848          test ! -s conftest.err
6849        } && test -s conftest.$ac_objext; then
6850   ac_cv_header_stdc=yes
6851 else
6852   $as_echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855         ac_cv_header_stdc=no
6856 fi
6857
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860 if test $ac_cv_header_stdc = yes; then
6861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6862   cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 #include <string.h>
6869
6870 _ACEOF
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872   $EGREP "memchr" >/dev/null 2>&1; then
6873   :
6874 else
6875   ac_cv_header_stdc=no
6876 fi
6877 rm -f conftest*
6878
6879 fi
6880
6881 if test $ac_cv_header_stdc = yes; then
6882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <stdlib.h>
6890
6891 _ACEOF
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893   $EGREP "free" >/dev/null 2>&1; then
6894   :
6895 else
6896   ac_cv_header_stdc=no
6897 fi
6898 rm -f conftest*
6899
6900 fi
6901
6902 if test $ac_cv_header_stdc = yes; then
6903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6904   if test "$cross_compiling" = yes; then
6905   :
6906 else
6907   cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h.  */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h.  */
6913 #include <ctype.h>
6914 #include <stdlib.h>
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 #else
6919 # define ISLOWER(c) \
6920                    (('a' <= (c) && (c) <= 'i') \
6921                      || ('j' <= (c) && (c) <= 'r') \
6922                      || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924 #endif
6925
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927 int
6928 main ()
6929 {
6930   int i;
6931   for (i = 0; i < 256; i++)
6932     if (XOR (islower (i), ISLOWER (i))
6933         || toupper (i) != TOUPPER (i))
6934       return 2;
6935   return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6940 case "(($ac_try" in
6941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942   *) ac_try_echo=$ac_try;;
6943 esac
6944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945 $as_echo "$ac_try_echo") >&5
6946   (eval "$ac_link") 2>&5
6947   ac_status=$?
6948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6950   { (case "(($ac_try" in
6951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952   *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956   (eval "$ac_try") 2>&5
6957   ac_status=$?
6958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   :
6961 else
6962   $as_echo "$as_me: program exited with status $ac_status" >&5
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 ( exit $ac_status )
6967 ac_cv_header_stdc=no
6968 fi
6969 rm -rf conftest.dSYM
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6971 fi
6972
6973
6974 fi
6975 fi
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6977 $as_echo "$ac_cv_header_stdc" >&6; }
6978 if test $ac_cv_header_stdc = yes; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define STDC_HEADERS 1
6982 _ACEOF
6983
6984 fi
6985
6986 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6987 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6988 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6989   $as_echo_n "(cached) " >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <sys/types.h>
6998 #include <sys/wait.h>
6999 #ifndef WEXITSTATUS
7000 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7001 #endif
7002 #ifndef WIFEXITED
7003 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7004 #endif
7005
7006 int
7007 main ()
7008 {
7009   int s;
7010   wait (&s);
7011   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (ac_try="$ac_compile"
7018 case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023 $as_echo "$ac_try_echo") >&5
7024   (eval "$ac_compile") 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } && {
7031          test -z "$ac_c_werror_flag" ||
7032          test ! -s conftest.err
7033        } && test -s conftest.$ac_objext; then
7034   ac_cv_header_sys_wait_h=yes
7035 else
7036   $as_echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039         ac_cv_header_sys_wait_h=no
7040 fi
7041
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 fi
7044 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7045 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7046 if test $ac_cv_header_sys_wait_h = yes; then
7047
7048 cat >>confdefs.h <<\_ACEOF
7049 #define HAVE_SYS_WAIT_H 1
7050 _ACEOF
7051
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067 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
7068 do
7069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7071   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 $as_echo_n "checking for $ac_header... " >&6; }
7073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7074   $as_echo_n "(cached) " >&6
7075 fi
7076 ac_res=`eval 'as_val=${'$as_ac_Header'}
7077                  $as_echo "$as_val"'`
7078                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7079 $as_echo "$ac_res" >&6; }
7080 else
7081   # Is the header compilable?
7082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7083 $as_echo_n "checking $ac_header usability... " >&6; }
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 $ac_includes_default
7091 #include <$ac_header>
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7095 case "(($ac_try" in
7096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097   *) ac_try_echo=$ac_try;;
7098 esac
7099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7100 $as_echo "$ac_try_echo") >&5
7101   (eval "$ac_compile") 2>conftest.er1
7102   ac_status=$?
7103   grep -v '^ *+' conftest.er1 >conftest.err
7104   rm -f conftest.er1
7105   cat conftest.err >&5
7106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } && {
7108          test -z "$ac_c_werror_flag" ||
7109          test ! -s conftest.err
7110        } && test -s conftest.$ac_objext; then
7111   ac_header_compiler=yes
7112 else
7113   $as_echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116         ac_header_compiler=no
7117 fi
7118
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7121 $as_echo "$ac_header_compiler" >&6; }
7122
7123 # Is the header present?
7124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7125 $as_echo_n "checking $ac_header presence... " >&6; }
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h.  */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h.  */
7132 #include <$ac_header>
7133 _ACEOF
7134 if { (ac_try="$ac_cpp conftest.$ac_ext"
7135 case "(($ac_try" in
7136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137   *) ac_try_echo=$ac_try;;
7138 esac
7139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7140 $as_echo "$ac_try_echo") >&5
7141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7142   ac_status=$?
7143   grep -v '^ *+' conftest.er1 >conftest.err
7144   rm -f conftest.er1
7145   cat conftest.err >&5
7146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } >/dev/null && {
7148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7149          test ! -s conftest.err
7150        }; then
7151   ac_header_preproc=yes
7152 else
7153   $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156   ac_header_preproc=no
7157 fi
7158
7159 rm -f conftest.err conftest.$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161 $as_echo "$ac_header_preproc" >&6; }
7162
7163 # So?  What about this header?
7164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7165   yes:no: )
7166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170     ac_header_preproc=yes
7171     ;;
7172   no:yes:* )
7173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7176 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7180 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7185     ( cat <<\_ASBOX
7186 ## ----------------------------------- ##
7187 ## Report this to andreas@eversberg.eu ##
7188 ## ----------------------------------- ##
7189 _ASBOX
7190      ) | sed "s/^/$as_me: WARNING:     /" >&2
7191     ;;
7192 esac
7193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7194 $as_echo_n "checking for $ac_header... " >&6; }
7195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7196   $as_echo_n "(cached) " >&6
7197 else
7198   eval "$as_ac_Header=\$ac_header_preproc"
7199 fi
7200 ac_res=`eval 'as_val=${'$as_ac_Header'}
7201                  $as_echo "$as_val"'`
7202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7203 $as_echo "$ac_res" >&6; }
7204
7205 fi
7206 as_val=`eval 'as_val=${'$as_ac_Header'}
7207                  $as_echo "$as_val"'`
7208    if test "x$as_val" = x""yes; then
7209   cat >>confdefs.h <<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 _ACEOF
7212
7213 fi
7214
7215 done
7216
7217
7218 # Checks for typedefs, structures, and compiler characteristics.
7219 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7220 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7221 if test "${ac_cv_header_stdbool_h+set}" = set; then
7222   $as_echo_n "(cached) " >&6
7223 else
7224   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230
7231 #include <stdbool.h>
7232 #ifndef bool
7233  "error: bool is not defined"
7234 #endif
7235 #ifndef false
7236  "error: false is not defined"
7237 #endif
7238 #if false
7239  "error: false is not 0"
7240 #endif
7241 #ifndef true
7242  "error: true is not defined"
7243 #endif
7244 #if true != 1
7245  "error: true is not 1"
7246 #endif
7247 #ifndef __bool_true_false_are_defined
7248  "error: __bool_true_false_are_defined is not defined"
7249 #endif
7250
7251         struct s { _Bool s: 1; _Bool t; } s;
7252
7253         char a[true == 1 ? 1 : -1];
7254         char b[false == 0 ? 1 : -1];
7255         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7256         char d[(bool) 0.5 == true ? 1 : -1];
7257         bool e = &s;
7258         char f[(_Bool) 0.0 == false ? 1 : -1];
7259         char g[true];
7260         char h[sizeof (_Bool)];
7261         char i[sizeof s.t];
7262         enum { j = false, k = true, l = false * true, m = true * 256 };
7263         /* The following fails for
7264            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7265         _Bool n[m];
7266         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7267         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7268 #       if defined __xlc__ || defined __GNUC__
7269          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7270             reported by James Lemley on 2005-10-05; see
7271             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7272             This test is not quite right, since xlc is allowed to
7273             reject this program, as the initializer for xlcbug is
7274             not one of the forms that C requires support for.
7275             However, doing the test right would require a runtime
7276             test, and that would make cross-compilation harder.
7277             Let us hope that IBM fixes the xlc bug, and also adds
7278             support for this kind of constant expression.  In the
7279             meantime, this test will reject xlc, which is OK, since
7280             our stdbool.h substitute should suffice.  We also test
7281             this with GCC, where it should work, to detect more
7282             quickly whether someone messes up the test in the
7283             future.  */
7284          char digs[] = "0123456789";
7285          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7286 #       endif
7287         /* Catch a bug in an HP-UX C compiler.  See
7288            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7289            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7290          */
7291         _Bool q = true;
7292         _Bool *pq = &q;
7293
7294 int
7295 main ()
7296 {
7297
7298         *pq |= q;
7299         *pq |= ! q;
7300         /* Refer to every declared value, to avoid compiler optimizations.  */
7301         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7302                 + !m + !n + !o + !p + !q + !pq);
7303
7304   ;
7305   return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7310 case "(($ac_try" in
7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312   *) ac_try_echo=$ac_try;;
7313 esac
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316   (eval "$ac_compile") 2>conftest.er1
7317   ac_status=$?
7318   grep -v '^ *+' conftest.er1 >conftest.err
7319   rm -f conftest.er1
7320   cat conftest.err >&5
7321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } && {
7323          test -z "$ac_c_werror_flag" ||
7324          test ! -s conftest.err
7325        } && test -s conftest.$ac_objext; then
7326   ac_cv_header_stdbool_h=yes
7327 else
7328   $as_echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331         ac_cv_header_stdbool_h=no
7332 fi
7333
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7337 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7338 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7339 $as_echo_n "checking for _Bool... " >&6; }
7340 if test "${ac_cv_type__Bool+set}" = set; then
7341   $as_echo_n "(cached) " >&6
7342 else
7343   ac_cv_type__Bool=no
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h.  */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h.  */
7350 $ac_includes_default
7351 int
7352 main ()
7353 {
7354 if (sizeof (_Bool))
7355        return 0;
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 rm -f conftest.$ac_objext
7361 if { (ac_try="$ac_compile"
7362 case "(($ac_try" in
7363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364   *) ac_try_echo=$ac_try;;
7365 esac
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368   (eval "$ac_compile") 2>conftest.er1
7369   ac_status=$?
7370   grep -v '^ *+' conftest.er1 >conftest.err
7371   rm -f conftest.er1
7372   cat conftest.err >&5
7373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } && {
7375          test -z "$ac_c_werror_flag" ||
7376          test ! -s conftest.err
7377        } && test -s conftest.$ac_objext; then
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 $ac_includes_default
7385 int
7386 main ()
7387 {
7388 if (sizeof ((_Bool)))
7389           return 0;
7390   ;
7391   return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398   *) ac_try_echo=$ac_try;;
7399 esac
7400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7401 $as_echo "$ac_try_echo") >&5
7402   (eval "$ac_compile") 2>conftest.er1
7403   ac_status=$?
7404   grep -v '^ *+' conftest.er1 >conftest.err
7405   rm -f conftest.er1
7406   cat conftest.err >&5
7407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } && {
7409          test -z "$ac_c_werror_flag" ||
7410          test ! -s conftest.err
7411        } && test -s conftest.$ac_objext; then
7412   :
7413 else
7414   $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417         ac_cv_type__Bool=yes
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 else
7422   $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7431 $as_echo "$ac_cv_type__Bool" >&6; }
7432 if test "x$ac_cv_type__Bool" = x""yes; then
7433
7434 cat >>confdefs.h <<_ACEOF
7435 #define HAVE__BOOL 1
7436 _ACEOF
7437
7438
7439 fi
7440
7441 if test $ac_cv_header_stdbool_h = yes; then
7442
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_STDBOOL_H 1
7445 _ACEOF
7446
7447 fi
7448
7449 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7450 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7451 if test "${ac_cv_c_const+set}" = set; then
7452   $as_echo_n "(cached) " >&6
7453 else
7454   cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460
7461 int
7462 main ()
7463 {
7464 /* FIXME: Include the comments suggested by Paul. */
7465 #ifndef __cplusplus
7466   /* Ultrix mips cc rejects this.  */
7467   typedef int charset[2];
7468   const charset cs;
7469   /* SunOS 4.1.1 cc rejects this.  */
7470   char const *const *pcpcc;
7471   char **ppc;
7472   /* NEC SVR4.0.2 mips cc rejects this.  */
7473   struct point {int x, y;};
7474   static struct point const zero = {0,0};
7475   /* AIX XL C 1.02.0.0 rejects this.
7476      It does not let you subtract one const X* pointer from another in
7477      an arm of an if-expression whose if-part is not a constant
7478      expression */
7479   const char *g = "string";
7480   pcpcc = &g + (g ? g-g : 0);
7481   /* HPUX 7.0 cc rejects these. */
7482   ++pcpcc;
7483   ppc = (char**) pcpcc;
7484   pcpcc = (char const *const *) ppc;
7485   { /* SCO 3.2v4 cc rejects this.  */
7486     char *t;
7487     char const *s = 0 ? (char *) 0 : (char const *) 0;
7488
7489     *t++ = 0;
7490     if (s) return 0;
7491   }
7492   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7493     int x[] = {25, 17};
7494     const int *foo = &x[0];
7495     ++foo;
7496   }
7497   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7498     typedef const int *iptr;
7499     iptr p = 0;
7500     ++p;
7501   }
7502   { /* AIX XL C 1.02.0.0 rejects this saying
7503        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7504     struct s { int j; const int *ap[3]; };
7505     struct s *b; b->j = 5;
7506   }
7507   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7508     const int foo = 10;
7509     if (!foo) return 0;
7510   }
7511   return !cs[0] && !zero.x;
7512 #endif
7513
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522   *) ac_try_echo=$ac_try;;
7523 esac
7524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525 $as_echo "$ac_try_echo") >&5
7526   (eval "$ac_compile") 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } && {
7533          test -z "$ac_c_werror_flag" ||
7534          test ! -s conftest.err
7535        } && test -s conftest.$ac_objext; then
7536   ac_cv_c_const=yes
7537 else
7538   $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541         ac_cv_c_const=no
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7547 $as_echo "$ac_cv_c_const" >&6; }
7548 if test $ac_cv_c_const = no; then
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define const /**/
7552 _ACEOF
7553
7554 fi
7555
7556 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7557 $as_echo_n "checking for inline... " >&6; }
7558 if test "${ac_cv_c_inline+set}" = set; then
7559   $as_echo_n "(cached) " >&6
7560 else
7561   ac_cv_c_inline=no
7562 for ac_kw in inline __inline__ __inline; do
7563   cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 #ifndef __cplusplus
7570 typedef int foo_t;
7571 static $ac_kw foo_t static_foo () {return 0; }
7572 $ac_kw foo_t foo () {return 0; }
7573 #endif
7574
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (ac_try="$ac_compile"
7578 case "(($ac_try" in
7579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580   *) ac_try_echo=$ac_try;;
7581 esac
7582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7583 $as_echo "$ac_try_echo") >&5
7584   (eval "$ac_compile") 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } && {
7591          test -z "$ac_c_werror_flag" ||
7592          test ! -s conftest.err
7593        } && test -s conftest.$ac_objext; then
7594   ac_cv_c_inline=$ac_kw
7595 else
7596   $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599
7600 fi
7601
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603   test "$ac_cv_c_inline" != no && break
7604 done
7605
7606 fi
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7608 $as_echo "$ac_cv_c_inline" >&6; }
7609
7610
7611 case $ac_cv_c_inline in
7612   inline | yes) ;;
7613   *)
7614     case $ac_cv_c_inline in
7615       no) ac_val=;;
7616       *) ac_val=$ac_cv_c_inline;;
7617     esac
7618     cat >>confdefs.h <<_ACEOF
7619 #ifndef __cplusplus
7620 #define inline $ac_val
7621 #endif
7622 _ACEOF
7623     ;;
7624 esac
7625
7626 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7627 $as_echo_n "checking for pid_t... " >&6; }
7628 if test "${ac_cv_type_pid_t+set}" = set; then
7629   $as_echo_n "(cached) " >&6
7630 else
7631   ac_cv_type_pid_t=no
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638 $ac_includes_default
7639 int
7640 main ()
7641 {
7642 if (sizeof (pid_t))
7643        return 0;
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656   (eval "$ac_compile") 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } && {
7663          test -z "$ac_c_werror_flag" ||
7664          test ! -s conftest.err
7665        } && test -s conftest.$ac_objext; then
7666   cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672 $ac_includes_default
7673 int
7674 main ()
7675 {
7676 if (sizeof ((pid_t)))
7677           return 0;
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7684 case "(($ac_try" in
7685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686   *) ac_try_echo=$ac_try;;
7687 esac
7688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689 $as_echo "$ac_try_echo") >&5
7690   (eval "$ac_compile") 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } && {
7697          test -z "$ac_c_werror_flag" ||
7698          test ! -s conftest.err
7699        } && test -s conftest.$ac_objext; then
7700   :
7701 else
7702   $as_echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705         ac_cv_type_pid_t=yes
7706 fi
7707
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 else
7710   $as_echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713
7714 fi
7715
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 fi
7718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7719 $as_echo "$ac_cv_type_pid_t" >&6; }
7720 if test "x$ac_cv_type_pid_t" = x""yes; then
7721   :
7722 else
7723
7724 cat >>confdefs.h <<_ACEOF
7725 #define pid_t int
7726 _ACEOF
7727
7728 fi
7729
7730 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7731 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7732 if test "${ac_cv_header_time+set}" = set; then
7733   $as_echo_n "(cached) " >&6
7734 else
7735   cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 #include <sys/types.h>
7742 #include <sys/time.h>
7743 #include <time.h>
7744
7745 int
7746 main ()
7747 {
7748 if ((struct tm *) 0)
7749 return 0;
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758   *) ac_try_echo=$ac_try;;
7759 esac
7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7761 $as_echo "$ac_try_echo") >&5
7762   (eval "$ac_compile") 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } && {
7769          test -z "$ac_c_werror_flag" ||
7770          test ! -s conftest.err
7771        } && test -s conftest.$ac_objext; then
7772   ac_cv_header_time=yes
7773 else
7774   $as_echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777         ac_cv_header_time=no
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7783 $as_echo "$ac_cv_header_time" >&6; }
7784 if test $ac_cv_header_time = yes; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define TIME_WITH_SYS_TIME 1
7788 _ACEOF
7789
7790 fi
7791
7792 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7793 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7794 if test "${ac_cv_struct_tm+set}" = set; then
7795   $as_echo_n "(cached) " >&6
7796 else
7797   cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 #include <sys/types.h>
7804 #include <time.h>
7805
7806 int
7807 main ()
7808 {
7809 struct tm tm;
7810                                      int *p = &tm.tm_sec;
7811                                      return !p;
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820   *) ac_try_echo=$ac_try;;
7821 esac
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824   (eval "$ac_compile") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } && {
7831          test -z "$ac_c_werror_flag" ||
7832          test ! -s conftest.err
7833        } && test -s conftest.$ac_objext; then
7834   ac_cv_struct_tm=time.h
7835 else
7836   $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839         ac_cv_struct_tm=sys/time.h
7840 fi
7841
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7845 $as_echo "$ac_cv_struct_tm" >&6; }
7846 if test $ac_cv_struct_tm = sys/time.h; then
7847
7848 cat >>confdefs.h <<\_ACEOF
7849 #define TM_IN_SYS_TIME 1
7850 _ACEOF
7851
7852 fi
7853
7854
7855 # Checks for library functions.
7856
7857 for ac_header in vfork.h
7858 do
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 $as_echo_n "checking for $ac_header... " >&6; }
7863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864   $as_echo_n "(cached) " >&6
7865 fi
7866 ac_res=`eval 'as_val=${'$as_ac_Header'}
7867                  $as_echo "$as_val"'`
7868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7870 else
7871   # Is the header compilable?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7873 $as_echo_n "checking $ac_header usability... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 $ac_includes_default
7881 #include <$ac_header>
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891   (eval "$ac_compile") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } && {
7898          test -z "$ac_c_werror_flag" ||
7899          test ! -s conftest.err
7900        } && test -s conftest.$ac_objext; then
7901   ac_header_compiler=yes
7902 else
7903   $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906         ac_header_compiler=no
7907 fi
7908
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 $as_echo "$ac_header_compiler" >&6; }
7912
7913 # Is the header present?
7914 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 $as_echo_n "checking $ac_header presence... " >&6; }
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 #include <$ac_header>
7923 _ACEOF
7924 if { (ac_try="$ac_cpp conftest.$ac_ext"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } >/dev/null && {
7938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939          test ! -s conftest.err
7940        }; then
7941   ac_header_preproc=yes
7942 else
7943   $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946   ac_header_preproc=no
7947 fi
7948
7949 rm -f conftest.err conftest.$ac_ext
7950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7951 $as_echo "$ac_header_preproc" >&6; }
7952
7953 # So?  What about this header?
7954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7955   yes:no: )
7956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7957 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7960     ac_header_preproc=yes
7961     ;;
7962   no:yes:* )
7963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7966 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7970 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7974 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7975     ( cat <<\_ASBOX
7976 ## ----------------------------------- ##
7977 ## Report this to andreas@eversberg.eu ##
7978 ## ----------------------------------- ##
7979 _ASBOX
7980      ) | sed "s/^/$as_me: WARNING:     /" >&2
7981     ;;
7982 esac
7983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7984 $as_echo_n "checking for $ac_header... " >&6; }
7985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7986   $as_echo_n "(cached) " >&6
7987 else
7988   eval "$as_ac_Header=\$ac_header_preproc"
7989 fi
7990 ac_res=`eval 'as_val=${'$as_ac_Header'}
7991                  $as_echo "$as_val"'`
7992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7993 $as_echo "$ac_res" >&6; }
7994
7995 fi
7996 as_val=`eval 'as_val=${'$as_ac_Header'}
7997                  $as_echo "$as_val"'`
7998    if test "x$as_val" = x""yes; then
7999   cat >>confdefs.h <<_ACEOF
8000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8001 _ACEOF
8002
8003 fi
8004
8005 done
8006
8007
8008
8009 for ac_func in fork vfork
8010 do
8011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8013 $as_echo_n "checking for $ac_func... " >&6; }
8014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8015   $as_echo_n "(cached) " >&6
8016 else
8017   cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8025 #define $ac_func innocuous_$ac_func
8026
8027 /* System header to define __stub macros and hopefully few prototypes,
8028     which can conflict with char $ac_func (); below.
8029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030     <limits.h> exists even on freestanding compilers.  */
8031
8032 #ifdef __STDC__
8033 # include <limits.h>
8034 #else
8035 # include <assert.h>
8036 #endif
8037
8038 #undef $ac_func
8039
8040 /* Override any GCC internal prototype to avoid an error.
8041    Use char because int might match the return type of a GCC
8042    builtin and then its argument prototype would still apply.  */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char $ac_func ();
8047 /* The GNU C library defines this for functions which it implements
8048     to always fail with ENOSYS.  Some functions are actually named
8049     something starting with __ and the normal name is an alias.  */
8050 #if defined __stub_$ac_func || defined __stub___$ac_func
8051 choke me
8052 #endif
8053
8054 int
8055 main ()
8056 {
8057 return $ac_func ();
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8064 case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070   (eval "$ac_link") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } && {
8077          test -z "$ac_c_werror_flag" ||
8078          test ! -s conftest.err
8079        } && test -s conftest$ac_exeext && {
8080          test "$cross_compiling" = yes ||
8081          $as_test_x conftest$ac_exeext
8082        }; then
8083   eval "$as_ac_var=yes"
8084 else
8085   $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         eval "$as_ac_var=no"
8089 fi
8090
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093       conftest$ac_exeext conftest.$ac_ext
8094 fi
8095 ac_res=`eval 'as_val=${'$as_ac_var'}
8096                  $as_echo "$as_val"'`
8097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8098 $as_echo "$ac_res" >&6; }
8099 as_val=`eval 'as_val=${'$as_ac_var'}
8100                  $as_echo "$as_val"'`
8101    if test "x$as_val" = x""yes; then
8102   cat >>confdefs.h <<_ACEOF
8103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8104 _ACEOF
8105
8106 fi
8107 done
8108
8109 if test "x$ac_cv_func_fork" = xyes; then
8110   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8111 $as_echo_n "checking for working fork... " >&6; }
8112 if test "${ac_cv_func_fork_works+set}" = set; then
8113   $as_echo_n "(cached) " >&6
8114 else
8115   if test "$cross_compiling" = yes; then
8116   ac_cv_func_fork_works=cross
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124 $ac_includes_default
8125 int
8126 main ()
8127 {
8128
8129           /* By Ruediger Kuhlmann. */
8130           return fork () < 0;
8131
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest$ac_exeext
8137 if { (ac_try="$ac_link"
8138 case "(($ac_try" in
8139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140   *) ac_try_echo=$ac_try;;
8141 esac
8142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8143 $as_echo "$ac_try_echo") >&5
8144   (eval "$ac_link") 2>&5
8145   ac_status=$?
8146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154   (eval "$ac_try") 2>&5
8155   ac_status=$?
8156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   ac_cv_func_fork_works=yes
8159 else
8160   $as_echo "$as_me: program exited with status $ac_status" >&5
8161 $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ( exit $ac_status )
8165 ac_cv_func_fork_works=no
8166 fi
8167 rm -rf conftest.dSYM
8168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8169 fi
8170
8171
8172 fi
8173 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8174 $as_echo "$ac_cv_func_fork_works" >&6; }
8175
8176 else
8177   ac_cv_func_fork_works=$ac_cv_func_fork
8178 fi
8179 if test "x$ac_cv_func_fork_works" = xcross; then
8180   case $host in
8181     *-*-amigaos* | *-*-msdosdjgpp*)
8182       # Override, as these systems have only a dummy fork() stub
8183       ac_cv_func_fork_works=no
8184       ;;
8185     *)
8186       ac_cv_func_fork_works=yes
8187       ;;
8188   esac
8189   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8190 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8191 fi
8192 ac_cv_func_vfork_works=$ac_cv_func_vfork
8193 if test "x$ac_cv_func_vfork" = xyes; then
8194   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8195 $as_echo_n "checking for working vfork... " >&6; }
8196 if test "${ac_cv_func_vfork_works+set}" = set; then
8197   $as_echo_n "(cached) " >&6
8198 else
8199   if test "$cross_compiling" = yes; then
8200   ac_cv_func_vfork_works=cross
8201 else
8202   cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 /* Thanks to Paul Eggert for this test.  */
8209 $ac_includes_default
8210 #include <sys/wait.h>
8211 #ifdef HAVE_VFORK_H
8212 # include <vfork.h>
8213 #endif
8214 /* On some sparc systems, changes by the child to local and incoming
8215    argument registers are propagated back to the parent.  The compiler
8216    is told about this with #include <vfork.h>, but some compilers
8217    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8218    static variable whose address is put into a register that is
8219    clobbered by the vfork.  */
8220 static void
8221 #ifdef __cplusplus
8222 sparc_address_test (int arg)
8223 # else
8224 sparc_address_test (arg) int arg;
8225 #endif
8226 {
8227   static pid_t child;
8228   if (!child) {
8229     child = vfork ();
8230     if (child < 0) {
8231       perror ("vfork");
8232       _exit(2);
8233     }
8234     if (!child) {
8235       arg = getpid();
8236       write(-1, "", 0);
8237       _exit (arg);
8238     }
8239   }
8240 }
8241
8242 int
8243 main ()
8244 {
8245   pid_t parent = getpid ();
8246   pid_t child;
8247
8248   sparc_address_test (0);
8249
8250   child = vfork ();
8251
8252   if (child == 0) {
8253     /* Here is another test for sparc vfork register problems.  This
8254        test uses lots of local variables, at least as many local
8255        variables as main has allocated so far including compiler
8256        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8257        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8258        reuse the register of parent for one of the local variables,
8259        since it will think that parent can't possibly be used any more
8260        in this routine.  Assigning to the local variable will thus
8261        munge parent in the parent process.  */
8262     pid_t
8263       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8264       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8265     /* Convince the compiler that p..p7 are live; otherwise, it might
8266        use the same hardware register for all 8 local variables.  */
8267     if (p != p1 || p != p2 || p != p3 || p != p4
8268         || p != p5 || p != p6 || p != p7)
8269       _exit(1);
8270
8271     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8272        from child file descriptors.  If the child closes a descriptor
8273        before it execs or exits, this munges the parent's descriptor
8274        as well.  Test for this by closing stdout in the child.  */
8275     _exit(close(fileno(stdout)) != 0);
8276   } else {
8277     int status;
8278     struct stat st;
8279
8280     while (wait(&status) != child)
8281       ;
8282     return (
8283          /* Was there some problem with vforking?  */
8284          child < 0
8285
8286          /* Did the child fail?  (This shouldn't happen.)  */
8287          || status
8288
8289          /* Did the vfork/compiler bug occur?  */
8290          || parent != getpid()
8291
8292          /* Did the file descriptor bug occur?  */
8293          || fstat(fileno(stdout), &st) != 0
8294          );
8295   }
8296 }
8297 _ACEOF
8298 rm -f conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306   (eval "$ac_link") 2>&5
8307   ac_status=$?
8308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8315 $as_echo "$ac_try_echo") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_cv_func_vfork_works=yes
8321 else
8322   $as_echo "$as_me: program exited with status $ac_status" >&5
8323 $as_echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ( exit $ac_status )
8327 ac_cv_func_vfork_works=no
8328 fi
8329 rm -rf conftest.dSYM
8330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331 fi
8332
8333
8334 fi
8335 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8336 $as_echo "$ac_cv_func_vfork_works" >&6; }
8337
8338 fi;
8339 if test "x$ac_cv_func_fork_works" = xcross; then
8340   ac_cv_func_vfork_works=$ac_cv_func_vfork
8341   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8342 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8343 fi
8344
8345 if test "x$ac_cv_func_vfork_works" = xyes; then
8346
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_WORKING_VFORK 1
8349 _ACEOF
8350
8351 else
8352
8353 cat >>confdefs.h <<\_ACEOF
8354 #define vfork fork
8355 _ACEOF
8356
8357 fi
8358 if test "x$ac_cv_func_fork_works" = xyes; then
8359
8360 cat >>confdefs.h <<\_ACEOF
8361 #define HAVE_WORKING_FORK 1
8362 _ACEOF
8363
8364 fi
8365
8366 if test $ac_cv_c_compiler_gnu = yes; then
8367     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8370   $as_echo_n "(cached) " >&6
8371 else
8372     ac_pattern="Autoconf.*'x'"
8373   cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379 #include <sgtty.h>
8380 Autoconf TIOCGETP
8381 _ACEOF
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8384   ac_cv_prog_gcc_traditional=yes
8385 else
8386   ac_cv_prog_gcc_traditional=no
8387 fi
8388 rm -f conftest*
8389
8390
8391   if test $ac_cv_prog_gcc_traditional = no; then
8392     cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #include <termio.h>
8399 Autoconf TCGETA
8400 _ACEOF
8401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8402   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8403   ac_cv_prog_gcc_traditional=yes
8404 fi
8405 rm -f conftest*
8406
8407   fi
8408 fi
8409 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8410 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8411   if test $ac_cv_prog_gcc_traditional = yes; then
8412     CC="$CC -traditional"
8413   fi
8414 fi
8415
8416 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8417 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8418 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8419   $as_echo_n "(cached) " >&6
8420 else
8421   rm -f conftest.sym conftest.file
8422 echo >conftest.file
8423 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8424   if test "$cross_compiling" = yes; then
8425   ac_cv_func_lstat_dereferences_slashed_symlink=no
8426 else
8427   cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433 $ac_includes_default
8434 int
8435 main ()
8436 {
8437 struct stat sbuf;
8438      /* Linux will dereference the symlink and fail.
8439         That is better in the sense that it means we will not
8440         have to compile and use the lstat wrapper.  */
8441      return lstat ("conftest.sym/", &sbuf) == 0;
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454   (eval "$ac_link") 2>&5
8455   ac_status=$?
8456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8463 $as_echo "$ac_try_echo") >&5
8464   (eval "$ac_try") 2>&5
8465   ac_status=$?
8466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8469 else
8470   $as_echo "$as_me: program exited with status $ac_status" >&5
8471 $as_echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ( exit $ac_status )
8475 ac_cv_func_lstat_dereferences_slashed_symlink=no
8476 fi
8477 rm -rf conftest.dSYM
8478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8479 fi
8480
8481
8482 else
8483   # If the `ln -s' command failed, then we probably don't even
8484   # have an lstat function.
8485   ac_cv_func_lstat_dereferences_slashed_symlink=no
8486 fi
8487 rm -f conftest.sym conftest.file
8488
8489 fi
8490 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8491 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8492
8493 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8497 _ACEOF
8498
8499
8500 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8501   case " $LIBOBJS " in
8502   *" lstat.$ac_objext "* ) ;;
8503   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8504  ;;
8505 esac
8506
8507 fi
8508
8509 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8510 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8511 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8512   $as_echo_n "(cached) " >&6
8513 else
8514   if test "$cross_compiling" = yes; then
8515   ac_cv_func_lstat_empty_string_bug=yes
8516 else
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 $ac_includes_default
8524 int
8525 main ()
8526 {
8527 struct stat sbuf;
8528   return lstat ("", &sbuf) == 0;
8529   ;
8530   return 0;
8531 }
8532 _ACEOF
8533 rm -f conftest$ac_exeext
8534 if { (ac_try="$ac_link"
8535 case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540 $as_echo "$ac_try_echo") >&5
8541   (eval "$ac_link") 2>&5
8542   ac_status=$?
8543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8545   { (case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551   (eval "$ac_try") 2>&5
8552   ac_status=$?
8553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; }; then
8555   ac_cv_func_lstat_empty_string_bug=no
8556 else
8557   $as_echo "$as_me: program exited with status $ac_status" >&5
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ( exit $ac_status )
8562 ac_cv_func_lstat_empty_string_bug=yes
8563 fi
8564 rm -rf conftest.dSYM
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8566 fi
8567
8568
8569 fi
8570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8571 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8572 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8573   case " $LIBOBJS " in
8574   *" lstat.$ac_objext "* ) ;;
8575   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8576  ;;
8577 esac
8578
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8582 _ACEOF
8583
8584 fi
8585
8586 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8587 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8588 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8589   $as_echo_n "(cached) " >&6
8590 else
8591   rm -f conftest.sym conftest.file
8592 echo >conftest.file
8593 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8594   if test "$cross_compiling" = yes; then
8595   ac_cv_func_lstat_dereferences_slashed_symlink=no
8596 else
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 $ac_includes_default
8604 int
8605 main ()
8606 {
8607 struct stat sbuf;
8608      /* Linux will dereference the symlink and fail.
8609         That is better in the sense that it means we will not
8610         have to compile and use the lstat wrapper.  */
8611      return lstat ("conftest.sym/", &sbuf) == 0;
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623 $as_echo "$ac_try_echo") >&5
8624   (eval "$ac_link") 2>&5
8625   ac_status=$?
8626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8628   { (case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8633 $as_echo "$ac_try_echo") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8639 else
8640   $as_echo "$as_me: program exited with status $ac_status" >&5
8641 $as_echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ( exit $ac_status )
8645 ac_cv_func_lstat_dereferences_slashed_symlink=no
8646 fi
8647 rm -rf conftest.dSYM
8648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8649 fi
8650
8651
8652 else
8653   # If the `ln -s' command failed, then we probably don't even
8654   # have an lstat function.
8655   ac_cv_func_lstat_dereferences_slashed_symlink=no
8656 fi
8657 rm -f conftest.sym conftest.file
8658
8659 fi
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8661 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8662
8663 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8667 _ACEOF
8668
8669
8670 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8671   case " $LIBOBJS " in
8672   *" lstat.$ac_objext "* ) ;;
8673   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8674  ;;
8675 esac
8676
8677 fi
8678
8679
8680 for ac_header in stdlib.h
8681 do
8682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 $as_echo_n "checking for $ac_header... " >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687   $as_echo_n "(cached) " >&6
8688 fi
8689 ac_res=`eval 'as_val=${'$as_ac_Header'}
8690                  $as_echo "$as_val"'`
8691                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8692 $as_echo "$ac_res" >&6; }
8693 else
8694   # Is the header compilable?
8695 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696 $as_echo_n "checking $ac_header usability... " >&6; }
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 $ac_includes_default
8704 #include <$ac_header>
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8713 $as_echo "$ac_try_echo") >&5
8714   (eval "$ac_compile") 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } && {
8721          test -z "$ac_c_werror_flag" ||
8722          test ! -s conftest.err
8723        } && test -s conftest.$ac_objext; then
8724   ac_header_compiler=yes
8725 else
8726   $as_echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729         ac_header_compiler=no
8730 fi
8731
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8734 $as_echo "$ac_header_compiler" >&6; }
8735
8736 # Is the header present?
8737 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8738 $as_echo_n "checking $ac_header presence... " >&6; }
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745 #include <$ac_header>
8746 _ACEOF
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } >/dev/null && {
8761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8762          test ! -s conftest.err
8763        }; then
8764   ac_header_preproc=yes
8765 else
8766   $as_echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769   ac_header_preproc=no
8770 fi
8771
8772 rm -f conftest.err conftest.$ac_ext
8773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774 $as_echo "$ac_header_preproc" >&6; }
8775
8776 # So?  What about this header?
8777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8778   yes:no: )
8779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783     ac_header_preproc=yes
8784     ;;
8785   no:yes:* )
8786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8789 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8793 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8798     ( cat <<\_ASBOX
8799 ## ----------------------------------- ##
8800 ## Report this to andreas@eversberg.eu ##
8801 ## ----------------------------------- ##
8802 _ASBOX
8803      ) | sed "s/^/$as_me: WARNING:     /" >&2
8804     ;;
8805 esac
8806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 $as_echo_n "checking for $ac_header... " >&6; }
8808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8809   $as_echo_n "(cached) " >&6
8810 else
8811   eval "$as_ac_Header=\$ac_header_preproc"
8812 fi
8813 ac_res=`eval 'as_val=${'$as_ac_Header'}
8814                  $as_echo "$as_val"'`
8815                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8816 $as_echo "$ac_res" >&6; }
8817
8818 fi
8819 as_val=`eval 'as_val=${'$as_ac_Header'}
8820                  $as_echo "$as_val"'`
8821    if test "x$as_val" = x""yes; then
8822   cat >>confdefs.h <<_ACEOF
8823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8824 _ACEOF
8825
8826 fi
8827
8828 done
8829
8830 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8831 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8832 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8833   $as_echo_n "(cached) " >&6
8834 else
8835   if test "$cross_compiling" = yes; then
8836   ac_cv_func_malloc_0_nonnull=no
8837 else
8838   cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h.  */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h.  */
8844 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8845 # include <stdlib.h>
8846 #else
8847 char *malloc ();
8848 #endif
8849
8850 int
8851 main ()
8852 {
8853 return ! malloc (0);
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8860 case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8865 $as_echo "$ac_try_echo") >&5
8866   (eval "$ac_link") 2>&5
8867   ac_status=$?
8868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870   { (case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   ac_cv_func_malloc_0_nonnull=yes
8881 else
8882   $as_echo "$as_me: program exited with status $ac_status" >&5
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 ( exit $ac_status )
8887 ac_cv_func_malloc_0_nonnull=no
8888 fi
8889 rm -rf conftest.dSYM
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8891 fi
8892
8893
8894 fi
8895 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8896 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8897 if test $ac_cv_func_malloc_0_nonnull = yes; then
8898
8899 cat >>confdefs.h <<\_ACEOF
8900 #define HAVE_MALLOC 1
8901 _ACEOF
8902
8903 else
8904   cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_MALLOC 0
8906 _ACEOF
8907
8908    case " $LIBOBJS " in
8909   *" malloc.$ac_objext "* ) ;;
8910   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8911  ;;
8912 esac
8913
8914
8915 cat >>confdefs.h <<\_ACEOF
8916 #define malloc rpl_malloc
8917 _ACEOF
8918
8919 fi
8920
8921
8922
8923 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8924 $as_echo_n "checking for working memcmp... " >&6; }
8925 if test "${ac_cv_func_memcmp_working+set}" = set; then
8926   $as_echo_n "(cached) " >&6
8927 else
8928   if test "$cross_compiling" = yes; then
8929   ac_cv_func_memcmp_working=no
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 $ac_includes_default
8938 int
8939 main ()
8940 {
8941
8942   /* Some versions of memcmp are not 8-bit clean.  */
8943   char c0 = '\100', c1 = '\200', c2 = '\201';
8944   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8945     return 1;
8946
8947   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8948      or more and with at least one buffer not starting on a 4-byte boundary.
8949      William Lewis provided this test program.   */
8950   {
8951     char foo[21];
8952     char bar[21];
8953     int i;
8954     for (i = 0; i < 4; i++)
8955       {
8956         char *a = foo + i;
8957         char *b = bar + i;
8958         strcpy (a, "--------01111111");
8959         strcpy (b, "--------10000000");
8960         if (memcmp (a, b, 16) >= 0)
8961           return 1;
8962       }
8963     return 0;
8964   }
8965
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8972 case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977 $as_echo "$ac_try_echo") >&5
8978   (eval "$ac_link") 2>&5
8979   ac_status=$?
8980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8982   { (case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8987 $as_echo "$ac_try_echo") >&5
8988   (eval "$ac_try") 2>&5
8989   ac_status=$?
8990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_cv_func_memcmp_working=yes
8993 else
8994   $as_echo "$as_me: program exited with status $ac_status" >&5
8995 $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 ( exit $ac_status )
8999 ac_cv_func_memcmp_working=no
9000 fi
9001 rm -rf conftest.dSYM
9002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9003 fi
9004
9005
9006 fi
9007 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9008 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9009 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9010   *" memcmp.$ac_objext "* ) ;;
9011   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9012  ;;
9013 esac
9014
9015
9016 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9017 $as_echo_n "checking return type of signal handlers... " >&6; }
9018 if test "${ac_cv_type_signal+set}" = set; then
9019   $as_echo_n "(cached) " >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 #include <sys/types.h>
9028 #include <signal.h>
9029
9030 int
9031 main ()
9032 {
9033 return *(signal (0, 0)) (0) == 1;
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9045 $as_echo "$ac_try_echo") >&5
9046   (eval "$ac_compile") 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } && {
9053          test -z "$ac_c_werror_flag" ||
9054          test ! -s conftest.err
9055        } && test -s conftest.$ac_objext; then
9056   ac_cv_type_signal=int
9057 else
9058   $as_echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061         ac_cv_type_signal=void
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9067 $as_echo "$ac_cv_type_signal" >&6; }
9068
9069 cat >>confdefs.h <<_ACEOF
9070 #define RETSIGTYPE $ac_cv_type_signal
9071 _ACEOF
9072
9073
9074 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9075 $as_echo_n "checking for working strnlen... " >&6; }
9076 if test "${ac_cv_func_strnlen_working+set}" = set; then
9077   $as_echo_n "(cached) " >&6
9078 else
9079   if test "$cross_compiling" = yes; then
9080   ac_cv_func_strnlen_working=no
9081 else
9082   cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h.  */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h.  */
9088 $ac_includes_default
9089 int
9090 main ()
9091 {
9092
9093 #define S "foobar"
9094 #define S_LEN (sizeof S - 1)
9095
9096   /* At least one implementation is buggy: that of AIX 4.3 would
9097      give strnlen (S, 1) == 3.  */
9098
9099   int i;
9100   for (i = 0; i < S_LEN + 1; ++i)
9101     {
9102       int expected = i <= S_LEN ? i : S_LEN;
9103       if (strnlen (S, i) != expected)
9104         return 1;
9105     }
9106   return 0;
9107
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest$ac_exeext
9113 if { (ac_try="$ac_link"
9114 case "(($ac_try" in
9115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116   *) ac_try_echo=$ac_try;;
9117 esac
9118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9119 $as_echo "$ac_try_echo") >&5
9120   (eval "$ac_link") 2>&5
9121   ac_status=$?
9122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9124   { (case "(($ac_try" in
9125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126   *) ac_try_echo=$ac_try;;
9127 esac
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130   (eval "$ac_try") 2>&5
9131   ac_status=$?
9132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_func_strnlen_working=yes
9135 else
9136   $as_echo "$as_me: program exited with status $ac_status" >&5
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 ( exit $ac_status )
9141 ac_cv_func_strnlen_working=no
9142 fi
9143 rm -rf conftest.dSYM
9144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9145 fi
9146
9147
9148 fi
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9150 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9151 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9152   *" strnlen.$ac_objext "* ) ;;
9153   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9154  ;;
9155 esac
9156
9157
9158 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9159 $as_echo_n "checking for working strtod... " >&6; }
9160 if test "${ac_cv_func_strtod+set}" = set; then
9161   $as_echo_n "(cached) " >&6
9162 else
9163   if test "$cross_compiling" = yes; then
9164   ac_cv_func_strtod=no
9165 else
9166   cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172
9173 $ac_includes_default
9174 #ifndef strtod
9175 double strtod ();
9176 #endif
9177 int
9178 main()
9179 {
9180   {
9181     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9182     char *string = " +69";
9183     char *term;
9184     double value;
9185     value = strtod (string, &term);
9186     if (value != 69 || term != (string + 4))
9187       return 1;
9188   }
9189
9190   {
9191     /* Under Solaris 2.4, strtod returns the wrong value for the
9192        terminating character under some conditions.  */
9193     char *string = "NaN";
9194     char *term;
9195     strtod (string, &term);
9196     if (term != string && *(term - 1) == 0)
9197       return 1;
9198   }
9199   return 0;
9200 }
9201
9202 _ACEOF
9203 rm -f conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9210 $as_echo "$ac_try_echo") >&5
9211   (eval "$ac_link") 2>&5
9212   ac_status=$?
9213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9215   { (case "(($ac_try" in
9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217   *) ac_try_echo=$ac_try;;
9218 esac
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221   (eval "$ac_try") 2>&5
9222   ac_status=$?
9223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_cv_func_strtod=yes
9226 else
9227   $as_echo "$as_me: program exited with status $ac_status" >&5
9228 $as_echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ( exit $ac_status )
9232 ac_cv_func_strtod=no
9233 fi
9234 rm -rf conftest.dSYM
9235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9236 fi
9237
9238
9239 fi
9240 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9241 $as_echo "$ac_cv_func_strtod" >&6; }
9242 if test $ac_cv_func_strtod = no; then
9243   case " $LIBOBJS " in
9244   *" strtod.$ac_objext "* ) ;;
9245   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9246  ;;
9247 esac
9248
9249 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9250 $as_echo_n "checking for pow... " >&6; }
9251 if test "${ac_cv_func_pow+set}" = set; then
9252   $as_echo_n "(cached) " >&6
9253 else
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 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9262 #define pow innocuous_pow
9263
9264 /* System header to define __stub macros and hopefully few prototypes,
9265     which can conflict with char pow (); below.
9266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9267     <limits.h> exists even on freestanding compilers.  */
9268
9269 #ifdef __STDC__
9270 # include <limits.h>
9271 #else
9272 # include <assert.h>
9273 #endif
9274
9275 #undef pow
9276
9277 /* Override any GCC internal prototype to avoid an error.
9278    Use char because int might match the return type of a GCC
9279    builtin and then its argument prototype would still apply.  */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char pow ();
9284 /* The GNU C library defines this for functions which it implements
9285     to always fail with ENOSYS.  Some functions are actually named
9286     something starting with __ and the normal name is an alias.  */
9287 #if defined __stub_pow || defined __stub___pow
9288 choke me
9289 #endif
9290
9291 int
9292 main ()
9293 {
9294 return pow ();
9295   ;
9296   return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (ac_try="$ac_link"
9301 case "(($ac_try" in
9302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303   *) ac_try_echo=$ac_try;;
9304 esac
9305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9306 $as_echo "$ac_try_echo") >&5
9307   (eval "$ac_link") 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } && {
9314          test -z "$ac_c_werror_flag" ||
9315          test ! -s conftest.err
9316        } && test -s conftest$ac_exeext && {
9317          test "$cross_compiling" = yes ||
9318          $as_test_x conftest$ac_exeext
9319        }; then
9320   ac_cv_func_pow=yes
9321 else
9322   $as_echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9324
9325         ac_cv_func_pow=no
9326 fi
9327
9328 rm -rf conftest.dSYM
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330       conftest$ac_exeext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9333 $as_echo "$ac_cv_func_pow" >&6; }
9334
9335 if test $ac_cv_func_pow = no; then
9336   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9337 $as_echo_n "checking for pow in -lm... " >&6; }
9338 if test "${ac_cv_lib_m_pow+set}" = set; then
9339   $as_echo_n "(cached) " >&6
9340 else
9341   ac_check_lib_save_LIBS=$LIBS
9342 LIBS="-lm  $LIBS"
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349
9350 /* Override any GCC internal prototype to avoid an error.
9351    Use char because int might match the return type of a GCC
9352    builtin and then its argument prototype would still apply.  */
9353 #ifdef __cplusplus
9354 extern "C"
9355 #endif
9356 char pow ();
9357 int
9358 main ()
9359 {
9360 return pow ();
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (ac_try="$ac_link"
9367 case "(($ac_try" in
9368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369   *) ac_try_echo=$ac_try;;
9370 esac
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373   (eval "$ac_link") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && {
9380          test -z "$ac_c_werror_flag" ||
9381          test ! -s conftest.err
9382        } && test -s conftest$ac_exeext && {
9383          test "$cross_compiling" = yes ||
9384          $as_test_x conftest$ac_exeext
9385        }; then
9386   ac_cv_lib_m_pow=yes
9387 else
9388   $as_echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391         ac_cv_lib_m_pow=no
9392 fi
9393
9394 rm -rf conftest.dSYM
9395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9396       conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$ac_check_lib_save_LIBS
9398 fi
9399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9400 $as_echo "$ac_cv_lib_m_pow" >&6; }
9401 if test "x$ac_cv_lib_m_pow" = x""yes; then
9402   POW_LIB=-lm
9403 else
9404   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9405 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9406 fi
9407
9408 fi
9409
9410 fi
9411
9412
9413 for ac_func in vprintf
9414 do
9415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9417 $as_echo_n "checking for $ac_func... " >&6; }
9418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9419   $as_echo_n "(cached) " >&6
9420 else
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9429 #define $ac_func innocuous_$ac_func
9430
9431 /* System header to define __stub macros and hopefully few prototypes,
9432     which can conflict with char $ac_func (); below.
9433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434     <limits.h> exists even on freestanding compilers.  */
9435
9436 #ifdef __STDC__
9437 # include <limits.h>
9438 #else
9439 # include <assert.h>
9440 #endif
9441
9442 #undef $ac_func
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445    Use char because int might match the return type of a GCC
9446    builtin and then its argument prototype would still apply.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char $ac_func ();
9451 /* The GNU C library defines this for functions which it implements
9452     to always fail with ENOSYS.  Some functions are actually named
9453     something starting with __ and the normal name is an alias.  */
9454 #if defined __stub_$ac_func || defined __stub___$ac_func
9455 choke me
9456 #endif
9457
9458 int
9459 main ()
9460 {
9461 return $ac_func ();
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (ac_try="$ac_link"
9468 case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9473 $as_echo "$ac_try_echo") >&5
9474   (eval "$ac_link") 2>conftest.er1
9475   ac_status=$?
9476   grep -v '^ *+' conftest.er1 >conftest.err
9477   rm -f conftest.er1
9478   cat conftest.err >&5
9479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } && {
9481          test -z "$ac_c_werror_flag" ||
9482          test ! -s conftest.err
9483        } && test -s conftest$ac_exeext && {
9484          test "$cross_compiling" = yes ||
9485          $as_test_x conftest$ac_exeext
9486        }; then
9487   eval "$as_ac_var=yes"
9488 else
9489   $as_echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492         eval "$as_ac_var=no"
9493 fi
9494
9495 rm -rf conftest.dSYM
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497       conftest$ac_exeext conftest.$ac_ext
9498 fi
9499 ac_res=`eval 'as_val=${'$as_ac_var'}
9500                  $as_echo "$as_val"'`
9501                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9502 $as_echo "$ac_res" >&6; }
9503 as_val=`eval 'as_val=${'$as_ac_var'}
9504                  $as_echo "$as_val"'`
9505    if test "x$as_val" = x""yes; then
9506   cat >>confdefs.h <<_ACEOF
9507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9508 _ACEOF
9509
9510 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9511 $as_echo_n "checking for _doprnt... " >&6; }
9512 if test "${ac_cv_func__doprnt+set}" = set; then
9513   $as_echo_n "(cached) " >&6
9514 else
9515   cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h.  */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h.  */
9521 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9523 #define _doprnt innocuous__doprnt
9524
9525 /* System header to define __stub macros and hopefully few prototypes,
9526     which can conflict with char _doprnt (); below.
9527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528     <limits.h> exists even on freestanding compilers.  */
9529
9530 #ifdef __STDC__
9531 # include <limits.h>
9532 #else
9533 # include <assert.h>
9534 #endif
9535
9536 #undef _doprnt
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539    Use char because int might match the return type of a GCC
9540    builtin and then its argument prototype would still apply.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char _doprnt ();
9545 /* The GNU C library defines this for functions which it implements
9546     to always fail with ENOSYS.  Some functions are actually named
9547     something starting with __ and the normal name is an alias.  */
9548 #if defined __stub__doprnt || defined __stub____doprnt
9549 choke me
9550 #endif
9551
9552 int
9553 main ()
9554 {
9555 return _doprnt ();
9556   ;
9557   return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564   *) ac_try_echo=$ac_try;;
9565 esac
9566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567 $as_echo "$ac_try_echo") >&5
9568   (eval "$ac_link") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } && {
9575          test -z "$ac_c_werror_flag" ||
9576          test ! -s conftest.err
9577        } && test -s conftest$ac_exeext && {
9578          test "$cross_compiling" = yes ||
9579          $as_test_x conftest$ac_exeext
9580        }; then
9581   ac_cv_func__doprnt=yes
9582 else
9583   $as_echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586         ac_cv_func__doprnt=no
9587 fi
9588
9589 rm -rf conftest.dSYM
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591       conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9594 $as_echo "$ac_cv_func__doprnt" >&6; }
9595 if test "x$ac_cv_func__doprnt" = x""yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_DOPRNT 1
9599 _ACEOF
9600
9601 fi
9602
9603 fi
9604 done
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9620 do
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623 $as_echo_n "checking for $ac_func... " >&6; }
9624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625   $as_echo_n "(cached) " >&6
9626 else
9627   cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9635 #define $ac_func innocuous_$ac_func
9636
9637 /* System header to define __stub macros and hopefully few prototypes,
9638     which can conflict with char $ac_func (); below.
9639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640     <limits.h> exists even on freestanding compilers.  */
9641
9642 #ifdef __STDC__
9643 # include <limits.h>
9644 #else
9645 # include <assert.h>
9646 #endif
9647
9648 #undef $ac_func
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651    Use char because int might match the return type of a GCC
9652    builtin and then its argument prototype would still apply.  */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char $ac_func ();
9657 /* The GNU C library defines this for functions which it implements
9658     to always fail with ENOSYS.  Some functions are actually named
9659     something starting with __ and the normal name is an alias.  */
9660 #if defined __stub_$ac_func || defined __stub___$ac_func
9661 choke me
9662 #endif
9663
9664 int
9665 main ()
9666 {
9667 return $ac_func ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679 $as_echo "$ac_try_echo") >&5
9680   (eval "$ac_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } && {
9687          test -z "$ac_c_werror_flag" ||
9688          test ! -s conftest.err
9689        } && test -s conftest$ac_exeext && {
9690          test "$cross_compiling" = yes ||
9691          $as_test_x conftest$ac_exeext
9692        }; then
9693   eval "$as_ac_var=yes"
9694 else
9695   $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698         eval "$as_ac_var=no"
9699 fi
9700
9701 rm -rf conftest.dSYM
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703       conftest$ac_exeext conftest.$ac_ext
9704 fi
9705 ac_res=`eval 'as_val=${'$as_ac_var'}
9706                  $as_echo "$as_val"'`
9707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708 $as_echo "$ac_res" >&6; }
9709 as_val=`eval 'as_val=${'$as_ac_var'}
9710                  $as_echo "$as_val"'`
9711    if test "x$as_val" = x""yes; then
9712   cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9714 _ACEOF
9715
9716 fi
9717 done
9718
9719
9720
9721 ac_config_files="$ac_config_files Makefile"
9722
9723 cat >confcache <<\_ACEOF
9724 # This file is a shell script that caches the results of configure
9725 # tests run on this system so they can be shared between configure
9726 # scripts and configure runs, see configure's option --config-cache.
9727 # It is not useful on other systems.  If it contains results you don't
9728 # want to keep, you may remove or edit it.
9729 #
9730 # config.status only pays attention to the cache file if you give it
9731 # the --recheck option to rerun configure.
9732 #
9733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9735 # following values.
9736
9737 _ACEOF
9738
9739 # The following way of writing the cache mishandles newlines in values,
9740 # but we know of no workaround that is simple, portable, and efficient.
9741 # So, we kill variables containing newlines.
9742 # Ultrix sh set writes to stderr and can't be redirected directly,
9743 # and sets the high bit in the cache file unless we assign to the vars.
9744 (
9745   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9746     eval ac_val=\$$ac_var
9747     case $ac_val in #(
9748     *${as_nl}*)
9749       case $ac_var in #(
9750       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9752       esac
9753       case $ac_var in #(
9754       _ | IFS | as_nl) ;; #(
9755       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9756       *) $as_unset $ac_var ;;
9757       esac ;;
9758     esac
9759   done
9760
9761   (set) 2>&1 |
9762     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9763     *${as_nl}ac_space=\ *)
9764       # `set' does not quote correctly, so add quotes (double-quote
9765       # substitution turns \\\\ into \\, and sed turns \\ into \).
9766       sed -n \
9767         "s/'/'\\\\''/g;
9768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9769       ;; #(
9770     *)
9771       # `set' quotes correctly as required by POSIX, so do not add quotes.
9772       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9773       ;;
9774     esac |
9775     sort
9776 ) |
9777   sed '
9778      /^ac_cv_env_/b end
9779      t clear
9780      :clear
9781      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9782      t end
9783      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9784      :end' >>confcache
9785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9786   if test -w "$cache_file"; then
9787     test "x$cache_file" != "x/dev/null" &&
9788       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9789 $as_echo "$as_me: updating cache $cache_file" >&6;}
9790     cat confcache >$cache_file
9791   else
9792     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9794   fi
9795 fi
9796 rm -f confcache
9797
9798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9799 # Let make expand exec_prefix.
9800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9801
9802 DEFS=-DHAVE_CONFIG_H
9803
9804 ac_libobjs=
9805 ac_ltlibobjs=
9806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9807   # 1. Remove the extension, and $U if already installed.
9808   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9809   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9810   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9811   #    will be set to the directory where LIBOBJS objects are built.
9812   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9813   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9814 done
9815 LIBOBJS=$ac_libobjs
9816
9817 LTLIBOBJS=$ac_ltlibobjs
9818
9819
9820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9821   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9822 Usually this means the macro was only invoked conditionally." >&5
9823 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9824 Usually this means the macro was only invoked conditionally." >&2;}
9825    { (exit 1); exit 1; }; }
9826 fi
9827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9828   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9829 Usually this means the macro was only invoked conditionally." >&5
9830 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9831 Usually this means the macro was only invoked conditionally." >&2;}
9832    { (exit 1); exit 1; }; }
9833 fi
9834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9835   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9836 Usually this means the macro was only invoked conditionally." >&5
9837 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9838 Usually this means the macro was only invoked conditionally." >&2;}
9839    { (exit 1); exit 1; }; }
9840 fi
9841 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9842   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9843 Usually this means the macro was only invoked conditionally." >&5
9844 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9845 Usually this means the macro was only invoked conditionally." >&2;}
9846    { (exit 1); exit 1; }; }
9847 fi
9848 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9849   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9850 Usually this means the macro was only invoked conditionally." >&5
9851 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9852 Usually this means the macro was only invoked conditionally." >&2;}
9853    { (exit 1); exit 1; }; }
9854 fi
9855 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
9856   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
9857 Usually this means the macro was only invoked conditionally." >&5
9858 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
9859 Usually this means the macro was only invoked conditionally." >&2;}
9860    { (exit 1); exit 1; }; }
9861 fi
9862
9863 : ${CONFIG_STATUS=./config.status}
9864 ac_write_fail=0
9865 ac_clean_files_save=$ac_clean_files
9866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9867 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9869 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9870 #! $SHELL
9871 # Generated by $as_me.
9872 # Run this file to recreate the current configuration.
9873 # Compiler output produced by configure, useful for debugging
9874 # configure, is in config.log if it exists.
9875
9876 debug=false
9877 ac_cs_recheck=false
9878 ac_cs_silent=false
9879 SHELL=\${CONFIG_SHELL-$SHELL}
9880 _ACEOF
9881
9882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9883 ## --------------------- ##
9884 ## M4sh Initialization.  ##
9885 ## --------------------- ##
9886
9887 # Be more Bourne compatible
9888 DUALCASE=1; export DUALCASE # for MKS sh
9889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9890   emulate sh
9891   NULLCMD=:
9892   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9893   # is contrary to our usage.  Disable this feature.
9894   alias -g '${1+"$@"}'='"$@"'
9895   setopt NO_GLOB_SUBST
9896 else
9897   case `(set -o) 2>/dev/null` in
9898   *posix*) set -o posix ;;
9899 esac
9900
9901 fi
9902
9903
9904
9905
9906 # PATH needs CR
9907 # Avoid depending upon Character Ranges.
9908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9911 as_cr_digits='0123456789'
9912 as_cr_alnum=$as_cr_Letters$as_cr_digits
9913
9914 as_nl='
9915 '
9916 export as_nl
9917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9921 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9922   as_echo='printf %s\n'
9923   as_echo_n='printf %s'
9924 else
9925   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9926     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9927     as_echo_n='/usr/ucb/echo -n'
9928   else
9929     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9930     as_echo_n_body='eval
9931       arg=$1;
9932       case $arg in
9933       *"$as_nl"*)
9934         expr "X$arg" : "X\\(.*\\)$as_nl";
9935         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9936       esac;
9937       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9938     '
9939     export as_echo_n_body
9940     as_echo_n='sh -c $as_echo_n_body as_echo'
9941   fi
9942   export as_echo_body
9943   as_echo='sh -c $as_echo_body as_echo'
9944 fi
9945
9946 # The user is always right.
9947 if test "${PATH_SEPARATOR+set}" != set; then
9948   PATH_SEPARATOR=:
9949   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9950     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9951       PATH_SEPARATOR=';'
9952   }
9953 fi
9954
9955 # Support unset when possible.
9956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9957   as_unset=unset
9958 else
9959   as_unset=false
9960 fi
9961
9962
9963 # IFS
9964 # We need space, tab and new line, in precisely that order.  Quoting is
9965 # there to prevent editors from complaining about space-tab.
9966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9967 # splitting by setting IFS to empty value.)
9968 IFS=" ""        $as_nl"
9969
9970 # Find who we are.  Look in the path if we contain no directory separator.
9971 case $0 in
9972   *[\\/]* ) as_myself=$0 ;;
9973   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9979 done
9980 IFS=$as_save_IFS
9981
9982      ;;
9983 esac
9984 # We did not find ourselves, most probably we were run as `sh COMMAND'
9985 # in which case we are not to be found in the path.
9986 if test "x$as_myself" = x; then
9987   as_myself=$0
9988 fi
9989 if test ! -f "$as_myself"; then
9990   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9991   { (exit 1); exit 1; }
9992 fi
9993
9994 # Work around bugs in pre-3.0 UWIN ksh.
9995 for as_var in ENV MAIL MAILPATH
9996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9997 done
9998 PS1='$ '
9999 PS2='> '
10000 PS4='+ '
10001
10002 # NLS nuisances.
10003 LC_ALL=C
10004 export LC_ALL
10005 LANGUAGE=C
10006 export LANGUAGE
10007
10008 # Required to use basename.
10009 if expr a : '\(a\)' >/dev/null 2>&1 &&
10010    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10011   as_expr=expr
10012 else
10013   as_expr=false
10014 fi
10015
10016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10017   as_basename=basename
10018 else
10019   as_basename=false
10020 fi
10021
10022
10023 # Name of the executable.
10024 as_me=`$as_basename -- "$0" ||
10025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10026          X"$0" : 'X\(//\)$' \| \
10027          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10028 $as_echo X/"$0" |
10029     sed '/^.*\/\([^/][^/]*\)\/*$/{
10030             s//\1/
10031             q
10032           }
10033           /^X\/\(\/\/\)$/{
10034             s//\1/
10035             q
10036           }
10037           /^X\/\(\/\).*/{
10038             s//\1/
10039             q
10040           }
10041           s/.*/./; q'`
10042
10043 # CDPATH.
10044 $as_unset CDPATH
10045
10046
10047
10048   as_lineno_1=$LINENO
10049   as_lineno_2=$LINENO
10050   test "x$as_lineno_1" != "x$as_lineno_2" &&
10051   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10052
10053   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10054   # uniformly replaced by the line number.  The first 'sed' inserts a
10055   # line-number line after each line using $LINENO; the second 'sed'
10056   # does the real work.  The second script uses 'N' to pair each
10057   # line-number line with the line containing $LINENO, and appends
10058   # trailing '-' during substitution so that $LINENO is not a special
10059   # case at line end.
10060   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10061   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10062   # E. McMahon (1931-1989) for sed's syntax.  :-)
10063   sed -n '
10064     p
10065     /[$]LINENO/=
10066   ' <$as_myself |
10067     sed '
10068       s/[$]LINENO.*/&-/
10069       t lineno
10070       b
10071       :lineno
10072       N
10073       :loop
10074       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10075       t loop
10076       s/-\n.*//
10077     ' >$as_me.lineno &&
10078   chmod +x "$as_me.lineno" ||
10079     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10080    { (exit 1); exit 1; }; }
10081
10082   # Don't try to exec as it changes $[0], causing all sort of problems
10083   # (the dirname of $[0] is not the place where we might find the
10084   # original and so on.  Autoconf is especially sensitive to this).
10085   . "./$as_me.lineno"
10086   # Exit status is that of the last command.
10087   exit
10088 }
10089
10090
10091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10092   as_dirname=dirname
10093 else
10094   as_dirname=false
10095 fi
10096
10097 ECHO_C= ECHO_N= ECHO_T=
10098 case `echo -n x` in
10099 -n*)
10100   case `echo 'x\c'` in
10101   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10102   *)   ECHO_C='\c';;
10103   esac;;
10104 *)
10105   ECHO_N='-n';;
10106 esac
10107 if expr a : '\(a\)' >/dev/null 2>&1 &&
10108    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10109   as_expr=expr
10110 else
10111   as_expr=false
10112 fi
10113
10114 rm -f conf$$ conf$$.exe conf$$.file
10115 if test -d conf$$.dir; then
10116   rm -f conf$$.dir/conf$$.file
10117 else
10118   rm -f conf$$.dir
10119   mkdir conf$$.dir 2>/dev/null
10120 fi
10121 if (echo >conf$$.file) 2>/dev/null; then
10122   if ln -s conf$$.file conf$$ 2>/dev/null; then
10123     as_ln_s='ln -s'
10124     # ... but there are two gotchas:
10125     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10126     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10127     # In both cases, we have to default to `cp -p'.
10128     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10129       as_ln_s='cp -p'
10130   elif ln conf$$.file conf$$ 2>/dev/null; then
10131     as_ln_s=ln
10132   else
10133     as_ln_s='cp -p'
10134   fi
10135 else
10136   as_ln_s='cp -p'
10137 fi
10138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10139 rmdir conf$$.dir 2>/dev/null
10140
10141 if mkdir -p . 2>/dev/null; then
10142   as_mkdir_p=:
10143 else
10144   test -d ./-p && rmdir ./-p
10145   as_mkdir_p=false
10146 fi
10147
10148 if test -x / >/dev/null 2>&1; then
10149   as_test_x='test -x'
10150 else
10151   if ls -dL / >/dev/null 2>&1; then
10152     as_ls_L_option=L
10153   else
10154     as_ls_L_option=
10155   fi
10156   as_test_x='
10157     eval sh -c '\''
10158       if test -d "$1"; then
10159         test -d "$1/.";
10160       else
10161         case $1 in
10162         -*)set "./$1";;
10163         esac;
10164         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10165         ???[sx]*):;;*)false;;esac;fi
10166     '\'' sh
10167   '
10168 fi
10169 as_executable_p=$as_test_x
10170
10171 # Sed expression to map a string onto a valid CPP name.
10172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10173
10174 # Sed expression to map a string onto a valid variable name.
10175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10176
10177
10178 exec 6>&1
10179
10180 # Save the log message, to keep $[0] and so on meaningful, and to
10181 # report actual input values of CONFIG_FILES etc. instead of their
10182 # values after options handling.
10183 ac_log="
10184 This file was extended by lcr $as_me 1.7, which was
10185 generated by GNU Autoconf 2.63.  Invocation command line was
10186
10187   CONFIG_FILES    = $CONFIG_FILES
10188   CONFIG_HEADERS  = $CONFIG_HEADERS
10189   CONFIG_LINKS    = $CONFIG_LINKS
10190   CONFIG_COMMANDS = $CONFIG_COMMANDS
10191   $ $0 $@
10192
10193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10194 "
10195
10196 _ACEOF
10197
10198 case $ac_config_files in *"
10199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10200 esac
10201
10202 case $ac_config_headers in *"
10203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10204 esac
10205
10206
10207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10208 # Files that config.status was made for.
10209 config_files="$ac_config_files"
10210 config_headers="$ac_config_headers"
10211 config_commands="$ac_config_commands"
10212
10213 _ACEOF
10214
10215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10216 ac_cs_usage="\
10217 \`$as_me' instantiates files from templates according to the
10218 current configuration.
10219
10220 Usage: $0 [OPTION]... [FILE]...
10221
10222   -h, --help       print this help, then exit
10223   -V, --version    print version number and configuration settings, then exit
10224   -q, --quiet, --silent
10225                    do not print progress messages
10226   -d, --debug      don't remove temporary files
10227       --recheck    update $as_me by reconfiguring in the same conditions
10228       --file=FILE[:TEMPLATE]
10229                    instantiate the configuration file FILE
10230       --header=FILE[:TEMPLATE]
10231                    instantiate the configuration header FILE
10232
10233 Configuration files:
10234 $config_files
10235
10236 Configuration headers:
10237 $config_headers
10238
10239 Configuration commands:
10240 $config_commands
10241
10242 Report bugs to <bug-autoconf@gnu.org>."
10243
10244 _ACEOF
10245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10246 ac_cs_version="\\
10247 lcr config.status 1.7
10248 configured by $0, generated by GNU Autoconf 2.63,
10249   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10250
10251 Copyright (C) 2008 Free Software Foundation, Inc.
10252 This config.status script is free software; the Free Software Foundation
10253 gives unlimited permission to copy, distribute and modify it."
10254
10255 ac_pwd='$ac_pwd'
10256 srcdir='$srcdir'
10257 INSTALL='$INSTALL'
10258 AWK='$AWK'
10259 test -n "\$AWK" || AWK=awk
10260 _ACEOF
10261
10262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10263 # The default lists apply if the user does not specify any file.
10264 ac_need_defaults=:
10265 while test $# != 0
10266 do
10267   case $1 in
10268   --*=*)
10269     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10270     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10271     ac_shift=:
10272     ;;
10273   *)
10274     ac_option=$1
10275     ac_optarg=$2
10276     ac_shift=shift
10277     ;;
10278   esac
10279
10280   case $ac_option in
10281   # Handling of the options.
10282   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10283     ac_cs_recheck=: ;;
10284   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10285     $as_echo "$ac_cs_version"; exit ;;
10286   --debug | --debu | --deb | --de | --d | -d )
10287     debug=: ;;
10288   --file | --fil | --fi | --f )
10289     $ac_shift
10290     case $ac_optarg in
10291     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10292     esac
10293     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10294     ac_need_defaults=false;;
10295   --header | --heade | --head | --hea )
10296     $ac_shift
10297     case $ac_optarg in
10298     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10299     esac
10300     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10301     ac_need_defaults=false;;
10302   --he | --h)
10303     # Conflict between --help and --header
10304     { $as_echo "$as_me: error: ambiguous option: $1
10305 Try \`$0 --help' for more information." >&2
10306    { (exit 1); exit 1; }; };;
10307   --help | --hel | -h )
10308     $as_echo "$ac_cs_usage"; exit ;;
10309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10310   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10311     ac_cs_silent=: ;;
10312
10313   # This is an error.
10314   -*) { $as_echo "$as_me: error: unrecognized option: $1
10315 Try \`$0 --help' for more information." >&2
10316    { (exit 1); exit 1; }; } ;;
10317
10318   *) ac_config_targets="$ac_config_targets $1"
10319      ac_need_defaults=false ;;
10320
10321   esac
10322   shift
10323 done
10324
10325 ac_configure_extra_args=
10326
10327 if $ac_cs_silent; then
10328   exec 6>/dev/null
10329   ac_configure_extra_args="$ac_configure_extra_args --silent"
10330 fi
10331
10332 _ACEOF
10333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10334 if \$ac_cs_recheck; then
10335   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10336   shift
10337   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10338   CONFIG_SHELL='$SHELL'
10339   export CONFIG_SHELL
10340   exec "\$@"
10341 fi
10342
10343 _ACEOF
10344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10345 exec 5>>config.log
10346 {
10347   echo
10348   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10349 ## Running $as_me. ##
10350 _ASBOX
10351   $as_echo "$ac_log"
10352 } >&5
10353
10354 _ACEOF
10355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10356 #
10357 # INIT-COMMANDS
10358 #
10359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10360
10361 _ACEOF
10362
10363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10364
10365 # Handling of arguments.
10366 for ac_config_target in $ac_config_targets
10367 do
10368   case $ac_config_target in
10369     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10370     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10371     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10372
10373   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10374 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10375    { (exit 1); exit 1; }; };;
10376   esac
10377 done
10378
10379
10380 # If the user did not use the arguments to specify the items to instantiate,
10381 # then the envvar interface is used.  Set only those that are not.
10382 # We use the long form for the default assignment because of an extremely
10383 # bizarre bug on SunOS 4.1.3.
10384 if $ac_need_defaults; then
10385   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10386   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10387   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10388 fi
10389
10390 # Have a temporary directory for convenience.  Make it in the build tree
10391 # simply because there is no reason against having it here, and in addition,
10392 # creating and moving files from /tmp can sometimes cause problems.
10393 # Hook for its removal unless debugging.
10394 # Note that there is a small window in which the directory will not be cleaned:
10395 # after its creation but before its name has been assigned to `$tmp'.
10396 $debug ||
10397 {
10398   tmp=
10399   trap 'exit_status=$?
10400   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10401 ' 0
10402   trap '{ (exit 1); exit 1; }' 1 2 13 15
10403 }
10404 # Create a (secure) tmp directory for tmp files.
10405
10406 {
10407   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10408   test -n "$tmp" && test -d "$tmp"
10409 }  ||
10410 {
10411   tmp=./conf$$-$RANDOM
10412   (umask 077 && mkdir "$tmp")
10413 } ||
10414 {
10415    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10416    { (exit 1); exit 1; }
10417 }
10418
10419 # Set up the scripts for CONFIG_FILES section.
10420 # No need to generate them if there are no CONFIG_FILES.
10421 # This happens for instance with `./config.status config.h'.
10422 if test -n "$CONFIG_FILES"; then
10423
10424
10425 ac_cr='\r'
10426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10428   ac_cs_awk_cr='\\r'
10429 else
10430   ac_cs_awk_cr=$ac_cr
10431 fi
10432
10433 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10434 _ACEOF
10435
10436
10437 {
10438   echo "cat >conf$$subs.awk <<_ACEOF" &&
10439   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10440   echo "_ACEOF"
10441 } >conf$$subs.sh ||
10442   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10443 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10444    { (exit 1); exit 1; }; }
10445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10446 ac_delim='%!_!# '
10447 for ac_last_try in false false false false false :; do
10448   . ./conf$$subs.sh ||
10449     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10450 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10451    { (exit 1); exit 1; }; }
10452
10453   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10454   if test $ac_delim_n = $ac_delim_num; then
10455     break
10456   elif $ac_last_try; then
10457     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10458 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10459    { (exit 1); exit 1; }; }
10460   else
10461     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10462   fi
10463 done
10464 rm -f conf$$subs.sh
10465
10466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10467 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10468 _ACEOF
10469 sed -n '
10470 h
10471 s/^/S["/; s/!.*/"]=/
10472 p
10473 g
10474 s/^[^!]*!//
10475 :repl
10476 t repl
10477 s/'"$ac_delim"'$//
10478 t delim
10479 :nl
10480 h
10481 s/\(.\{148\}\).*/\1/
10482 t more1
10483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10484 p
10485 n
10486 b repl
10487 :more1
10488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10489 p
10490 g
10491 s/.\{148\}//
10492 t nl
10493 :delim
10494 h
10495 s/\(.\{148\}\).*/\1/
10496 t more2
10497 s/["\\]/\\&/g; s/^/"/; s/$/"/
10498 p
10499 b
10500 :more2
10501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10502 p
10503 g
10504 s/.\{148\}//
10505 t delim
10506 ' <conf$$subs.awk | sed '
10507 /^[^""]/{
10508   N
10509   s/\n//
10510 }
10511 ' >>$CONFIG_STATUS || ac_write_fail=1
10512 rm -f conf$$subs.awk
10513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10514 _ACAWK
10515 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10516   for (key in S) S_is_set[key] = 1
10517   FS = "\a"
10518
10519 }
10520 {
10521   line = $ 0
10522   nfields = split(line, field, "@")
10523   substed = 0
10524   len = length(field[1])
10525   for (i = 2; i < nfields; i++) {
10526     key = field[i]
10527     keylen = length(key)
10528     if (S_is_set[key]) {
10529       value = S[key]
10530       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10531       len += length(value) + length(field[++i])
10532       substed = 1
10533     } else
10534       len += 1 + keylen
10535   }
10536
10537   print line
10538 }
10539
10540 _ACAWK
10541 _ACEOF
10542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10544   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10545 else
10546   cat
10547 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10548   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10549 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10550    { (exit 1); exit 1; }; }
10551 _ACEOF
10552
10553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10555 # trailing colons and then remove the whole line if VPATH becomes empty
10556 # (actually we leave an empty line to preserve line numbers).
10557 if test "x$srcdir" = x.; then
10558   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10559 s/:*\$(srcdir):*/:/
10560 s/:*\${srcdir}:*/:/
10561 s/:*@srcdir@:*/:/
10562 s/^\([^=]*=[     ]*\):*/\1/
10563 s/:*$//
10564 s/^[^=]*=[       ]*$//
10565 }'
10566 fi
10567
10568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10569 fi # test -n "$CONFIG_FILES"
10570
10571 # Set up the scripts for CONFIG_HEADERS section.
10572 # No need to generate them if there are no CONFIG_HEADERS.
10573 # This happens for instance with `./config.status Makefile'.
10574 if test -n "$CONFIG_HEADERS"; then
10575 cat >"$tmp/defines.awk" <<\_ACAWK ||
10576 BEGIN {
10577 _ACEOF
10578
10579 # Transform confdefs.h into an awk script `defines.awk', embedded as
10580 # here-document in config.status, that substitutes the proper values into
10581 # config.h.in to produce config.h.
10582
10583 # Create a delimiter string that does not exist in confdefs.h, to ease
10584 # handling of long lines.
10585 ac_delim='%!_!# '
10586 for ac_last_try in false false :; do
10587   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10588   if test -z "$ac_t"; then
10589     break
10590   elif $ac_last_try; then
10591     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10592 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10593    { (exit 1); exit 1; }; }
10594   else
10595     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10596   fi
10597 done
10598
10599 # For the awk script, D is an array of macro values keyed by name,
10600 # likewise P contains macro parameters if any.  Preserve backslash
10601 # newline sequences.
10602
10603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10604 sed -n '
10605 s/.\{148\}/&'"$ac_delim"'/g
10606 t rset
10607 :rset
10608 s/^[     ]*#[    ]*define[       ][      ]*/ /
10609 t def
10610 d
10611 :def
10612 s/\\$//
10613 t bsnl
10614 s/["\\]/\\&/g
10615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10616 D["\1"]=" \3"/p
10617 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10618 d
10619 :bsnl
10620 s/["\\]/\\&/g
10621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10622 D["\1"]=" \3\\\\\\n"\\/p
10623 t cont
10624 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10625 t cont
10626 d
10627 :cont
10628 n
10629 s/.\{148\}/&'"$ac_delim"'/g
10630 t clear
10631 :clear
10632 s/\\$//
10633 t bsnlc
10634 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10635 d
10636 :bsnlc
10637 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10638 b cont
10639 ' <confdefs.h | sed '
10640 s/'"$ac_delim"'/"\\\
10641 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10642
10643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10644   for (key in D) D_is_set[key] = 1
10645   FS = "\a"
10646 }
10647 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10648   line = \$ 0
10649   split(line, arg, " ")
10650   if (arg[1] == "#") {
10651     defundef = arg[2]
10652     mac1 = arg[3]
10653   } else {
10654     defundef = substr(arg[1], 2)
10655     mac1 = arg[2]
10656   }
10657   split(mac1, mac2, "(") #)
10658   macro = mac2[1]
10659   prefix = substr(line, 1, index(line, defundef) - 1)
10660   if (D_is_set[macro]) {
10661     # Preserve the white space surrounding the "#".
10662     print prefix "define", macro P[macro] D[macro]
10663     next
10664   } else {
10665     # Replace #undef with comments.  This is necessary, for example,
10666     # in the case of _POSIX_SOURCE, which is predefined and required
10667     # on some systems where configure will not decide to define it.
10668     if (defundef == "undef") {
10669       print "/*", prefix defundef, macro, "*/"
10670       next
10671     }
10672   }
10673 }
10674 { print }
10675 _ACAWK
10676 _ACEOF
10677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10678   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10679 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10680    { (exit 1); exit 1; }; }
10681 fi # test -n "$CONFIG_HEADERS"
10682
10683
10684 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10685 shift
10686 for ac_tag
10687 do
10688   case $ac_tag in
10689   :[FHLC]) ac_mode=$ac_tag; continue;;
10690   esac
10691   case $ac_mode$ac_tag in
10692   :[FHL]*:*);;
10693   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10694 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10695    { (exit 1); exit 1; }; };;
10696   :[FH]-) ac_tag=-:-;;
10697   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10698   esac
10699   ac_save_IFS=$IFS
10700   IFS=:
10701   set x $ac_tag
10702   IFS=$ac_save_IFS
10703   shift
10704   ac_file=$1
10705   shift
10706
10707   case $ac_mode in
10708   :L) ac_source=$1;;
10709   :[FH])
10710     ac_file_inputs=
10711     for ac_f
10712     do
10713       case $ac_f in
10714       -) ac_f="$tmp/stdin";;
10715       *) # Look for the file first in the build tree, then in the source tree
10716          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10717          # because $ac_f cannot contain `:'.
10718          test -f "$ac_f" ||
10719            case $ac_f in
10720            [\\/$]*) false;;
10721            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10722            esac ||
10723            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10724 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10725    { (exit 1); exit 1; }; };;
10726       esac
10727       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10728       ac_file_inputs="$ac_file_inputs '$ac_f'"
10729     done
10730
10731     # Let's still pretend it is `configure' which instantiates (i.e., don't
10732     # use $as_me), people would be surprised to read:
10733     #    /* config.h.  Generated by config.status.  */
10734     configure_input='Generated from '`
10735           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10736         `' by configure.'
10737     if test x"$ac_file" != x-; then
10738       configure_input="$ac_file.  $configure_input"
10739       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10740 $as_echo "$as_me: creating $ac_file" >&6;}
10741     fi
10742     # Neutralize special characters interpreted by sed in replacement strings.
10743     case $configure_input in #(
10744     *\&* | *\|* | *\\* )
10745        ac_sed_conf_input=`$as_echo "$configure_input" |
10746        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10747     *) ac_sed_conf_input=$configure_input;;
10748     esac
10749
10750     case $ac_tag in
10751     *:-:* | *:-) cat >"$tmp/stdin" \
10752       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10753 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10754    { (exit 1); exit 1; }; } ;;
10755     esac
10756     ;;
10757   esac
10758
10759   ac_dir=`$as_dirname -- "$ac_file" ||
10760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10761          X"$ac_file" : 'X\(//\)[^/]' \| \
10762          X"$ac_file" : 'X\(//\)$' \| \
10763          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10764 $as_echo X"$ac_file" |
10765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10766             s//\1/
10767             q
10768           }
10769           /^X\(\/\/\)[^/].*/{
10770             s//\1/
10771             q
10772           }
10773           /^X\(\/\/\)$/{
10774             s//\1/
10775             q
10776           }
10777           /^X\(\/\).*/{
10778             s//\1/
10779             q
10780           }
10781           s/.*/./; q'`
10782   { as_dir="$ac_dir"
10783   case $as_dir in #(
10784   -*) as_dir=./$as_dir;;
10785   esac
10786   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10787     as_dirs=
10788     while :; do
10789       case $as_dir in #(
10790       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10791       *) as_qdir=$as_dir;;
10792       esac
10793       as_dirs="'$as_qdir' $as_dirs"
10794       as_dir=`$as_dirname -- "$as_dir" ||
10795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10796          X"$as_dir" : 'X\(//\)[^/]' \| \
10797          X"$as_dir" : 'X\(//\)$' \| \
10798          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10799 $as_echo X"$as_dir" |
10800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10801             s//\1/
10802             q
10803           }
10804           /^X\(\/\/\)[^/].*/{
10805             s//\1/
10806             q
10807           }
10808           /^X\(\/\/\)$/{
10809             s//\1/
10810             q
10811           }
10812           /^X\(\/\).*/{
10813             s//\1/
10814             q
10815           }
10816           s/.*/./; q'`
10817       test -d "$as_dir" && break
10818     done
10819     test -z "$as_dirs" || eval "mkdir $as_dirs"
10820   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10821 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10822    { (exit 1); exit 1; }; }; }
10823   ac_builddir=.
10824
10825 case "$ac_dir" in
10826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10827 *)
10828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10829   # A ".." for each directory in $ac_dir_suffix.
10830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10831   case $ac_top_builddir_sub in
10832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10834   esac ;;
10835 esac
10836 ac_abs_top_builddir=$ac_pwd
10837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10838 # for backward compatibility:
10839 ac_top_builddir=$ac_top_build_prefix
10840
10841 case $srcdir in
10842   .)  # We are building in place.
10843     ac_srcdir=.
10844     ac_top_srcdir=$ac_top_builddir_sub
10845     ac_abs_top_srcdir=$ac_pwd ;;
10846   [\\/]* | ?:[\\/]* )  # Absolute name.
10847     ac_srcdir=$srcdir$ac_dir_suffix;
10848     ac_top_srcdir=$srcdir
10849     ac_abs_top_srcdir=$srcdir ;;
10850   *) # Relative name.
10851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10852     ac_top_srcdir=$ac_top_build_prefix$srcdir
10853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10854 esac
10855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10856
10857
10858   case $ac_mode in
10859   :F)
10860   #
10861   # CONFIG_FILE
10862   #
10863
10864   case $INSTALL in
10865   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10866   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10867   esac
10868 _ACEOF
10869
10870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10871 # If the template does not know about datarootdir, expand it.
10872 # FIXME: This hack should be removed a few years after 2.60.
10873 ac_datarootdir_hack=; ac_datarootdir_seen=
10874
10875 ac_sed_dataroot='
10876 /datarootdir/ {
10877   p
10878   q
10879 }
10880 /@datadir@/p
10881 /@docdir@/p
10882 /@infodir@/p
10883 /@localedir@/p
10884 /@mandir@/p
10885 '
10886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10887 *datarootdir*) ac_datarootdir_seen=yes;;
10888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10889   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10891 _ACEOF
10892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10893   ac_datarootdir_hack='
10894   s&@datadir@&$datadir&g
10895   s&@docdir@&$docdir&g
10896   s&@infodir@&$infodir&g
10897   s&@localedir@&$localedir&g
10898   s&@mandir@&$mandir&g
10899     s&\\\${datarootdir}&$datarootdir&g' ;;
10900 esac
10901 _ACEOF
10902
10903 # Neutralize VPATH when `$srcdir' = `.'.
10904 # Shell code in configure.ac might set extrasub.
10905 # FIXME: do we really want to maintain this feature?
10906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10907 ac_sed_extra="$ac_vpsub
10908 $extrasub
10909 _ACEOF
10910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10911 :t
10912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10913 s|@configure_input@|$ac_sed_conf_input|;t t
10914 s&@top_builddir@&$ac_top_builddir_sub&;t t
10915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10916 s&@srcdir@&$ac_srcdir&;t t
10917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10918 s&@top_srcdir@&$ac_top_srcdir&;t t
10919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10920 s&@builddir@&$ac_builddir&;t t
10921 s&@abs_builddir@&$ac_abs_builddir&;t t
10922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10923 s&@INSTALL@&$ac_INSTALL&;t t
10924 $ac_datarootdir_hack
10925 "
10926 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10927   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10928 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10929    { (exit 1); exit 1; }; }
10930
10931 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10932   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10933   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10934   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10935 which seems to be undefined.  Please make sure it is defined." >&5
10936 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10937 which seems to be undefined.  Please make sure it is defined." >&2;}
10938
10939   rm -f "$tmp/stdin"
10940   case $ac_file in
10941   -) cat "$tmp/out" && rm -f "$tmp/out";;
10942   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10943   esac \
10944   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10945 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10946    { (exit 1); exit 1; }; }
10947  ;;
10948   :H)
10949   #
10950   # CONFIG_HEADER
10951   #
10952   if test x"$ac_file" != x-; then
10953     {
10954       $as_echo "/* $configure_input  */" \
10955       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10956     } >"$tmp/config.h" \
10957       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10958 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10959    { (exit 1); exit 1; }; }
10960     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10961       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10963     else
10964       rm -f "$ac_file"
10965       mv "$tmp/config.h" "$ac_file" \
10966         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10967 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10968    { (exit 1); exit 1; }; }
10969     fi
10970   else
10971     $as_echo "/* $configure_input  */" \
10972       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10973       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10974 $as_echo "$as_me: error: could not create -" >&2;}
10975    { (exit 1); exit 1; }; }
10976   fi
10977 # Compute "$ac_file"'s index in $config_headers.
10978 _am_stamp_count=1
10979 for _am_header in $config_headers :; do
10980   case $_am_header in
10981     "$ac_file" | "$ac_file":* )
10982       break ;;
10983     * )
10984       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10985   esac
10986 done
10987 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10989          X"$ac_file" : 'X\(//\)[^/]' \| \
10990          X"$ac_file" : 'X\(//\)$' \| \
10991          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10992 $as_echo X"$ac_file" |
10993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10994             s//\1/
10995             q
10996           }
10997           /^X\(\/\/\)[^/].*/{
10998             s//\1/
10999             q
11000           }
11001           /^X\(\/\/\)$/{
11002             s//\1/
11003             q
11004           }
11005           /^X\(\/\).*/{
11006             s//\1/
11007             q
11008           }
11009           s/.*/./; q'`/stamp-h$_am_stamp_count
11010  ;;
11011
11012   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11013 $as_echo "$as_me: executing $ac_file commands" >&6;}
11014  ;;
11015   esac
11016
11017
11018   case $ac_file$ac_mode in
11019     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11020   # Strip MF so we end up with the name of the file.
11021   mf=`echo "$mf" | sed -e 's/:.*$//'`
11022   # Check whether this is an Automake generated Makefile or not.
11023   # We used to match only the files named `Makefile.in', but
11024   # some people rename them; so instead we look at the file content.
11025   # Grep'ing the first line is not enough: some people post-process
11026   # each Makefile.in and add a new line on top of each file to say so.
11027   # So let's grep whole file.
11028   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11029     dirpart=`$as_dirname -- "$mf" ||
11030 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11031          X"$mf" : 'X\(//\)[^/]' \| \
11032          X"$mf" : 'X\(//\)$' \| \
11033          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11034 $as_echo X"$mf" |
11035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11036             s//\1/
11037             q
11038           }
11039           /^X\(\/\/\)[^/].*/{
11040             s//\1/
11041             q
11042           }
11043           /^X\(\/\/\)$/{
11044             s//\1/
11045             q
11046           }
11047           /^X\(\/\).*/{
11048             s//\1/
11049             q
11050           }
11051           s/.*/./; q'`
11052   else
11053     continue
11054   fi
11055   # Extract the definition of DEPDIR, am__include, and am__quote
11056   # from the Makefile without running `make'.
11057   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11058   test -z "$DEPDIR" && continue
11059   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11060   test -z "am__include" && continue
11061   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11062   # When using ansi2knr, U may be empty or an underscore; expand it
11063   U=`sed -n 's/^U = //p' < "$mf"`
11064   # Find all dependency output files, they are included files with
11065   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11066   # simplest approach to changing $(DEPDIR) to its actual value in the
11067   # expansion.
11068   for file in `sed -n "
11069     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11070        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11071     # Make sure the directory exists.
11072     test -f "$dirpart/$file" && continue
11073     fdir=`$as_dirname -- "$file" ||
11074 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11075          X"$file" : 'X\(//\)[^/]' \| \
11076          X"$file" : 'X\(//\)$' \| \
11077          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11078 $as_echo X"$file" |
11079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11080             s//\1/
11081             q
11082           }
11083           /^X\(\/\/\)[^/].*/{
11084             s//\1/
11085             q
11086           }
11087           /^X\(\/\/\)$/{
11088             s//\1/
11089             q
11090           }
11091           /^X\(\/\).*/{
11092             s//\1/
11093             q
11094           }
11095           s/.*/./; q'`
11096     { as_dir=$dirpart/$fdir
11097   case $as_dir in #(
11098   -*) as_dir=./$as_dir;;
11099   esac
11100   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11101     as_dirs=
11102     while :; do
11103       case $as_dir in #(
11104       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11105       *) as_qdir=$as_dir;;
11106       esac
11107       as_dirs="'$as_qdir' $as_dirs"
11108       as_dir=`$as_dirname -- "$as_dir" ||
11109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11110          X"$as_dir" : 'X\(//\)[^/]' \| \
11111          X"$as_dir" : 'X\(//\)$' \| \
11112          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11113 $as_echo X"$as_dir" |
11114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11115             s//\1/
11116             q
11117           }
11118           /^X\(\/\/\)[^/].*/{
11119             s//\1/
11120             q
11121           }
11122           /^X\(\/\/\)$/{
11123             s//\1/
11124             q
11125           }
11126           /^X\(\/\).*/{
11127             s//\1/
11128             q
11129           }
11130           s/.*/./; q'`
11131       test -d "$as_dir" && break
11132     done
11133     test -z "$as_dirs" || eval "mkdir $as_dirs"
11134   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11135 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11136    { (exit 1); exit 1; }; }; }
11137     # echo "creating $dirpart/$file"
11138     echo '# dummy' > "$dirpart/$file"
11139   done
11140 done
11141  ;;
11142
11143   esac
11144 done # for ac_tag
11145
11146
11147 { (exit 0); exit 0; }
11148 _ACEOF
11149 chmod +x $CONFIG_STATUS
11150 ac_clean_files=$ac_clean_files_save
11151
11152 test $ac_write_fail = 0 ||
11153   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11154 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11155    { (exit 1); exit 1; }; }
11156
11157
11158 # configure is writing to config.log, and then calls config.status.
11159 # config.status does its own redirection, appending to config.log.
11160 # Unfortunately, on DOS this fails, as config.log is still kept open
11161 # by configure, so config.status won't be able to write to it; its
11162 # output is simply discarded.  So we exec the FD to /dev/null,
11163 # effectively closing config.log, so it can be properly (re)opened and
11164 # appended to by config.status.  When coming back to configure, we
11165 # need to make the FD available again.
11166 if test "$no_create" != yes; then
11167   ac_cs_success=:
11168   ac_config_status_args=
11169   test "$silent" = yes &&
11170     ac_config_status_args="$ac_config_status_args --quiet"
11171   exec 5>/dev/null
11172   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11173   exec 5>>config.log
11174   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11175   # would make configure fail if this is the last instruction.
11176   $ac_cs_success || { (exit 1); exit 1; }
11177 fi
11178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11179   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11181 fi
11182