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