97453b30d43ab5d0041652a6444bca52d844614a
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 45892 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME=
562 PACKAGE_TARNAME=
563 PACKAGE_VERSION=
564 PACKAGE_STRING=
565 PACKAGE_BUGREPORT=
566
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
650 BUILD_PLATFORM
651 BUILD_CPU
652 BUILD_VENDOR
653 BUILD_OS
654 HOST_PLATFORM
655 HOST_CPU
656 HOST_VENDOR
657 HOST_OS
658 OSARCH
659 UNAME
660 PBX_OSREV
661 CC
662 CXX
663 LD
664 RANLIB
665 AR
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CXXFLAGS
673 ac_ct_CXX
674 CPP
675 CXXCPP
676 AWK
677 INSTALL_PROGRAM
678 INSTALL_SCRIPT
679 INSTALL_DATA
680 LN_S
681 GNU_MAKE
682 GREP
683 FIND
684 COMPRESS
685 BASENAME
686 ID
687 DIRNAME
688 LN
689 DOT
690 AST_DEVMODE
691 ALSA_LIB
692 ALSA_INCLUDE
693 PBX_ALSA
694 CAP_LIB
695 CAP_INCLUDE
696 PBX_CAP
697 CURL_LIB
698 CURL_INCLUDE
699 PBX_CURL
700 CURSES_LIB
701 CURSES_INCLUDE
702 PBX_CURSES
703 GNUTLS_LIB
704 GNUTLS_INCLUDE
705 PBX_GNUTLS
706 GSM_LIB
707 GSM_INCLUDE
708 PBX_GSM
709 IKSEMEL_LIB
710 IKSEMEL_INCLUDE
711 PBX_IKSEMEL
712 IMAP_TK_LIB
713 IMAP_TK_INCLUDE
714 PBX_IMAP_TK
715 ISDNNET_LIB
716 ISDNNET_INCLUDE
717 PBX_ISDNNET
718 KDE_LIB
719 KDE_INCLUDE
720 PBX_KDE
721 MISDN_LIB
722 MISDN_INCLUDE
723 PBX_MISDN
724 NBS_LIB
725 NBS_INCLUDE
726 PBX_NBS
727 NCURSES_LIB
728 NCURSES_INCLUDE
729 PBX_NCURSES
730 NETSNMP_LIB
731 NETSNMP_INCLUDE
732 PBX_NETSNMP
733 NEWT_LIB
734 NEWT_INCLUDE
735 PBX_NEWT
736 UNIXODBC_LIB
737 UNIXODBC_INCLUDE
738 PBX_UNIXODBC
739 OGG_LIB
740 OGG_INCLUDE
741 PBX_OGG
742 OSPTK_LIB
743 OSPTK_INCLUDE
744 PBX_OSPTK
745 OSS_LIB
746 OSS_INCLUDE
747 PBX_OSS
748 POPT_LIB
749 POPT_INCLUDE
750 PBX_POPT
751 PGSQL_LIB
752 PGSQL_INCLUDE
753 PBX_PGSQL
754 PRI_LIB
755 PRI_INCLUDE
756 PBX_PRI
757 SS7_LIB
758 SS7_INCLUDE
759 PBX_SS7
760 PWLIB_LIB
761 PWLIB_INCLUDE
762 PBX_PWLIB
763 OPENH323_LIB
764 OPENH323_INCLUDE
765 PBX_OPENH323
766 QT_LIB
767 QT_INCLUDE
768 PBX_QT
769 RADIUS_LIB
770 RADIUS_INCLUDE
771 PBX_RADIUS
772 SPEEX_LIB
773 SPEEX_INCLUDE
774 PBX_SPEEX
775 SQLITE_LIB
776 SQLITE_INCLUDE
777 PBX_SQLITE
778 SUPPSERV_LIB
779 SUPPSERV_INCLUDE
780 PBX_SUPPSERV
781 OPENSSL_LIB
782 OPENSSL_INCLUDE
783 PBX_OPENSSL
784 FREETDS_LIB
785 FREETDS_INCLUDE
786 PBX_FREETDS
787 TERMCAP_LIB
788 TERMCAP_INCLUDE
789 PBX_TERMCAP
790 TINFO_LIB
791 TINFO_INCLUDE
792 PBX_TINFO
793 TONEZONE_LIB
794 TONEZONE_INCLUDE
795 PBX_TONEZONE
796 VORBIS_LIB
797 VORBIS_INCLUDE
798 PBX_VORBIS
799 VPB_LIB
800 VPB_INCLUDE
801 PBX_VPB
802 ZLIB_LIB
803 ZLIB_INCLUDE
804 PBX_ZLIB
805 ZAPTEL_LIB
806 ZAPTEL_INCLUDE
807 PBX_ZAPTEL
808 ALLOCA
809 EGREP
810 LIBOBJS
811 POW_LIB
812 GC_CFLAGS
813 GC_LDFLAGS
814 GSM_INTERNAL
815 KDEINIT
816 KDEDIR
817 NETSNMP_CONFIG
818 PG_CONFIG
819 PTLIB_CONFIG
820 PWLIBDIR
821 PWLIB_INCDIR
822 PWLIB_LIBDIR
823 PWLIB_PLATFORM
824 OPENH323DIR
825 OPENH323_INCDIR
826 OPENH323_LIBDIR
827 OPENH323_SUFFIX
828 OPENH323_BUILD
829 QTMOC
830 EDITLINE_LIB
831 PBX_H323
832 PBX_IXJUSER
833 GTKCONFIG
834 PBX_GTK
835 GTK_INCLUDE
836 GTK_LIB
837 CURL
838 LTLIBOBJS'
839 ac_subst_files=''
840       ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 CXX
848 CXXFLAGS
849 CCC
850 CPP
851 CXXCPP'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904   # If the previous option needs an argument, assign it.
905   if test -n "$ac_prev"; then
906     eval $ac_prev=\$ac_option
907     ac_prev=
908     continue
909   fi
910
911   case $ac_option in
912   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913   *)    ac_optarg=yes ;;
914   esac
915
916   # Accept the important Cygnus configure options, so we can diagnose typos.
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959    { (exit 1); exit 1; }; }
960     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961     eval enable_$ac_feature=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978    { (exit 1); exit 1; }; }
979     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980     eval enable_$ac_feature=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid package name: $ac_package" >&2
1175    { (exit 1); exit 1; }; }
1176     ac_package=`echo $ac_package| sed 's/-/_/g'`
1177     eval with_$ac_package=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid package name: $ac_package" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_package=`echo $ac_package | sed 's/-/_/g'`
1186     eval with_$ac_package=no ;;
1187
1188   --x)
1189     # Obsolete; use --with-x.
1190     with_x=yes ;;
1191
1192   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193   | --x-incl | --x-inc | --x-in | --x-i)
1194     ac_prev=x_includes ;;
1195   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197     x_includes=$ac_optarg ;;
1198
1199   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201     ac_prev=x_libraries ;;
1202   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204     x_libraries=$ac_optarg ;;
1205
1206   -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208    { (exit 1); exit 1; }; }
1209     ;;
1210
1211   *=*)
1212     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216    { (exit 1); exit 1; }; }
1217     eval $ac_envvar=\$ac_optarg
1218     export $ac_envvar ;;
1219
1220   *)
1221     # FIXME: should be removed in autoconf 3.0.
1222     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226     ;;
1227
1228   esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233   { echo "$as_me: error: missing argument to $ac_option" >&2
1234    { (exit 1); exit 1; }; }
1235 fi
1236
1237 # Be sure to have absolute directory names.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   case $ac_val in
1245     [\\/$]* | ?:[\\/]* )  continue;;
1246     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247   esac
1248   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249    { (exit 1); exit 1; }; }
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   { echo "$as_me: error: Working directory cannot be determined" >&2
1280    { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282   { echo "$as_me: error: pwd does not report name of working directory" >&2
1283    { (exit 1); exit 1; }; }
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$0" : 'X\(//\)[^/]' \| \
1293          X"$0" : 'X\(//\)$' \| \
1294          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1295 echo X"$0" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328    { (exit 1); exit 1; }; }
1329         pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332   srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_env_${ac_var}_value=\$${ac_var}
1343   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351   # Omit some internal or obsolete options to make the list less imposing.
1352   # This message is too long to be a string in the A/UX 3.1 sh.
1353   cat <<_ACEOF
1354 \`configure' configures this package to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364   -h, --help              display this help and exit
1365       --help=short        display options specific to this package
1366       --help=recursive    display the short help of all the included packages
1367   -V, --version           display version information and exit
1368   -q, --quiet, --silent   do not print \`checking...' messages
1369       --cache-file=FILE   cache test results in FILE [disabled]
1370   -C, --config-cache      alias for \`--cache-file=config.cache'
1371   -n, --no-create         do not create output files
1372       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375   --prefix=PREFIX         install architecture-independent files in PREFIX
1376                           [$ac_default_prefix]
1377   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                           [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388   --bindir=DIR           user executables [EPREFIX/bin]
1389   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1390   --libexecdir=DIR       program executables [EPREFIX/libexec]
1391   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1392   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1393   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1394   --libdir=DIR           object code libraries [EPREFIX/lib]
1395   --includedir=DIR       C header files [PREFIX/include]
1396   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1397   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1398   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1399   --infodir=DIR          info documentation [DATAROOTDIR/info]
1400   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1401   --mandir=DIR           man documentation [DATAROOTDIR/man]
1402   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1403   --htmldir=DIR          html documentation [DOCDIR]
1404   --dvidir=DIR           dvi documentation [DOCDIR]
1405   --pdfdir=DIR           pdf documentation [DOCDIR]
1406   --psdir=DIR            ps documentation [DOCDIR]
1407 _ACEOF
1408
1409   cat <<\_ACEOF
1410
1411 System types:
1412   --build=BUILD     configure for building on BUILD [guessed]
1413   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418
1419   cat <<\_ACEOF
1420
1421 Optional Features:
1422   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424   --enable-dev-mode    Turn on developer mode
1425   --disable-largefile     omit support for large files
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
1431   --with-cap=PATH         use POSIX 1.e capabilities files in PATH
1432   --with-curl=PATH        use cURL files in PATH
1433   --with-curses=PATH      use curses files in PATH
1434   --with-gnutls=PATH      use GNU TLS support (used for iksemel only) files in
1435                           PATH
1436   --with-gsm=PATH         use GSM files in PATH , or 'internal'
1437   --with-iksemel=PATH     use Iksemel Jabber Library files in PATH
1438   --with-imap=PATH        use UW IMAP Toolkit files in PATH
1439   --with-isdnnet=PATH     use ISDN4Linux Library files in PATH
1440   --with-kde=PATH         use KDE files in PATH
1441   --with-misdn=PATH       use mISDN User Library files in PATH
1442   --with-nbs=PATH         use Network Broadcast Sound files in PATH
1443   --with-ncurses=PATH     use ncurses files in PATH
1444   --with-netsnmp=PATH     use Net-SNMP files in PATH
1445   --with-newt=PATH        use newt files in PATH
1446   --with-odbc=PATH        use unixODBC files in PATH
1447   --with-ogg=PATH         use OGG files in PATH
1448   --with-osptk=PATH       use OSP Toolkit files in PATH
1449   --with-oss=PATH         use Open Sound System files in PATH
1450   --with-popt=PATH        use popt files in PATH
1451   --with-postgres=PATH    use PostgreSQL files in PATH
1452   --with-pri=PATH         use ISDN PRI files in PATH
1453   --with-ss7=PATH         use ISDN SS7 files in PATH
1454   --with-pwlib=PATH       use PWlib files in PATH
1455   --with-h323=PATH        use OpenH323 files in PATH
1456   --with-qt=PATH          use Qt files in PATH
1457   --with-radius=PATH      use Radius Client files in PATH
1458   --with-speex=PATH       use Speex files in PATH
1459   --with-sqlite=PATH      use SQLite files in PATH
1460   --with-suppserv=PATH    use mISDN Supplemental Services files in PATH
1461   --with-ssl=PATH         use OpenSSL files in PATH
1462   --with-tds=PATH         use FreeTDS files in PATH
1463   --with-termcap=PATH     use Termcap files in PATH
1464   --with-tinfo=PATH       use Term Info files in PATH
1465   --with-tonezone=PATH    use tonezone files in PATH
1466   --with-vorbis=PATH      use Vorbis files in PATH
1467   --with-vpb=PATH         use Voicetronix API files in PATH
1468   --with-z=PATH           use zlib files in PATH
1469   --with-zaptel=PATH      use Zaptel files in PATH
1470
1471 Some influential environment variables:
1472   CC          C compiler command
1473   CFLAGS      C compiler flags
1474   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475               nonstandard directory <lib dir>
1476   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CPP         C preprocessor
1481   CXXCPP      C++ preprocessor
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" || continue
1494     ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500   # A ".." for each directory in $ac_dir_suffix.
1501   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502   case $ac_top_builddir_sub in
1503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505   esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513   .)  # We are building in place.
1514     ac_srcdir=.
1515     ac_top_srcdir=$ac_top_builddir_sub
1516     ac_abs_top_srcdir=$ac_pwd ;;
1517   [\\/]* | ?:[\\/]* )  # Absolute name.
1518     ac_srcdir=$srcdir$ac_dir_suffix;
1519     ac_top_srcdir=$srcdir
1520     ac_abs_top_srcdir=$srcdir ;;
1521   *) # Relative name.
1522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523     ac_top_srcdir=$ac_top_build_prefix$srcdir
1524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528     cd "$ac_dir" || { ac_status=$?; continue; }
1529     # Check for guested configure.
1530     if test -f "$ac_srcdir/configure.gnu"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533     elif test -f "$ac_srcdir/configure"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure" --help=recursive
1536     else
1537       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538     fi || ac_status=$?
1539     cd "$ac_pwd" || { ac_status=$?; break; }
1540   done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545   cat <<\_ACEOF
1546 configure
1547 generated by GNU Autoconf 2.60a
1548
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553
1554 "Asterisk"
1555 _ACEOF
1556   exit
1557 fi
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1561
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.60a.  Invocation command line was
1564
1565   $ $0 $@
1566
1567 _ACEOF
1568 exec 5>>config.log
1569 {
1570 cat <<_ASUNAME
1571 ## --------- ##
1572 ## Platform. ##
1573 ## --------- ##
1574
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1583
1584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1591
1592 _ASUNAME
1593
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   echo "PATH: $as_dir"
1600 done
1601 IFS=$as_save_IFS
1602
1603 } >&5
1604
1605 cat >&5 <<_ACEOF
1606
1607
1608 ## ----------- ##
1609 ## Core tests. ##
1610 ## ----------- ##
1611
1612 _ACEOF
1613
1614
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_configure_args=
1621 ac_configure_args0=
1622 ac_configure_args1=
1623 ac_must_keep_next=false
1624 for ac_pass in 1 2
1625 do
1626   for ac_arg
1627   do
1628     case $ac_arg in
1629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631     | -silent | --silent | --silen | --sile | --sil)
1632       continue ;;
1633     *\'*)
1634       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635     esac
1636     case $ac_pass in
1637     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638     2)
1639       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640       if test $ac_must_keep_next = true; then
1641         ac_must_keep_next=false # Got value, back to normal.
1642       else
1643         case $ac_arg in
1644           *=* | --config-cache | -C | -disable-* | --disable-* \
1645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647           | -with-* | --with-* | -without-* | --without-* | --x)
1648             case "$ac_configure_args0 " in
1649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650             esac
1651             ;;
1652           -* ) ac_must_keep_next=true ;;
1653         esac
1654       fi
1655       ac_configure_args="$ac_configure_args '$ac_arg'"
1656       ;;
1657     esac
1658   done
1659 done
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log.  We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669   # Save into config.log some information that might help in debugging.
1670   {
1671     echo
1672
1673     cat <<\_ASBOX
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1677 _ASBOX
1678     echo
1679     # The following way of writing the cache mishandles newlines in values,
1680 (
1681   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682     eval ac_val=\$$ac_var
1683     case $ac_val in #(
1684     *${as_nl}*)
1685       case $ac_var in #(
1686       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688       esac
1689       case $ac_var in #(
1690       _ | IFS | as_nl) ;; #(
1691       *) $as_unset $ac_var ;;
1692       esac ;;
1693     esac
1694   done
1695   (set) 2>&1 |
1696     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697     *${as_nl}ac_space=\ *)
1698       sed -n \
1699         "s/'\''/'\''\\\\'\'''\''/g;
1700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701       ;; #(
1702     *)
1703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704       ;;
1705     esac |
1706     sort
1707 )
1708     echo
1709
1710     cat <<\_ASBOX
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1714 _ASBOX
1715     echo
1716     for ac_var in $ac_subst_vars
1717     do
1718       eval ac_val=\$$ac_var
1719       case $ac_val in
1720       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721       esac
1722       echo "$ac_var='\''$ac_val'\''"
1723     done | sort
1724     echo
1725
1726     if test -n "$ac_subst_files"; then
1727       cat <<\_ASBOX
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1731 _ASBOX
1732       echo
1733       for ac_var in $ac_subst_files
1734       do
1735         eval ac_val=\$$ac_var
1736         case $ac_val in
1737         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738         esac
1739         echo "$ac_var='\''$ac_val'\''"
1740       done | sort
1741       echo
1742     fi
1743
1744     if test -s confdefs.h; then
1745       cat <<\_ASBOX
1746 ## ----------- ##
1747 ## confdefs.h. ##
1748 ## ----------- ##
1749 _ASBOX
1750       echo
1751       cat confdefs.h
1752       echo
1753     fi
1754     test "$ac_signal" != 0 &&
1755       echo "$as_me: caught signal $ac_signal"
1756     echo "$as_me: exit $exit_status"
1757   } >&5
1758   rm -f core *.core core.conftest.* &&
1759     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760     exit $exit_status
1761 ' 0
1762 for ac_signal in 1 2 13 15; do
1763   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 done
1765 ac_signal=0
1766
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1769
1770 # Predefined preprocessor variables.
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 _ACEOF
1795
1796
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800   set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 else
1804   set x "$ac_default_prefix/share/config.site" \
1805         "$ac_default_prefix/etc/config.site"
1806 fi
1807 shift
1808 for ac_site_file
1809 do
1810   if test -r "$ac_site_file"; then
1811     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813     sed 's/^/| /' "$ac_site_file" >&5
1814     . "$ac_site_file"
1815   fi
1816 done
1817
1818 if test -r "$cache_file"; then
1819   # Some versions of bash will fail to source /dev/null (special
1820   # files actually), so we avoid doing that.
1821   if test -f "$cache_file"; then
1822     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1824     case $cache_file in
1825       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826       *)                      . "./$cache_file";;
1827     esac
1828   fi
1829 else
1830   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1832   >$cache_file
1833 fi
1834
1835 # Check that the precious variables saved in the cache have kept the same
1836 # value.
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840   eval ac_new_set=\$ac_env_${ac_var}_set
1841   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842   eval ac_new_val=\$ac_env_${ac_var}_value
1843   case $ac_old_set,$ac_new_set in
1844     set,)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,set)
1849       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851       ac_cache_corrupted=: ;;
1852     ,);;
1853     *)
1854       if test "x$ac_old_val" != "x$ac_new_val"; then
1855         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1858 echo "$as_me:   former value:  $ac_old_val" >&2;}
1859         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1860 echo "$as_me:   current value: $ac_new_val" >&2;}
1861         ac_cache_corrupted=:
1862       fi;;
1863   esac
1864   # Pass precious variables to config.status.
1865   if test "$ac_new_set" = set; then
1866     case $ac_new_val in
1867     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     *) ac_arg=$ac_var=$ac_new_val ;;
1869     esac
1870     case " $ac_configure_args " in
1871       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1872       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873     esac
1874   fi
1875 done
1876 if $ac_cache_corrupted; then
1877   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907
1908 # cross-compile macros
1909 ac_aux_dir=
1910 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1911   if test -f "$ac_dir/install-sh"; then
1912     ac_aux_dir=$ac_dir
1913     ac_install_sh="$ac_aux_dir/install-sh -c"
1914     break
1915   elif test -f "$ac_dir/install.sh"; then
1916     ac_aux_dir=$ac_dir
1917     ac_install_sh="$ac_aux_dir/install.sh -c"
1918     break
1919   elif test -f "$ac_dir/shtool"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/shtool install -c"
1922     break
1923   fi
1924 done
1925 if test -z "$ac_aux_dir"; then
1926   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1938
1939
1940 # Make sure we can run config.sub.
1941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1942   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1943 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1944    { (exit 1); exit 1; }; }
1945
1946 { echo "$as_me:$LINENO: checking build system type" >&5
1947 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1948 if test "${ac_cv_build+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   ac_build_alias=$build_alias
1952 test "x$ac_build_alias" = x &&
1953   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1954 test "x$ac_build_alias" = x &&
1955   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1956 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1957    { (exit 1); exit 1; }; }
1958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1959   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1960 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1961    { (exit 1); exit 1; }; }
1962
1963 fi
1964 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1965 echo "${ECHO_T}$ac_cv_build" >&6; }
1966 case $ac_cv_build in
1967 *-*-*) ;;
1968 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1969 echo "$as_me: error: invalid value of canonical build" >&2;}
1970    { (exit 1); exit 1; }; };;
1971 esac
1972 build=$ac_cv_build
1973 ac_save_IFS=$IFS; IFS='-'
1974 set x $ac_cv_build
1975 shift
1976 build_cpu=$1
1977 build_vendor=$2
1978 shift; shift
1979 # Remember, the first character of IFS is used to create $*,
1980 # except with old shells:
1981 build_os=$*
1982 IFS=$ac_save_IFS
1983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1984
1985
1986 { echo "$as_me:$LINENO: checking host system type" >&5
1987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1988 if test "${ac_cv_host+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test "x$host_alias" = x; then
1992   ac_cv_host=$ac_cv_build
1993 else
1994   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 fi
2001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2002 echo "${ECHO_T}$ac_cv_host" >&6; }
2003 case $ac_cv_host in
2004 *-*-*) ;;
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2006 echo "$as_me: error: invalid value of canonical host" >&2;}
2007    { (exit 1); exit 1; }; };;
2008 esac
2009 host=$ac_cv_host
2010 ac_save_IFS=$IFS; IFS='-'
2011 set x $ac_cv_host
2012 shift
2013 host_cpu=$1
2014 host_vendor=$2
2015 shift; shift
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2018 host_os=$*
2019 IFS=$ac_save_IFS
2020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2021
2022
2023
2024 # check existence of the package
2025
2026
2027 # specify output header file
2028 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2029
2030
2031
2032
2033
2034 case "${host_os}" in
2035      freebsd*)
2036      ac_default_prefix=/usr/local
2037      CPPFLAGS=-I/usr/local/include
2038      LDFLAGS=-L/usr/local/lib
2039      ;;
2040      *)
2041      ac_default_prefix=/usr
2042      if test ${sysconfdir} = '${prefix}/etc'; then
2043         sysconfdir=/etc
2044      fi
2045      if test ${mandir} = '${prefix}/man'; then
2046         mandir=/usr/share/man
2047      fi
2048      ;;
2049 esac
2050
2051 if test ${localstatedir} = '${prefix}/var'; then
2052      localstatedir=/var
2053 fi
2054
2055 BUILD_PLATFORM=${build}
2056 BUILD_CPU=${build_cpu}
2057 BUILD_VENDOR=${build_vendor}
2058 BUILD_OS=${build_os}
2059
2060
2061
2062
2063
2064
2065 HOST_PLATFORM=${host}
2066 HOST_CPU=${host_cpu}
2067 HOST_VENDOR=${host_vendor}
2068 HOST_OS=${host_os}
2069
2070
2071
2072
2073
2074
2075 case "${host_os}" in
2076      freebsd*)
2077      OSARCH=FreeBSD
2078      ;;
2079      netbsd*)
2080      OSARCH=NetBSD
2081      ;;
2082      openbsd*)
2083      OSARCH=OpenBSD
2084      ;;
2085      solaris*)
2086      OSARCH=SunOS
2087      ;;
2088      *)
2089      OSARCH=${HOST_OS}
2090      ;;
2091 esac
2092
2093
2094
2095 #  check for uname
2096 if test -n "$ac_tool_prefix"; then
2097   # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}uname; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_path_UNAME+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   case $UNAME in
2105   [\\/]* | ?:[\\/]*)
2106   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2107   ;;
2108   *)
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2116     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2117     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   ;;
2125 esac
2126 fi
2127 UNAME=$ac_cv_path_UNAME
2128 if test -n "$UNAME"; then
2129   { echo "$as_me:$LINENO: result: $UNAME" >&5
2130 echo "${ECHO_T}$UNAME" >&6; }
2131 else
2132   { echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6; }
2134 fi
2135
2136
2137 fi
2138 if test -z "$ac_cv_path_UNAME"; then
2139   ac_pt_UNAME=$UNAME
2140   # Extract the first word of "uname", so it can be a program name with args.
2141 set dummy uname; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   case $ac_pt_UNAME in
2148   [\\/]* | ?:[\\/]*)
2149   ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2150   ;;
2151   *)
2152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167   ;;
2168 esac
2169 fi
2170 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2171 if test -n "$ac_pt_UNAME"; then
2172   { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2173 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2174 else
2175   { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2177 fi
2178
2179   if test "x$ac_pt_UNAME" = x; then
2180     UNAME="No"
2181   else
2182     case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet.  If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&5
2187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2188 whose name does not start with the host triplet.  If you think this
2189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2190 ac_tool_warned=yes ;;
2191 esac
2192     UNAME=$ac_pt_UNAME
2193   fi
2194 else
2195   UNAME="$ac_cv_path_UNAME"
2196 fi
2197
2198 if test ! x"${UNAME}" = xNo; then
2199    PBX_OSREV=$(${UNAME} -r)
2200 fi
2201
2202
2203 # This needs to be before any macros that use the C compiler
2204
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _GNU_SOURCE 1
2207 _ACEOF
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217 # cross-compile checks
2218 if test "${cross_compiling}" = "yes";
2219 then
2220    if test -n "$ac_tool_prefix"; then
2221   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$CC"; then
2229   ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2238     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244 IFS=$as_save_IFS
2245
2246 fi
2247 fi
2248 CC=$ac_cv_prog_CC
2249 if test -n "$CC"; then
2250   { echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6; }
2252 else
2253   { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2255 fi
2256
2257
2258 fi
2259 if test -z "$ac_cv_prog_CC"; then
2260   ac_ct_CC=$CC
2261   # Extract the first word of "gcc", so it can be a program name with args.
2262 set dummy gcc; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   if test -n "$ac_ct_CC"; then
2269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2278     ac_cv_prog_ac_ct_CC="gcc"
2279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280     break 2
2281   fi
2282 done
2283 done
2284 IFS=$as_save_IFS
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6; }
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297   if test "x$ac_ct_CC" = x; then
2298     CC=":"
2299   else
2300     case $cross_compiling:$ac_tool_warned in
2301 yes:)
2302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet.  If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&5
2305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2306 whose name does not start with the host triplet.  If you think this
2307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2308 ac_tool_warned=yes ;;
2309 esac
2310     CC=$ac_ct_CC
2311   fi
2312 else
2313   CC="$ac_cv_prog_CC"
2314 fi
2315
2316    if test -n "$ac_tool_prefix"; then
2317   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}g++; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_CXX+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$CXX"; then
2325   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2334     ac_cv_prog_CXX="${ac_tool_prefix}g++"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340 IFS=$as_save_IFS
2341
2342 fi
2343 fi
2344 CXX=$ac_cv_prog_CXX
2345 if test -n "$CXX"; then
2346   { echo "$as_me:$LINENO: result: $CXX" >&5
2347 echo "${ECHO_T}$CXX" >&6; }
2348 else
2349   { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351 fi
2352
2353
2354 fi
2355 if test -z "$ac_cv_prog_CXX"; then
2356   ac_ct_CXX=$CXX
2357   # Extract the first word of "g++", so it can be a program name with args.
2358 set dummy g++; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$ac_ct_CXX"; then
2365   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2374     ac_cv_prog_ac_ct_CXX="g++"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2385 if test -n "$ac_ct_CXX"; then
2386   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2387 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2388 else
2389   { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 fi
2392
2393   if test "x$ac_ct_CXX" = x; then
2394     CXX=":"
2395   else
2396     case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet.  If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet.  If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406     CXX=$ac_ct_CXX
2407   fi
2408 else
2409   CXX="$ac_cv_prog_CXX"
2410 fi
2411
2412    if test -n "$ac_tool_prefix"; then
2413   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}ld; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_LD+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   if test -n "$LD"; then
2421   ac_cv_prog_LD="$LD" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   for ac_exec_ext in '' $ac_executable_extensions; do
2429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2430     ac_cv_prog_LD="${ac_tool_prefix}ld"
2431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432     break 2
2433   fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 LD=$ac_cv_prog_LD
2441 if test -n "$LD"; then
2442   { echo "$as_me:$LINENO: result: $LD" >&5
2443 echo "${ECHO_T}$LD" >&6; }
2444 else
2445   { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_LD"; then
2452   ac_ct_LD=$LD
2453   # Extract the first word of "ld", so it can be a program name with args.
2454 set dummy ld; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$ac_ct_LD"; then
2461   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_ac_ct_LD="ld"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2481 if test -n "$ac_ct_LD"; then
2482   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2483 echo "${ECHO_T}$ac_ct_LD" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489   if test "x$ac_ct_LD" = x; then
2490     LD=":"
2491   else
2492     case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet.  If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&5
2497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet.  If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500 ac_tool_warned=yes ;;
2501 esac
2502     LD=$ac_ct_LD
2503   fi
2504 else
2505   LD="$ac_cv_prog_LD"
2506 fi
2507
2508    if test -n "$ac_tool_prefix"; then
2509   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_RANLIB+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   if test -n "$RANLIB"; then
2517   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524   for ac_exec_ext in '' $ac_executable_extensions; do
2525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528     break 2
2529   fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 RANLIB=$ac_cv_prog_RANLIB
2537 if test -n "$RANLIB"; then
2538   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2539 echo "${ECHO_T}$RANLIB" >&6; }
2540 else
2541   { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2543 fi
2544
2545
2546 fi
2547 if test -z "$ac_cv_prog_RANLIB"; then
2548   ac_ct_RANLIB=$RANLIB
2549   # Extract the first word of "ranlib", so it can be a program name with args.
2550 set dummy ranlib; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$ac_ct_RANLIB"; then
2557   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_ac_ct_RANLIB="ranlib"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2577 if test -n "$ac_ct_RANLIB"; then
2578   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2579 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585   if test "x$ac_ct_RANLIB" = x; then
2586     RANLIB=":"
2587   else
2588     case $cross_compiling:$ac_tool_warned in
2589 yes:)
2590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2591 whose name does not start with the host triplet.  If you think this
2592 configuration is useful to you, please write to autoconf@gnu.org." >&5
2593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet.  If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598     RANLIB=$ac_ct_RANLIB
2599   fi
2600 else
2601   RANLIB="$ac_cv_prog_RANLIB"
2602 fi
2603
2604    if test -n "$ac_tool_prefix"; then
2605   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}ar; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_AR+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$AR"; then
2613   ac_cv_prog_AR="$AR" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_AR="${ac_tool_prefix}ar"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 AR=$ac_cv_prog_AR
2633 if test -n "$AR"; then
2634   { echo "$as_me:$LINENO: result: $AR" >&5
2635 echo "${ECHO_T}$AR" >&6; }
2636 else
2637   { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642 fi
2643 if test -z "$ac_cv_prog_AR"; then
2644   ac_ct_AR=$AR
2645   # Extract the first word of "ar", so it can be a program name with args.
2646 set dummy ar; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2650   echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652   if test -n "$ac_ct_AR"; then
2653   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660   for ac_exec_ext in '' $ac_executable_extensions; do
2661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2662     ac_cv_prog_ac_ct_AR="ar"
2663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664     break 2
2665   fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2673 if test -n "$ac_ct_AR"; then
2674   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2675 echo "${ECHO_T}$ac_ct_AR" >&6; }
2676 else
2677   { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2679 fi
2680
2681   if test "x$ac_ct_AR" = x; then
2682     AR=":"
2683   else
2684     case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet.  If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&5
2689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet.  If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2692 ac_tool_warned=yes ;;
2693 esac
2694     AR=$ac_ct_AR
2695   fi
2696 else
2697   AR="$ac_cv_prog_AR"
2698 fi
2699
2700 fi
2701
2702 # Checks for programs.
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   if test -n "$CC"; then
2717   ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724   for ac_exec_ext in '' $ac_executable_extensions; do
2725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2726     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738   { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2740 else
2741   { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$ac_cv_prog_CC"; then
2748   ac_ct_CC=$CC
2749   # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   if test -n "$ac_ct_CC"; then
2757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764   for ac_exec_ext in '' $ac_executable_extensions; do
2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     ac_cv_prog_ac_ct_CC="gcc"
2767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2780 else
2781   { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2783 fi
2784
2785   if test "x$ac_ct_CC" = x; then
2786     CC=""
2787   else
2788     case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet.  If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet.  If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798     CC=$ac_ct_CC
2799   fi
2800 else
2801   CC="$ac_cv_prog_CC"
2802 fi
2803
2804 if test -z "$CC"; then
2805           if test -n "$ac_tool_prefix"; then
2806     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_CC="${ac_tool_prefix}cc"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835   { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2837 else
2838   { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2841
2842
2843   fi
2844 fi
2845 if test -z "$CC"; then
2846   # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851   echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853   if test -n "$CC"; then
2854   ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856   ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862   for ac_exec_ext in '' $ac_executable_extensions; do
2863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2864     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865        ac_prog_rejected=yes
2866        continue
2867      fi
2868     ac_cv_prog_CC="cc"
2869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 if test $ac_prog_rejected = yes; then
2877   # We found a bogon in the path, so make sure we never use it.
2878   set dummy $ac_cv_prog_CC
2879   shift
2880   if test $# != 0; then
2881     # We chose a different compiler from the bogus one.
2882     # However, it has the same basename, so the bogon will be chosen
2883     # first if we set CC to just the basename; use the full file name.
2884     shift
2885     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886   fi
2887 fi
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892   { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2894 else
2895   { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$CC"; then
2902   if test -n "$ac_tool_prefix"; then
2903   for ac_prog in cl.exe
2904   do
2905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   if test -n "$CC"; then
2913   ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920   for ac_exec_ext in '' $ac_executable_extensions; do
2921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2922     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934   { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2936 else
2937   { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2939 fi
2940
2941
2942     test -n "$CC" && break
2943   done
2944 fi
2945 if test -z "$CC"; then
2946   ac_ct_CC=$CC
2947   for ac_prog in cl.exe
2948 do
2949   # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   if test -n "$ac_ct_CC"; then
2957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964   for ac_exec_ext in '' $ac_executable_extensions; do
2965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2966     ac_cv_prog_ac_ct_CC="$ac_prog"
2967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986   test -n "$ac_ct_CC" && break
2987 done
2988
2989   if test "x$ac_ct_CC" = x; then
2990     CC=""
2991   else
2992     case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet.  If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet.  If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002     CC=$ac_ct_CC
3003   fi
3004 fi
3005
3006 fi
3007
3008
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013    { (exit 1); exit 1; }; }
3014
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (ac_try="$ac_compiler --version >&5"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compiler --version >&5") 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_compiler -v >&5") 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }
3038 { (ac_try="$ac_compiler -V >&5"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compiler -V >&5") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }
3048
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 #
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3075 # only as a last resort.  b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3077 #
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions.  Remove them first so a
3080 # subsequent execution test works.
3081 ac_rmfiles=
3082 for ac_file in $ac_files
3083 do
3084   case $ac_file in
3085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087   esac
3088 done
3089 rm -f $ac_rmfiles
3090
3091 if { (ac_try="$ac_link_default"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_link_default") 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; then
3101   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3105 # Autoconf.
3106 for ac_file in $ac_files ''
3107 do
3108   test -f "$ac_file" || continue
3109   case $ac_file in
3110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3111         ;;
3112     [ab].out )
3113         # We found the default executable, but exeext='' is most
3114         # certainly right.
3115         break;;
3116     *.* )
3117         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118         then :; else
3119            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120         fi
3121         # We set ac_cv_exeext here because the later test for it is not
3122         # safe: cross compilers may not add the suffix if given an `-o'
3123         # argument, so we may need to know it at that point already.
3124         # Even if this section looks crufty: it has the advantage of
3125         # actually working.
3126         break;;
3127     * )
3128         break;;
3129   esac
3130 done
3131 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
3133 else
3134   ac_file=''
3135 fi
3136
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147    { (exit 77); exit 77; }; }
3148 fi
3149
3150 ac_exeext=$ac_cv_exeext
3151
3152 # Check that the compiler produces executables we can run.  If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159   if { ac_try='./$ac_file'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169     cross_compiling=no
3170   else
3171     if test "$cross_compiling" = maybe; then
3172         cross_compiling=yes
3173     else
3174         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: cannot run C compiled programs.
3178 If you meant to cross compile, use \`--host'.
3179 See \`config.log' for more details." >&2;}
3180    { (exit 1); exit 1; }; }
3181     fi
3182   fi
3183 fi
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3186
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run.  If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3195
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_link") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; then
3208   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe'), while it won't with
3211 # `rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213   test -f "$ac_file" || continue
3214   case $ac_file in
3215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3216     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217           break;;
3218     * ) break;;
3219   esac
3220 done
3221 else
3222   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226    { (exit 1); exit 1; }; }
3227 fi
3228
3229 rm -f conftest$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3232
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h.  */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263   (eval "$ac_compile") 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; then
3267   for ac_file in conftest.o conftest.obj conftest.*; do
3268   test -f "$ac_file" || continue;
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272        break;;
3273   esac
3274 done
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&2;}
3283    { (exit 1); exit 1; }; }
3284 fi
3285
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287 fi
3288 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303
3304 int
3305 main ()
3306 {
3307 #ifndef __GNUC__
3308        choke me
3309 #endif
3310
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322   (eval "$ac_compile") 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330   { (case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_try") 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349   ac_compiler_gnu=yes
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354         ac_compiler_gnu=no
3355 fi
3356
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359
3360 fi
3361 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3362 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3363 GCC=`test $ac_compiler_gnu = yes && echo yes`
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3367 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_cc_g+set}" = set; then
3369   echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371   ac_save_c_werror_flag=$ac_c_werror_flag
3372    ac_c_werror_flag=yes
3373    ac_cv_prog_cc_g=no
3374    CFLAGS="-g"
3375    cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (ac_try="$ac_compile"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397   (eval "$ac_compile") 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405   { (case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_try") 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; } &&
3414          { ac_try='test -s conftest.$ac_objext'
3415   { (case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420   (eval "$ac_try") 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_prog_cc_g=yes
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429         CFLAGS=""
3430       cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_compile") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } &&
3459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460   { (case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465   (eval "$ac_try") 2>&5
3466   ac_status=$?
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); }; } &&
3469          { ac_try='test -s conftest.$ac_objext'
3470   { (case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_try") 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; }; then
3479   :
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484         ac_c_werror_flag=$ac_save_c_werror_flag
3485          CFLAGS="-g"
3486          cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_compile") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } &&
3515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3516   { (case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521   (eval "$ac_try") 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }; } &&
3525          { ac_try='test -s conftest.$ac_objext'
3526   { (case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_try") 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }; }; then
3535   ac_cv_prog_cc_g=yes
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540
3541 fi
3542
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 fi
3545
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550    ac_c_werror_flag=$ac_save_c_werror_flag
3551 fi
3552 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3553 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555   CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557   if test "$GCC" = yes; then
3558     CFLAGS="-g -O2"
3559   else
3560     CFLAGS="-g"
3561   fi
3562 else
3563   if test "$GCC" = yes; then
3564     CFLAGS="-O2"
3565   else
3566     CFLAGS=
3567   fi
3568 fi
3569 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3570 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_cc_c89+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   ac_cv_prog_cc_c89=no
3575 ac_save_CC=$CC
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #include <stdarg.h>
3583 #include <stdio.h>
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590      char **p;
3591      int i;
3592 {
3593   return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597   char *s;
3598   va_list v;
3599   va_start (v,p);
3600   s = g (p, va_arg (v,int));
3601   va_end (v);
3602   return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3606    function prototypes and stuff, but not '\xHH' hex character constants.
3607    These don't provoke an error unfortunately, instead are silently treated
3608    as 'x'.  The following induces an error, until -std is added to get
3609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3610    array size at least.  It's necessary to write '\x00'==0 to get something
3611    that's true only with -std.  */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615    inside strings and character constants.  */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636   CC="$ac_save_CC $ac_arg"
3637   rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644   (eval "$ac_compile") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3652   { (case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_try") 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; } &&
3661          { ac_try='test -s conftest.$ac_objext'
3662   { (case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_try") 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; }; then
3671   ac_cv_prog_cc_c89=$ac_arg
3672 else
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676
3677 fi
3678
3679 rm -f core conftest.err conftest.$ac_objext
3680   test "x$ac_cv_prog_cc_c89" != "xno" && break
3681 done
3682 rm -f conftest.$ac_ext
3683 CC=$ac_save_CC
3684
3685 fi
3686 # AC_CACHE_VAL
3687 case "x$ac_cv_prog_cc_c89" in
3688   x)
3689     { echo "$as_me:$LINENO: result: none needed" >&5
3690 echo "${ECHO_T}none needed" >&6; } ;;
3691   xno)
3692     { echo "$as_me:$LINENO: result: unsupported" >&5
3693 echo "${ECHO_T}unsupported" >&6; } ;;
3694   *)
3695     CC="$CC $ac_cv_prog_cc_c89"
3696     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3697 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3698 esac
3699
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707 ac_ext=cpp
3708 ac_cpp='$CXXCPP $CPPFLAGS'
3709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3712 if test -z "$CXX"; then
3713   if test -n "$CCC"; then
3714     CXX=$CCC
3715   else
3716     if test -n "$ac_tool_prefix"; then
3717   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3718   do
3719     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_CXX+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   if test -n "$CXX"; then
3727   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741 done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 CXX=$ac_cv_prog_CXX
3747 if test -n "$CXX"; then
3748   { echo "$as_me:$LINENO: result: $CXX" >&5
3749 echo "${ECHO_T}$CXX" >&6; }
3750 else
3751   { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3753 fi
3754
3755
3756     test -n "$CXX" && break
3757   done
3758 fi
3759 if test -z "$CXX"; then
3760   ac_ct_CXX=$CXX
3761   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3762 do
3763   # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3767 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   if test -n "$ac_ct_CXX"; then
3771   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3780     ac_cv_prog_ac_ct_CXX="$ac_prog"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3791 if test -n "$ac_ct_CXX"; then
3792   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3793 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3794 else
3795   { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3797 fi
3798
3799
3800   test -n "$ac_ct_CXX" && break
3801 done
3802
3803   if test "x$ac_ct_CXX" = x; then
3804     CXX="g++"
3805   else
3806     case $cross_compiling:$ac_tool_warned in
3807 yes:)
3808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3809 whose name does not start with the host triplet.  If you think this
3810 configuration is useful to you, please write to autoconf@gnu.org." >&5
3811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet.  If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3814 ac_tool_warned=yes ;;
3815 esac
3816     CXX=$ac_ct_CXX
3817   fi
3818 fi
3819
3820   fi
3821 fi
3822 # Provide some information about the compiler.
3823 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3824 ac_compiler=`set X $ac_compile; echo $2`
3825 { (ac_try="$ac_compiler --version >&5"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_compiler --version >&5") 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }
3835 { (ac_try="$ac_compiler -v >&5"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841   (eval "$ac_compiler -v >&5") 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }
3845 { (ac_try="$ac_compiler -V >&5"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851   (eval "$ac_compiler -V >&5") 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }
3855
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3858 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h.  */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h.  */
3867
3868 int
3869 main ()
3870 {
3871 #ifndef __GNUC__
3872        choke me
3873 #endif
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_compile") 2>conftest.er1
3887   ac_status=$?
3888   grep -v '^ *+' conftest.er1 >conftest.err
3889   rm -f conftest.er1
3890   cat conftest.err >&5
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } &&
3893          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3894   { (case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_try") 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; } &&
3903          { ac_try='test -s conftest.$ac_objext'
3904   { (case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909   (eval "$ac_try") 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   ac_compiler_gnu=yes
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918         ac_compiler_gnu=no
3919 fi
3920
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3923
3924 fi
3925 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3926 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3927 GXX=`test $ac_compiler_gnu = yes && echo yes`
3928 ac_test_CXXFLAGS=${CXXFLAGS+set}
3929 ac_save_CXXFLAGS=$CXXFLAGS
3930 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3932 if test "${ac_cv_prog_cxx_g+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3936    ac_cxx_werror_flag=yes
3937    ac_cv_prog_cxx_g=no
3938    CXXFLAGS="-g"
3939    cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_compile") 2>conftest.er1
3962   ac_status=$?
3963   grep -v '^ *+' conftest.er1 >conftest.err
3964   rm -f conftest.er1
3965   cat conftest.err >&5
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } &&
3968          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3969   { (case "(($ac_try" in
3970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971   *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974   (eval "$ac_try") 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; } &&
3978          { ac_try='test -s conftest.$ac_objext'
3979   { (case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984   (eval "$ac_try") 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; }; then
3988   ac_cv_prog_cxx_g=yes
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993         CXXFLAGS=""
3994       cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4011 case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_compile") 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4024   { (case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029   (eval "$ac_try") 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039   (eval "$ac_try") 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   :
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4049          CXXFLAGS="-g"
4050          cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4080   { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_try") 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_cv_prog_cxx_g=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4115 fi
4116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4117 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4118 if test "$ac_test_CXXFLAGS" = set; then
4119   CXXFLAGS=$ac_save_CXXFLAGS
4120 elif test $ac_cv_prog_cxx_g = yes; then
4121   if test "$GXX" = yes; then
4122     CXXFLAGS="-g -O2"
4123   else
4124     CXXFLAGS="-g"
4125   fi
4126 else
4127   if test "$GXX" = yes; then
4128     CXXFLAGS="-O2"
4129   else
4130     CXXFLAGS=
4131   fi
4132 fi
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4145 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4146 # On Suns, sometimes $CPP names a directory.
4147 if test -n "$CPP" && test -d "$CPP"; then
4148   CPP=
4149 fi
4150 if test -z "$CPP"; then
4151   if test "${ac_cv_prog_CPP+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154       # Double quotes because CPP needs to be expanded
4155     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156     do
4157       ac_preproc_ok=false
4158 for ac_c_preproc_warn_flag in '' yes
4159 do
4160   # Use a header file that comes with gcc, so configuring glibc
4161   # with a fresh cross-compiler works.
4162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163   # <limits.h> exists even on freestanding compilers.
4164   # On the NeXT, cc -E runs the code through the compiler's parser,
4165   # not just through cpp. "Syntax error" is here to catch this case.
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177                      Syntax error
4178 _ACEOF
4179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } >/dev/null; then
4192   if test -s conftest.err; then
4193     ac_cpp_err=$ac_c_preproc_warn_flag
4194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4195   else
4196     ac_cpp_err=
4197   fi
4198 else
4199   ac_cpp_err=yes
4200 fi
4201 if test -z "$ac_cpp_err"; then
4202   :
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207   # Broken: fails on valid input.
4208 continue
4209 fi
4210
4211 rm -f conftest.err conftest.$ac_ext
4212
4213   # OK, works on sane cases.  Now check whether nonexistent headers
4214   # can be detected and how.
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 #include <ac_nonexistent.h>
4222 _ACEOF
4223 if { (ac_try="$ac_cpp conftest.$ac_ext"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } >/dev/null; then
4236   if test -s conftest.err; then
4237     ac_cpp_err=$ac_c_preproc_warn_flag
4238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4239   else
4240     ac_cpp_err=
4241   fi
4242 else
4243   ac_cpp_err=yes
4244 fi
4245 if test -z "$ac_cpp_err"; then
4246   # Broken: success on invalid input.
4247 continue
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252   # Passes both tests.
4253 ac_preproc_ok=:
4254 break
4255 fi
4256
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4263   break
4264 fi
4265
4266     done
4267     ac_cv_prog_CPP=$CPP
4268
4269 fi
4270   CPP=$ac_cv_prog_CPP
4271 else
4272   ac_cv_prog_CPP=$CPP
4273 fi
4274 { echo "$as_me:$LINENO: result: $CPP" >&5
4275 echo "${ECHO_T}$CPP" >&6; }
4276 ac_preproc_ok=false
4277 for ac_c_preproc_warn_flag in '' yes
4278 do
4279   # Use a header file that comes with gcc, so configuring glibc
4280   # with a fresh cross-compiler works.
4281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282   # <limits.h> exists even on freestanding compilers.
4283   # On the NeXT, cc -E runs the code through the compiler's parser,
4284   # not just through cpp. "Syntax error" is here to catch this case.
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 #ifdef __STDC__
4292 # include <limits.h>
4293 #else
4294 # include <assert.h>
4295 #endif
4296                      Syntax error
4297 _ACEOF
4298 if { (ac_try="$ac_cpp conftest.$ac_ext"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } >/dev/null; then
4311   if test -s conftest.err; then
4312     ac_cpp_err=$ac_c_preproc_warn_flag
4313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4314   else
4315     ac_cpp_err=
4316   fi
4317 else
4318   ac_cpp_err=yes
4319 fi
4320 if test -z "$ac_cpp_err"; then
4321   :
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326   # Broken: fails on valid input.
4327 continue
4328 fi
4329
4330 rm -f conftest.err conftest.$ac_ext
4331
4332   # OK, works on sane cases.  Now check whether nonexistent headers
4333   # can be detected and how.
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 #include <ac_nonexistent.h>
4341 _ACEOF
4342 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } >/dev/null; then
4355   if test -s conftest.err; then
4356     ac_cpp_err=$ac_c_preproc_warn_flag
4357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4358   else
4359     ac_cpp_err=
4360   fi
4361 else
4362   ac_cpp_err=yes
4363 fi
4364 if test -z "$ac_cpp_err"; then
4365   # Broken: success on invalid input.
4366 continue
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371   # Passes both tests.
4372 ac_preproc_ok=:
4373 break
4374 fi
4375
4376 rm -f conftest.err conftest.$ac_ext
4377
4378 done
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then
4382   :
4383 else
4384   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." >&2;}
4388    { (exit 1); exit 1; }; }
4389 fi
4390
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396
4397 ac_ext=cpp
4398 ac_cpp='$CXXCPP $CPPFLAGS'
4399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4402 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4403 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4404 if test -z "$CXXCPP"; then
4405   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408       # Double quotes because CXXCPP needs to be expanded
4409     for CXXCPP in "$CXX -E" "/lib/cpp"
4410     do
4411       ac_preproc_ok=false
4412 for ac_cxx_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431                      Syntax error
4432 _ACEOF
4433 if { (ac_try="$ac_cpp conftest.$ac_ext"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } >/dev/null; then
4446   if test -s conftest.err; then
4447     ac_cpp_err=$ac_cxx_preproc_warn_flag
4448     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4449   else
4450     ac_cpp_err=
4451   fi
4452 else
4453   ac_cpp_err=yes
4454 fi
4455 if test -z "$ac_cpp_err"; then
4456   :
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461   # Broken: fails on valid input.
4462 continue
4463 fi
4464
4465 rm -f conftest.err conftest.$ac_ext
4466
4467   # OK, works on sane cases.  Now check whether nonexistent headers
4468   # can be detected and how.
4469   cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h.  */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h.  */
4475 #include <ac_nonexistent.h>
4476 _ACEOF
4477 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } >/dev/null; then
4490   if test -s conftest.err; then
4491     ac_cpp_err=$ac_cxx_preproc_warn_flag
4492     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4493   else
4494     ac_cpp_err=
4495   fi
4496 else
4497   ac_cpp_err=yes
4498 fi
4499 if test -z "$ac_cpp_err"; then
4500   # Broken: success on invalid input.
4501 continue
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506   # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510
4511 rm -f conftest.err conftest.$ac_ext
4512
4513 done
4514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515 rm -f conftest.err conftest.$ac_ext
4516 if $ac_preproc_ok; then
4517   break
4518 fi
4519
4520     done
4521     ac_cv_prog_CXXCPP=$CXXCPP
4522
4523 fi
4524   CXXCPP=$ac_cv_prog_CXXCPP
4525 else
4526   ac_cv_prog_CXXCPP=$CXXCPP
4527 fi
4528 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4529 echo "${ECHO_T}$CXXCPP" >&6; }
4530 ac_preproc_ok=false
4531 for ac_cxx_preproc_warn_flag in '' yes
4532 do
4533   # Use a header file that comes with gcc, so configuring glibc
4534   # with a fresh cross-compiler works.
4535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536   # <limits.h> exists even on freestanding compilers.
4537   # On the NeXT, cc -E runs the code through the compiler's parser,
4538   # not just through cpp. "Syntax error" is here to catch this case.
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #ifdef __STDC__
4546 # include <limits.h>
4547 #else
4548 # include <assert.h>
4549 #endif
4550                      Syntax error
4551 _ACEOF
4552 if { (ac_try="$ac_cpp conftest.$ac_ext"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } >/dev/null; then
4565   if test -s conftest.err; then
4566     ac_cpp_err=$ac_cxx_preproc_warn_flag
4567     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4568   else
4569     ac_cpp_err=
4570   fi
4571 else
4572   ac_cpp_err=yes
4573 fi
4574 if test -z "$ac_cpp_err"; then
4575   :
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580   # Broken: fails on valid input.
4581 continue
4582 fi
4583
4584 rm -f conftest.err conftest.$ac_ext
4585
4586   # OK, works on sane cases.  Now check whether nonexistent headers
4587   # can be detected and how.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 #include <ac_nonexistent.h>
4595 _ACEOF
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } >/dev/null; then
4609   if test -s conftest.err; then
4610     ac_cpp_err=$ac_cxx_preproc_warn_flag
4611     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4612   else
4613     ac_cpp_err=
4614   fi
4615 else
4616   ac_cpp_err=yes
4617 fi
4618 if test -z "$ac_cpp_err"; then
4619   # Broken: success on invalid input.
4620 continue
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625   # Passes both tests.
4626 ac_preproc_ok=:
4627 break
4628 fi
4629
4630 rm -f conftest.err conftest.$ac_ext
4631
4632 done
4633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4634 rm -f conftest.err conftest.$ac_ext
4635 if $ac_preproc_ok; then
4636   :
4637 else
4638   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4639 See \`config.log' for more details." >&5
4640 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4641 See \`config.log' for more details." >&2;}
4642    { (exit 1); exit 1; }; }
4643 fi
4644
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651 for ac_prog in gawk mawk nawk awk
4652 do
4653   # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_AWK+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if test -n "$AWK"; then
4661   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_AWK="$ac_prog"
4671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 AWK=$ac_cv_prog_AWK
4681 if test -n "$AWK"; then
4682   { echo "$as_me:$LINENO: result: $AWK" >&5
4683 echo "${ECHO_T}$AWK" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690   test -n "$AWK" && break
4691 done
4692
4693 # Find a good install program.  We prefer a C program (faster),
4694 # so one script is as good as another.  But avoid the broken or
4695 # incompatible versions:
4696 # SysV /etc/install, /usr/sbin/install
4697 # SunOS /usr/etc/install
4698 # IRIX /sbin/install
4699 # AIX /bin/install
4700 # AmigaOS /C/install, which installs bootblocks on floppy discs
4701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4704 # OS/2's system install, which has a completely different semantic
4705 # ./install, which can be erroneously created by make from ./install.sh.
4706 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4708 if test -z "$INSTALL"; then
4709 if test "${ac_cv_path_install+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   # Account for people who put trailing slashes in PATH elements.
4718 case $as_dir/ in
4719   ./ | .// | /cC/* | \
4720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4722   /usr/ucb/* ) ;;
4723   *)
4724     # OSF1 and SCO ODT 3.0 have their own names for install.
4725     # Don't use installbsd from OSF since it installs stuff as root
4726     # by default.
4727     for ac_prog in ginstall scoinst install; do
4728       for ac_exec_ext in '' $ac_executable_extensions; do
4729      &nb