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