beb24a931325ce1a7e4d7df1e11a772b436c7415
[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.5.
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.5'
600 PACKAGE_STRING='lcr 1.5'
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_GSM_FALSE
644 ENABLE_GSM_TRUE
645 LIBCRYPTO
646 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
647 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
653 CXX
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_dependency_tracking
735 with_asterisk
736 with_ssl
737 with_gsm
738 '
739       ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 CXX
749 CXXFLAGS
750 CCC'
751
752
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805   # If the previous option needs an argument, assign it.
806   if test -n "$ac_prev"; then
807     eval $ac_prev=\$ac_option
808     ac_prev=
809     continue
810   fi
811
812   case $ac_option in
813   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814   *)    ac_optarg=yes ;;
815   esac
816
817   # Accept the important Cygnus configure options, so we can diagnose typos.
818
819   case $ac_dashdash$ac_option in
820   --)
821     ac_dashdash=yes ;;
822
823   -bindir | --bindir | --bindi | --bind | --bin | --bi)
824     ac_prev=bindir ;;
825   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826     bindir=$ac_optarg ;;
827
828   -build | --build | --buil | --bui | --bu)
829     ac_prev=build_alias ;;
830   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831     build_alias=$ac_optarg ;;
832
833   -cache-file | --cache-file | --cache-fil | --cache-fi \
834   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835     ac_prev=cache_file ;;
836   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838     cache_file=$ac_optarg ;;
839
840   --config-cache | -C)
841     cache_file=config.cache ;;
842
843   -datadir | --datadir | --datadi | --datad)
844     ac_prev=datadir ;;
845   -datadir=* | --datadir=* | --datadi=* | --datad=*)
846     datadir=$ac_optarg ;;
847
848   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849   | --dataroo | --dataro | --datar)
850     ac_prev=datarootdir ;;
851   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853     datarootdir=$ac_optarg ;;
854
855   -disable-* | --disable-*)
856     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857     # Reject names that are not valid shell variable names.
858     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860    { (exit 1); exit 1; }; }
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=no ;;
871
872   -docdir | --docdir | --docdi | --doc | --do)
873     ac_prev=docdir ;;
874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875     docdir=$ac_optarg ;;
876
877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878     ac_prev=dvidir ;;
879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880     dvidir=$ac_optarg ;;
881
882   -enable-* | --enable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
887    { (exit 1); exit 1; }; }
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=\$ac_optarg ;;
898
899   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901   | --exec | --exe | --ex)
902     ac_prev=exec_prefix ;;
903   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905   | --exec=* | --exe=* | --ex=*)
906     exec_prefix=$ac_optarg ;;
907
908   -gas | --gas | --ga | --g)
909     # Obsolete; use --with-gas.
910     with_gas=yes ;;
911
912   -help | --help | --hel | --he | -h)
913     ac_init_help=long ;;
914   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915     ac_init_help=recursive ;;
916   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917     ac_init_help=short ;;
918
919   -host | --host | --hos | --ho)
920     ac_prev=host_alias ;;
921   -host=* | --host=* | --hos=* | --ho=*)
922     host_alias=$ac_optarg ;;
923
924   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925     ac_prev=htmldir ;;
926   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927   | --ht=*)
928     htmldir=$ac_optarg ;;
929
930   -includedir | --includedir | --includedi | --included | --include \
931   | --includ | --inclu | --incl | --inc)
932     ac_prev=includedir ;;
933   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934   | --includ=* | --inclu=* | --incl=* | --inc=*)
935     includedir=$ac_optarg ;;
936
937   -infodir | --infodir | --infodi | --infod | --info | --inf)
938     ac_prev=infodir ;;
939   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940     infodir=$ac_optarg ;;
941
942   -libdir | --libdir | --libdi | --libd)
943     ac_prev=libdir ;;
944   -libdir=* | --libdir=* | --libdi=* | --libd=*)
945     libdir=$ac_optarg ;;
946
947   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948   | --libexe | --libex | --libe)
949     ac_prev=libexecdir ;;
950   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951   | --libexe=* | --libex=* | --libe=*)
952     libexecdir=$ac_optarg ;;
953
954   -localedir | --localedir | --localedi | --localed | --locale)
955     ac_prev=localedir ;;
956   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957     localedir=$ac_optarg ;;
958
959   -localstatedir | --localstatedir | --localstatedi | --localstated \
960   | --localstate | --localstat | --localsta | --localst | --locals)
961     ac_prev=localstatedir ;;
962   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964     localstatedir=$ac_optarg ;;
965
966   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967     ac_prev=mandir ;;
968   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969     mandir=$ac_optarg ;;
970
971   -nfp | --nfp | --nf)
972     # Obsolete; use --without-fp.
973     with_fp=no ;;
974
975   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976   | --no-cr | --no-c | -n)
977     no_create=yes ;;
978
979   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981     no_recursion=yes ;;
982
983   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985   | --oldin | --oldi | --old | --ol | --o)
986     ac_prev=oldincludedir ;;
987   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990     oldincludedir=$ac_optarg ;;
991
992   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993     ac_prev=prefix ;;
994   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995     prefix=$ac_optarg ;;
996
997   -program-prefix | --program-prefix | --program-prefi | --program-pref \
998   | --program-pre | --program-pr | --program-p)
999     ac_prev=program_prefix ;;
1000   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002     program_prefix=$ac_optarg ;;
1003
1004   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005   | --program-suf | --program-su | --program-s)
1006     ac_prev=program_suffix ;;
1007   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009     program_suffix=$ac_optarg ;;
1010
1011   -program-transform-name | --program-transform-name \
1012   | --program-transform-nam | --program-transform-na \
1013   | --program-transform-n | --program-transform- \
1014   | --program-transform | --program-transfor \
1015   | --program-transfo | --program-transf \
1016   | --program-trans | --program-tran \
1017   | --progr-tra | --program-tr | --program-t)
1018     ac_prev=program_transform_name ;;
1019   -program-transform-name=* | --program-transform-name=* \
1020   | --program-transform-nam=* | --program-transform-na=* \
1021   | --program-transform-n=* | --program-transform-=* \
1022   | --program-transform=* | --program-transfor=* \
1023   | --program-transfo=* | --program-transf=* \
1024   | --program-trans=* | --program-tran=* \
1025   | --progr-tra=* | --program-tr=* | --program-t=*)
1026     program_transform_name=$ac_optarg ;;
1027
1028   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029     ac_prev=pdfdir ;;
1030   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031     pdfdir=$ac_optarg ;;
1032
1033   -psdir | --psdir | --psdi | --psd | --ps)
1034     ac_prev=psdir ;;
1035   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036     psdir=$ac_optarg ;;
1037
1038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039   | -silent | --silent | --silen | --sile | --sil)
1040     silent=yes ;;
1041
1042   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043     ac_prev=sbindir ;;
1044   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045   | --sbi=* | --sb=*)
1046     sbindir=$ac_optarg ;;
1047
1048   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050   | --sharedst | --shareds | --shared | --share | --shar \
1051   | --sha | --sh)
1052     ac_prev=sharedstatedir ;;
1053   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056   | --sha=* | --sh=*)
1057     sharedstatedir=$ac_optarg ;;
1058
1059   -site | --site | --sit)
1060     ac_prev=site ;;
1061   -site=* | --site=* | --sit=*)
1062     site=$ac_optarg ;;
1063
1064   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065     ac_prev=srcdir ;;
1066   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067     srcdir=$ac_optarg ;;
1068
1069   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070   | --syscon | --sysco | --sysc | --sys | --sy)
1071     ac_prev=sysconfdir ;;
1072   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074     sysconfdir=$ac_optarg ;;
1075
1076   -target | --target | --targe | --targ | --tar | --ta | --t)
1077     ac_prev=target_alias ;;
1078   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079     target_alias=$ac_optarg ;;
1080
1081   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082     verbose=yes ;;
1083
1084   -version | --version | --versio | --versi | --vers | -V)
1085     ac_init_version=: ;;
1086
1087   -with-* | --with-*)
1088     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1092    { (exit 1); exit 1; }; }
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval with_$ac_useropt=\$ac_optarg ;;
1103
1104   -without-* | --without-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1109    { (exit 1); exit 1; }; }
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=no ;;
1120
1121   --x)
1122     # Obsolete; use --with-x.
1123     with_x=yes ;;
1124
1125   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126   | --x-incl | --x-inc | --x-in | --x-i)
1127     ac_prev=x_includes ;;
1128   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130     x_includes=$ac_optarg ;;
1131
1132   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134     ac_prev=x_libraries ;;
1135   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137     x_libraries=$ac_optarg ;;
1138
1139   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1140 Try \`$0 --help' for more information." >&2
1141    { (exit 1); exit 1; }; }
1142     ;;
1143
1144   *=*)
1145     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149    { (exit 1); exit 1; }; }
1150     eval $ac_envvar=\$ac_optarg
1151     export $ac_envvar ;;
1152
1153   *)
1154     # FIXME: should be removed in autoconf 3.0.
1155     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159     ;;
1160
1161   esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1167    { (exit 1); exit 1; }; }
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171   case $enable_option_checking in
1172     no) ;;
1173     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1174    { (exit 1); exit 1; }; } ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198    { (exit 1); exit 1; }; }
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213     If a cross compiler is detected then cross compile mode will be used." >&2
1214   elif test "x$build_alias" != "x$host_alias"; then
1215     cross_compiling=yes
1216   fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1229    { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1232    { (exit 1); exit 1; }; }
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237   ac_srcdir_defaulted=yes
1238   # Try the directory containing this script, then the parent directory.
1239   ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241          X"$as_myself" : 'X\(//\)[^/]' \| \
1242          X"$as_myself" : 'X\(//\)$' \| \
1243          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)[^/].*/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\).*/{
1258             s//\1/
1259             q
1260           }
1261           s/.*/./; q'`
1262   srcdir=$ac_confdir
1263   if test ! -r "$srcdir/$ac_unique_file"; then
1264     srcdir=..
1265   fi
1266 else
1267   ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1277    { (exit 1); exit 1; }; }
1278         pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281   srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291   eval ac_env_${ac_var}_value=\$${ac_var}
1292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300   # Omit some internal or obsolete options to make the list less imposing.
1301   # This message is too long to be a string in the A/UX 3.1 sh.
1302   cat <<_ACEOF
1303 \`configure' configures lcr 1.5 to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313   -h, --help              display this help and exit
1314       --help=short        display options specific to this package
1315       --help=recursive    display the short help of all the included packages
1316   -V, --version           display version information and exit
1317   -q, --quiet, --silent   do not print \`checking...' messages
1318       --cache-file=FILE   cache test results in FILE [disabled]
1319   -C, --config-cache      alias for \`--cache-file=config.cache'
1320   -n, --no-create         do not create output files
1321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324   --prefix=PREFIX         install architecture-independent files in PREFIX
1325                           [$ac_default_prefix]
1326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                           [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337   --bindir=DIR            user executables [EPREFIX/bin]
1338   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1339   --libexecdir=DIR        program executables [EPREFIX/libexec]
1340   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1341   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1342   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1343   --libdir=DIR            object code libraries [EPREFIX/lib]
1344   --includedir=DIR        C header files [PREFIX/include]
1345   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1346   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1347   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1348   --infodir=DIR           info documentation [DATAROOTDIR/info]
1349   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1350   --mandir=DIR            man documentation [DATAROOTDIR/man]
1351   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1352   --htmldir=DIR           html documentation [DOCDIR]
1353   --dvidir=DIR            dvi documentation [DOCDIR]
1354   --pdfdir=DIR            pdf documentation [DOCDIR]
1355   --psdir=DIR             ps documentation [DOCDIR]
1356 _ACEOF
1357
1358   cat <<\_ACEOF
1359
1360 Program names:
1361   --program-prefix=PREFIX            prepend PREFIX to installed program names
1362   --program-suffix=SUFFIX            append SUFFIX to installed program names
1363   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of lcr 1.5:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-option-checking  ignore unrecognized --enable/--with options
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --disable-dependency-tracking  speeds up one-time build
1378   --enable-dependency-tracking   do not reject slow dependency extractors
1379
1380 Optional Packages:
1381   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383   --with-asterisk         compile with built-in Asterisk channel driver
1384                           [default=check]
1385
1386   --with-ssl              compile with ssl support (libcrypto) [default=check]
1387
1388   --with-gsm              compile with OpenBSC support (libbsc) [default=no]
1389
1390
1391 Some influential environment variables:
1392   CC          C compiler command
1393   CFLAGS      C compiler flags
1394   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395               nonstandard directory <lib dir>
1396   LIBS        libraries to pass to the linker, e.g. -l<library>
1397   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398               you have headers in a nonstandard directory <include dir>
1399   CPP         C preprocessor
1400   CXX         C++ compiler command
1401   CXXFLAGS    C++ compiler flags
1402
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1405
1406 Report bugs to <andreas@eversberg.eu>.
1407 _ACEOF
1408 ac_status=$?
1409 fi
1410
1411 if test "$ac_init_help" = "recursive"; then
1412   # If there are subdirs, report their specific --help.
1413   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414     test -d "$ac_dir" ||
1415       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416       continue
1417     ac_builddir=.
1418
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *)
1422   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423   # A ".." for each directory in $ac_dir_suffix.
1424   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425   case $ac_top_builddir_sub in
1426   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428   esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1434
1435 case $srcdir in
1436   .)  # We are building in place.
1437     ac_srcdir=.
1438     ac_top_srcdir=$ac_top_builddir_sub
1439     ac_abs_top_srcdir=$ac_pwd ;;
1440   [\\/]* | ?:[\\/]* )  # Absolute name.
1441     ac_srcdir=$srcdir$ac_dir_suffix;
1442     ac_top_srcdir=$srcdir
1443     ac_abs_top_srcdir=$srcdir ;;
1444   *) # Relative name.
1445     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446     ac_top_srcdir=$ac_top_build_prefix$srcdir
1447     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450
1451     cd "$ac_dir" || { ac_status=$?; continue; }
1452     # Check for guested configure.
1453     if test -f "$ac_srcdir/configure.gnu"; then
1454       echo &&
1455       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456     elif test -f "$ac_srcdir/configure"; then
1457       echo &&
1458       $SHELL "$ac_srcdir/configure" --help=recursive
1459     else
1460       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461     fi || ac_status=$?
1462     cd "$ac_pwd" || { ac_status=$?; break; }
1463   done
1464 fi
1465
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468   cat <<\_ACEOF
1469 lcr configure 1.5
1470 generated by GNU Autoconf 2.63
1471
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477   exit
1478 fi
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1482
1483 It was created by lcr $as_me 1.5, which was
1484 generated by GNU Autoconf 2.63.  Invocation command line was
1485
1486   $ $0 $@
1487
1488 _ACEOF
1489 exec 5>>config.log
1490 {
1491 cat <<_ASUNAME
1492 ## --------- ##
1493 ## Platform. ##
1494 ## --------- ##
1495
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1504
1505 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1506 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1509 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1510 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1511 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1512
1513 _ASUNAME
1514
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1517 do
1518   IFS=$as_save_IFS
1519   test -z "$as_dir" && as_dir=.
1520   $as_echo "PATH: $as_dir"
1521 done
1522 IFS=$as_save_IFS
1523
1524 } >&5
1525
1526 cat >&5 <<_ACEOF
1527
1528
1529 ## ----------- ##
1530 ## Core tests. ##
1531 ## ----------- ##
1532
1533 _ACEOF
1534
1535
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1541 ac_configure_args=
1542 ac_configure_args0=
1543 ac_configure_args1=
1544 ac_must_keep_next=false
1545 for ac_pass in 1 2
1546 do
1547   for ac_arg
1548   do
1549     case $ac_arg in
1550     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552     | -silent | --silent | --silen | --sile | --sil)
1553       continue ;;
1554     *\'*)
1555       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556     esac
1557     case $ac_pass in
1558     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559     2)
1560       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561       if test $ac_must_keep_next = true; then
1562         ac_must_keep_next=false # Got value, back to normal.
1563       else
1564         case $ac_arg in
1565           *=* | --config-cache | -C | -disable-* | --disable-* \
1566           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568           | -with-* | --with-* | -without-* | --without-* | --x)
1569             case "$ac_configure_args0 " in
1570               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571             esac
1572             ;;
1573           -* ) ac_must_keep_next=true ;;
1574         esac
1575       fi
1576       ac_configure_args="$ac_configure_args '$ac_arg'"
1577       ;;
1578     esac
1579   done
1580 done
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log.  We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590   # Save into config.log some information that might help in debugging.
1591   {
1592     echo
1593
1594     cat <<\_ASBOX
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1598 _ASBOX
1599     echo
1600     # The following way of writing the cache mishandles newlines in values,
1601 (
1602   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603     eval ac_val=\$$ac_var
1604     case $ac_val in #(
1605     *${as_nl}*)
1606       case $ac_var in #(
1607       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1609       esac
1610       case $ac_var in #(
1611       _ | IFS | as_nl) ;; #(
1612       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1613       *) $as_unset $ac_var ;;
1614       esac ;;
1615     esac
1616   done
1617   (set) 2>&1 |
1618     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619     *${as_nl}ac_space=\ *)
1620       sed -n \
1621         "s/'\''/'\''\\\\'\'''\''/g;
1622           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623       ;; #(
1624     *)
1625       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1626       ;;
1627     esac |
1628     sort
1629 )
1630     echo
1631
1632     cat <<\_ASBOX
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1636 _ASBOX
1637     echo
1638     for ac_var in $ac_subst_vars
1639     do
1640       eval ac_val=\$$ac_var
1641       case $ac_val in
1642       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643       esac
1644       $as_echo "$ac_var='\''$ac_val'\''"
1645     done | sort
1646     echo
1647
1648     if test -n "$ac_subst_files"; then
1649       cat <<\_ASBOX
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1653 _ASBOX
1654       echo
1655       for ac_var in $ac_subst_files
1656       do
1657         eval ac_val=\$$ac_var
1658         case $ac_val in
1659         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660         esac
1661         $as_echo "$ac_var='\''$ac_val'\''"
1662       done | sort
1663       echo
1664     fi
1665
1666     if test -s confdefs.h; then
1667       cat <<\_ASBOX
1668 ## ----------- ##
1669 ## confdefs.h. ##
1670 ## ----------- ##
1671 _ASBOX
1672       echo
1673       cat confdefs.h
1674       echo
1675     fi
1676     test "$ac_signal" != 0 &&
1677       $as_echo "$as_me: caught signal $ac_signal"
1678     $as_echo "$as_me: exit $exit_status"
1679   } >&5
1680   rm -f core *.core core.conftest.* &&
1681     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682     exit $exit_status
1683 ' 0
1684 for ac_signal in 1 2 13 15; do
1685   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1686 done
1687 ac_signal=0
1688
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1691
1692 # Predefined preprocessor variables.
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1716 _ACEOF
1717
1718
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer an explicitly selected file to automatically selected ones.
1721 ac_site_file1=NONE
1722 ac_site_file2=NONE
1723 if test -n "$CONFIG_SITE"; then
1724   ac_site_file1=$CONFIG_SITE
1725 elif test "x$prefix" != xNONE; then
1726   ac_site_file1=$prefix/share/config.site
1727   ac_site_file2=$prefix/etc/config.site
1728 else
1729   ac_site_file1=$ac_default_prefix/share/config.site
1730   ac_site_file2=$ac_default_prefix/etc/config.site
1731 fi
1732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1733 do
1734   test "x$ac_site_file" = xNONE && continue
1735   if test -r "$ac_site_file"; then
1736     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1738     sed 's/^/| /' "$ac_site_file" >&5
1739     . "$ac_site_file"
1740   fi
1741 done
1742
1743 if test -r "$cache_file"; then
1744   # Some versions of bash will fail to source /dev/null (special
1745   # files actually), so we avoid doing that.
1746   if test -f "$cache_file"; then
1747     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1748 $as_echo "$as_me: loading cache $cache_file" >&6;}
1749     case $cache_file in
1750       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1751       *)                      . "./$cache_file";;
1752     esac
1753   fi
1754 else
1755   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1756 $as_echo "$as_me: creating cache $cache_file" >&6;}
1757   >$cache_file
1758 fi
1759
1760 # Check that the precious variables saved in the cache have kept the same
1761 # value.
1762 ac_cache_corrupted=false
1763 for ac_var in $ac_precious_vars; do
1764   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1765   eval ac_new_set=\$ac_env_${ac_var}_set
1766   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1767   eval ac_new_val=\$ac_env_${ac_var}_value
1768   case $ac_old_set,$ac_new_set in
1769     set,)
1770       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1772       ac_cache_corrupted=: ;;
1773     ,set)
1774       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1776       ac_cache_corrupted=: ;;
1777     ,);;
1778     *)
1779       if test "x$ac_old_val" != "x$ac_new_val"; then
1780         # differences in whitespace do not lead to failure.
1781         ac_old_val_w=`echo x $ac_old_val`
1782         ac_new_val_w=`echo x $ac_new_val`
1783         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1784           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786           ac_cache_corrupted=:
1787         else
1788           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1790           eval $ac_var=\$ac_old_val
1791         fi
1792         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1793 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1794         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1795 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1796       fi;;
1797   esac
1798   # Pass precious variables to config.status.
1799   if test "$ac_new_set" = set; then
1800     case $ac_new_val in
1801     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802     *) ac_arg=$ac_var=$ac_new_val ;;
1803     esac
1804     case " $ac_configure_args " in
1805       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1806       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807     esac
1808   fi
1809 done
1810 if $ac_cache_corrupted; then
1811   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1813   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1815   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844 ac_ext=c
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849
1850
1851
1852
1853 ac_config_headers="$ac_config_headers config.h"
1854
1855
1856 # fix warnings from autoconf + automake
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 $as_echo_n "checking for $ac_word... " >&6; }
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868   $as_echo_n "(cached) " >&6
1869 else
1870   if test -n "$CC"; then
1871   ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1880     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886 IFS=$as_save_IFS
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1893 $as_echo "$CC" >&6; }
1894 else
1895   { $as_echo "$as_me:$LINENO: result: no" >&5
1896 $as_echo "no" >&6; }
1897 fi
1898
1899
1900 fi
1901 if test -z "$ac_cv_prog_CC"; then
1902   ac_ct_CC=$CC
1903   # Extract the first word of "gcc", so it can be a program name with args.
1904 set dummy gcc; ac_word=$2
1905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 $as_echo_n "checking for $ac_word... " >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908   $as_echo_n "(cached) " >&6
1909 else
1910   if test -n "$ac_ct_CC"; then
1911   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920     ac_cv_prog_ac_ct_CC="gcc"
1921     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926 IFS=$as_save_IFS
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 $as_echo "$ac_ct_CC" >&6; }
1934 else
1935   { $as_echo "$as_me:$LINENO: result: no" >&5
1936 $as_echo "no" >&6; }
1937 fi
1938
1939   if test "x$ac_ct_CC" = x; then
1940     CC=""
1941   else
1942     case $cross_compiling:$ac_tool_warned in
1943 yes:)
1944 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1946 ac_tool_warned=yes ;;
1947 esac
1948     CC=$ac_ct_CC
1949   fi
1950 else
1951   CC="$ac_cv_prog_CC"
1952 fi
1953
1954 if test -z "$CC"; then
1955           if test -n "$ac_tool_prefix"; then
1956     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 $as_echo_n "checking for $ac_word... " >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961   $as_echo_n "(cached) " >&6
1962 else
1963   if test -n "$CC"; then
1964   ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973     ac_cv_prog_CC="${ac_tool_prefix}cc"
1974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979 IFS=$as_save_IFS
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1986 $as_echo "$CC" >&6; }
1987 else
1988   { $as_echo "$as_me:$LINENO: result: no" >&5
1989 $as_echo "no" >&6; }
1990 fi
1991
1992
1993   fi
1994 fi
1995 if test -z "$CC"; then
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 $as_echo_n "checking for $ac_word... " >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   $as_echo_n "(cached) " >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006   ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015        ac_prog_rejected=yes
2016        continue
2017      fi
2018     ac_cv_prog_CC="cc"
2019     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 if test $ac_prog_rejected = yes; then
2027   # We found a bogon in the path, so make sure we never use it.
2028   set dummy $ac_cv_prog_CC
2029   shift
2030   if test $# != 0; then
2031     # We chose a different compiler from the bogus one.
2032     # However, it has the same basename, so the bogon will be chosen
2033     # first if we set CC to just the basename; use the full file name.
2034     shift
2035     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036   fi
2037 fi
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2044 else
2045   { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2047 fi
2048
2049
2050 fi
2051 if test -z "$CC"; then
2052   if test -n "$ac_tool_prefix"; then
2053   for ac_prog in cl.exe
2054   do
2055     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060   $as_echo_n "(cached) " >&6
2061 else
2062   if test -n "$CC"; then
2063   ac_cv_prog_CC="$CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2085 $as_echo "$CC" >&6; }
2086 else
2087   { $as_echo "$as_me:$LINENO: result: no" >&5
2088 $as_echo "no" >&6; }
2089 fi
2090
2091
2092     test -n "$CC" && break
2093   done
2094 fi
2095 if test -z "$CC"; then
2096   ac_ct_CC=$CC
2097   for ac_prog in cl.exe
2098 do
2099   # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 $as_echo_n "checking for $ac_word... " >&6; }
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104   $as_echo_n "(cached) " >&6
2105 else
2106   if test -n "$ac_ct_CC"; then
2107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   for ac_exec_ext in '' $ac_executable_extensions; do
2115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116     ac_cv_prog_ac_ct_CC="$ac_prog"
2117     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122 IFS=$as_save_IFS
2123
2124 fi
2125 fi
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 $as_echo "$ac_ct_CC" >&6; }
2130 else
2131   { $as_echo "$as_me:$LINENO: result: no" >&5
2132 $as_echo "no" >&6; }
2133 fi
2134
2135
2136   test -n "$ac_ct_CC" && break
2137 done
2138
2139   if test "x$ac_ct_CC" = x; then
2140     CC=""
2141   else
2142     case $cross_compiling:$ac_tool_warned in
2143 yes:)
2144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2146 ac_tool_warned=yes ;;
2147 esac
2148     CC=$ac_ct_CC
2149   fi
2150 fi
2151
2152 fi
2153
2154
2155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&5
2159 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2160 See \`config.log' for more details." >&2;}
2161    { (exit 1); exit 1; }; }; }
2162
2163 # Provide some information about the compiler.
2164 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2165 set X $ac_compile
2166 ac_compiler=$2
2167 { (ac_try="$ac_compiler --version >&5"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2173 $as_echo "$ac_try_echo") >&5
2174   (eval "$ac_compiler --version >&5") 2>&5
2175   ac_status=$?
2176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (ac_try="$ac_compiler -v >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185   (eval "$ac_compiler -v >&5") 2>&5
2186   ac_status=$?
2187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }
2189 { (ac_try="$ac_compiler -V >&5"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196   (eval "$ac_compiler -V >&5") 2>&5
2197   ac_status=$?
2198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h.  */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h.  */
2207
2208 int
2209 main ()
2210 {
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2220 # of exeext.
2221 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 $as_echo_n "checking for C compiler default output file name... " >&6; }
2223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224
2225 # The possible output files:
2226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2227
2228 ac_rmfiles=
2229 for ac_file in $ac_files
2230 do
2231   case $ac_file in
2232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2233     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2234   esac
2235 done
2236 rm -f $ac_rmfiles
2237
2238 if { (ac_try="$ac_link_default"
2239 case "(($ac_try" in
2240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241   *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2244 $as_echo "$ac_try_echo") >&5
2245   (eval "$ac_link_default") 2>&5
2246   ac_status=$?
2247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; then
2249   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2251 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2252 # so that the user can short-circuit this test for compilers unknown to
2253 # Autoconf.
2254 for ac_file in $ac_files ''
2255 do
2256   test -f "$ac_file" || continue
2257   case $ac_file in
2258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2259         ;;
2260     [ab].out )
2261         # We found the default executable, but exeext='' is most
2262         # certainly right.
2263         break;;
2264     *.* )
2265         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2266         then :; else
2267            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268         fi
2269         # We set ac_cv_exeext here because the later test for it is not
2270         # safe: cross compilers may not add the suffix if given an `-o'
2271         # argument, so we may need to know it at that point already.
2272         # Even if this section looks crufty: it has the advantage of
2273         # actually working.
2274         break;;
2275     * )
2276         break;;
2277   esac
2278 done
2279 test "$ac_cv_exeext" = no && ac_cv_exeext=
2280
2281 else
2282   ac_file=''
2283 fi
2284
2285 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2286 $as_echo "$ac_file" >&6; }
2287 if test -z "$ac_file"; then
2288   $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2294 See \`config.log' for more details." >&5
2295 $as_echo "$as_me: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&2;}
2297    { (exit 77); exit 77; }; }; }
2298 fi
2299
2300 ac_exeext=$ac_cv_exeext
2301
2302 # Check that the compiler produces executables we can run.  If not, either
2303 # the compiler is broken, or we cross compile.
2304 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2305 $as_echo_n "checking whether the C compiler works... " >&6; }
2306 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2307 # If not cross compiling, check that we can run a simple program.
2308 if test "$cross_compiling" != yes; then
2309   if { ac_try='./$ac_file'
2310   { (case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2315 $as_echo "$ac_try_echo") >&5
2316   (eval "$ac_try") 2>&5
2317   ac_status=$?
2318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320     cross_compiling=no
2321   else
2322     if test "$cross_compiling" = maybe; then
2323         cross_compiling=yes
2324     else
2325         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }; }
2334     fi
2335   fi
2336 fi
2337 { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2339
2340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check that the compiler produces executables we can run.  If not, either
2343 # the compiler is broken, or we cross compile.
2344 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 $as_echo_n "checking whether we are cross compiling... " >&6; }
2346 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 $as_echo "$cross_compiling" >&6; }
2348
2349 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 $as_echo_n "checking for suffix of executables... " >&6; }
2351 if { (ac_try="$ac_link"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2357 $as_echo "$ac_try_echo") >&5
2358   (eval "$ac_link") 2>&5
2359   ac_status=$?
2360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2365 # `rm'.
2366 for ac_file in conftest.exe conftest conftest.*; do
2367   test -f "$ac_file" || continue
2368   case $ac_file in
2369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371           break;;
2372     * ) break;;
2373   esac
2374 done
2375 else
2376   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 $as_echo "$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 $as_echo_n "checking for suffix of object files... " >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395   $as_echo_n "(cached) " >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2419 $as_echo "$ac_try_echo") >&5
2420   (eval "$ac_compile") 2>&5
2421   ac_status=$?
2422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   for ac_file in conftest.o conftest.obj conftest.*; do
2425   test -f "$ac_file" || continue;
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2429        break;;
2430   esac
2431 done
2432 else
2433   $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2439 See \`config.log' for more details." >&5
2440 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }; }
2443 fi
2444
2445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2446 fi
2447 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2448 $as_echo "$ac_cv_objext" >&6; }
2449 OBJEXT=$ac_cv_objext
2450 ac_objext=$OBJEXT
2451 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2454   $as_echo_n "(cached) " >&6
2455 else
2456   cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466 #ifndef __GNUC__
2467        choke me
2468 #endif
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (ac_try="$ac_compile"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2481 $as_echo "$ac_try_echo") >&5
2482   (eval "$ac_compile") 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } && {
2489          test -z "$ac_c_werror_flag" ||
2490          test ! -s conftest.err
2491        } && test -s conftest.$ac_objext; then
2492   ac_compiler_gnu=yes
2493 else
2494   $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497         ac_compiler_gnu=no
2498 fi
2499
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502
2503 fi
2504 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2506 if test $ac_compiler_gnu = yes; then
2507   GCC=yes
2508 else
2509   GCC=
2510 fi
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   ac_save_c_werror_flag=$ac_c_werror_flag
2519    ac_c_werror_flag=yes
2520    ac_cv_prog_cc_g=no
2521    CFLAGS="-g"
2522    cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2544 $as_echo "$ac_try_echo") >&5
2545   (eval "$ac_compile") 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } && {
2552          test -z "$ac_c_werror_flag" ||
2553          test ! -s conftest.err
2554        } && test -s conftest.$ac_objext; then
2555   ac_cv_prog_cc_g=yes
2556 else
2557   $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560         CFLAGS=""
2561       cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2583 $as_echo "$ac_try_echo") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } && {
2591          test -z "$ac_c_werror_flag" ||
2592          test ! -s conftest.err
2593        } && test -s conftest.$ac_objext; then
2594   :
2595 else
2596   $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599         ac_c_werror_flag=$ac_save_c_werror_flag
2600          CFLAGS="-g"
2601          cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2623 $as_echo "$ac_try_echo") >&5
2624   (eval "$ac_compile") 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } && {
2631          test -z "$ac_c_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest.$ac_objext; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649    ac_c_werror_flag=$ac_save_c_werror_flag
2650 fi
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 $as_echo "$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654   CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656   if test "$GCC" = yes; then
2657     CFLAGS="-g -O2"
2658   else
2659     CFLAGS="-g"
2660   fi
2661 else
2662   if test "$GCC" = yes; then
2663     CFLAGS="-O2"
2664   else
2665     CFLAGS=
2666   fi
2667 fi
2668 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671   $as_echo_n "(cached) " >&6
2672 else
2673   ac_cv_prog_cc_c89=no
2674 ac_save_CC=$CC
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 #include <stdarg.h>
2682 #include <stdio.h>
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2689      char **p;
2690      int i;
2691 {
2692   return p[i];
2693 }
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2695 {
2696   char *s;
2697   va_list v;
2698   va_start (v,p);
2699   s = g (p, va_arg (v,int));
2700   va_end (v);
2701   return s;
2702 }
2703
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2705    function prototypes and stuff, but not '\xHH' hex character constants.
2706    These don't provoke an error unfortunately, instead are silently treated
2707    as 'x'.  The following induces an error, until -std is added to get
2708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2709    array size at least.  It's necessary to write '\x00'==0 to get something
2710    that's true only with -std.  */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714    inside strings and character constants.  */
2715 #define FOO(x) 'x'
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2717
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2724 int
2725 main ()
2726 {
2727 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 do
2735   CC="$ac_save_CC $ac_arg"
2736   rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743 $as_echo "$ac_try_echo") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } && {
2751          test -z "$ac_c_werror_flag" ||
2752          test ! -s conftest.err
2753        } && test -s conftest.$ac_objext; then
2754   ac_cv_prog_cc_c89=$ac_arg
2755 else
2756   $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext
2763   test "x$ac_cv_prog_cc_c89" != "xno" && break
2764 done
2765 rm -f conftest.$ac_ext
2766 CC=$ac_save_CC
2767
2768 fi
2769 # AC_CACHE_VAL
2770 case "x$ac_cv_prog_cc_c89" in
2771   x)
2772     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2773 $as_echo "none needed" >&6; } ;;
2774   xno)
2775     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2776 $as_echo "unsupported" >&6; } ;;
2777   *)
2778     CC="$CC $ac_cv_prog_cc_c89"
2779     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2781 esac
2782
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   $as_echo_n "(cached) " >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #ifdef __STDC__
2825 # include <limits.h>
2826 #else
2827 # include <assert.h>
2828 #endif
2829                      Syntax error
2830 _ACEOF
2831 if { (ac_try="$ac_cpp conftest.$ac_ext"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } >/dev/null && {
2845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        }; then
2848   :
2849 else
2850   $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Broken: fails on valid input.
2854 continue
2855 fi
2856
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether nonexistent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #include <ac_nonexistent.h>
2868 _ACEOF
2869 if { (ac_try="$ac_cpp conftest.$ac_ext"
2870 case "(($ac_try" in
2871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872   *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2875 $as_echo "$ac_try_echo") >&5
2876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } >/dev/null && {
2883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2884          test ! -s conftest.err
2885        }; then
2886   # Broken: success on invalid input.
2887 continue
2888 else
2889   $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892   # Passes both tests.
2893 ac_preproc_ok=:
2894 break
2895 fi
2896
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2915 $as_echo "$CPP" >&6; }
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (ac_try="$ac_cpp conftest.$ac_ext"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } >/dev/null && {
2952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2953          test ! -s conftest.err
2954        }; then
2955   :
2956 else
2957   $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Broken: fails on valid input.
2961 continue
2962 fi
2963
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether nonexistent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } >/dev/null && {
2990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991          test ! -s conftest.err
2992        }; then
2993   # Broken: success on invalid input.
2994 continue
2995 else
2996   $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999   # Passes both tests.
3000 ac_preproc_ok=:
3001 break
3002 fi
3003
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&2;}
3018    { (exit 1); exit 1; }; }; }
3019 fi
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027
3028 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3030 if test "${ac_cv_path_GREP+set}" = set; then
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -z "$GREP"; then
3034   ac_path_GREP_found=false
3035   # Loop through the user's path and test for each of PROGNAME-LIST
3036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041   for ac_prog in grep ggrep; do
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3044       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3045 # Check for GNU ac_path_GREP and select it if it is found.
3046   # Check for GNU $ac_path_GREP
3047 case `"$ac_path_GREP" --version 2>&1` in
3048 *GNU*)
3049   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3050 *)
3051   ac_count=0
3052   $as_echo_n 0123456789 >"conftest.in"
3053   while :
3054   do
3055     cat "conftest.in" "conftest.in" >"conftest.tmp"
3056     mv "conftest.tmp" "conftest.in"
3057     cp "conftest.in" "conftest.nl"
3058     $as_echo 'GREP' >> "conftest.nl"
3059     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3060     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3061     ac_count=`expr $ac_count + 1`
3062     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3063       # Best one so far, save it but keep looking for a better one
3064       ac_cv_path_GREP="$ac_path_GREP"
3065       ac_path_GREP_max=$ac_count
3066     fi
3067     # 10*(2^10) chars as input seems more than enough
3068     test $ac_count -gt 10 && break
3069   done
3070   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3071 esac
3072
3073       $ac_path_GREP_found && break 3
3074     done
3075   done
3076 done
3077 IFS=$as_save_IFS
3078   if test -z "$ac_cv_path_GREP"; then
3079     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081    { (exit 1); exit 1; }; }
3082   fi
3083 else
3084   ac_cv_path_GREP=$GREP
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 $as_echo "$ac_cv_path_GREP" >&6; }
3090  GREP="$ac_cv_path_GREP"
3091
3092
3093 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3094 $as_echo_n "checking for egrep... " >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3099    then ac_cv_path_EGREP="$GREP -E"
3100    else
3101      if test -z "$EGREP"; then
3102   ac_path_EGREP_found=false
3103   # Loop through the user's path and test for each of PROGNAME-LIST
3104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_prog in egrep; do
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3112       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3113 # Check for GNU ac_path_EGREP and select it if it is found.
3114   # Check for GNU $ac_path_EGREP
3115 case `"$ac_path_EGREP" --version 2>&1` in
3116 *GNU*)
3117   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3118 *)
3119   ac_count=0
3120   $as_echo_n 0123456789 >"conftest.in"
3121   while :
3122   do
3123     cat "conftest.in" "conftest.in" >"conftest.tmp"
3124     mv "conftest.tmp" "conftest.in"
3125     cp "conftest.in" "conftest.nl"
3126     $as_echo 'EGREP' >> "conftest.nl"
3127     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3129     ac_count=`expr $ac_count + 1`
3130     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3131       # Best one so far, save it but keep looking for a better one
3132       ac_cv_path_EGREP="$ac_path_EGREP"
3133       ac_path_EGREP_max=$ac_count
3134     fi
3135     # 10*(2^10) chars as input seems more than enough
3136     test $ac_count -gt 10 && break
3137   done
3138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3139 esac
3140
3141       $ac_path_EGREP_found && break 3
3142     done
3143   done
3144 done
3145 IFS=$as_save_IFS
3146   if test -z "$ac_cv_path_EGREP"; then
3147     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3148 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3149    { (exit 1); exit 1; }; }
3150   fi
3151 else
3152   ac_cv_path_EGREP=$EGREP
3153 fi
3154
3155    fi
3156 fi
3157 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3158 $as_echo "$ac_cv_path_EGREP" >&6; }
3159  EGREP="$ac_cv_path_EGREP"
3160
3161
3162 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3163 $as_echo_n "checking for ANSI C header files... " >&6; }
3164 if test "${ac_cv_header_stdc+set}" = set; then
3165   $as_echo_n "(cached) " >&6
3166 else
3167   cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #include <stdlib.h>
3174 #include <stdarg.h>
3175 #include <string.h>
3176 #include <float.h>
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194   (eval "$ac_compile") 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } && {
3201          test -z "$ac_c_werror_flag" ||
3202          test ! -s conftest.err
3203        } && test -s conftest.$ac_objext; then
3204   ac_cv_header_stdc=yes
3205 else
3206   $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209         ac_cv_header_stdc=no
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213
3214 if test $ac_cv_header_stdc = yes; then
3215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216   cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222 #include <string.h>
3223
3224 _ACEOF
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226   $EGREP "memchr" >/dev/null 2>&1; then
3227   :
3228 else
3229   ac_cv_header_stdc=no
3230 fi
3231 rm -f conftest*
3232
3233 fi
3234
3235 if test $ac_cv_header_stdc = yes; then
3236   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <stdlib.h>
3244
3245 _ACEOF
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247   $EGREP "free" >/dev/null 2>&1; then
3248   :
3249 else
3250   ac_cv_header_stdc=no
3251 fi
3252 rm -f conftest*
3253
3254 fi
3255
3256 if test $ac_cv_header_stdc = yes; then
3257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3258   if test "$cross_compiling" = yes; then
3259   :
3260 else
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <ctype.h>
3268 #include <stdlib.h>
3269 #if ((' ' & 0x0FF) == 0x020)
3270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3272 #else
3273 # define ISLOWER(c) \
3274                    (('a' <= (c) && (c) <= 'i') \
3275                      || ('j' <= (c) && (c) <= 'r') \
3276                      || ('s' <= (c) && (c) <= 'z'))
3277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3278 #endif
3279
3280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3281 int
3282 main ()
3283 {
3284   int i;
3285   for (i = 0; i < 256; i++)
3286     if (XOR (islower (i), ISLOWER (i))
3287         || toupper (i) != TOUPPER (i))
3288       return 2;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest$ac_exeext
3293 if { (ac_try="$ac_link"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300   (eval "$ac_link") 2>&5
3301   ac_status=$?
3302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3304   { (case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310   (eval "$ac_try") 2>&5
3311   ac_status=$?
3312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; }; then
3314   :
3315 else
3316   $as_echo "$as_me: program exited with status $ac_status" >&5
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ( exit $ac_status )
3321 ac_cv_header_stdc=no
3322 fi
3323 rm -rf conftest.dSYM
3324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3325 fi
3326
3327
3328 fi
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3331 $as_echo "$ac_cv_header_stdc" >&6; }
3332 if test $ac_cv_header_stdc = yes; then
3333
3334 cat >>confdefs.h <<\_ACEOF
3335 #define STDC_HEADERS 1
3336 _ACEOF
3337
3338 fi
3339
3340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3351                   inttypes.h stdint.h unistd.h
3352 do
3353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 $as_echo_n "checking for $ac_header... " >&6; }
3356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3357   $as_echo_n "(cached) " >&6
3358 else
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 $ac_includes_default
3366
3367 #include <$ac_header>
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376 $as_echo "$ac_try_echo") >&5
3377   (eval "$ac_compile") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } && {
3384          test -z "$ac_c_werror_flag" ||
3385          test ! -s conftest.err
3386        } && test -s conftest.$ac_objext; then
3387   eval "$as_ac_Header=yes"
3388 else
3389   $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392         eval "$as_ac_Header=no"
3393 fi
3394
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397 ac_res=`eval 'as_val=${'$as_ac_Header'}
3398                  $as_echo "$as_val"'`
3399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3400 $as_echo "$ac_res" >&6; }
3401 as_val=`eval 'as_val=${'$as_ac_Header'}
3402                  $as_echo "$as_val"'`
3403    if test "x$as_val" = x""yes; then
3404   cat >>confdefs.h <<_ACEOF
3405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3406 _ACEOF
3407
3408 fi
3409
3410 done
3411
3412
3413
3414   if test "${ac_cv_header_minix_config_h+set}" = set; then
3415   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3416 $as_echo_n "checking for minix/config.h... " >&6; }
3417 if test "${ac_cv_header_minix_config_h+set}" = set; then
3418   $as_echo_n "(cached) " >&6
3419 fi
3420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3421 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3422 else
3423   # Is the header compilable?
3424 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3425 $as_echo_n "checking minix/config.h usability... " >&6; }
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 $ac_includes_default
3433 #include <minix/config.h>
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443   (eval "$ac_compile") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } && {
3450          test -z "$ac_c_werror_flag" ||
3451          test ! -s conftest.err
3452        } && test -s conftest.$ac_objext; then
3453   ac_header_compiler=yes
3454 else
3455   $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458         ac_header_compiler=no
3459 fi
3460
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3463 $as_echo "$ac_header_compiler" >&6; }
3464
3465 # Is the header present?
3466 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3467 $as_echo_n "checking minix/config.h presence... " >&6; }
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <minix/config.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } >/dev/null && {
3490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491          test ! -s conftest.err
3492        }; then
3493   ac_header_preproc=yes
3494 else
3495   $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   ac_header_preproc=no
3499 fi
3500
3501 rm -f conftest.err conftest.$ac_ext
3502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3503 $as_echo "$ac_header_preproc" >&6; }
3504
3505 # So?  What about this header?
3506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3507   yes:no: )
3508     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3509 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3510     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3512     ac_header_preproc=yes
3513     ;;
3514   no:yes:* )
3515     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3517     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3518 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3519     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3520 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3521     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3523     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3525     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3527     ( cat <<\_ASBOX
3528 ## ----------------------------------- ##
3529 ## Report this to andreas@eversberg.eu ##
3530 ## ----------------------------------- ##
3531 _ASBOX
3532      ) | sed "s/^/$as_me: WARNING:     /" >&2
3533     ;;
3534 esac
3535 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3536 $as_echo_n "checking for minix/config.h... " >&6; }
3537 if test "${ac_cv_header_minix_config_h+set}" = set; then
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_cv_header_minix_config_h=$ac_header_preproc
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3543 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3544
3545 fi
3546 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3547   MINIX=yes
3548 else
3549   MINIX=
3550 fi
3551
3552
3553   if test "$MINIX" = yes; then
3554
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_SOURCE 1
3557 _ACEOF
3558
3559
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_1_SOURCE 2
3562 _ACEOF
3563
3564
3565 cat >>confdefs.h <<\_ACEOF
3566 #define _MINIX 1
3567 _ACEOF
3568
3569   fi
3570
3571
3572
3573   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3574 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3575 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 #         define __EXTENSIONS__ 1
3586           $ac_includes_default
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603   (eval "$ac_compile") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && {
3610          test -z "$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        } && test -s conftest.$ac_objext; then
3613   ac_cv_safe_to_define___extensions__=yes
3614 else
3615   $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618         ac_cv_safe_to_define___extensions__=no
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625   test $ac_cv_safe_to_define___extensions__ = yes &&
3626     cat >>confdefs.h <<\_ACEOF
3627 #define __EXTENSIONS__ 1
3628 _ACEOF
3629
3630   cat >>confdefs.h <<\_ACEOF
3631 #define _ALL_SOURCE 1
3632 _ACEOF
3633
3634   cat >>confdefs.h <<\_ACEOF
3635 #define _GNU_SOURCE 1
3636 _ACEOF
3637
3638   cat >>confdefs.h <<\_ACEOF
3639 #define _POSIX_PTHREAD_SEMANTICS 1
3640 _ACEOF
3641
3642   cat >>confdefs.h <<\_ACEOF
3643 #define _TANDEM_SOURCE 1
3644 _ACEOF
3645
3646
3647 # AC_USE_SYSTEM_EXTENSIONS
3648 am__api_version="1.9"
3649 ac_aux_dir=
3650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3651   if test -f "$ac_dir/install-sh"; then
3652     ac_aux_dir=$ac_dir
3653     ac_install_sh="$ac_aux_dir/install-sh -c"
3654     break
3655   elif test -f "$ac_dir/install.sh"; then
3656     ac_aux_dir=$ac_dir
3657     ac_install_sh="$ac_aux_dir/install.sh -c"
3658     break
3659   elif test -f "$ac_dir/shtool"; then
3660     ac_aux_dir=$ac_dir
3661     ac_install_sh="$ac_aux_dir/shtool install -c"
3662     break
3663   fi
3664 done
3665 if test -z "$ac_aux_dir"; then
3666   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3667 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3668    { (exit 1); exit 1; }; }
3669 fi
3670
3671 # These three variables are undocumented and unsupported,
3672 # and are intended to be withdrawn in a future Autoconf release.
3673 # They can cause serious problems if a builder's source tree is in a directory
3674 # whose full name contains unusual characters.
3675 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3676 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3677 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3678
3679
3680 # Find a good install program.  We prefer a C program (faster),
3681 # so one script is as good as another.  But avoid the broken or
3682 # incompatible versions:
3683 # SysV /etc/install, /usr/sbin/install
3684 # SunOS /usr/etc/install
3685 # IRIX /sbin/install
3686 # AIX /bin/install
3687 # AmigaOS /C/install, which installs bootblocks on floppy discs
3688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691 # OS/2's system install, which has a completely different semantic
3692 # ./install, which can be erroneously created by make from ./install.sh.
3693 # Reject install programs that cannot install multiple files.
3694 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698   $as_echo_n "(cached) " >&6
3699 else
3700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   # Account for people who put trailing slashes in PATH elements.
3706 case $as_dir/ in
3707   ./ | .// | /cC/* | \
3708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3710   /usr/ucb/* ) ;;
3711   *)
3712     # OSF1 and SCO ODT 3.0 have their own names for install.
3713     # Don't use installbsd from OSF since it installs stuff as root
3714     # by default.
3715     for ac_prog in ginstall scoinst install; do
3716       for ac_exec_ext in '' $ac_executable_extensions; do
3717         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718           if test $ac_prog = install &&
3719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720             # AIX install.  It has an incompatible calling convention.
3721             :
3722           elif test $ac_prog = install &&
3723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724             # program-specific install script used by HP pwplus--don't use.
3725             :
3726           else
3727             rm -rf conftest.one conftest.two conftest.dir
3728             echo one > conftest.one
3729             echo two > conftest.two
3730             mkdir conftest.dir
3731             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732               test -s conftest.one && test -s conftest.two &&
3733               test -s conftest.dir/conftest.one &&
3734               test -s conftest.dir/conftest.two
3735             then
3736               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3737               break 3
3738             fi
3739           fi
3740         fi
3741       done
3742     done
3743     ;;
3744 esac
3745
3746 done
3747 IFS=$as_save_IFS
3748
3749 rm -rf conftest.one conftest.two conftest.dir
3750
3751 fi
3752   if test "${ac_cv_path_install+set}" = set; then
3753     INSTALL=$ac_cv_path_install
3754   else
3755     # As a last resort, use the slow shell script.  Don't cache a
3756     # value for INSTALL within a source directory, because that will
3757     # break other packages using the cache if that directory is
3758     # removed, or if the value is a relative name.
3759     INSTALL=$ac_install_sh
3760   fi
3761 fi
3762 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3763 $as_echo "$INSTALL" >&6; }
3764
3765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766 # It thinks the first close brace ends the variable substitution.
3767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3768
3769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3770
3771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3772
3773 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3774 $as_echo_n "checking whether build environment is sane... " >&6; }
3775 # Just in case
3776 sleep 1
3777 echo timestamp > conftest.file
3778 # Do `set' in a subshell so we don't clobber the current shell's
3779 # arguments.  Must try -L first in case configure is actually a
3780 # symlink; some systems play weird games with the mod time of symlinks
3781 # (eg FreeBSD returns the mod time of the symlink's containing
3782 # directory).
3783 if (
3784    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3785    if test "$*" = "X"; then
3786       # -L didn't work.
3787       set X `ls -t $srcdir/configure conftest.file`
3788    fi
3789    rm -f conftest.file
3790    if test "$*" != "X $srcdir/configure conftest.file" \
3791       && test "$*" != "X conftest.file $srcdir/configure"; then
3792
3793       # If neither matched, then we have a broken ls.  This can happen
3794       # if, for instance, CONFIG_SHELL is bash and it inherits a
3795       # broken ls alias from the environment.  This has actually
3796       # happened.  Such a system could not be considered "sane".
3797       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3798 alias in your environment" >&5
3799 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3800 alias in your environment" >&2;}
3801    { (exit 1); exit 1; }; }
3802    fi
3803
3804    test "$2" = conftest.file
3805    )
3806 then
3807    # Ok.
3808    :
3809 else
3810    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3811 Check your system clock" >&5
3812 $as_echo "$as_me: error: newly created file is older than distributed files!
3813 Check your system clock" >&2;}
3814    { (exit 1); exit 1; }; }
3815 fi
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 test "$program_prefix" != NONE &&
3819   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3820 # Use a double $ so make ignores it.
3821 test "$program_suffix" != NONE &&
3822   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3823 # Double any \ or $.
3824 # By default was `s,x,x', remove it if useless.
3825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3827
3828 # expand $ac_aux_dir to an absolute path
3829 am_aux_dir=`cd $ac_aux_dir && pwd`
3830
3831 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3832 # Use eval to expand $SHELL
3833 if eval "$MISSING --run true"; then
3834   am_missing_run="$MISSING --run "
3835 else
3836   am_missing_run=
3837   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3838 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3839 fi
3840
3841 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3842   # We used to keeping the `.' as first argument, in order to
3843   # allow $(mkdir_p) to be used without argument.  As in
3844   #   $(mkdir_p) $(somedir)
3845   # where $(somedir) is conditionally defined.  However this is wrong
3846   # for two reasons:
3847   #  1. if the package is installed by a user who cannot write `.'
3848   #     make install will fail,
3849   #  2. the above comment should most certainly read
3850   #     $(mkdir_p) $(DESTDIR)$(somedir)
3851   #     so it does not work when $(somedir) is undefined and
3852   #     $(DESTDIR) is not.
3853   #  To support the latter case, we have to write
3854   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3855   #  so the `.' trick is pointless.
3856   mkdir_p='mkdir -p --'
3857 else
3858   # On NextStep and OpenStep, the `mkdir' command does not
3859   # recognize any option.  It will interpret all options as
3860   # directories to create, and then abort because `.' already
3861   # exists.
3862   for d in ./-p ./--version;
3863   do
3864     test -d $d && rmdir $d
3865   done
3866   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3867   if test -f "$ac_aux_dir/mkinstalldirs"; then
3868     mkdir_p='$(mkinstalldirs)'
3869   else
3870     mkdir_p='$(install_sh) -d'
3871   fi
3872 fi
3873
3874 for ac_prog in gawk mawk nawk awk
3875 do
3876   # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_AWK+set}" = set; then
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -n "$AWK"; then
3884   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893     ac_cv_prog_AWK="$ac_prog"
3894     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3900
3901 fi
3902 fi
3903 AWK=$ac_cv_prog_AWK
3904 if test -n "$AWK"; then
3905   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3906 $as_echo "$AWK" >&6; }
3907 else
3908   { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911
3912
3913   test -n "$AWK" && break
3914 done
3915
3916 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3918 set x ${MAKE-make}
3919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3920 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3921   $as_echo_n "(cached) " >&6
3922 else
3923   cat >conftest.make <<\_ACEOF
3924 SHELL = /bin/sh
3925 all:
3926         @echo '@@@%%%=$(MAKE)=@@@%%%'
3927 _ACEOF
3928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3930   *@@@%%%=?*=@@@%%%*)
3931     eval ac_cv_prog_make_${ac_make}_set=yes;;
3932   *)
3933     eval ac_cv_prog_make_${ac_make}_set=no;;
3934 esac
3935 rm -f conftest.make
3936 fi
3937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3938   { $as_echo "$as_me:$LINENO: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940   SET_MAKE=
3941 else
3942   { $as_echo "$as_me:$LINENO: result: no" >&5
3943 $as_echo "no" >&6; }
3944   SET_MAKE="MAKE=${MAKE-make}"
3945 fi
3946
3947 rm -rf .tst 2>/dev/null
3948 mkdir .tst 2>/dev/null
3949 if test -d .tst; then
3950   am__leading_dot=.
3951 else
3952   am__leading_dot=_
3953 fi
3954 rmdir .tst 2>/dev/null
3955
3956 DEPDIR="${am__leading_dot}deps"
3957
3958 ac_config_commands="$ac_config_commands depfiles"
3959
3960
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3963 am__doit:
3964         @echo done
3965 .PHONY: am__doit
3966 END
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 am__include="#"
3971 am__quote=
3972 _am_result=none
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # We grep out `Entering directory' and `Leaving directory'
3976 # messages which can occur if `w' ends up in MAKEFLAGS.
3977 # In particular we don't look at `^make:' because GNU make might
3978 # be invoked under some other name (usually "gmake"), in which
3979 # case it prints its new name instead of `make'.
3980 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3981    am__include=include
3982    am__quote=
3983    _am_result=GNU
3984 fi
3985 # Now try BSD make style include.
3986 if test "$am__include" = "#"; then
3987    echo '.include "confinc"' > confmf
3988    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3989       am__include=.include
3990       am__quote="\""
3991       _am_result=BSD
3992    fi
3993 fi
3994
3995
3996 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
3999
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then
4002   enableval=$enable_dependency_tracking;
4003 fi
4004
4005 if test "x$enable_dependency_tracking" != xno; then
4006   am_depcomp="$ac_aux_dir/depcomp"
4007   AMDEPBACKSLASH='\'
4008 fi
4009
4010
4011 if test "x$enable_dependency_tracking" != xno; then
4012   AMDEP_TRUE=
4013   AMDEP_FALSE='#'
4014 else
4015   AMDEP_TRUE='#'
4016   AMDEP_FALSE=
4017 fi
4018
4019
4020
4021 # test to see if srcdir already configured
4022 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4023    test -f $srcdir/config.status; then
4024   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4025 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 # test whether we have cygpath
4030 if test -z "$CYGPATH_W"; then
4031   if (cygpath --version) >/dev/null 2>/dev/null; then
4032     CYGPATH_W='cygpath -w'
4033   else
4034     CYGPATH_W=echo
4035   fi
4036 fi
4037
4038
4039 # Define the identity of the package.
4040  PACKAGE=lcr
4041  VERSION=1.5
4042
4043
4044 cat >>confdefs.h <<_ACEOF
4045 #define PACKAGE "$PACKAGE"
4046 _ACEOF
4047
4048
4049 cat >>confdefs.h <<_ACEOF
4050 #define VERSION "$VERSION"
4051 _ACEOF
4052
4053 # Some tools Automake needs.
4054
4055 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4056
4057
4058 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4059
4060
4061 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4062
4063
4064 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4065
4066
4067 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4068
4069 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4070
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'.  However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076   if test -n "$ac_tool_prefix"; then
4077   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then
4082   $as_echo_n "(cached) " >&6
4083 else
4084   if test -n "$STRIP"; then
4085   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   test -z "$as_dir" && as_dir=.
4092   for ac_exec_ext in '' $ac_executable_extensions; do
4093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096     break 2
4097   fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4108 else
4109   { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 fi
4115 if test -z "$ac_cv_prog_STRIP"; then
4116   ac_ct_STRIP=$STRIP
4117   # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$ac_ct_STRIP"; then
4125   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_prog_ac_ct_STRIP="strip"
4135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4148 else
4149   { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153   if test "x$ac_ct_STRIP" = x; then
4154     STRIP=":"
4155   else
4156     case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162     STRIP=$ac_ct_STRIP
4163   fi
4164 else
4165   STRIP="$ac_cv_prog_STRIP"
4166 fi
4167
4168 fi
4169 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4170
4171 # We need awk for the "check" target.  The system "awk" is bad on
4172 # some platforms.
4173 # Always define AMTAR for backward compatibility.
4174
4175 AMTAR=${AMTAR-"${am_missing_run}tar"}
4176
4177 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4178
4179
4180
4181
4182 depcc="$CC"   am_compiler_list=
4183
4184 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4185 $as_echo_n "checking dependency style of $depcc... " >&6; }
4186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190   # We make a subdir and do the tests there.  Otherwise we can end up
4191   # making bogus files that we don't know about and never remove.  For
4192   # instance it was reported that on HP-UX the gcc test will end up
4193   # making a dummy file named `D' -- because `-MD' means `put the output
4194   # in D'.
4195   mkdir conftest.dir
4196   # Copy depcomp to subdir because otherwise we won't find it if we're
4197   # using a relative directory.
4198   cp "$am_depcomp" conftest.dir
4199   cd conftest.dir
4200   # We will build objects and dependencies in a subdirectory because
4201   # it helps to detect inapplicable dependency modes.  For instance
4202   # both Tru64's cc and ICC support -MD to output dependencies as a
4203   # side effect of compilation, but ICC will put the dependencies in
4204   # the current directory while Tru64 will put them in the object
4205   # directory.
4206   mkdir sub
4207
4208   am_cv_CC_dependencies_compiler_type=none
4209   if test "$am_compiler_list" = ""; then
4210      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4211   fi
4212   for depmode in $am_compiler_list; do
4213     # Setup a source with many dependencies, because some compilers
4214     # like to wrap large dependency lists on column 80 (with \), and
4215     # we should not choose a depcomp mode which is confused by this.
4216     #
4217     # We need to recreate these files for each test, as the compiler may
4218     # overwrite some of them when testing with obscure command lines.
4219     # This happens at least with the AIX C compiler.
4220     : > sub/conftest.c
4221     for i in 1 2 3 4 5 6; do
4222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224       # Solaris 8's {/usr,}/bin/sh.
4225       touch sub/conftst$i.h
4226     done
4227     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229     case $depmode in
4230     nosideeffect)
4231       # after this tag, mechanisms are not by side-effect, so they'll
4232       # only be used when explicitly requested
4233       if test "x$enable_dependency_tracking" = xyes; then
4234         continue
4235       else
4236         break
4237       fi
4238       ;;
4239     none) break ;;
4240     esac
4241     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4242     # mode.  It turns out that the SunPro C++ compiler does not properly
4243     # handle `-M -o', and we need to detect this.
4244     if depmode=$depmode \
4245        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4246        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4247        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4248          >/dev/null 2>conftest.err &&
4249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252       # icc doesn't choke on unknown options, it will just issue warnings
4253       # or remarks (even with -Werror).  So we grep stderr for any message
4254       # that says an option was ignored or not supported.
4255       # When given -MP, icc 7.0 and 7.1 complain thusly:
4256       #   icc: Command line warning: ignoring option '-M'; no argument required
4257       # The diagnosis changed in icc 8.0:
4258       #   icc: Command line remark: option '-MP' not supported
4259       if (grep 'ignoring option' conftest.err ||
4260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261         am_cv_CC_dependencies_compiler_type=$depmode
4262         break
4263       fi
4264     fi
4265   done
4266
4267   cd ..
4268   rm -rf conftest.dir
4269 else
4270   am_cv_CC_dependencies_compiler_type=none
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277
4278
4279
4280 if
4281   test "x$enable_dependency_tracking" != xno \
4282   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4283   am__fastdepCC_TRUE=
4284   am__fastdepCC_FALSE='#'
4285 else
4286   am__fastdepCC_TRUE='#'
4287   am__fastdepCC_FALSE=
4288 fi
4289
4290
4291
4292
4293
4294
4295 # Checks for programs.
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4305   CPP=
4306 fi
4307 if test -z "$CPP"; then
4308   if test "${ac_cv_prog_CPP+set}" = set; then
4309   $as_echo_n "(cached) " >&6
4310 else
4311       # Double quotes because CPP needs to be expanded
4312     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313     do
4314       ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334                      Syntax error
4335 _ACEOF
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4337 case "(($ac_try" in
4338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339   *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } >/dev/null && {
4350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351          test ! -s conftest.err
4352        }; then
4353   :
4354 else
4355   $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358   # Broken: fails on valid input.
4359 continue
4360 fi
4361
4362 rm -f conftest.err conftest.$ac_ext
4363
4364   # OK, works on sane cases.  Now check whether nonexistent headers
4365   # can be detected and how.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if { (ac_try="$ac_cpp conftest.$ac_ext"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } >/dev/null && {
4388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389          test ! -s conftest.err
4390        }; then
4391   # Broken: success on invalid input.
4392 continue
4393 else
4394   $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397   # Passes both tests.
4398 ac_preproc_ok=:
4399 break
4400 fi
4401
4402 rm -f conftest.err conftest.$ac_ext
4403
4404 done
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then
4408   break
4409 fi
4410
4411     done
4412     ac_cv_prog_CPP=$CPP
4413
4414 fi
4415   CPP=$ac_cv_prog_CPP
4416 else
4417   ac_cv_prog_CPP=$CPP
4418 fi
4419 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4420 $as_echo "$CPP" >&6; }
4421 ac_preproc_ok=false
4422 for ac_c_preproc_warn_flag in '' yes
4423 do
4424   # Use a header file that comes with gcc, so configuring glibc
4425   # with a fresh cross-compiler works.
4426   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427   # <limits.h> exists even on freestanding compilers.
4428   # On the NeXT, cc -E runs the code through the compiler's parser,
4429   # not just through cpp. "Syntax error" is here to catch this case.
4430   cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 #ifdef __STDC__
4437 # include <limits.h>
4438 #else
4439 # include <assert.h>
4440 #endif
4441                      Syntax error
4442 _ACEOF
4443 if { (ac_try="$ac_cpp conftest.$ac_ext"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449 $as_echo "$ac_try_echo") >&5
4450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } >/dev/null && {
4457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4458          test ! -s conftest.err
4459        }; then
4460   :
4461 else
4462   $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465   # Broken: fails on valid input.
4466 continue
4467 fi
4468
4469 rm -f conftest.err conftest.$ac_ext
4470
4471   # OK, works on sane cases.  Now check whether nonexistent headers
4472   # can be detected and how.
4473   cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h.  */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h.  */
4479 #include <ac_nonexistent.h>
4480 _ACEOF
4481 if { (ac_try="$ac_cpp conftest.$ac_ext"
4482 case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4487 $as_echo "$ac_try_echo") >&5
4488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null && {
4495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496          test ! -s conftest.err
4497        }; then
4498   # Broken: success on invalid input.
4499 continue
4500 else
4501   $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504   # Passes both tests.
4505 ac_preproc_ok=:
4506 break
4507 fi
4508
4509 rm -f conftest.err conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4515   :
4516 else
4517   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&5
4521 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&2;}
4523    { (exit 1); exit 1; }; }; }
4524 fi
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 ac_ext=cpp
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 if test -z "$CXX"; then
4538   if test -n "$CCC"; then
4539     CXX=$CCC
4540   else
4541     if test -n "$ac_tool_prefix"; then
4542   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4543   do
4544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_CXX+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$CXX"; then
4552   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559   for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4562     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CXX=$ac_cv_prog_CXX
4572 if test -n "$CXX"; then
4573   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4574 $as_echo "$CXX" >&6; }
4575 else
4576   { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581     test -n "$CXX" && break
4582   done
4583 fi
4584 if test -z "$CXX"; then
4585   ac_ct_CXX=$CXX
4586   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4587 do
4588   # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if test -n "$ac_ct_CXX"; then
4596   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_prog_ac_ct_CXX="$ac_prog"
4606     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616 if test -n "$ac_ct_CXX"; then
4617   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4618 $as_echo "$ac_ct_CXX" >&6; }
4619 else
4620   { $as_echo "$as_me:$LINENO: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624
4625   test -n "$ac_ct_CXX" && break
4626 done
4627
4628   if test "x$ac_ct_CXX" = x; then
4629     CXX="g++"
4630   else
4631     case $cross_compiling:$ac_tool_warned in
4632 yes:)
4633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635 ac_tool_warned=yes ;;
4636 esac
4637     CXX=$ac_ct_CXX
4638   fi
4639 fi
4640
4641   fi
4642 fi
4643 # Provide some information about the compiler.
4644 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4645 set X $ac_compile
4646 ac_compiler=$2
4647 { (ac_try="$ac_compiler --version >&5"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4653 $as_echo "$ac_try_echo") >&5
4654   (eval "$ac_compiler --version >&5") 2>&5
4655   ac_status=$?
4656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }
4658 { (ac_try="$ac_compiler -v >&5"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665   (eval "$ac_compiler -v >&5") 2>&5
4666   ac_status=$?
4667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }
4669 { (ac_try="$ac_compiler -V >&5"
4670 case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4675 $as_echo "$ac_try_echo") >&5
4676   (eval "$ac_compiler -V >&5") 2>&5
4677   ac_status=$?
4678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }
4680
4681 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4682 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4683 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4684   $as_echo_n "(cached) " >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696 #ifndef __GNUC__
4697        choke me
4698 #endif
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_compile") 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } && {
4719          test -z "$ac_cxx_werror_flag" ||
4720          test ! -s conftest.err
4721        } && test -s conftest.$ac_objext; then
4722   ac_compiler_gnu=yes
4723 else
4724   $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727         ac_compiler_gnu=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4732
4733 fi
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4737   GXX=yes
4738 else
4739   GXX=
4740 fi
4741 ac_test_CXXFLAGS=${CXXFLAGS+set}
4742 ac_save_CXXFLAGS=$CXXFLAGS
4743 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4745 if test "${ac_cv_prog_cxx_g+set}" = set; then
4746   $as_echo_n "(cached) " >&6
4747 else
4748   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4749    ac_cxx_werror_flag=yes
4750    ac_cv_prog_cxx_g=no
4751    CXXFLAGS="-g"
4752    cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775   (eval "$ac_compile") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_cxx_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest.$ac_objext; then
4785   ac_cv_prog_cxx_g=yes
4786 else
4787   $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790         CXXFLAGS=""
4791       cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4808 case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4813 $as_echo "$ac_try_echo") >&5
4814   (eval "$ac_compile") 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } && {
4821          test -z "$ac_cxx_werror_flag" ||
4822          test ! -s conftest.err
4823        } && test -s conftest.$ac_objext; then
4824   :
4825 else
4826   $as_echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4830          CXXFLAGS="-g"
4831          cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854   (eval "$ac_compile") 2>conftest.er1
4855   ac_status=$?
4856   grep -v '^ *+' conftest.er1 >conftest.err
4857   rm -f conftest.er1
4858   cat conftest.err >&5
4859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } && {
4861          test -z "$ac_cxx_werror_flag" ||
4862          test ! -s conftest.err
4863        } && test -s conftest.$ac_objext; then
4864   ac_cv_prog_cxx_g=yes
4865 else
4866   $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 fi
4881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4883 if test "$ac_test_CXXFLAGS" = set; then
4884   CXXFLAGS=$ac_save_CXXFLAGS
4885 elif test $ac_cv_prog_cxx_g = yes; then
4886   if test "$GXX" = yes; then
4887     CXXFLAGS="-g -O2"
4888   else
4889     CXXFLAGS="-g"
4890   fi
4891 else
4892   if test "$GXX" = yes; then
4893     CXXFLAGS="-O2"
4894   else
4895     CXXFLAGS=
4896   fi
4897 fi
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904 depcc="$CXX"  am_compiler_list=
4905
4906 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4907 $as_echo_n "checking dependency style of $depcc... " >&6; }
4908 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4912   # We make a subdir and do the tests there.  Otherwise we can end up
4913   # making bogus files that we don't know about and never remove.  For
4914   # instance it was reported that on HP-UX the gcc test will end up
4915   # making a dummy file named `D' -- because `-MD' means `put the output
4916   # in D'.
4917   mkdir conftest.dir
4918   # Copy depcomp to subdir because otherwise we won't find it if we're
4919   # using a relative directory.
4920   cp "$am_depcomp" conftest.dir
4921   cd conftest.dir
4922   # We will build objects and dependencies in a subdirectory because
4923   # it helps to detect inapplicable dependency modes.  For instance
4924   # both Tru64's cc and ICC support -MD to output dependencies as a
4925   # side effect of compilation, but ICC will put the dependencies in
4926   # the current directory while Tru64 will put them in the object
4927   # directory.
4928   mkdir sub
4929
4930   am_cv_CXX_dependencies_compiler_type=none
4931   if test "$am_compiler_list" = ""; then
4932      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4933   fi
4934   for depmode in $am_compiler_list; do
4935     # Setup a source with many dependencies, because some compilers
4936     # like to wrap large dependency lists on column 80 (with \), and
4937     # we should not choose a depcomp mode which is confused by this.
4938     #
4939     # We need to recreate these files for each test, as the compiler may
4940     # overwrite some of them when testing with obscure command lines.
4941     # This happens at least with the AIX C compiler.
4942     : > sub/conftest.c
4943     for i in 1 2 3 4 5 6; do
4944       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4946       # Solaris 8's {/usr,}/bin/sh.
4947       touch sub/conftst$i.h
4948     done
4949     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4950
4951     case $depmode in
4952     nosideeffect)
4953       # after this tag, mechanisms are not by side-effect, so they'll
4954       # only be used when explicitly requested
4955       if test "x$enable_dependency_tracking" = xyes; then
4956         continue
4957       else
4958         break
4959       fi
4960       ;;
4961     none) break ;;
4962     esac
4963     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4964     # mode.  It turns out that the SunPro C++ compiler does not properly
4965     # handle `-M -o', and we need to detect this.
4966     if depmode=$depmode \
4967        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4968        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4969        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4970          >/dev/null 2>conftest.err &&
4971        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4973        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974       # icc doesn't choke on unknown options, it will just issue warnings
4975       # or remarks (even with -Werror).  So we grep stderr for any message
4976       # that says an option was ignored or not supported.
4977       # When given -MP, icc 7.0 and 7.1 complain thusly:
4978       #   icc: Command line warning: ignoring option '-M'; no argument required
4979       # The diagnosis changed in icc 8.0:
4980       #   icc: Command line remark: option '-MP' not supported
4981       if (grep 'ignoring option' conftest.err ||
4982           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983         am_cv_CXX_dependencies_compiler_type=$depmode
4984         break
4985       fi
4986     fi
4987   done
4988
4989   cd ..
4990   rm -rf conftest.dir
4991 else
4992   am_cv_CXX_dependencies_compiler_type=none
4993 fi
4994
4995 fi
4996 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4998 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4999
5000
5001
5002 if
5003   test "x$enable_dependency_tracking" != xno \
5004   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5005   am__fastdepCXX_TRUE=
5006   am__fastdepCXX_FALSE='#'
5007 else
5008   am__fastdepCXX_TRUE='#'
5009   am__fastdepCXX_FALSE=
5010 fi
5011
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 if test -n "$ac_tool_prefix"; then
5019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$CC"; then
5027   ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 CC=$ac_cv_prog_CC
5047 if test -n "$CC"; then
5048   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5049 $as_echo "$CC" >&6; }
5050 else
5051   { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 fi
5057 if test -z "$ac_cv_prog_CC"; then
5058   ac_ct_CC=$CC
5059   # Extract the first word of "gcc", so it can be a program name with args.
5060 set dummy gcc; ac_word=$2
5061 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5064   $as_echo_n "(cached) " >&6
5065 else
5066   if test -n "$ac_ct_CC"; then
5067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_prog_ac_ct_CC="gcc"
5077     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5090 else
5091   { $as_echo "$as_me:$LINENO: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095   if test "x$ac_ct_CC" = x; then
5096     CC=""
5097   else
5098     case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104     CC=$ac_ct_CC
5105   fi
5106 else
5107   CC="$ac_cv_prog_CC"
5108 fi
5109
5110 if test -z "$CC"; then
5111           if test -n "$ac_tool_prefix"; then
5112     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}cc; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_CC+set}" = set; then
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$CC"; then
5120   ac_cv_prog_CC="$CC" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_CC="${ac_tool_prefix}cc"
5130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 CC=$ac_cv_prog_CC
5140 if test -n "$CC"; then
5141   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5142 $as_echo "$CC" >&6; }
5143 else
5144   { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149   fi
5150 fi
5151 if test -z "$CC"; then
5152   # Extract the first word of "cc", so it can be a program name with args.
5153 set dummy cc; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_CC+set}" = set; then
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -n "$CC"; then
5160   ac_cv_prog_CC="$CC" # Let the user override the test.
5161 else
5162   ac_prog_rejected=no
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5171        ac_prog_rejected=yes
5172        continue
5173      fi
5174     ac_cv_prog_CC="cc"
5175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 if test $ac_prog_rejected = yes; then
5183   # We found a bogon in the path, so make sure we never use it.
5184   set dummy $ac_cv_prog_CC
5185   shift
5186   if test $# != 0; then
5187     # We chose a different compiler from the bogus one.
5188     # However, it has the same basename, so the bogon will be chosen
5189     # first if we set CC to just the basename; use the full file name.
5190     shift
5191     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5192   fi
5193 fi
5194 fi
5195 fi
5196 CC=$ac_cv_prog_CC
5197 if test -n "$CC"; then
5198   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5199 $as_echo "$CC" >&6; }
5200 else
5201   { $as_echo "$as_me:$LINENO: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 fi
5207 if test -z "$CC"; then
5208   if test -n "$ac_tool_prefix"; then
5209   for ac_prog in cl.exe
5210   do
5211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_CC+set}" = set; then
5216   $as_echo_n "(cached) " >&6
5217 else
5218   if test -n "$CC"; then
5219   ac_cv_prog_CC="$CC" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 CC=$ac_cv_prog_CC
5239 if test -n "$CC"; then
5240   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5241 $as_echo "$CC" >&6; }
5242 else
5243   { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248     test -n "$CC" && break
5249   done
5250 fi
5251 if test -z "$CC"; then
5252   ac_ct_CC=$CC
5253   for ac_prog in cl.exe
5254 do
5255   # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$ac_ct_CC"; then
5263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270   for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_ac_ct_CC="$ac_prog"
5273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5286 else
5287   { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292   test -n "$ac_ct_CC" && break
5293 done
5294
5295   if test "x$ac_ct_CC" = x; then
5296     CC=""
5297   else
5298     case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304     CC=$ac_ct_CC
5305   fi
5306 fi
5307
5308 fi
5309
5310
5311 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5316 See \`config.log' for more details." >&2;}
5317    { (exit 1); exit 1; }; }; }
5318
5319 # Provide some information about the compiler.
5320 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5321 set X $ac_compile
5322 ac_compiler=$2
5323 { (ac_try="$ac_compiler --version >&5"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330   (eval "$ac_compiler --version >&5") 2>&5
5331   ac_status=$?
5332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }
5334 { (ac_try="$ac_compiler -v >&5"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341   (eval "$ac_compiler -v >&5") 2>&5
5342   ac_status=$?
5343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }
5345 { (ac_try="$ac_compiler -V >&5"
5346 case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352   (eval "$ac_compiler -V >&5") 2>&5
5353   ac_status=$?
5354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }
5356
5357 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5360   $as_echo_n "(cached) " >&6
5361 else
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368
5369 int
5370 main ()
5371 {
5372 #ifndef __GNUC__
5373        choke me
5374 #endif
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388   (eval "$ac_compile") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } && {
5395          test -z "$ac_c_werror_flag" ||
5396          test ! -s conftest.err
5397        } && test -s conftest.$ac_objext; then
5398   ac_compiler_gnu=yes
5399 else
5400   $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403         ac_compiler_gnu=no
5404 fi
5405
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5408
5409 fi
5410 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5412 if test $ac_compiler_gnu = yes; then
5413   GCC=yes
5414 else
5415   GCC=
5416 fi
5417 ac_test_CFLAGS=${CFLAGS+set}
5418 ac_save_CFLAGS=$CFLAGS
5419 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5421 if test "${ac_cv_prog_cc_g+set}" = set; then
5422   $as_echo_n "(cached) " >&6
5423 else
5424   ac_save_c_werror_flag=$ac_c_werror_flag
5425    ac_c_werror_flag=yes
5426    ac_cv_prog_cc_g=no
5427    CFLAGS="-g"
5428    cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434
5435 int
5436 main ()
5437 {
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_c_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   ac_cv_prog_cc_g=yes
5462 else
5463   $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         CFLAGS=""
5467       cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 int
5475 main ()
5476 {
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490   (eval "$ac_compile") 2>conftest.er1
5491   ac_status=$?
5492   grep -v '^ *+' conftest.er1 >conftest.err
5493   rm -f conftest.er1
5494   cat conftest.err >&5
5495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } && {
5497          test -z "$ac_c_werror_flag" ||
5498          test ! -s conftest.err
5499        } && test -s conftest.$ac_objext; then
5500   :
5501 else
5502   $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505         ac_c_werror_flag=$ac_save_c_werror_flag
5506          CFLAGS="-g"
5507          cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530   (eval "$ac_compile") 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } && {
5537          test -z "$ac_c_werror_flag" ||
5538          test ! -s conftest.err
5539        } && test -s conftest.$ac_objext; then
5540   ac_cv_prog_cc_g=yes
5541 else
5542   $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555    ac_c_werror_flag=$ac_save_c_werror_flag
5556 fi
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5558 $as_echo "$ac_cv_prog_cc_g" >&6; }
5559 if test "$ac_test_CFLAGS" = set; then
5560   CFLAGS=$ac_save_CFLAGS
5561 elif test $ac_cv_prog_cc_g = yes; then
5562   if test "$GCC" = yes; then
5563     CFLAGS="-g -O2"
5564   else
5565     CFLAGS="-g"
5566   fi
5567 else
5568   if test "$GCC" = yes; then
5569     CFLAGS="-O2"
5570   else
5571     CFLAGS=
5572   fi
5573 fi
5574 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5576 if test "${ac_cv_prog_cc_c89+set}" = set; then
5577   $as_echo_n "(cached) " >&6
5578 else
5579   ac_cv_prog_cc_c89=no
5580 ac_save_CC=$CC
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 #include <stdarg.h>
5588 #include <stdio.h>
5589 #include <sys/types.h>
5590 #include <sys/stat.h>
5591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5592 struct buf { int x; };
5593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5594 static char *e (p, i)
5595      char **p;
5596      int i;
5597 {
5598   return p[i];
5599 }
5600 static char *f (char * (*g) (char **, int), char **p, ...)
5601 {
5602   char *s;
5603   va_list v;
5604   va_start (v,p);
5605   s = g (p, va_arg (v,int));
5606   va_end (v);
5607   return s;
5608 }
5609
5610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5611    function prototypes and stuff, but not '\xHH' hex character constants.
5612    These don't provoke an error unfortunately, instead are silently treated
5613    as 'x'.  The following induces an error, until -std is added to get
5614    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5615    array size at least.  It's necessary to write '\x00'==0 to get something
5616    that's true only with -std.  */
5617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5618
5619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5620    inside strings and character constants.  */
5621 #define FOO(x) 'x'
5622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5623
5624 int test (int i, double x);
5625 struct s1 {int (*f) (int a);};
5626 struct s2 {int (*f) (double a);};
5627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5628 int argc;
5629 char **argv;
5630 int
5631 main ()
5632 {
5633 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5639         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5640 do
5641   CC="$ac_save_CC $ac_arg"
5642   rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650   (eval "$ac_compile") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } && {
5657          test -z "$ac_c_werror_flag" ||
5658          test ! -s conftest.err
5659        } && test -s conftest.$ac_objext; then
5660   ac_cv_prog_cc_c89=$ac_arg
5661 else
5662   $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666 fi
5667
5668 rm -f core conftest.err conftest.$ac_objext
5669   test "x$ac_cv_prog_cc_c89" != "xno" && break
5670 done
5671 rm -f conftest.$ac_ext
5672 CC=$ac_save_CC
5673
5674 fi
5675 # AC_CACHE_VAL
5676 case "x$ac_cv_prog_cc_c89" in
5677   x)
5678     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5679 $as_echo "none needed" >&6; } ;;
5680   xno)
5681     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5682 $as_echo "unsupported" >&6; } ;;
5683   *)
5684     CC="$CC $ac_cv_prog_cc_c89"
5685     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5687 esac
5688
5689
5690 ac_ext=c
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696 # Find a good install program.  We prefer a C program (faster),
5697 # so one script is as good as another.  But avoid the broken or
5698 # incompatible versions:
5699 # SysV /etc/install, /usr/sbin/install
5700 # SunOS /usr/etc/install
5701 # IRIX /sbin/install
5702 # AIX /bin/install
5703 # AmigaOS /C/install, which installs bootblocks on floppy discs
5704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5707 # OS/2's system install, which has a completely different semantic
5708 # ./install, which can be erroneously created by make from ./install.sh.
5709 # Reject install programs that cannot install multiple files.
5710 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5711 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5712 if test -z "$INSTALL"; then
5713 if test "${ac_cv_path_install+set}" = set; then
5714   $as_echo_n "(cached) " >&6
5715 else
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   # Account for people who put trailing slashes in PATH elements.
5722 case $as_dir/ in
5723   ./ | .// | /cC/* | \
5724   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5725   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5726   /usr/ucb/* ) ;;
5727   *)
5728     # OSF1 and SCO ODT 3.0 have their own names for install.
5729     # Don't use installbsd from OSF since it installs stuff as root
5730     # by default.
5731     for ac_prog in ginstall scoinst install; do
5732       for ac_exec_ext in '' $ac_executable_extensions; do
5733         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5734           if test $ac_prog = install &&
5735             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5736             # AIX install.  It has an incompatible calling convention.
5737             :
5738           elif test $ac_prog = install &&
5739             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5740             # program-specific install script used by HP pwplus--don't use.
5741             :
5742           else
5743             rm -rf conftest.one conftest.two conftest.dir
5744             echo one > conftest.one
5745             echo two > conftest.two
5746             mkdir conftest.dir
5747             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5748               test -s conftest.one && test -s conftest.two &&
5749               test -s conftest.dir/conftest.one &&
5750               test -s conftest.dir/conftest.two
5751             then
5752               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5753               break 3
5754             fi
5755           fi
5756         fi
5757       done
5758     done
5759     ;;
5760 esac
5761
5762 done
5763 IFS=$as_save_IFS
5764
5765 rm -rf conftest.one conftest.two conftest.dir
5766
5767 fi
5768   if test "${ac_cv_path_install+set}" = set; then
5769     INSTALL=$ac_cv_path_install
5770   else
5771     # As a last resort, use the slow shell script.  Don't cache a
5772     # value for INSTALL within a source directory, because that will
5773     # break other packages using the cache if that directory is
5774     # removed, or if the value is a relative name.
5775     INSTALL=$ac_install_sh
5776   fi
5777 fi
5778 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5779 $as_echo "$INSTALL" >&6; }
5780
5781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5782 # It thinks the first close brace ends the variable substitution.
5783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5784
5785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5786
5787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5788
5789 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5791 set x ${MAKE-make}
5792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794   $as_echo_n "(cached) " >&6
5795 else
5796   cat >conftest.make <<\_ACEOF
5797 SHELL = /bin/sh
5798 all:
5799         @echo '@@@%%%=$(MAKE)=@@@%%%'
5800 _ACEOF
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5803   *@@@%%%=?*=@@@%%%*)
5804     eval ac_cv_prog_make_${ac_make}_set=yes;;
5805   *)
5806     eval ac_cv_prog_make_${ac_make}_set=no;;
5807 esac
5808 rm -f conftest.make
5809 fi
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811   { $as_echo "$as_me:$LINENO: result: yes" >&5
5812 $as_echo "yes" >&6; }
5813   SET_MAKE=
5814 else
5815   { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5817   SET_MAKE="MAKE=${MAKE-make}"
5818 fi
5819
5820
5821
5822 # site specific configs
5823
5824 # check for asterisk
5825
5826 # Check whether --with-asterisk was given.
5827 if test "${with_asterisk+set}" = set; then
5828   withval=$with_asterisk;
5829 else
5830   with_asterisk="check"
5831 fi
5832
5833
5834 if test "x$with_asterisk" != xno; then
5835
5836 for ac_header in asterisk/compiler.h
5837 do
5838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 $as_echo_n "checking for $ac_header... " >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843   $as_echo_n "(cached) " >&6
5844 fi
5845 ac_res=`eval 'as_val=${'$as_ac_Header'}
5846                  $as_echo "$as_val"'`
5847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5849 else
5850   # Is the header compilable?
5851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5852 $as_echo_n "checking $ac_header usability... " >&6; }
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 $ac_includes_default
5860 #include <$ac_header>
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870   (eval "$ac_compile") 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } && {
5877          test -z "$ac_c_werror_flag" ||
5878          test ! -s conftest.err
5879        } && test -s conftest.$ac_objext; then
5880   ac_header_compiler=yes
5881 else
5882   $as_echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885         ac_header_compiler=no
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890 $as_echo "$ac_header_compiler" >&6; }
5891
5892 # Is the header present?
5893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5894 $as_echo_n "checking $ac_header presence... " >&6; }
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 #include <$ac_header>
5902 _ACEOF
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } >/dev/null && {
5917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5918          test ! -s conftest.err
5919        }; then
5920   ac_header_preproc=yes
5921 else
5922   $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925   ac_header_preproc=no
5926 fi
5927
5928 rm -f conftest.err conftest.$ac_ext
5929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5930 $as_echo "$ac_header_preproc" >&6; }
5931
5932 # So?  What about this header?
5933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5934   yes:no: )
5935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5939     ac_header_preproc=yes
5940     ;;
5941   no:yes:* )
5942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5945 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5949 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5952     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5954     ( cat <<\_ASBOX
5955 ## ----------------------------------- ##
5956 ## Report this to andreas@eversberg.eu ##
5957 ## ----------------------------------- ##
5958 _ASBOX
5959      ) | sed "s/^/$as_me: WARNING:     /" >&2
5960     ;;
5961 esac
5962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 $as_echo_n "checking for $ac_header... " >&6; }
5964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5965   $as_echo_n "(cached) " >&6
5966 else
5967   eval "$as_ac_Header=\$ac_header_preproc"
5968 fi
5969 ac_res=`eval 'as_val=${'$as_ac_Header'}
5970                  $as_echo "$as_val"'`
5971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5972 $as_echo "$ac_res" >&6; }
5973
5974 fi
5975 as_val=`eval 'as_val=${'$as_ac_Header'}
5976                  $as_echo "$as_val"'`
5977    if test "x$as_val" = x""yes; then
5978   cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 _ACEOF
5981  with_asterisk="yes"
5982 else
5983   if test "x$with_asterisk" != xcheck ; then
5984                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5986 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5987 See \`config.log' for more details." >&5
5988 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5989 See \`config.log' for more details." >&2;}
5990    { (exit 1); exit 1; }; }; }
5991                      fi
5992
5993 fi
5994
5995 done
5996
5997
5998 fi
5999
6000
6001
6002
6003 if test "x$with_asterisk" == "xyes" ; then
6004   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6005   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6006 else
6007   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6008   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6009 fi
6010
6011
6012 # check for crypto
6013
6014 # Check whether --with-ssl was given.
6015 if test "${with_ssl+set}" = set; then
6016   withval=$with_ssl;
6017 else
6018   with_ssl=check
6019 fi
6020
6021 LIBCRYPTO=
6022 if test "x$with_ssl" != xno; then
6023
6024 for ac_header in openssl/rsa.h
6025 do
6026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 $as_echo_n "checking for $ac_header... " >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031   $as_echo_n "(cached) " >&6
6032 fi
6033 ac_res=`eval 'as_val=${'$as_ac_Header'}
6034                  $as_echo "$as_val"'`
6035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6036 $as_echo "$ac_res" >&6; }
6037 else
6038   # Is the header compilable?
6039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6040 $as_echo_n "checking $ac_header usability... " >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 $ac_includes_default
6048 #include <$ac_header>
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058   (eval "$ac_compile") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } && {
6065          test -z "$ac_c_werror_flag" ||
6066          test ! -s conftest.err
6067        } && test -s conftest.$ac_objext; then
6068   ac_header_compiler=yes
6069 else
6070   $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_header_compiler=no
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 $as_echo "$ac_header_compiler" >&6; }
6079
6080 # Is the header present?
6081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 $as_echo_n "checking $ac_header presence... " >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #include <$ac_header>
6090 _ACEOF
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } >/dev/null && {
6105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106          test ! -s conftest.err
6107        }; then
6108   ac_header_preproc=yes
6109 else
6110   $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_header_preproc=no
6114 fi
6115
6116 rm -f conftest.err conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 $as_echo "$ac_header_preproc" >&6; }
6119
6120 # So?  What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122   yes:no: )
6123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127     ac_header_preproc=yes
6128     ;;
6129   no:yes:* )
6130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6133 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6137 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142     ( cat <<\_ASBOX
6143 ## ----------------------------------- ##
6144 ## Report this to andreas@eversberg.eu ##
6145 ## ----------------------------------- ##
6146 _ASBOX
6147      ) | sed "s/^/$as_me: WARNING:     /" >&2
6148     ;;
6149 esac
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153   $as_echo_n "(cached) " >&6
6154 else
6155   eval "$as_ac_Header=\$ac_header_preproc"
6156 fi
6157 ac_res=`eval 'as_val=${'$as_ac_Header'}
6158                  $as_echo "$as_val"'`
6159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6160 $as_echo "$ac_res" >&6; }
6161
6162 fi
6163 as_val=`eval 'as_val=${'$as_ac_Header'}
6164                  $as_echo "$as_val"'`
6165    if test "x$as_val" = x""yes; then
6166   cat >>confdefs.h <<_ACEOF
6167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6168 _ACEOF
6169
6170 fi
6171
6172 done
6173
6174        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6175 $as_echo_n "checking for main in -lcrypto... " >&6; }
6176 if test "${ac_cv_lib_crypto_main+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lcrypto -lcrypto
6181                     $LIBS"
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189
6190 int
6191 main ()
6192 {
6193 return main ();
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6200 case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206   (eval "$ac_link") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } && {
6213          test -z "$ac_c_werror_flag" ||
6214          test ! -s conftest.err
6215        } && test -s conftest$ac_exeext && {
6216          test "$cross_compiling" = yes ||
6217          $as_test_x conftest$ac_exeext
6218        }; then
6219   ac_cv_lib_crypto_main=yes
6220 else
6221   $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         ac_cv_lib_crypto_main=no
6225 fi
6226
6227 rm -rf conftest.dSYM
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229       conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6231 fi
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6233 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6234 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6235   LIBCRYPTO="-lcrypto"
6236
6237
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_LIBCRYPTO 1
6240 _ACEOF
6241
6242
6243 else
6244   if test "x$with_ssl" != xcheck ; then
6245                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6247 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6248 See \`config.log' for more details." >&5
6249 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6250 See \`config.log' for more details." >&2;}
6251    { (exit 1); exit 1; }; }; }
6252                      fi
6253
6254 fi
6255
6256
6257
6258 fi
6259
6260
6261 # check for gsm
6262
6263 # Check whether --with-gsm was given.
6264 if test "${with_gsm+set}" = set; then
6265   withval=$with_gsm;
6266 else
6267   with_gsm=no
6268 fi
6269
6270
6271
6272
6273 if test "x$with_gsm" != "xno" ; then
6274   ENABLE_GSM_TRUE=
6275   ENABLE_GSM_FALSE='#'
6276 else
6277   ENABLE_GSM_TRUE='#'
6278   ENABLE_GSM_FALSE=
6279 fi
6280
6281
6282 # Checks for libraries.
6283
6284 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6285 $as_echo_n "checking for main in -lm... " >&6; }
6286 if test "${ac_cv_lib_m_main+set}" = set; then
6287   $as_echo_n "(cached) " >&6
6288 else
6289   ac_check_lib_save_LIBS=$LIBS
6290 LIBS="-lm  $LIBS"
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297
6298
6299 int
6300 main ()
6301 {
6302 return main ();
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (ac_try="$ac_link"
6309 case "(($ac_try" in
6310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311   *) ac_try_echo=$ac_try;;
6312 esac
6313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6314 $as_echo "$ac_try_echo") >&5
6315   (eval "$ac_link") 2>conftest.er1
6316   ac_status=$?
6317   grep -v '^ *+' conftest.er1 >conftest.err
6318   rm -f conftest.er1
6319   cat conftest.err >&5
6320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); } && {
6322          test -z "$ac_c_werror_flag" ||
6323          test ! -s conftest.err
6324        } && test -s conftest$ac_exeext && {
6325          test "$cross_compiling" = yes ||
6326          $as_test_x conftest$ac_exeext
6327        }; then
6328   ac_cv_lib_m_main=yes
6329 else
6330   $as_echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333         ac_cv_lib_m_main=no
6334 fi
6335
6336 rm -rf conftest.dSYM
6337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6338       conftest$ac_exeext conftest.$ac_ext
6339 LIBS=$ac_check_lib_save_LIBS
6340 fi
6341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6342 $as_echo "$ac_cv_lib_m_main" >&6; }
6343 if test "x$ac_cv_lib_m_main" = x""yes; then
6344   cat >>confdefs.h <<_ACEOF
6345 #define HAVE_LIBM 1
6346 _ACEOF
6347
6348   LIBS="-lm $LIBS"
6349
6350 fi
6351
6352
6353 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6354 $as_echo_n "checking for main in -lncurses... " >&6; }
6355 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6356   $as_echo_n "(cached) " >&6
6357 else
6358   ac_check_lib_save_LIBS=$LIBS
6359 LIBS="-lncurses  $LIBS"
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366
6367
6368 int
6369 main ()
6370 {
6371 return main ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6378 case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383 $as_echo "$ac_try_echo") >&5
6384   (eval "$ac_link") 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } && {
6391          test -z "$ac_c_werror_flag" ||
6392          test ! -s conftest.err
6393        } && test -s conftest$ac_exeext && {
6394          test "$cross_compiling" = yes ||
6395          $as_test_x conftest$ac_exeext
6396        }; then
6397   ac_cv_lib_ncurses_main=yes
6398 else
6399   $as_echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402         ac_cv_lib_ncurses_main=no
6403 fi
6404
6405 rm -rf conftest.dSYM
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407       conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6409 fi
6410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6411 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6412 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6413   cat >>confdefs.h <<_ACEOF
6414 #define HAVE_LIBNCURSES 1
6415 _ACEOF
6416
6417   LIBS="-lncurses $LIBS"
6418
6419 fi
6420
6421
6422 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6423 $as_echo_n "checking for main in -lpthread... " >&6; }
6424 if test "${ac_cv_lib_pthread_main+set}" = set; then
6425   $as_echo_n "(cached) " >&6
6426 else
6427   ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lpthread  $LIBS"
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435
6436
6437 int
6438 main ()
6439 {
6440 return main ();
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (ac_try="$ac_link"
6447 case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6452 $as_echo "$ac_try_echo") >&5
6453   (eval "$ac_link") 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } && {
6460          test -z "$ac_c_werror_flag" ||
6461          test ! -s conftest.err
6462        } && test -s conftest$ac_exeext && {
6463          test "$cross_compiling" = yes ||
6464          $as_test_x conftest$ac_exeext
6465        }; then
6466   ac_cv_lib_pthread_main=yes
6467 else
6468   $as_echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471         ac_cv_lib_pthread_main=no
6472 fi
6473
6474 rm -rf conftest.dSYM
6475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6476       conftest$ac_exeext conftest.$ac_ext
6477 LIBS=$ac_check_lib_save_LIBS
6478 fi
6479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6480 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6481 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6482   cat >>confdefs.h <<_ACEOF
6483 #define HAVE_LIBPTHREAD 1
6484 _ACEOF
6485
6486   LIBS="-lpthread $LIBS"
6487
6488 fi
6489
6490
6491 # Checks for header files.
6492
6493
6494
6495
6496
6497 ac_header_dirent=no
6498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6499   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6500 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6501 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503   $as_echo_n "(cached) " >&6
6504 else
6505   cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h.  */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h.  */
6511 #include <sys/types.h>
6512 #include <$ac_hdr>
6513
6514 int
6515 main ()
6516 {
6517 if ((DIR *) 0)
6518 return 0;
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6530 $as_echo "$ac_try_echo") >&5
6531   (eval "$ac_compile") 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } && {
6538          test -z "$ac_c_werror_flag" ||
6539          test ! -s conftest.err
6540        } && test -s conftest.$ac_objext; then
6541   eval "$as_ac_Header=yes"
6542 else
6543   $as_echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546         eval "$as_ac_Header=no"
6547 fi
6548
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 fi
6551 ac_res=`eval 'as_val=${'$as_ac_Header'}
6552                  $as_echo "$as_val"'`
6553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 as_val=`eval 'as_val=${'$as_ac_Header'}
6556                  $as_echo "$as_val"'`
6557    if test "x$as_val" = x""yes; then
6558   cat >>confdefs.h <<_ACEOF
6559 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6560 _ACEOF
6561
6562 ac_header_dirent=$ac_hdr; break
6563 fi
6564
6565 done
6566 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6567 if test $ac_header_dirent = dirent.h; then
6568   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6569 $as_echo_n "checking for library containing opendir... " >&6; }
6570 if test "${ac_cv_search_opendir+set}" = set; then
6571   $as_echo_n "(cached) " >&6
6572 else
6573   ac_func_search_save_LIBS=$LIBS
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581 /* Override any GCC internal prototype to avoid an error.
6582    Use char because int might match the return type of a GCC
6583    builtin and then its argument prototype would still apply.  */
6584 #ifdef __cplusplus
6585 extern "C"
6586 #endif
6587 char opendir ();
6588 int
6589 main ()
6590 {
6591 return opendir ();
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 for ac_lib in '' dir; do
6597   if test -z "$ac_lib"; then
6598     ac_res="none required"
6599   else
6600     ac_res=-l$ac_lib
6601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6602   fi
6603   rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607   *) ac_try_echo=$ac_try;;
6608 esac
6609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6610 $as_echo "$ac_try_echo") >&5
6611   (eval "$ac_link") 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } && {
6618          test -z "$ac_c_werror_flag" ||
6619          test ! -s conftest.err
6620        } && test -s conftest$ac_exeext && {
6621          test "$cross_compiling" = yes ||
6622          $as_test_x conftest$ac_exeext
6623        }; then
6624   ac_cv_search_opendir=$ac_res
6625 else
6626   $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629
6630 fi
6631
6632 rm -rf conftest.dSYM
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634       conftest$ac_exeext
6635   if test "${ac_cv_search_opendir+set}" = set; then
6636   break
6637 fi
6638 done
6639 if test "${ac_cv_search_opendir+set}" = set; then
6640   :
6641 else
6642   ac_cv_search_opendir=no
6643 fi
6644 rm conftest.$ac_ext
6645 LIBS=$ac_func_search_save_LIBS
6646 fi
6647 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6648 $as_echo "$ac_cv_search_opendir" >&6; }
6649 ac_res=$ac_cv_search_opendir
6650 if test "$ac_res" != no; then
6651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6652
6653 fi
6654
6655 else
6656   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6657 $as_echo_n "checking for library containing opendir... " >&6; }
6658 if test "${ac_cv_search_opendir+set}" = set; then
6659   $as_echo_n "(cached) " >&6
6660 else
6661   ac_func_search_save_LIBS=$LIBS
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h.  */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h.  */
6668
6669 /* Override any GCC internal prototype to avoid an error.
6670    Use char because int might match the return type of a GCC
6671    builtin and then its argument prototype would still apply.  */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 char opendir ();
6676 int
6677 main ()
6678 {
6679 return opendir ();
6680   ;
6681   return 0;
6682 }
6683 _ACEOF
6684 for ac_lib in '' x; do
6685   if test -z "$ac_lib"; then
6686     ac_res="none required"
6687   else
6688     ac_res=-l$ac_lib
6689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6690   fi
6691   rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (ac_try="$ac_link"
6693 case "(($ac_try" in
6694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695   *) ac_try_echo=$ac_try;;
6696 esac
6697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6698 $as_echo "$ac_try_echo") >&5
6699   (eval "$ac_link") 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } && {
6706          test -z "$ac_c_werror_flag" ||
6707          test ! -s conftest.err
6708        } && test -s conftest$ac_exeext && {
6709          test "$cross_compiling" = yes ||
6710          $as_test_x conftest$ac_exeext
6711        }; then
6712   ac_cv_search_opendir=$ac_res
6713 else
6714   $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717
6718 fi
6719
6720 rm -rf conftest.dSYM
6721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6722       conftest$ac_exeext
6723   if test "${ac_cv_search_opendir+set}" = set; then
6724   break
6725 fi
6726 done
6727 if test "${ac_cv_search_opendir+set}" = set; then
6728   :
6729 else
6730   ac_cv_search_opendir=no
6731 fi
6732 rm conftest.$ac_ext
6733 LIBS=$ac_func_search_save_LIBS
6734 fi
6735 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6736 $as_echo "$ac_cv_search_opendir" >&6; }
6737 ac_res=$ac_cv_search_opendir
6738 if test "$ac_res" != no; then
6739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6740
6741 fi
6742
6743 fi
6744
6745 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6746 $as_echo_n "checking for ANSI C header files... " >&6; }
6747 if test "${ac_cv_header_stdc+set}" = set; then
6748   $as_echo_n "(cached) " >&6
6749 else
6750   cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 #include <stdlib.h>
6757 #include <stdarg.h>
6758 #include <string.h>
6759 #include <float.h>
6760
6761 int
6762 main ()
6763 {
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773   *) ac_try_echo=$ac_try;;
6774 esac
6775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777   (eval "$ac_compile") 2>conftest.er1
6778   ac_status=$?
6779   grep -v '^ *+' conftest.er1 >conftest.err
6780   rm -f conftest.er1
6781   cat conftest.err >&5
6782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); } && {
6784          test -z "$ac_c_werror_flag" ||
6785          test ! -s conftest.err
6786        } && test -s conftest.$ac_objext; then
6787   ac_cv_header_stdc=yes
6788 else
6789   $as_echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792         ac_cv_header_stdc=no
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 if test $ac_cv_header_stdc = yes; then
6798   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799   cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 #include <string.h>
6806
6807 _ACEOF
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809   $EGREP "memchr" >/dev/null 2>&1; then
6810   :
6811 else
6812   ac_cv_header_stdc=no
6813 fi
6814 rm -f conftest*
6815
6816 fi
6817
6818 if test $ac_cv_header_stdc = yes; then
6819   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   $EGREP "free" >/dev/null 2>&1; then
6831   :
6832 else
6833   ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841   if test "$cross_compiling" = yes; then
6842   :
6843 else
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 #include <ctype.h>
6851 #include <stdlib.h>
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855 #else
6856 # define ISLOWER(c) \
6857                    (('a' <= (c) && (c) <= 'i') \
6858                      || ('j' <= (c) && (c) <= 'r') \
6859                      || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6861 #endif
6862
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864 int
6865 main ()
6866 {
6867   int i;
6868   for (i = 0; i < 256; i++)
6869     if (XOR (islower (i), ISLOWER (i))
6870         || toupper (i) != TOUPPER (i))
6871       return 2;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879   *) ac_try_echo=$ac_try;;
6880 esac
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883   (eval "$ac_link") 2>&5
6884   ac_status=$?
6885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887   { (case "(($ac_try" in
6888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889   *) ac_try_echo=$ac_try;;
6890 esac
6891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6892 $as_echo "$ac_try_echo") >&5
6893   (eval "$ac_try") 2>&5
6894   ac_status=$?
6895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   :
6898 else
6899   $as_echo "$as_me: program exited with status $ac_status" >&5
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 ( exit $ac_status )
6904 ac_cv_header_stdc=no
6905 fi
6906 rm -rf conftest.dSYM
6907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6908 fi
6909
6910
6911 fi
6912 fi
6913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6914 $as_echo "$ac_cv_header_stdc" >&6; }
6915 if test $ac_cv_header_stdc = yes; then
6916
6917 cat >>confdefs.h <<\_ACEOF
6918 #define STDC_HEADERS 1
6919 _ACEOF
6920
6921 fi
6922
6923 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6924 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6925 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6926   $as_echo_n "(cached) " >&6
6927 else
6928   cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 #include <sys/types.h>
6935 #include <sys/wait.h>
6936 #ifndef WEXITSTATUS
6937 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6938 #endif
6939 #ifndef WIFEXITED
6940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6941 #endif
6942
6943 int
6944 main ()
6945 {
6946   int s;
6947   wait (&s);
6948   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961   (eval "$ac_compile") 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } && {
6968          test -z "$ac_c_werror_flag" ||
6969          test ! -s conftest.err
6970        } && test -s conftest.$ac_objext; then
6971   ac_cv_header_sys_wait_h=yes
6972 else
6973   $as_echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976         ac_cv_header_sys_wait_h=no
6977 fi
6978
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6982 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6983 if test $ac_cv_header_sys_wait_h = yes; then
6984
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_SYS_WAIT_H 1
6987 _ACEOF
6988
6989 fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 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
7005 do
7006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7008   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 $as_echo_n "checking for $ac_header... " >&6; }
7010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7011   $as_echo_n "(cached) " >&6
7012 fi
7013 ac_res=`eval 'as_val=${'$as_ac_Header'}
7014                  $as_echo "$as_val"'`
7015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7016 $as_echo "$ac_res" >&6; }
7017 else
7018   # Is the header compilable?
7019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7020 $as_echo_n "checking $ac_header usability... " >&6; }
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027 $ac_includes_default
7028 #include <$ac_header>
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034   *) ac_try_echo=$ac_try;;
7035 esac
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038   (eval "$ac_compile") 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } && {
7045          test -z "$ac_c_werror_flag" ||
7046          test ! -s conftest.err
7047        } && test -s conftest.$ac_objext; then
7048   ac_header_compiler=yes
7049 else
7050   $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053         ac_header_compiler=no
7054 fi
7055
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7058 $as_echo "$ac_header_compiler" >&6; }
7059
7060 # Is the header present?
7061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7062 $as_echo_n "checking $ac_header presence... " >&6; }
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <$ac_header>
7070 _ACEOF
7071 if { (ac_try="$ac_cpp conftest.$ac_ext"
7072 case "(($ac_try" in
7073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074   *) ac_try_echo=$ac_try;;
7075 esac
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } >/dev/null && {
7085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7086          test ! -s conftest.err
7087        }; then
7088   ac_header_preproc=yes
7089 else
7090   $as_echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093   ac_header_preproc=no
7094 fi
7095
7096 rm -f conftest.err conftest.$ac_ext
7097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7098 $as_echo "$ac_header_preproc" >&6; }
7099
7100 # So?  What about this header?
7101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7102   yes:no: )
7103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7107     ac_header_preproc=yes
7108     ;;
7109   no:yes:* )
7110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7113 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7114     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7117 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7122     ( cat <<\_ASBOX
7123 ## ----------------------------------- ##
7124 ## Report this to andreas@eversberg.eu ##
7125 ## ----------------------------------- ##
7126 _ASBOX
7127      ) | sed "s/^/$as_me: WARNING:     /" >&2
7128     ;;
7129 esac
7130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7131 $as_echo_n "checking for $ac_header... " >&6; }
7132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7133   $as_echo_n "(cached) " >&6
7134 else
7135   eval "$as_ac_Header=\$ac_header_preproc"
7136 fi
7137 ac_res=`eval 'as_val=${'$as_ac_Header'}
7138                  $as_echo "$as_val"'`
7139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7140 $as_echo "$ac_res" >&6; }
7141
7142 fi
7143 as_val=`eval 'as_val=${'$as_ac_Header'}
7144                  $as_echo "$as_val"'`
7145    if test "x$as_val" = x""yes; then
7146   cat >>confdefs.h <<_ACEOF
7147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148 _ACEOF
7149
7150 fi
7151
7152 done
7153
7154
7155 # Checks for typedefs, structures, and compiler characteristics.
7156 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7157 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7158 if test "${ac_cv_header_stdbool_h+set}" = set; then
7159   $as_echo_n "(cached) " >&6
7160 else
7161   cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167
7168 #include <stdbool.h>
7169 #ifndef bool
7170  "error: bool is not defined"
7171 #endif
7172 #ifndef false
7173  "error: false is not defined"
7174 #endif
7175 #if false
7176  "error: false is not 0"
7177 #endif
7178 #ifndef true
7179  "error: true is not defined"
7180 #endif
7181 #if true != 1
7182  "error: true is not 1"
7183 #endif
7184 #ifndef __bool_true_false_are_defined
7185  "error: __bool_true_false_are_defined is not defined"
7186 #endif
7187
7188         struct s { _Bool s: 1; _Bool t; } s;
7189
7190         char a[true == 1 ? 1 : -1];
7191         char b[false == 0 ? 1 : -1];
7192         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7193         char d[(bool) 0.5 == true ? 1 : -1];
7194         bool e = &s;
7195         char f[(_Bool) 0.0 == false ? 1 : -1];
7196         char g[true];
7197         char h[sizeof (_Bool)];
7198         char i[sizeof s.t];
7199         enum { j = false, k = true, l = false * true, m = true * 256 };
7200         /* The following fails for
7201            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7202         _Bool n[m];
7203         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7204         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7205 #       if defined __xlc__ || defined __GNUC__
7206          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7207             reported by James Lemley on 2005-10-05; see
7208             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7209             This test is not quite right, since xlc is allowed to
7210             reject this program, as the initializer for xlcbug is
7211             not one of the forms that C requires support for.
7212             However, doing the test right would require a runtime
7213             test, and that would make cross-compilation harder.
7214             Let us hope that IBM fixes the xlc bug, and also adds
7215             support for this kind of constant expression.  In the
7216             meantime, this test will reject xlc, which is OK, since
7217             our stdbool.h substitute should suffice.  We also test
7218             this with GCC, where it should work, to detect more
7219             quickly whether someone messes up the test in the
7220             future.  */
7221          char digs[] = "0123456789";
7222          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7223 #       endif
7224         /* Catch a bug in an HP-UX C compiler.  See
7225            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7226            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7227          */
7228         _Bool q = true;
7229         _Bool *pq = &q;
7230
7231 int
7232 main ()
7233 {
7234
7235         *pq |= q;
7236         *pq |= ! q;
7237         /* Refer to every declared value, to avoid compiler optimizations.  */
7238         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7239                 + !m + !n + !o + !p + !q + !pq);
7240
7241   ;
7242   return 0;
7243 }
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7247 case "(($ac_try" in
7248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249   *) ac_try_echo=$ac_try;;
7250 esac
7251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7252 $as_echo "$ac_try_echo") >&5
7253   (eval "$ac_compile") 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } && {
7260          test -z "$ac_c_werror_flag" ||
7261          test ! -s conftest.err
7262        } && test -s conftest.$ac_objext; then
7263   ac_cv_header_stdbool_h=yes
7264 else
7265   $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268         ac_cv_header_stdbool_h=no
7269 fi
7270
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7274 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7275 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7276 $as_echo_n "checking for _Bool... " >&6; }
7277 if test "${ac_cv_type__Bool+set}" = set; then
7278   $as_echo_n "(cached) " >&6
7279 else
7280   ac_cv_type__Bool=no
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h.  */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h.  */
7287 $ac_includes_default
7288 int
7289 main ()
7290 {
7291 if (sizeof (_Bool))
7292        return 0;
7293   ;
7294   return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7299 case "(($ac_try" in
7300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301   *) ac_try_echo=$ac_try;;
7302 esac
7303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7304 $as_echo "$ac_try_echo") >&5
7305   (eval "$ac_compile") 2>conftest.er1
7306   ac_status=$?
7307   grep -v '^ *+' conftest.er1 >conftest.err
7308   rm -f conftest.er1
7309   cat conftest.err >&5
7310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); } && {
7312          test -z "$ac_c_werror_flag" ||
7313          test ! -s conftest.err
7314        } && test -s conftest.$ac_objext; then
7315   cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h.  */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h.  */
7321 $ac_includes_default
7322 int
7323 main ()
7324 {
7325 if (sizeof ((_Bool)))
7326           return 0;
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7333 case "(($ac_try" in
7334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335   *) ac_try_echo=$ac_try;;
7336 esac
7337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7338 $as_echo "$ac_try_echo") >&5
7339   (eval "$ac_compile") 2>conftest.er1
7340   ac_status=$?
7341   grep -v '^ *+' conftest.er1 >conftest.err
7342   rm -f conftest.er1
7343   cat conftest.err >&5
7344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); } && {
7346          test -z "$ac_c_werror_flag" ||
7347          test ! -s conftest.err
7348        } && test -s conftest.$ac_objext; then
7349   :
7350 else
7351   $as_echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354         ac_cv_type__Bool=yes
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 else
7359   $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362
7363 fi
7364
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7368 $as_echo "$ac_cv_type__Bool" >&6; }
7369 if test "x$ac_cv_type__Bool" = x""yes; then
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE__BOOL 1
7373 _ACEOF
7374
7375
7376 fi
7377
7378 if test $ac_cv_header_stdbool_h = yes; then
7379
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_STDBOOL_H 1
7382 _ACEOF
7383
7384 fi
7385
7386 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7387 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7388 if test "${ac_cv_c_const+set}" = set; then
7389   $as_echo_n "(cached) " >&6
7390 else
7391   cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397
7398 int
7399 main ()
7400 {
7401 /* FIXME: Include the comments suggested by Paul. */
7402 #ifndef __cplusplus
7403   /* Ultrix mips cc rejects this.  */
7404   typedef int charset[2];
7405   const charset cs;
7406   /* SunOS 4.1.1 cc rejects this.  */
7407   char const *const *pcpcc;
7408   char **ppc;
7409   /* NEC SVR4.0.2 mips cc rejects this.  */
7410   struct point {int x, y;};
7411   static struct point const zero = {0,0};
7412   /* AIX XL C 1.02.0.0 rejects this.
7413      It does not let you subtract one const X* pointer from another in
7414      an arm of an if-expression whose if-part is not a constant
7415      expression */
7416   const char *g = "string";
7417   pcpcc = &g + (g ? g-g : 0);
7418   /* HPUX 7.0 cc rejects these. */
7419   ++pcpcc;
7420   ppc = (char**) pcpcc;
7421   pcpcc = (char const *const *) ppc;
7422   { /* SCO 3.2v4 cc rejects this.  */
7423     char *t;
7424     char const *s = 0 ? (char *) 0 : (char const *) 0;
7425
7426     *t++ = 0;
7427     if (s) return 0;
7428   }
7429   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7430     int x[] = {25, 17};
7431     const int *foo = &x[0];
7432     ++foo;
7433   }
7434   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7435     typedef const int *iptr;
7436     iptr p = 0;
7437     ++p;
7438   }
7439   { /* AIX XL C 1.02.0.0 rejects this saying
7440        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7441     struct s { int j; const int *ap[3]; };
7442     struct s *b; b->j = 5;
7443   }
7444   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7445     const int foo = 10;
7446     if (!foo) return 0;
7447   }
7448   return !cs[0] && !zero.x;
7449 #endif
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463   (eval "$ac_compile") 2>conftest.er1
7464   ac_status=$?
7465   grep -v '^ *+' conftest.er1 >conftest.err
7466   rm -f conftest.er1
7467   cat conftest.err >&5
7468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } && {
7470          test -z "$ac_c_werror_flag" ||
7471          test ! -s conftest.err
7472        } && test -s conftest.$ac_objext; then
7473   ac_cv_c_const=yes
7474 else
7475   $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478         ac_cv_c_const=no
7479 fi
7480
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7484 $as_echo "$ac_cv_c_const" >&6; }
7485 if test $ac_cv_c_const = no; then
7486
7487 cat >>confdefs.h <<\_ACEOF
7488 #define const /**/
7489 _ACEOF
7490
7491 fi
7492
7493 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7494 $as_echo_n "checking for inline... " >&6; }
7495 if test "${ac_cv_c_inline+set}" = set; then
7496   $as_echo_n "(cached) " >&6
7497 else
7498   ac_cv_c_inline=no
7499 for ac_kw in inline __inline__ __inline; do
7500   cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #ifndef __cplusplus
7507 typedef int foo_t;
7508 static $ac_kw foo_t static_foo () {return 0; }
7509 $ac_kw foo_t foo () {return 0; }
7510 #endif
7511
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7515 case "(($ac_try" in
7516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517   *) ac_try_echo=$ac_try;;
7518 esac
7519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7520 $as_echo "$ac_try_echo") >&5
7521   (eval "$ac_compile") 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } && {
7528          test -z "$ac_c_werror_flag" ||
7529          test ! -s conftest.err
7530        } && test -s conftest.$ac_objext; then
7531   ac_cv_c_inline=$ac_kw
7532 else
7533   $as_echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536
7537 fi
7538
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540   test "$ac_cv_c_inline" != no && break
7541 done
7542
7543 fi
7544 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7545 $as_echo "$ac_cv_c_inline" >&6; }
7546
7547
7548 case $ac_cv_c_inline in
7549   inline | yes) ;;
7550   *)
7551     case $ac_cv_c_inline in
7552       no) ac_val=;;
7553       *) ac_val=$ac_cv_c_inline;;
7554     esac
7555     cat >>confdefs.h <<_ACEOF
7556 #ifndef __cplusplus
7557 #define inline $ac_val
7558 #endif
7559 _ACEOF
7560     ;;
7561 esac
7562
7563 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7564 $as_echo_n "checking for pid_t... " >&6; }
7565 if test "${ac_cv_type_pid_t+set}" = set; then
7566   $as_echo_n "(cached) " >&6
7567 else
7568   ac_cv_type_pid_t=no
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 $ac_includes_default
7576 int
7577 main ()
7578 {
7579 if (sizeof (pid_t))
7580        return 0;
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589   *) ac_try_echo=$ac_try;;
7590 esac
7591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7592 $as_echo "$ac_try_echo") >&5
7593   (eval "$ac_compile") 2>conftest.er1
7594   ac_status=$?
7595   grep -v '^ *+' conftest.er1 >conftest.err
7596   rm -f conftest.er1
7597   cat conftest.err >&5
7598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } && {
7600          test -z "$ac_c_werror_flag" ||
7601          test ! -s conftest.err
7602        } && test -s conftest.$ac_objext; then
7603   cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 $ac_includes_default
7610 int
7611 main ()
7612 {
7613 if (sizeof ((pid_t)))
7614           return 0;
7615   ;
7616   return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7621 case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7626 $as_echo "$ac_try_echo") >&5
7627   (eval "$ac_compile") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } && {
7634          test -z "$ac_c_werror_flag" ||
7635          test ! -s conftest.err
7636        } && test -s conftest.$ac_objext; then
7637   :
7638 else
7639   $as_echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642         ac_cv_type_pid_t=yes
7643 fi
7644
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 else
7647   $as_echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650
7651 fi
7652
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7656 $as_echo "$ac_cv_type_pid_t" >&6; }
7657 if test "x$ac_cv_type_pid_t" = x""yes; then
7658   :
7659 else
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define pid_t int
7663 _ACEOF
7664
7665 fi
7666
7667 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7668 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7669 if test "${ac_cv_header_time+set}" = set; then
7670   $as_echo_n "(cached) " >&6
7671 else
7672   cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 #include <sys/types.h>
7679 #include <sys/time.h>
7680 #include <time.h>
7681
7682 int
7683 main ()
7684 {
7685 if ((struct tm *) 0)
7686 return 0;
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699   (eval "$ac_compile") 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } && {
7706          test -z "$ac_c_werror_flag" ||
7707          test ! -s conftest.err
7708        } && test -s conftest.$ac_objext; then
7709   ac_cv_header_time=yes
7710 else
7711   $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714         ac_cv_header_time=no
7715 fi
7716
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7720 $as_echo "$ac_cv_header_time" >&6; }
7721 if test $ac_cv_header_time = yes; then
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define TIME_WITH_SYS_TIME 1
7725 _ACEOF
7726
7727 fi
7728
7729 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7730 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7731 if test "${ac_cv_struct_tm+set}" = set; then
7732   $as_echo_n "(cached) " >&6
7733 else
7734   cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740 #include <sys/types.h>
7741 #include <time.h>
7742
7743 int
7744 main ()
7745 {
7746 struct tm tm;
7747                                      int *p = &tm.tm_sec;
7748                                      return !p;
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757   *) ac_try_echo=$ac_try;;
7758 esac
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761   (eval "$ac_compile") 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } && {
7768          test -z "$ac_c_werror_flag" ||
7769          test ! -s conftest.err
7770        } && test -s conftest.$ac_objext; then
7771   ac_cv_struct_tm=time.h
7772 else
7773   $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7775
7776         ac_cv_struct_tm=sys/time.h
7777 fi
7778
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 fi
7781 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7782 $as_echo "$ac_cv_struct_tm" >&6; }
7783 if test $ac_cv_struct_tm = sys/time.h; then
7784
7785 cat >>confdefs.h <<\_ACEOF
7786 #define TM_IN_SYS_TIME 1
7787 _ACEOF
7788
7789 fi
7790
7791
7792 # Checks for library functions.
7793
7794 for ac_header in vfork.h
7795 do
7796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7798   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 $as_echo_n "checking for $ac_header... " >&6; }
7800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7801   $as_echo_n "(cached) " >&6
7802 fi
7803 ac_res=`eval 'as_val=${'$as_ac_Header'}
7804                  $as_echo "$as_val"'`
7805                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7806 $as_echo "$ac_res" >&6; }
7807 else
7808   # Is the header compilable?
7809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 $as_echo_n "checking $ac_header usability... " >&6; }
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817 $ac_includes_default
7818 #include <$ac_header>
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827 $as_echo "$ac_try_echo") >&5
7828   (eval "$ac_compile") 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } && {
7835          test -z "$ac_c_werror_flag" ||
7836          test ! -s conftest.err
7837        } && test -s conftest.$ac_objext; then
7838   ac_header_compiler=yes
7839 else
7840   $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843         ac_header_compiler=no
7844 fi
7845
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7848 $as_echo "$ac_header_compiler" >&6; }
7849
7850 # Is the header present?
7851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7852 $as_echo_n "checking $ac_header presence... " >&6; }
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h.  */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h.  */
7859 #include <$ac_header>
7860 _ACEOF
7861 if { (ac_try="$ac_cpp conftest.$ac_ext"
7862 case "(($ac_try" in
7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864   *) ac_try_echo=$ac_try;;
7865 esac
7866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7867 $as_echo "$ac_try_echo") >&5
7868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } >/dev/null && {
7875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7876          test ! -s conftest.err
7877        }; then
7878   ac_header_preproc=yes
7879 else
7880   $as_echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883   ac_header_preproc=no
7884 fi
7885
7886 rm -f conftest.err conftest.$ac_ext
7887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 $as_echo "$ac_header_preproc" >&6; }
7889
7890 # So?  What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892   yes:no: )
7893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897     ac_header_preproc=yes
7898     ;;
7899   no:yes:* )
7900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7903 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7907 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7912     ( cat <<\_ASBOX
7913 ## ----------------------------------- ##
7914 ## Report this to andreas@eversberg.eu ##
7915 ## ----------------------------------- ##
7916 _ASBOX
7917      ) | sed "s/^/$as_me: WARNING:     /" >&2
7918     ;;
7919 esac
7920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7921 $as_echo_n "checking for $ac_header... " >&6; }
7922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7923   $as_echo_n "(cached) " >&6
7924 else
7925   eval "$as_ac_Header=\$ac_header_preproc"
7926 fi
7927 ac_res=`eval 'as_val=${'$as_ac_Header'}
7928                  $as_echo "$as_val"'`
7929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7930 $as_echo "$ac_res" >&6; }
7931
7932 fi
7933 as_val=`eval 'as_val=${'$as_ac_Header'}
7934                  $as_echo "$as_val"'`
7935    if test "x$as_val" = x""yes; then
7936   cat >>confdefs.h <<_ACEOF
7937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7938 _ACEOF
7939
7940 fi
7941
7942 done
7943
7944
7945
7946 for ac_func in fork vfork
7947 do
7948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7949 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7950 $as_echo_n "checking for $ac_func... " >&6; }
7951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7952   $as_echo_n "(cached) " >&6
7953 else
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7962 #define $ac_func innocuous_$ac_func
7963
7964 /* System header to define __stub macros and hopefully few prototypes,
7965     which can conflict with char $ac_func (); below.
7966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7967     <limits.h> exists even on freestanding compilers.  */
7968
7969 #ifdef __STDC__
7970 # include <limits.h>
7971 #else
7972 # include <assert.h>
7973 #endif
7974
7975 #undef $ac_func
7976
7977 /* Override any GCC internal prototype to avoid an error.
7978    Use char because int might match the return type of a GCC
7979    builtin and then its argument prototype would still apply.  */
7980 #ifdef __cplusplus
7981 extern "C"
7982 #endif
7983 char $ac_func ();
7984 /* The GNU C library defines this for functions which it implements
7985     to always fail with ENOSYS.  Some functions are actually named
7986     something starting with __ and the normal name is an alias.  */
7987 #if defined __stub_$ac_func || defined __stub___$ac_func
7988 choke me
7989 #endif
7990
7991 int
7992 main ()
7993 {
7994 return $ac_func ();
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006 $as_echo "$ac_try_echo") >&5
8007   (eval "$ac_link") 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } && {
8014          test -z "$ac_c_werror_flag" ||
8015          test ! -s conftest.err
8016        } && test -s conftest$ac_exeext && {
8017          test "$cross_compiling" = yes ||
8018          $as_test_x conftest$ac_exeext
8019        }; then
8020   eval "$as_ac_var=yes"
8021 else
8022   $as_echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         eval "$as_ac_var=no"
8026 fi
8027
8028 rm -rf conftest.dSYM
8029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8030       conftest$ac_exeext conftest.$ac_ext
8031 fi
8032 ac_res=`eval 'as_val=${'$as_ac_var'}
8033                  $as_echo "$as_val"'`
8034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8035 $as_echo "$ac_res" >&6; }
8036 as_val=`eval 'as_val=${'$as_ac_var'}
8037                  $as_echo "$as_val"'`
8038    if test "x$as_val" = x""yes; then
8039   cat >>confdefs.h <<_ACEOF
8040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8041 _ACEOF
8042
8043 fi
8044 done
8045
8046 if test "x$ac_cv_func_fork" = xyes; then
8047   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8048 $as_echo_n "checking for working fork... " >&6; }
8049 if test "${ac_cv_func_fork_works+set}" = set; then
8050   $as_echo_n "(cached) " >&6
8051 else
8052   if test "$cross_compiling" = yes; then
8053   ac_cv_func_fork_works=cross
8054 else
8055   cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061 $ac_includes_default
8062 int
8063 main ()
8064 {
8065
8066           /* By Ruediger Kuhlmann. */
8067           return fork () < 0;
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081   (eval "$ac_link") 2>&5
8082   ac_status=$?
8083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8085   { (case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091   (eval "$ac_try") 2>&5
8092   ac_status=$?
8093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; }; then
8095   ac_cv_func_fork_works=yes
8096 else
8097   $as_echo "$as_me: program exited with status $ac_status" >&5
8098 $as_echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 ( exit $ac_status )
8102 ac_cv_func_fork_works=no
8103 fi
8104 rm -rf conftest.dSYM
8105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8106 fi
8107
8108
8109 fi
8110 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8111 $as_echo "$ac_cv_func_fork_works" >&6; }
8112
8113 else
8114   ac_cv_func_fork_works=$ac_cv_func_fork
8115 fi
8116 if test "x$ac_cv_func_fork_works" = xcross; then
8117   case $host in
8118     *-*-amigaos* | *-*-msdosdjgpp*)
8119       # Override, as these systems have only a dummy fork() stub
8120       ac_cv_func_fork_works=no
8121       ;;
8122     *)
8123       ac_cv_func_fork_works=yes
8124       ;;
8125   esac
8126   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8127 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8128 fi
8129 ac_cv_func_vfork_works=$ac_cv_func_vfork
8130 if test "x$ac_cv_func_vfork" = xyes; then
8131   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8132 $as_echo_n "checking for working vfork... " >&6; }
8133 if test "${ac_cv_func_vfork_works+set}" = set; then
8134   $as_echo_n "(cached) " >&6
8135 else
8136   if test "$cross_compiling" = yes; then
8137   ac_cv_func_vfork_works=cross
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 /* Thanks to Paul Eggert for this test.  */
8146 $ac_includes_default
8147 #include <sys/wait.h>
8148 #ifdef HAVE_VFORK_H
8149 # include <vfork.h>
8150 #endif
8151 /* On some sparc systems, changes by the child to local and incoming
8152    argument registers are propagated back to the parent.  The compiler
8153    is told about this with #include <vfork.h>, but some compilers
8154    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8155    static variable whose address is put into a register that is
8156    clobbered by the vfork.  */
8157 static void
8158 #ifdef __cplusplus
8159 sparc_address_test (int arg)
8160 # else
8161 sparc_address_test (arg) int arg;
8162 #endif
8163 {
8164   static pid_t child;
8165   if (!child) {
8166     child = vfork ();
8167     if (child < 0) {
8168       perror ("vfork");
8169       _exit(2);
8170     }
8171     if (!child) {
8172       arg = getpid();
8173       write(-1, "", 0);
8174       _exit (arg);
8175     }
8176   }
8177 }
8178
8179 int
8180 main ()
8181 {
8182   pid_t parent = getpid ();
8183   pid_t child;
8184
8185   sparc_address_test (0);
8186
8187   child = vfork ();
8188
8189   if (child == 0) {
8190     /* Here is another test for sparc vfork register problems.  This
8191        test uses lots of local variables, at least as many local
8192        variables as main has allocated so far including compiler
8193        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8194        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8195        reuse the register of parent for one of the local variables,
8196        since it will think that parent can't possibly be used any more
8197        in this routine.  Assigning to the local variable will thus
8198        munge parent in the parent process.  */
8199     pid_t
8200       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8201       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8202     /* Convince the compiler that p..p7 are live; otherwise, it might
8203        use the same hardware register for all 8 local variables.  */
8204     if (p != p1 || p != p2 || p != p3 || p != p4
8205         || p != p5 || p != p6 || p != p7)
8206       _exit(1);
8207
8208     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8209        from child file descriptors.  If the child closes a descriptor
8210        before it execs or exits, this munges the parent's descriptor
8211        as well.  Test for this by closing stdout in the child.  */
8212     _exit(close(fileno(stdout)) != 0);
8213   } else {
8214     int status;
8215     struct stat st;
8216
8217     while (wait(&status) != child)
8218       ;
8219     return (
8220          /* Was there some problem with vforking?  */
8221          child < 0
8222
8223          /* Did the child fail?  (This shouldn't happen.)  */
8224          || status
8225
8226          /* Did the vfork/compiler bug occur?  */
8227          || parent != getpid()
8228
8229          /* Did the file descriptor bug occur?  */
8230          || fstat(fileno(stdout), &st) != 0
8231          );
8232   }
8233 }
8234 _ACEOF
8235 rm -f conftest$ac_exeext
8236 if { (ac_try="$ac_link"
8237 case "(($ac_try" in
8238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239   *) ac_try_echo=$ac_try;;
8240 esac
8241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8242 $as_echo "$ac_try_echo") >&5
8243   (eval "$ac_link") 2>&5
8244   ac_status=$?
8245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8247   { (case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253   (eval "$ac_try") 2>&5
8254   ac_status=$?
8255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; }; then
8257   ac_cv_func_vfork_works=yes
8258 else
8259   $as_echo "$as_me: program exited with status $ac_status" >&5
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ( exit $ac_status )
8264 ac_cv_func_vfork_works=no
8265 fi
8266 rm -rf conftest.dSYM
8267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8268 fi
8269
8270
8271 fi
8272 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8273 $as_echo "$ac_cv_func_vfork_works" >&6; }
8274
8275 fi;
8276 if test "x$ac_cv_func_fork_works" = xcross; then
8277   ac_cv_func_vfork_works=$ac_cv_func_vfork
8278   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8279 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8280 fi
8281
8282 if test "x$ac_cv_func_vfork_works" = xyes; then
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_WORKING_VFORK 1
8286 _ACEOF
8287
8288 else
8289
8290 cat >>confdefs.h <<\_ACEOF
8291 #define vfork fork
8292 _ACEOF
8293
8294 fi
8295 if test "x$ac_cv_func_fork_works" = xyes; then
8296
8297 cat >>confdefs.h <<\_ACEOF
8298 #define HAVE_WORKING_FORK 1
8299 _ACEOF
8300
8301 fi
8302
8303 if test $ac_cv_c_compiler_gnu = yes; then
8304     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8305 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8306 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8307   $as_echo_n "(cached) " >&6
8308 else
8309     ac_pattern="Autoconf.*'x'"
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #include <sgtty.h>
8317 Autoconf TIOCGETP
8318 _ACEOF
8319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8320   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8321   ac_cv_prog_gcc_traditional=yes
8322 else
8323   ac_cv_prog_gcc_traditional=no
8324 fi
8325 rm -f conftest*
8326
8327
8328   if test $ac_cv_prog_gcc_traditional = no; then
8329     cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h.  */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h.  */
8335 #include <termio.h>
8336 Autoconf TCGETA
8337 _ACEOF
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8340   ac_cv_prog_gcc_traditional=yes
8341 fi
8342 rm -f conftest*
8343
8344   fi
8345 fi
8346 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8347 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8348   if test $ac_cv_prog_gcc_traditional = yes; then
8349     CC="$CC -traditional"
8350   fi
8351 fi
8352
8353 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8354 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8355 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8356   $as_echo_n "(cached) " >&6
8357 else
8358   rm -f conftest.sym conftest.file
8359 echo >conftest.file
8360 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8361   if test "$cross_compiling" = yes; then
8362   ac_cv_func_lstat_dereferences_slashed_symlink=no
8363 else
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 $ac_includes_default
8371 int
8372 main ()
8373 {
8374 struct stat sbuf;
8375      /* Linux will dereference the symlink and fail.
8376         That is better in the sense that it means we will not
8377         have to compile and use the lstat wrapper.  */
8378      return lstat ("conftest.sym/", &sbuf) == 0;
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8390 $as_echo "$ac_try_echo") >&5
8391   (eval "$ac_link") 2>&5
8392   ac_status=$?
8393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8395   { (case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401   (eval "$ac_try") 2>&5
8402   ac_status=$?
8403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8406 else
8407   $as_echo "$as_me: program exited with status $ac_status" >&5
8408 $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ( exit $ac_status )
8412 ac_cv_func_lstat_dereferences_slashed_symlink=no
8413 fi
8414 rm -rf conftest.dSYM
8415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8416 fi
8417
8418
8419 else
8420   # If the `ln -s' command failed, then we probably don't even
8421   # have an lstat function.
8422   ac_cv_func_lstat_dereferences_slashed_symlink=no
8423 fi
8424 rm -f conftest.sym conftest.file
8425
8426 fi
8427 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8428 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8429
8430 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8431
8432 cat >>confdefs.h <<_ACEOF
8433 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8434 _ACEOF
8435
8436
8437 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8438   case " $LIBOBJS " in
8439   *" lstat.$ac_objext "* ) ;;
8440   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8441  ;;
8442 esac
8443
8444 fi
8445
8446 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8447 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8448 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8449   $as_echo_n "(cached) " >&6
8450 else
8451   if test "$cross_compiling" = yes; then
8452   ac_cv_func_lstat_empty_string_bug=yes
8453 else
8454   cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460 $ac_includes_default
8461 int
8462 main ()
8463 {
8464 struct stat sbuf;
8465   return lstat ("", &sbuf) == 0;
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478   (eval "$ac_link") 2>&5
8479   ac_status=$?
8480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8482   { (case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8487 $as_echo "$ac_try_echo") >&5
8488   (eval "$ac_try") 2>&5
8489   ac_status=$?
8490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_func_lstat_empty_string_bug=no
8493 else
8494   $as_echo "$as_me: program exited with status $ac_status" >&5
8495 $as_echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ( exit $ac_status )
8499 ac_cv_func_lstat_empty_string_bug=yes
8500 fi
8501 rm -rf conftest.dSYM
8502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8503 fi
8504
8505
8506 fi
8507 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8508 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8509 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8510   case " $LIBOBJS " in
8511   *" lstat.$ac_objext "* ) ;;
8512   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8513  ;;
8514 esac
8515
8516
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8519 _ACEOF
8520
8521 fi
8522
8523 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8524 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8525 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8526   $as_echo_n "(cached) " >&6
8527 else
8528   rm -f conftest.sym conftest.file
8529 echo >conftest.file
8530 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8531   if test "$cross_compiling" = yes; then
8532   ac_cv_func_lstat_dereferences_slashed_symlink=no
8533 else
8534   cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540 $ac_includes_default
8541 int
8542 main ()
8543 {
8544 struct stat sbuf;
8545      /* Linux will dereference the symlink and fail.
8546         That is better in the sense that it means we will not
8547         have to compile and use the lstat wrapper.  */
8548      return lstat ("conftest.sym/", &sbuf) == 0;
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561   (eval "$ac_link") 2>&5
8562   ac_status=$?
8563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8565   { (case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571   (eval "$ac_try") 2>&5
8572   ac_status=$?
8573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8576 else
8577   $as_echo "$as_me: program exited with status $ac_status" >&5
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ( exit $ac_status )
8582 ac_cv_func_lstat_dereferences_slashed_symlink=no
8583 fi
8584 rm -rf conftest.dSYM
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8586 fi
8587
8588
8589 else
8590   # If the `ln -s' command failed, then we probably don't even
8591   # have an lstat function.
8592   ac_cv_func_lstat_dereferences_slashed_symlink=no
8593 fi
8594 rm -f conftest.sym conftest.file
8595
8596 fi
8597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8598 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8599
8600 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8601
8602 cat >>confdefs.h <<_ACEOF
8603 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8604 _ACEOF
8605
8606
8607 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8608   case " $LIBOBJS " in
8609   *" lstat.$ac_objext "* ) ;;
8610   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8611  ;;
8612 esac
8613
8614 fi
8615
8616
8617 for ac_header in stdlib.h
8618 do
8619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8621   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8622 $as_echo_n "checking for $ac_header... " >&6; }
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624   $as_echo_n "(cached) " >&6
8625 fi
8626 ac_res=`eval 'as_val=${'$as_ac_Header'}
8627                  $as_echo "$as_val"'`
8628                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8629 $as_echo "$ac_res" >&6; }
8630 else
8631   # Is the header compilable?
8632 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8633 $as_echo_n "checking $ac_header usability... " >&6; }
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 $ac_includes_default
8641 #include <$ac_header>
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647   *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651   (eval "$ac_compile") 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } && {
8658          test -z "$ac_c_werror_flag" ||
8659          test ! -s conftest.err
8660        } && test -s conftest.$ac_objext; then
8661   ac_header_compiler=yes
8662 else
8663   $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666         ac_header_compiler=no
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8671 $as_echo "$ac_header_compiler" >&6; }
8672
8673 # Is the header present?
8674 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8675 $as_echo_n "checking $ac_header presence... " >&6; }
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682 #include <$ac_header>
8683 _ACEOF
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8690 $as_echo "$ac_try_echo") >&5
8691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } >/dev/null && {
8698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8699          test ! -s conftest.err
8700        }; then
8701   ac_header_preproc=yes
8702 else
8703   $as_echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706   ac_header_preproc=no
8707 fi
8708
8709 rm -f conftest.err conftest.$ac_ext
8710 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711 $as_echo "$ac_header_preproc" >&6; }
8712
8713 # So?  What about this header?
8714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8715   yes:no: )
8716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720     ac_header_preproc=yes
8721     ;;
8722   no:yes:* )
8723     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8726 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8727     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8730 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8735     ( cat <<\_ASBOX
8736 ## ----------------------------------- ##
8737 ## Report this to andreas@eversberg.eu ##
8738 ## ----------------------------------- ##
8739 _ASBOX
8740      ) | sed "s/^/$as_me: WARNING:     /" >&2
8741     ;;
8742 esac
8743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8744 $as_echo_n "checking for $ac_header... " >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746   $as_echo_n "(cached) " >&6
8747 else
8748   eval "$as_ac_Header=\$ac_header_preproc"
8749 fi
8750 ac_res=`eval 'as_val=${'$as_ac_Header'}
8751                  $as_echo "$as_val"'`
8752                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8753 $as_echo "$ac_res" >&6; }
8754
8755 fi
8756 as_val=`eval 'as_val=${'$as_ac_Header'}
8757                  $as_echo "$as_val"'`
8758    if test "x$as_val" = x""yes; then
8759   cat >>confdefs.h <<_ACEOF
8760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761 _ACEOF
8762
8763 fi
8764
8765 done
8766
8767 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8768 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8769 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test "$cross_compiling" = yes; then
8773   ac_cv_func_malloc_0_nonnull=no
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8782 # include <stdlib.h>
8783 #else
8784 char *malloc ();
8785 #endif
8786
8787 int
8788 main ()
8789 {
8790 return ! malloc (0);
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8797 case "(($ac_try" in
8798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799   *) ac_try_echo=$ac_try;;
8800 esac
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803   (eval "$ac_link") 2>&5
8804   ac_status=$?
8805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8807   { (case "(($ac_try" in
8808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809   *) ac_try_echo=$ac_try;;
8810 esac
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813   (eval "$ac_try") 2>&5
8814   ac_status=$?
8815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   ac_cv_func_malloc_0_nonnull=yes
8818 else
8819   $as_echo "$as_me: program exited with status $ac_status" >&5
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ( exit $ac_status )
8824 ac_cv_func_malloc_0_nonnull=no
8825 fi
8826 rm -rf conftest.dSYM
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8828 fi
8829
8830
8831 fi
8832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8833 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8834 if test $ac_cv_func_malloc_0_nonnull = yes; then
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_MALLOC 1
8838 _ACEOF
8839
8840 else
8841   cat >>confdefs.h <<\_ACEOF
8842 #define HAVE_MALLOC 0
8843 _ACEOF
8844
8845    case " $LIBOBJS " in
8846   *" malloc.$ac_objext "* ) ;;
8847   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8848  ;;
8849 esac
8850
8851
8852 cat >>confdefs.h <<\_ACEOF
8853 #define malloc rpl_malloc
8854 _ACEOF
8855
8856 fi
8857
8858
8859
8860 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8861 $as_echo_n "checking for working memcmp... " >&6; }
8862 if test "${ac_cv_func_memcmp_working+set}" = set; then
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test "$cross_compiling" = yes; then
8866   ac_cv_func_memcmp_working=no
8867 else
8868   cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874 $ac_includes_default
8875 int
8876 main ()
8877 {
8878
8879   /* Some versions of memcmp are not 8-bit clean.  */
8880   char c0 = '\100', c1 = '\200', c2 = '\201';
8881   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8882     return 1;
8883
8884   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8885      or more and with at least one buffer not starting on a 4-byte boundary.
8886      William Lewis provided this test program.   */
8887   {
8888     char foo[21];
8889     char bar[21];
8890     int i;
8891     for (i = 0; i < 4; i++)
8892       {
8893         char *a = foo + i;
8894         char *b = bar + i;
8895         strcpy (a, "--------01111111");
8896         strcpy (b, "--------10000000");
8897         if (memcmp (a, b, 16) >= 0)
8898           return 1;
8899       }
8900     return 0;
8901   }
8902
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915   (eval "$ac_link") 2>&5
8916   ac_status=$?
8917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8919   { (case "(($ac_try" in
8920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921   *) ac_try_echo=$ac_try;;
8922 esac
8923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8924 $as_echo "$ac_try_echo") >&5
8925   (eval "$ac_try") 2>&5
8926   ac_status=$?
8927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_cv_func_memcmp_working=yes
8930 else
8931   $as_echo "$as_me: program exited with status $ac_status" >&5
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ( exit $ac_status )
8936 ac_cv_func_memcmp_working=no
8937 fi
8938 rm -rf conftest.dSYM
8939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8940 fi
8941
8942
8943 fi
8944 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8945 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8946 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8947   *" memcmp.$ac_objext "* ) ;;
8948   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8949  ;;
8950 esac
8951
8952
8953 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8954 $as_echo_n "checking return type of signal handlers... " >&6; }
8955 if test "${ac_cv_type_signal+set}" = set; then
8956   $as_echo_n "(cached) " >&6
8957 else
8958   cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 #include <sys/types.h>
8965 #include <signal.h>
8966
8967 int
8968 main ()
8969 {
8970 return *(signal (0, 0)) (0) == 1;
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext
8976 if { (ac_try="$ac_compile"
8977 case "(($ac_try" in
8978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979   *) ac_try_echo=$ac_try;;
8980 esac
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983   (eval "$ac_compile") 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } && {
8990          test -z "$ac_c_werror_flag" ||
8991          test ! -s conftest.err
8992        } && test -s conftest.$ac_objext; then
8993   ac_cv_type_signal=int
8994 else
8995   $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_type_signal=void
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9004 $as_echo "$ac_cv_type_signal" >&6; }
9005
9006 cat >>confdefs.h <<_ACEOF
9007 #define RETSIGTYPE $ac_cv_type_signal
9008 _ACEOF
9009
9010
9011 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9012 $as_echo_n "checking for working strnlen... " >&6; }
9013 if test "${ac_cv_func_strnlen_working+set}" = set; then
9014   $as_echo_n "(cached) " >&6
9015 else
9016   if test "$cross_compiling" = yes; then
9017   ac_cv_func_strnlen_working=no
9018 else
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 $ac_includes_default
9026 int
9027 main ()
9028 {
9029
9030 #define S "foobar"
9031 #define S_LEN (sizeof S - 1)
9032
9033   /* At least one implementation is buggy: that of AIX 4.3 would
9034      give strnlen (S, 1) == 3.  */
9035
9036   int i;
9037   for (i = 0; i < S_LEN + 1; ++i)
9038     {
9039       int expected = i <= S_LEN ? i : S_LEN;
9040       if (strnlen (S, i) != expected)
9041         return 1;
9042     }
9043   return 0;
9044
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 rm -f conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9051 case "(($ac_try" in
9052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053   *) ac_try_echo=$ac_try;;
9054 esac
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057   (eval "$ac_link") 2>&5
9058   ac_status=$?
9059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9061   { (case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9066 $as_echo "$ac_try_echo") >&5
9067   (eval "$ac_try") 2>&5
9068   ac_status=$?
9069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; }; then
9071   ac_cv_func_strnlen_working=yes
9072 else
9073   $as_echo "$as_me: program exited with status $ac_status" >&5
9074 $as_echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ( exit $ac_status )
9078 ac_cv_func_strnlen_working=no
9079 fi
9080 rm -rf conftest.dSYM
9081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9082 fi
9083
9084
9085 fi
9086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9087 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9088 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9089   *" strnlen.$ac_objext "* ) ;;
9090   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9091  ;;
9092 esac
9093
9094
9095 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9096 $as_echo_n "checking for working strtod... " >&6; }
9097 if test "${ac_cv_func_strtod+set}" = set; then
9098   $as_echo_n "(cached) " >&6
9099 else
9100   if test "$cross_compiling" = yes; then
9101   ac_cv_func_strtod=no
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 $ac_includes_default
9111 #ifndef strtod
9112 double strtod ();
9113 #endif
9114 int
9115 main()
9116 {
9117   {
9118     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9119     char *string = " +69";
9120     char *term;
9121     double value;
9122     value = strtod (string, &term);
9123     if (value != 69 || term != (string + 4))
9124       return 1;
9125   }
9126
9127   {
9128     /* Under Solaris 2.4, strtod returns the wrong value for the
9129        terminating character under some conditions.  */
9130     char *string = "NaN";
9131     char *term;
9132     strtod (string, &term);
9133     if (term != string && *(term - 1) == 0)
9134       return 1;
9135   }
9136   return 0;
9137 }
9138
9139 _ACEOF
9140 rm -f conftest$ac_exeext
9141 if { (ac_try="$ac_link"
9142 case "(($ac_try" in
9143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144   *) ac_try_echo=$ac_try;;
9145 esac
9146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9147 $as_echo "$ac_try_echo") >&5
9148   (eval "$ac_link") 2>&5
9149   ac_status=$?
9150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9152   { (case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157 $as_echo "$ac_try_echo") >&5
9158   (eval "$ac_try") 2>&5
9159   ac_status=$?
9160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_cv_func_strtod=yes
9163 else
9164   $as_echo "$as_me: program exited with status $ac_status" >&5
9165 $as_echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ( exit $ac_status )
9169 ac_cv_func_strtod=no
9170 fi
9171 rm -rf conftest.dSYM
9172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9173 fi
9174
9175
9176 fi
9177 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9178 $as_echo "$ac_cv_func_strtod" >&6; }
9179 if test $ac_cv_func_strtod = no; then
9180   case " $LIBOBJS " in
9181   *" strtod.$ac_objext "* ) ;;
9182   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9183  ;;
9184 esac
9185
9186 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9187 $as_echo_n "checking for pow... " >&6; }
9188 if test "${ac_cv_func_pow+set}" = set; then
9189   $as_echo_n "(cached) " >&6
9190 else
9191   cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9199 #define pow innocuous_pow
9200
9201 /* System header to define __stub macros and hopefully few prototypes,
9202     which can conflict with char pow (); below.
9203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9204     <limits.h> exists even on freestanding compilers.  */
9205
9206 #ifdef __STDC__
9207 # include <limits.h>
9208 #else
9209 # include <assert.h>
9210 #endif
9211
9212 #undef pow
9213
9214 /* Override any GCC internal prototype to avoid an error.
9215    Use char because int might match the return type of a GCC
9216    builtin and then its argument prototype would still apply.  */
9217 #ifdef __cplusplus
9218 extern "C"
9219 #endif
9220 char pow ();
9221 /* The GNU C library defines this for functions which it implements
9222     to always fail with ENOSYS.  Some functions are actually named
9223     something starting with __ and the normal name is an alias.  */
9224 #if defined __stub_pow || defined __stub___pow
9225 choke me
9226 #endif
9227
9228 int
9229 main ()
9230 {
9231 return pow ();
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9238 case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244   (eval "$ac_link") 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } && {
9251          test -z "$ac_c_werror_flag" ||
9252          test ! -s conftest.err
9253        } && test -s conftest$ac_exeext && {
9254          test "$cross_compiling" = yes ||
9255          $as_test_x conftest$ac_exeext
9256        }; then
9257   ac_cv_func_pow=yes
9258 else
9259   $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262         ac_cv_func_pow=no
9263 fi
9264
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267       conftest$ac_exeext conftest.$ac_ext
9268 fi
9269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9270 $as_echo "$ac_cv_func_pow" >&6; }
9271
9272 if test $ac_cv_func_pow = no; then
9273   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9274 $as_echo_n "checking for pow in -lm... " >&6; }
9275 if test "${ac_cv_lib_m_pow+set}" = set; then
9276   $as_echo_n "(cached) " >&6
9277 else
9278   ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-lm  $LIBS"
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h.  */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h.  */
9286
9287 /* Override any GCC internal prototype to avoid an error.
9288    Use char because int might match the return type of a GCC
9289    builtin and then its argument prototype would still apply.  */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 char pow ();
9294 int
9295 main ()
9296 {
9297 return pow ();
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9304 case "(($ac_try" in
9305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306   *) ac_try_echo=$ac_try;;
9307 esac
9308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9309 $as_echo "$ac_try_echo") >&5
9310   (eval "$ac_link") 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } && {
9317          test -z "$ac_c_werror_flag" ||
9318          test ! -s conftest.err
9319        } && test -s conftest$ac_exeext && {
9320          test "$cross_compiling" = yes ||
9321          $as_test_x conftest$ac_exeext
9322        }; then
9323   ac_cv_lib_m_pow=yes
9324 else
9325   $as_echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328         ac_cv_lib_m_pow=no
9329 fi
9330
9331 rm -rf conftest.dSYM
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333       conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9335 fi
9336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9337 $as_echo "$ac_cv_lib_m_pow" >&6; }
9338 if test "x$ac_cv_lib_m_pow" = x""yes; then
9339   POW_LIB=-lm
9340 else
9341   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9342 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9343 fi
9344
9345 fi
9346
9347 fi
9348
9349
9350 for ac_func in vprintf
9351 do
9352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9354 $as_echo_n "checking for $ac_func... " >&6; }
9355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9356   $as_echo_n "(cached) " >&6
9357 else
9358   cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h.  */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h.  */
9364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9366 #define $ac_func innocuous_$ac_func
9367
9368 /* System header to define __stub macros and hopefully few prototypes,
9369     which can conflict with char $ac_func (); below.
9370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9371     <limits.h> exists even on freestanding compilers.  */
9372
9373 #ifdef __STDC__
9374 # include <limits.h>
9375 #else
9376 # include <assert.h>
9377 #endif
9378
9379 #undef $ac_func
9380
9381 /* Override any GCC internal prototype to avoid an error.
9382    Use char because int might match the return type of a GCC
9383    builtin and then its argument prototype would still apply.  */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 char $ac_func ();
9388 /* The GNU C library defines this for functions which it implements
9389     to always fail with ENOSYS.  Some functions are actually named
9390     something starting with __ and the normal name is an alias.  */
9391 #if defined __stub_$ac_func || defined __stub___$ac_func
9392 choke me
9393 #endif
9394
9395 int
9396 main ()
9397 {
9398 return $ac_func ();
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (ac_try="$ac_link"
9405 case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9410 $as_echo "$ac_try_echo") >&5
9411   (eval "$ac_link") 2>conftest.er1
9412   ac_status=$?
9413   grep -v '^ *+' conftest.er1 >conftest.err
9414   rm -f conftest.er1
9415   cat conftest.err >&5
9416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } && {
9418          test -z "$ac_c_werror_flag" ||
9419          test ! -s conftest.err
9420        } && test -s conftest$ac_exeext && {
9421          test "$cross_compiling" = yes ||
9422          $as_test_x conftest$ac_exeext
9423        }; then
9424   eval "$as_ac_var=yes"
9425 else
9426   $as_echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429         eval "$as_ac_var=no"
9430 fi
9431
9432 rm -rf conftest.dSYM
9433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9434       conftest$ac_exeext conftest.$ac_ext
9435 fi
9436 ac_res=`eval 'as_val=${'$as_ac_var'}
9437                  $as_echo "$as_val"'`
9438                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9439 $as_echo "$ac_res" >&6; }
9440 as_val=`eval 'as_val=${'$as_ac_var'}
9441                  $as_echo "$as_val"'`
9442    if test "x$as_val" = x""yes; then
9443   cat >>confdefs.h <<_ACEOF
9444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9445 _ACEOF
9446
9447 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9448 $as_echo_n "checking for _doprnt... " >&6; }
9449 if test "${ac_cv_func__doprnt+set}" = set; then
9450   $as_echo_n "(cached) " >&6
9451 else
9452   cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9460 #define _doprnt innocuous__doprnt
9461
9462 /* System header to define __stub macros and hopefully few prototypes,
9463     which can conflict with char _doprnt (); below.
9464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465     <limits.h> exists even on freestanding compilers.  */
9466
9467 #ifdef __STDC__
9468 # include <limits.h>
9469 #else
9470 # include <assert.h>
9471 #endif
9472
9473 #undef _doprnt
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char _doprnt ();
9482 /* The GNU C library defines this for functions which it implements
9483     to always fail with ENOSYS.  Some functions are actually named
9484     something starting with __ and the normal name is an alias.  */
9485 #if defined __stub__doprnt || defined __stub____doprnt
9486 choke me
9487 #endif
9488
9489 int
9490 main ()
9491 {
9492 return _doprnt ();
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9499 case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9504 $as_echo "$ac_try_echo") >&5
9505   (eval "$ac_link") 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && {
9512          test -z "$ac_c_werror_flag" ||
9513          test ! -s conftest.err
9514        } && test -s conftest$ac_exeext && {
9515          test "$cross_compiling" = yes ||
9516          $as_test_x conftest$ac_exeext
9517        }; then
9518   ac_cv_func__doprnt=yes
9519 else
9520   $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523         ac_cv_func__doprnt=no
9524 fi
9525
9526 rm -rf conftest.dSYM
9527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9528       conftest$ac_exeext conftest.$ac_ext
9529 fi
9530 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9531 $as_echo "$ac_cv_func__doprnt" >&6; }
9532 if test "x$ac_cv_func__doprnt" = x""yes; then
9533
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_DOPRNT 1
9536 _ACEOF
9537
9538 fi
9539
9540 fi
9541 done
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9557 do
9558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9560 $as_echo_n "checking for $ac_func... " >&6; }
9561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9562   $as_echo_n "(cached) " >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572 #define $ac_func innocuous_$ac_func
9573
9574 /* System header to define __stub macros and hopefully few prototypes,
9575     which can conflict with char $ac_func (); below.
9576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577     <limits.h> exists even on freestanding compilers.  */
9578
9579 #ifdef __STDC__
9580 # include <limits.h>
9581 #else
9582 # include <assert.h>
9583 #endif
9584
9585 #undef $ac_func
9586
9587 /* Override any GCC internal prototype to avoid an error.
9588    Use char because int might match the return type of a GCC
9589    builtin and then its argument prototype would still apply.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char $ac_func ();
9594 /* The GNU C library defines this for functions which it implements
9595     to always fail with ENOSYS.  Some functions are actually named
9596     something starting with __ and the normal name is an alias.  */
9597 #if defined __stub_$ac_func || defined __stub___$ac_func
9598 choke me
9599 #endif
9600
9601 int
9602 main ()
9603 {
9604 return $ac_func ();
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617   (eval "$ac_link") 2>conftest.er1
9618   ac_status=$?
9619   grep -v '^ *+' conftest.er1 >conftest.err
9620   rm -f conftest.er1
9621   cat conftest.err >&5
9622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } && {
9624          test -z "$ac_c_werror_flag" ||
9625          test ! -s conftest.err
9626        } && test -s conftest$ac_exeext && {
9627          test "$cross_compiling" = yes ||
9628          $as_test_x conftest$ac_exeext
9629        }; then
9630   eval "$as_ac_var=yes"
9631 else
9632   $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635         eval "$as_ac_var=no"
9636 fi
9637
9638 rm -rf conftest.dSYM
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640       conftest$ac_exeext conftest.$ac_ext
9641 fi
9642 ac_res=`eval 'as_val=${'$as_ac_var'}
9643                  $as_echo "$as_val"'`
9644                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9645 $as_echo "$ac_res" >&6; }
9646 as_val=`eval 'as_val=${'$as_ac_var'}
9647                  $as_echo "$as_val"'`
9648    if test "x$as_val" = x""yes; then
9649   cat >>confdefs.h <<_ACEOF
9650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 fi
9654 done
9655
9656
9657
9658 ac_config_files="$ac_config_files Makefile"
9659
9660 cat >confcache <<\_ACEOF
9661 # This file is a shell script that caches the results of configure
9662 # tests run on this system so they can be shared between configure
9663 # scripts and configure runs, see configure's option --config-cache.
9664 # It is not useful on other systems.  If it contains results you don't
9665 # want to keep, you may remove or edit it.
9666 #
9667 # config.status only pays attention to the cache file if you give it
9668 # the --recheck option to rerun configure.
9669 #
9670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9672 # following values.
9673
9674 _ACEOF
9675
9676 # The following way of writing the cache mishandles newlines in values,
9677 # but we know of no workaround that is simple, portable, and efficient.
9678 # So, we kill variables containing newlines.
9679 # Ultrix sh set writes to stderr and can't be redirected directly,
9680 # and sets the high bit in the cache file unless we assign to the vars.
9681 (
9682   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9683     eval ac_val=\$$ac_var
9684     case $ac_val in #(
9685     *${as_nl}*)
9686       case $ac_var in #(
9687       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9689       esac
9690       case $ac_var in #(
9691       _ | IFS | as_nl) ;; #(
9692       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9693       *) $as_unset $ac_var ;;
9694       esac ;;
9695     esac
9696   done
9697
9698   (set) 2>&1 |
9699     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9700     *${as_nl}ac_space=\ *)
9701       # `set' does not quote correctly, so add quotes (double-quote
9702       # substitution turns \\\\ into \\, and sed turns \\ into \).
9703       sed -n \
9704         "s/'/'\\\\''/g;
9705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9706       ;; #(
9707     *)
9708       # `set' quotes correctly as required by POSIX, so do not add quotes.
9709       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9710       ;;
9711     esac |
9712     sort
9713 ) |
9714   sed '
9715      /^ac_cv_env_/b end
9716      t clear
9717      :clear
9718      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9719      t end
9720      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9721      :end' >>confcache
9722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9723   if test -w "$cache_file"; then
9724     test "x$cache_file" != "x/dev/null" &&
9725       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9726 $as_echo "$as_me: updating cache $cache_file" >&6;}
9727     cat confcache >$cache_file
9728   else
9729     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9730 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9731   fi
9732 fi
9733 rm -f confcache
9734
9735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9736 # Let make expand exec_prefix.
9737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9738
9739 DEFS=-DHAVE_CONFIG_H
9740
9741 ac_libobjs=
9742 ac_ltlibobjs=
9743 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9744   # 1. Remove the extension, and $U if already installed.
9745   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9746   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9747   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9748   #    will be set to the directory where LIBOBJS objects are built.
9749   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9750   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9751 done
9752 LIBOBJS=$ac_libobjs
9753
9754 LTLIBOBJS=$ac_ltlibobjs
9755
9756
9757 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9758   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9759 Usually this means the macro was only invoked conditionally." >&5
9760 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9761 Usually this means the macro was only invoked conditionally." >&2;}
9762    { (exit 1); exit 1; }; }
9763 fi
9764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9765   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9766 Usually this means the macro was only invoked conditionally." >&5
9767 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9768 Usually this means the macro was only invoked conditionally." >&2;}
9769    { (exit 1); exit 1; }; }
9770 fi
9771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9772   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9773 Usually this means the macro was only invoked conditionally." >&5
9774 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9775 Usually this means the macro was only invoked conditionally." >&2;}
9776    { (exit 1); exit 1; }; }
9777 fi
9778 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9779   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9780 Usually this means the macro was only invoked conditionally." >&5
9781 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9782 Usually this means the macro was only invoked conditionally." >&2;}
9783    { (exit 1); exit 1; }; }
9784 fi
9785 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9786   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9787 Usually this means the macro was only invoked conditionally." >&5
9788 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9789 Usually this means the macro was only invoked conditionally." >&2;}
9790    { (exit 1); exit 1; }; }
9791 fi
9792
9793 : ${CONFIG_STATUS=./config.status}
9794 ac_write_fail=0
9795 ac_clean_files_save=$ac_clean_files
9796 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9797 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9798 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9799 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9800 #! $SHELL
9801 # Generated by $as_me.
9802 # Run this file to recreate the current configuration.
9803 # Compiler output produced by configure, useful for debugging
9804 # configure, is in config.log if it exists.
9805
9806 debug=false
9807 ac_cs_recheck=false
9808 ac_cs_silent=false
9809 SHELL=\${CONFIG_SHELL-$SHELL}
9810 _ACEOF
9811
9812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9813 ## --------------------- ##
9814 ## M4sh Initialization.  ##
9815 ## --------------------- ##
9816
9817 # Be more Bourne compatible
9818 DUALCASE=1; export DUALCASE # for MKS sh
9819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9820   emulate sh
9821   NULLCMD=:
9822   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9823   # is contrary to our usage.  Disable this feature.
9824   alias -g '${1+"$@"}'='"$@"'
9825   setopt NO_GLOB_SUBST
9826 else
9827   case `(set -o) 2>/dev/null` in
9828   *posix*) set -o posix ;;
9829 esac
9830
9831 fi
9832
9833
9834
9835
9836 # PATH needs CR
9837 # Avoid depending upon Character Ranges.
9838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9841 as_cr_digits='0123456789'
9842 as_cr_alnum=$as_cr_Letters$as_cr_digits
9843
9844 as_nl='
9845 '
9846 export as_nl
9847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9851 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9852   as_echo='printf %s\n'
9853   as_echo_n='printf %s'
9854 else
9855   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9856     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9857     as_echo_n='/usr/ucb/echo -n'
9858   else
9859     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9860     as_echo_n_body='eval
9861       arg=$1;
9862       case $arg in
9863       *"$as_nl"*)
9864         expr "X$arg" : "X\\(.*\\)$as_nl";
9865         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9866       esac;
9867       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9868     '
9869     export as_echo_n_body
9870     as_echo_n='sh -c $as_echo_n_body as_echo'
9871   fi
9872   export as_echo_body
9873   as_echo='sh -c $as_echo_body as_echo'
9874 fi
9875
9876 # The user is always right.
9877 if test "${PATH_SEPARATOR+set}" != set; then
9878   PATH_SEPARATOR=:
9879   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9880     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9881       PATH_SEPARATOR=';'
9882   }
9883 fi
9884
9885 # Support unset when possible.
9886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9887   as_unset=unset
9888 else
9889   as_unset=false
9890 fi
9891
9892
9893 # IFS
9894 # We need space, tab and new line, in precisely that order.  Quoting is
9895 # there to prevent editors from complaining about space-tab.
9896 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9897 # splitting by setting IFS to empty value.)
9898 IFS=" ""        $as_nl"
9899
9900 # Find who we are.  Look in the path if we contain no directory separator.
9901 case $0 in
9902   *[\\/]* ) as_myself=$0 ;;
9903   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906   IFS=$as_save_IFS
9907   test -z "$as_dir" && as_dir=.
9908   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9909 done
9910 IFS=$as_save_IFS
9911
9912      ;;
9913 esac
9914 # We did not find ourselves, most probably we were run as `sh COMMAND'
9915 # in which case we are not to be found in the path.
9916 if test "x$as_myself" = x; then
9917   as_myself=$0
9918 fi
9919 if test ! -f "$as_myself"; then
9920   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9921   { (exit 1); exit 1; }
9922 fi
9923
9924 # Work around bugs in pre-3.0 UWIN ksh.
9925 for as_var in ENV MAIL MAILPATH
9926 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9927 done
9928 PS1='$ '
9929 PS2='> '
9930 PS4='+ '
9931
9932 # NLS nuisances.
9933 LC_ALL=C
9934 export LC_ALL
9935 LANGUAGE=C
9936 export LANGUAGE
9937
9938 # Required to use basename.
9939 if expr a : '\(a\)' >/dev/null 2>&1 &&
9940    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9941   as_expr=expr
9942 else
9943   as_expr=false
9944 fi
9945
9946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9947   as_basename=basename
9948 else
9949   as_basename=false
9950 fi
9951
9952
9953 # Name of the executable.
9954 as_me=`$as_basename -- "$0" ||
9955 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9956          X"$0" : 'X\(//\)$' \| \
9957          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9958 $as_echo X/"$0" |
9959     sed '/^.*\/\([^/][^/]*\)\/*$/{
9960             s//\1/
9961             q
9962           }
9963           /^X\/\(\/\/\)$/{
9964             s//\1/
9965             q
9966           }
9967           /^X\/\(\/\).*/{
9968             s//\1/
9969             q
9970           }
9971           s/.*/./; q'`
9972
9973 # CDPATH.
9974 $as_unset CDPATH
9975
9976
9977
9978   as_lineno_1=$LINENO
9979   as_lineno_2=$LINENO
9980   test "x$as_lineno_1" != "x$as_lineno_2" &&
9981   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9982
9983   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9984   # uniformly replaced by the line number.  The first 'sed' inserts a
9985   # line-number line after each line using $LINENO; the second 'sed'
9986   # does the real work.  The second script uses 'N' to pair each
9987   # line-number line with the line containing $LINENO, and appends
9988   # trailing '-' during substitution so that $LINENO is not a special
9989   # case at line end.
9990   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9991   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9992   # E. McMahon (1931-1989) for sed's syntax.  :-)
9993   sed -n '
9994     p
9995     /[$]LINENO/=
9996   ' <$as_myself |
9997     sed '
9998       s/[$]LINENO.*/&-/
9999       t lineno
10000       b
10001       :lineno
10002       N
10003       :loop
10004       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10005       t loop
10006       s/-\n.*//
10007     ' >$as_me.lineno &&
10008   chmod +x "$as_me.lineno" ||
10009     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10010    { (exit 1); exit 1; }; }
10011
10012   # Don't try to exec as it changes $[0], causing all sort of problems
10013   # (the dirname of $[0] is not the place where we might find the
10014   # original and so on.  Autoconf is especially sensitive to this).
10015   . "./$as_me.lineno"
10016   # Exit status is that of the last command.
10017   exit
10018 }
10019
10020
10021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10022   as_dirname=dirname
10023 else
10024   as_dirname=false
10025 fi
10026
10027 ECHO_C= ECHO_N= ECHO_T=
10028 case `echo -n x` in
10029 -n*)
10030   case `echo 'x\c'` in
10031   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10032   *)   ECHO_C='\c';;
10033   esac;;
10034 *)
10035   ECHO_N='-n';;
10036 esac
10037 if expr a : '\(a\)' >/dev/null 2>&1 &&
10038    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10039   as_expr=expr
10040 else
10041   as_expr=false
10042 fi
10043
10044 rm -f conf$$ conf$$.exe conf$$.file
10045 if test -d conf$$.dir; then
10046   rm -f conf$$.dir/conf$$.file
10047 else
10048   rm -f conf$$.dir
10049   mkdir conf$$.dir 2>/dev/null
10050 fi
10051 if (echo >conf$$.file) 2>/dev/null; then
10052   if ln -s conf$$.file conf$$ 2>/dev/null; then
10053     as_ln_s='ln -s'
10054     # ... but there are two gotchas:
10055     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10056     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10057     # In both cases, we have to default to `cp -p'.
10058     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10059       as_ln_s='cp -p'
10060   elif ln conf$$.file conf$$ 2>/dev/null; then
10061     as_ln_s=ln
10062   else
10063     as_ln_s='cp -p'
10064   fi
10065 else
10066   as_ln_s='cp -p'
10067 fi
10068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10069 rmdir conf$$.dir 2>/dev/null
10070
10071 if mkdir -p . 2>/dev/null; then
10072   as_mkdir_p=:
10073 else
10074   test -d ./-p && rmdir ./-p
10075   as_mkdir_p=false
10076 fi
10077
10078 if test -x / >/dev/null 2>&1; then
10079   as_test_x='test -x'
10080 else
10081   if ls -dL / >/dev/null 2>&1; then
10082     as_ls_L_option=L
10083   else
10084     as_ls_L_option=
10085   fi
10086   as_test_x='
10087     eval sh -c '\''
10088       if test -d "$1"; then
10089         test -d "$1/.";
10090       else
10091         case $1 in
10092         -*)set "./$1";;
10093         esac;
10094         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10095         ???[sx]*):;;*)false;;esac;fi
10096     '\'' sh
10097   '
10098 fi
10099 as_executable_p=$as_test_x
10100
10101 # Sed expression to map a string onto a valid CPP name.
10102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10103
10104 # Sed expression to map a string onto a valid variable name.
10105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10106
10107
10108 exec 6>&1
10109
10110 # Save the log message, to keep $[0] and so on meaningful, and to
10111 # report actual input values of CONFIG_FILES etc. instead of their
10112 # values after options handling.
10113 ac_log="
10114 This file was extended by lcr $as_me 1.5, which was
10115 generated by GNU Autoconf 2.63.  Invocation command line was
10116
10117   CONFIG_FILES    = $CONFIG_FILES
10118   CONFIG_HEADERS  = $CONFIG_HEADERS
10119   CONFIG_LINKS    = $CONFIG_LINKS
10120   CONFIG_COMMANDS = $CONFIG_COMMANDS
10121   $ $0 $@
10122
10123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10124 "
10125
10126 _ACEOF
10127
10128 case $ac_config_files in *"
10129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10130 esac
10131
10132 case $ac_config_headers in *"
10133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10134 esac
10135
10136
10137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10138 # Files that config.status was made for.
10139 config_files="$ac_config_files"
10140 config_headers="$ac_config_headers"
10141 config_commands="$ac_config_commands"
10142
10143 _ACEOF
10144
10145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10146 ac_cs_usage="\
10147 \`$as_me' instantiates files from templates according to the
10148 current configuration.
10149
10150 Usage: $0 [OPTION]... [FILE]...
10151
10152   -h, --help       print this help, then exit
10153   -V, --version    print version number and configuration settings, then exit
10154   -q, --quiet, --silent
10155                    do not print progress messages
10156   -d, --debug      don't remove temporary files
10157       --recheck    update $as_me by reconfiguring in the same conditions
10158       --file=FILE[:TEMPLATE]
10159                    instantiate the configuration file FILE
10160       --header=FILE[:TEMPLATE]
10161                    instantiate the configuration header FILE
10162
10163 Configuration files:
10164 $config_files
10165
10166 Configuration headers:
10167 $config_headers
10168
10169 Configuration commands:
10170 $config_commands
10171
10172 Report bugs to <bug-autoconf@gnu.org>."
10173
10174 _ACEOF
10175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10176 ac_cs_version="\\
10177 lcr config.status 1.5
10178 configured by $0, generated by GNU Autoconf 2.63,
10179   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10180
10181 Copyright (C) 2008 Free Software Foundation, Inc.
10182 This config.status script is free software; the Free Software Foundation
10183 gives unlimited permission to copy, distribute and modify it."
10184
10185 ac_pwd='$ac_pwd'
10186 srcdir='$srcdir'
10187 INSTALL='$INSTALL'
10188 AWK='$AWK'
10189 test -n "\$AWK" || AWK=awk
10190 _ACEOF
10191
10192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10193 # The default lists apply if the user does not specify any file.
10194 ac_need_defaults=:
10195 while test $# != 0
10196 do
10197   case $1 in
10198   --*=*)
10199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10201     ac_shift=:
10202     ;;
10203   *)
10204     ac_option=$1
10205     ac_optarg=$2
10206     ac_shift=shift
10207     ;;
10208   esac
10209
10210   case $ac_option in
10211   # Handling of the options.
10212   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10213     ac_cs_recheck=: ;;
10214   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10215     $as_echo "$ac_cs_version"; exit ;;
10216   --debug | --debu | --deb | --de | --d | -d )
10217     debug=: ;;
10218   --file | --fil | --fi | --f )
10219     $ac_shift
10220     case $ac_optarg in
10221     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10222     esac
10223     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10224     ac_need_defaults=false;;
10225   --header | --heade | --head | --hea )
10226     $ac_shift
10227     case $ac_optarg in
10228     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10229     esac
10230     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10231     ac_need_defaults=false;;
10232   --he | --h)
10233     # Conflict between --help and --header
10234     { $as_echo "$as_me: error: ambiguous option: $1
10235 Try \`$0 --help' for more information." >&2
10236    { (exit 1); exit 1; }; };;
10237   --help | --hel | -h )
10238     $as_echo "$ac_cs_usage"; exit ;;
10239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10240   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10241     ac_cs_silent=: ;;
10242
10243   # This is an error.
10244   -*) { $as_echo "$as_me: error: unrecognized option: $1
10245 Try \`$0 --help' for more information." >&2
10246    { (exit 1); exit 1; }; } ;;
10247
10248   *) ac_config_targets="$ac_config_targets $1"
10249      ac_need_defaults=false ;;
10250
10251   esac
10252   shift
10253 done
10254
10255 ac_configure_extra_args=
10256
10257 if $ac_cs_silent; then
10258   exec 6>/dev/null
10259   ac_configure_extra_args="$ac_configure_extra_args --silent"
10260 fi
10261
10262 _ACEOF
10263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10264 if \$ac_cs_recheck; then
10265   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10266   shift
10267   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10268   CONFIG_SHELL='$SHELL'
10269   export CONFIG_SHELL
10270   exec "\$@"
10271 fi
10272
10273 _ACEOF
10274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10275 exec 5>>config.log
10276 {
10277   echo
10278   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10279 ## Running $as_me. ##
10280 _ASBOX
10281   $as_echo "$ac_log"
10282 } >&5
10283
10284 _ACEOF
10285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10286 #
10287 # INIT-COMMANDS
10288 #
10289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10290
10291 _ACEOF
10292
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294
10295 # Handling of arguments.
10296 for ac_config_target in $ac_config_targets
10297 do
10298   case $ac_config_target in
10299     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10300     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10301     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10302
10303   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10304 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10305    { (exit 1); exit 1; }; };;
10306   esac
10307 done
10308
10309
10310 # If the user did not use the arguments to specify the items to instantiate,
10311 # then the envvar interface is used.  Set only those that are not.
10312 # We use the long form for the default assignment because of an extremely
10313 # bizarre bug on SunOS 4.1.3.
10314 if $ac_need_defaults; then
10315   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10316   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10317   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10318 fi
10319
10320 # Have a temporary directory for convenience.  Make it in the build tree
10321 # simply because there is no reason against having it here, and in addition,
10322 # creating and moving files from /tmp can sometimes cause problems.
10323 # Hook for its removal unless debugging.
10324 # Note that there is a small window in which the directory will not be cleaned:
10325 # after its creation but before its name has been assigned to `$tmp'.
10326 $debug ||
10327 {
10328   tmp=
10329   trap 'exit_status=$?
10330   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10331 ' 0
10332   trap '{ (exit 1); exit 1; }' 1 2 13 15
10333 }
10334 # Create a (secure) tmp directory for tmp files.
10335
10336 {
10337   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10338   test -n "$tmp" && test -d "$tmp"
10339 }  ||
10340 {
10341   tmp=./conf$$-$RANDOM
10342   (umask 077 && mkdir "$tmp")
10343 } ||
10344 {
10345    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10346    { (exit 1); exit 1; }
10347 }
10348
10349 # Set up the scripts for CONFIG_FILES section.
10350 # No need to generate them if there are no CONFIG_FILES.
10351 # This happens for instance with `./config.status config.h'.
10352 if test -n "$CONFIG_FILES"; then
10353
10354
10355 ac_cr='\r'
10356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10358   ac_cs_awk_cr='\\r'
10359 else
10360   ac_cs_awk_cr=$ac_cr
10361 fi
10362
10363 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10364 _ACEOF
10365
10366
10367 {
10368   echo "cat >conf$$subs.awk <<_ACEOF" &&
10369   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10370   echo "_ACEOF"
10371 } >conf$$subs.sh ||
10372   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10373 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10374    { (exit 1); exit 1; }; }
10375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10376 ac_delim='%!_!# '
10377 for ac_last_try in false false false false false :; do
10378   . ./conf$$subs.sh ||
10379     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10380 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10381    { (exit 1); exit 1; }; }
10382
10383   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10384   if test $ac_delim_n = $ac_delim_num; then
10385     break
10386   elif $ac_last_try; then
10387     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10388 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10389    { (exit 1); exit 1; }; }
10390   else
10391     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10392   fi
10393 done
10394 rm -f conf$$subs.sh
10395
10396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10397 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10398 _ACEOF
10399 sed -n '
10400 h
10401 s/^/S["/; s/!.*/"]=/
10402 p
10403 g
10404 s/^[^!]*!//
10405 :repl
10406 t repl
10407 s/'"$ac_delim"'$//
10408 t delim
10409 :nl
10410 h
10411 s/\(.\{148\}\).*/\1/
10412 t more1
10413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10414 p
10415 n
10416 b repl
10417 :more1
10418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10419 p
10420 g
10421 s/.\{148\}//
10422 t nl
10423 :delim
10424 h
10425 s/\(.\{148\}\).*/\1/
10426 t more2
10427 s/["\\]/\\&/g; s/^/"/; s/$/"/
10428 p
10429 b
10430 :more2
10431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10432 p
10433 g
10434 s/.\{148\}//
10435 t delim
10436 ' <conf$$subs.awk | sed '
10437 /^[^""]/{
10438   N
10439   s/\n//
10440 }
10441 ' >>$CONFIG_STATUS || ac_write_fail=1
10442 rm -f conf$$subs.awk
10443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10444 _ACAWK
10445 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10446   for (key in S) S_is_set[key] = 1
10447   FS = "\a"
10448
10449 }
10450 {
10451   line = $ 0
10452   nfields = split(line, field, "@")
10453   substed = 0
10454   len = length(field[1])
10455   for (i = 2; i < nfields; i++) {
10456     key = field[i]
10457     keylen = length(key)
10458     if (S_is_set[key]) {
10459       value = S[key]
10460       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10461       len += length(value) + length(field[++i])
10462       substed = 1
10463     } else
10464       len += 1 + keylen
10465   }
10466
10467   print line
10468 }
10469
10470 _ACAWK
10471 _ACEOF
10472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10474   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10475 else
10476   cat
10477 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10478   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10479 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10480    { (exit 1); exit 1; }; }
10481 _ACEOF
10482
10483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10485 # trailing colons and then remove the whole line if VPATH becomes empty
10486 # (actually we leave an empty line to preserve line numbers).
10487 if test "x$srcdir" = x.; then
10488   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10489 s/:*\$(srcdir):*/:/
10490 s/:*\${srcdir}:*/:/
10491 s/:*@srcdir@:*/:/
10492 s/^\([^=]*=[     ]*\):*/\1/
10493 s/:*$//
10494 s/^[^=]*=[       ]*$//
10495 }'
10496 fi
10497
10498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10499 fi # test -n "$CONFIG_FILES"
10500
10501 # Set up the scripts for CONFIG_HEADERS section.
10502 # No need to generate them if there are no CONFIG_HEADERS.
10503 # This happens for instance with `./config.status Makefile'.
10504 if test -n "$CONFIG_HEADERS"; then
10505 cat >"$tmp/defines.awk" <<\_ACAWK ||
10506 BEGIN {
10507 _ACEOF
10508
10509 # Transform confdefs.h into an awk script `defines.awk', embedded as
10510 # here-document in config.status, that substitutes the proper values into
10511 # config.h.in to produce config.h.
10512
10513 # Create a delimiter string that does not exist in confdefs.h, to ease
10514 # handling of long lines.
10515 ac_delim='%!_!# '
10516 for ac_last_try in false false :; do
10517   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10518   if test -z "$ac_t"; then
10519     break
10520   elif $ac_last_try; then
10521     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10522 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10523    { (exit 1); exit 1; }; }
10524   else
10525     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10526   fi
10527 done
10528
10529 # For the awk script, D is an array of macro values keyed by name,
10530 # likewise P contains macro parameters if any.  Preserve backslash
10531 # newline sequences.
10532
10533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10534 sed -n '
10535 s/.\{148\}/&'"$ac_delim"'/g
10536 t rset
10537 :rset
10538 s/^[     ]*#[    ]*define[       ][      ]*/ /
10539 t def
10540 d
10541 :def
10542 s/\\$//
10543 t bsnl
10544 s/["\\]/\\&/g
10545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10546 D["\1"]=" \3"/p
10547 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10548 d
10549 :bsnl
10550 s/["\\]/\\&/g
10551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10552 D["\1"]=" \3\\\\\\n"\\/p
10553 t cont
10554 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10555 t cont
10556 d
10557 :cont
10558 n
10559 s/.\{148\}/&'"$ac_delim"'/g
10560 t clear
10561 :clear
10562 s/\\$//
10563 t bsnlc
10564 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10565 d
10566 :bsnlc
10567 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10568 b cont
10569 ' <confdefs.h | sed '
10570 s/'"$ac_delim"'/"\\\
10571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10572
10573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10574   for (key in D) D_is_set[key] = 1
10575   FS = "\a"
10576 }
10577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10578   line = \$ 0
10579   split(line, arg, " ")
10580   if (arg[1] == "#") {
10581     defundef = arg[2]
10582     mac1 = arg[3]
10583   } else {
10584     defundef = substr(arg[1], 2)
10585     mac1 = arg[2]
10586   }
10587   split(mac1, mac2, "(") #)
10588   macro = mac2[1]
10589   prefix = substr(line, 1, index(line, defundef) - 1)
10590   if (D_is_set[macro]) {
10591     # Preserve the white space surrounding the "#".
10592     print prefix "define", macro P[macro] D[macro]
10593     next
10594   } else {
10595     # Replace #undef with comments.  This is necessary, for example,
10596     # in the case of _POSIX_SOURCE, which is predefined and required
10597     # on some systems where configure will not decide to define it.
10598     if (defundef == "undef") {
10599       print "/*", prefix defundef, macro, "*/"
10600       next
10601     }
10602   }
10603 }
10604 { print }
10605 _ACAWK
10606 _ACEOF
10607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10608   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10609 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10610    { (exit 1); exit 1; }; }
10611 fi # test -n "$CONFIG_HEADERS"
10612
10613
10614 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10615 shift
10616 for ac_tag
10617 do
10618   case $ac_tag in
10619   :[FHLC]) ac_mode=$ac_tag; continue;;
10620   esac
10621   case $ac_mode$ac_tag in
10622   :[FHL]*:*);;
10623   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10624 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10625    { (exit 1); exit 1; }; };;
10626   :[FH]-) ac_tag=-:-;;
10627   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10628   esac
10629   ac_save_IFS=$IFS
10630   IFS=:
10631   set x $ac_tag
10632   IFS=$ac_save_IFS
10633   shift
10634   ac_file=$1
10635   shift
10636
10637   case $ac_mode in
10638   :L) ac_source=$1;;
10639   :[FH])
10640     ac_file_inputs=
10641     for ac_f
10642     do
10643       case $ac_f in
10644       -) ac_f="$tmp/stdin";;
10645       *) # Look for the file first in the build tree, then in the source tree
10646          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10647          # because $ac_f cannot contain `:'.
10648          test -f "$ac_f" ||
10649            case $ac_f in
10650            [\\/$]*) false;;
10651            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10652            esac ||
10653            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10654 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10655    { (exit 1); exit 1; }; };;
10656       esac
10657       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10658       ac_file_inputs="$ac_file_inputs '$ac_f'"
10659     done
10660
10661     # Let's still pretend it is `configure' which instantiates (i.e., don't
10662     # use $as_me), people would be surprised to read:
10663     #    /* config.h.  Generated by config.status.  */
10664     configure_input='Generated from '`
10665           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10666         `' by configure.'
10667     if test x"$ac_file" != x-; then
10668       configure_input="$ac_file.  $configure_input"
10669       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10670 $as_echo "$as_me: creating $ac_file" >&6;}
10671     fi
10672     # Neutralize special characters interpreted by sed in replacement strings.
10673     case $configure_input in #(
10674     *\&* | *\|* | *\\* )
10675        ac_sed_conf_input=`$as_echo "$configure_input" |
10676        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10677     *) ac_sed_conf_input=$configure_input;;
10678     esac
10679
10680     case $ac_tag in
10681     *:-:* | *:-) cat >"$tmp/stdin" \
10682       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10683 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10684    { (exit 1); exit 1; }; } ;;
10685     esac
10686     ;;
10687   esac
10688
10689   ac_dir=`$as_dirname -- "$ac_file" ||
10690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691          X"$ac_file" : 'X\(//\)[^/]' \| \
10692          X"$ac_file" : 'X\(//\)$' \| \
10693          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10694 $as_echo X"$ac_file" |
10695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10696             s//\1/
10697             q
10698           }
10699           /^X\(\/\/\)[^/].*/{
10700             s//\1/
10701             q
10702           }
10703           /^X\(\/\/\)$/{
10704             s//\1/
10705             q
10706           }
10707           /^X\(\/\).*/{
10708             s//\1/
10709             q
10710           }
10711           s/.*/./; q'`
10712   { as_dir="$ac_dir"
10713   case $as_dir in #(
10714   -*) as_dir=./$as_dir;;
10715   esac
10716   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10717     as_dirs=
10718     while :; do
10719       case $as_dir in #(
10720       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10721       *) as_qdir=$as_dir;;
10722       esac
10723       as_dirs="'$as_qdir' $as_dirs"
10724       as_dir=`$as_dirname -- "$as_dir" ||
10725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10726          X"$as_dir" : 'X\(//\)[^/]' \| \
10727          X"$as_dir" : 'X\(//\)$' \| \
10728          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10729 $as_echo X"$as_dir" |
10730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10731             s//\1/
10732             q
10733           }
10734           /^X\(\/\/\)[^/].*/{
10735             s//\1/
10736             q
10737           }
10738           /^X\(\/\/\)$/{
10739             s//\1/
10740             q
10741           }
10742           /^X\(\/\).*/{
10743             s//\1/
10744             q
10745           }
10746           s/.*/./; q'`
10747       test -d "$as_dir" && break
10748     done
10749     test -z "$as_dirs" || eval "mkdir $as_dirs"
10750   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10751 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10752    { (exit 1); exit 1; }; }; }
10753   ac_builddir=.
10754
10755 case "$ac_dir" in
10756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10757 *)
10758   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10759   # A ".." for each directory in $ac_dir_suffix.
10760   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10761   case $ac_top_builddir_sub in
10762   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10763   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10764   esac ;;
10765 esac
10766 ac_abs_top_builddir=$ac_pwd
10767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10768 # for backward compatibility:
10769 ac_top_builddir=$ac_top_build_prefix
10770
10771 case $srcdir in
10772   .)  # We are building in place.
10773     ac_srcdir=.
10774     ac_top_srcdir=$ac_top_builddir_sub
10775     ac_abs_top_srcdir=$ac_pwd ;;
10776   [\\/]* | ?:[\\/]* )  # Absolute name.
10777     ac_srcdir=$srcdir$ac_dir_suffix;
10778     ac_top_srcdir=$srcdir
10779     ac_abs_top_srcdir=$srcdir ;;
10780   *) # Relative name.
10781     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10782     ac_top_srcdir=$ac_top_build_prefix$srcdir
10783     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10784 esac
10785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10786
10787
10788   case $ac_mode in
10789   :F)
10790   #
10791   # CONFIG_FILE
10792   #
10793
10794   case $INSTALL in
10795   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10796   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10797   esac
10798 _ACEOF
10799
10800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10801 # If the template does not know about datarootdir, expand it.
10802 # FIXME: This hack should be removed a few years after 2.60.
10803 ac_datarootdir_hack=; ac_datarootdir_seen=
10804
10805 ac_sed_dataroot='
10806 /datarootdir/ {
10807   p
10808   q
10809 }
10810 /@datadir@/p
10811 /@docdir@/p
10812 /@infodir@/p
10813 /@localedir@/p
10814 /@mandir@/p
10815 '
10816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10817 *datarootdir*) ac_datarootdir_seen=yes;;
10818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10819   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10821 _ACEOF
10822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10823   ac_datarootdir_hack='
10824   s&@datadir@&$datadir&g
10825   s&@docdir@&$docdir&g
10826   s&@infodir@&$infodir&g
10827   s&@localedir@&$localedir&g
10828   s&@mandir@&$mandir&g
10829     s&\\\${datarootdir}&$datarootdir&g' ;;
10830 esac
10831 _ACEOF
10832
10833 # Neutralize VPATH when `$srcdir' = `.'.
10834 # Shell code in configure.ac might set extrasub.
10835 # FIXME: do we really want to maintain this feature?
10836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10837 ac_sed_extra="$ac_vpsub
10838 $extrasub
10839 _ACEOF
10840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10841 :t
10842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10843 s|@configure_input@|$ac_sed_conf_input|;t t
10844 s&@top_builddir@&$ac_top_builddir_sub&;t t
10845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10846 s&@srcdir@&$ac_srcdir&;t t
10847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10848 s&@top_srcdir@&$ac_top_srcdir&;t t
10849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10850 s&@builddir@&$ac_builddir&;t t
10851 s&@abs_builddir@&$ac_abs_builddir&;t t
10852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10853 s&@INSTALL@&$ac_INSTALL&;t t
10854 $ac_datarootdir_hack
10855 "
10856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10857   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10858 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10859    { (exit 1); exit 1; }; }
10860
10861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10862   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10863   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10864   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10865 which seems to be undefined.  Please make sure it is defined." >&5
10866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10867 which seems to be undefined.  Please make sure it is defined." >&2;}
10868
10869   rm -f "$tmp/stdin"
10870   case $ac_file in
10871   -) cat "$tmp/out" && rm -f "$tmp/out";;
10872   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10873   esac \
10874   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10875 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10876    { (exit 1); exit 1; }; }
10877  ;;
10878   :H)
10879   #
10880   # CONFIG_HEADER
10881   #
10882   if test x"$ac_file" != x-; then
10883     {
10884       $as_echo "/* $configure_input  */" \
10885       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10886     } >"$tmp/config.h" \
10887       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10889    { (exit 1); exit 1; }; }
10890     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10891       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10893     else
10894       rm -f "$ac_file"
10895       mv "$tmp/config.h" "$ac_file" \
10896         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10897 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10898    { (exit 1); exit 1; }; }
10899     fi
10900   else
10901     $as_echo "/* $configure_input  */" \
10902       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10903       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10904 $as_echo "$as_me: error: could not create -" >&2;}
10905    { (exit 1); exit 1; }; }
10906   fi
10907 # Compute "$ac_file"'s index in $config_headers.
10908 _am_stamp_count=1
10909 for _am_header in $config_headers :; do
10910   case $_am_header in
10911     "$ac_file" | "$ac_file":* )
10912       break ;;
10913     * )
10914       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10915   esac
10916 done
10917 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10919          X"$ac_file" : 'X\(//\)[^/]' \| \
10920          X"$ac_file" : 'X\(//\)$' \| \
10921          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10922 $as_echo X"$ac_file" |
10923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10924             s//\1/
10925             q
10926           }
10927           /^X\(\/\/\)[^/].*/{
10928             s//\1/
10929             q
10930           }
10931           /^X\(\/\/\)$/{
10932             s//\1/
10933             q
10934           }
10935           /^X\(\/\).*/{
10936             s//\1/
10937             q
10938           }
10939           s/.*/./; q'`/stamp-h$_am_stamp_count
10940  ;;
10941
10942   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10943 $as_echo "$as_me: executing $ac_file commands" >&6;}
10944  ;;
10945   esac
10946
10947
10948   case $ac_file$ac_mode in
10949     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10950   # Strip MF so we end up with the name of the file.
10951   mf=`echo "$mf" | sed -e 's/:.*$//'`
10952   # Check whether this is an Automake generated Makefile or not.
10953   # We used to match only the files named `Makefile.in', but
10954   # some people rename them; so instead we look at the file content.
10955   # Grep'ing the first line is not enough: some people post-process
10956   # each Makefile.in and add a new line on top of each file to say so.
10957   # So let's grep whole file.
10958   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10959     dirpart=`$as_dirname -- "$mf" ||
10960 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10961          X"$mf" : 'X\(//\)[^/]' \| \
10962          X"$mf" : 'X\(//\)$' \| \
10963          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10964 $as_echo X"$mf" |
10965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10966             s//\1/
10967             q
10968           }
10969           /^X\(\/\/\)[^/].*/{
10970             s//\1/
10971             q
10972           }
10973           /^X\(\/\/\)$/{
10974             s//\1/
10975             q
10976           }
10977           /^X\(\/\).*/{
10978             s//\1/
10979             q
10980           }
10981           s/.*/./; q'`
10982   else
10983     continue
10984   fi
10985   # Extract the definition of DEPDIR, am__include, and am__quote
10986   # from the Makefile without running `make'.
10987   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10988   test -z "$DEPDIR" && continue
10989   am__include=`sed -n 's/^am__include = //p' < "$mf"`
10990   test -z "am__include" && continue
10991   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10992   # When using ansi2knr, U may be empty or an underscore; expand it
10993   U=`sed -n 's/^U = //p' < "$mf"`
10994   # Find all dependency output files, they are included files with
10995   # $(DEPDIR) in their names.  We invoke sed twice because it is the
10996   # simplest approach to changing $(DEPDIR) to its actual value in the
10997   # expansion.
10998   for file in `sed -n "
10999     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11000        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11001     # Make sure the directory exists.
11002     test -f "$dirpart/$file" && continue
11003     fdir=`$as_dirname -- "$file" ||
11004 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11005          X"$file" : 'X\(//\)[^/]' \| \
11006          X"$file" : 'X\(//\)$' \| \
11007          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11008 $as_echo X"$file" |
11009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11010             s//\1/
11011             q
11012           }
11013           /^X\(\/\/\)[^/].*/{
11014             s//\1/
11015             q
11016           }
11017           /^X\(\/\/\)$/{
11018             s//\1/
11019             q
11020           }
11021           /^X\(\/\).*/{
11022             s//\1/
11023             q
11024           }
11025           s/.*/./; q'`
11026     { as_dir=$dirpart/$fdir
11027   case $as_dir in #(
11028   -*) as_dir=./$as_dir;;
11029   esac
11030   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11031     as_dirs=
11032     while :; do
11033       case $as_dir in #(
11034       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11035       *) as_qdir=$as_dir;;
11036       esac
11037       as_dirs="'$as_qdir' $as_dirs"
11038       as_dir=`$as_dirname -- "$as_dir" ||
11039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11040          X"$as_dir" : 'X\(//\)[^/]' \| \
11041          X"$as_dir" : 'X\(//\)$' \| \
11042          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11043 $as_echo X"$as_dir" |
11044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11045             s//\1/
11046             q
11047           }
11048           /^X\(\/\/\)[^/].*/{
11049             s//\1/
11050             q
11051           }
11052           /^X\(\/\/\)$/{
11053             s//\1/
11054             q
11055           }
11056           /^X\(\/\).*/{
11057             s//\1/
11058             q
11059           }
11060           s/.*/./; q'`
11061       test -d "$as_dir" && break
11062     done
11063     test -z "$as_dirs" || eval "mkdir $as_dirs"
11064   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11065 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11066    { (exit 1); exit 1; }; }; }
11067     # echo "creating $dirpart/$file"
11068     echo '# dummy' > "$dirpart/$file"
11069   done
11070 done
11071  ;;
11072
11073   esac
11074 done # for ac_tag
11075
11076
11077 { (exit 0); exit 0; }
11078 _ACEOF
11079 chmod +x $CONFIG_STATUS
11080 ac_clean_files=$ac_clean_files_save
11081
11082 test $ac_write_fail = 0 ||
11083   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11084 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11085    { (exit 1); exit 1; }; }
11086
11087
11088 # configure is writing to config.log, and then calls config.status.
11089 # config.status does its own redirection, appending to config.log.
11090 # Unfortunately, on DOS this fails, as config.log is still kept open
11091 # by configure, so config.status won't be able to write to it; its
11092 # output is simply discarded.  So we exec the FD to /dev/null,
11093 # effectively closing config.log, so it can be properly (re)opened and
11094 # appended to by config.status.  When coming back to configure, we
11095 # need to make the FD available again.
11096 if test "$no_create" != yes; then
11097   ac_cs_success=:
11098   ac_config_status_args=
11099   test "$silent" = yes &&
11100     ac_config_status_args="$ac_config_status_args --quiet"
11101   exec 5>/dev/null
11102   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11103   exec 5>>config.log
11104   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11105   # would make configure fail if this is the last instruction.
11106   $ac_cs_success || { (exit 1); exit 1; }
11107 fi
11108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11109   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11111 fi
11112