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