remove some now-unnecessary explicit includes of autoconfig.h
[asterisk-bristuff.git] / configure
blob3be2e8d11b29edc67b6b4845b15317de525fe841
1 #! /bin/sh
2 # From configure.ac Revision: 48279 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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.
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME=
577 PACKAGE_TARNAME=
578 PACKAGE_VERSION=
579 PACKAGE_STRING=
580 PACKAGE_BUGREPORT=
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 # include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 # include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
620 ac_header_list=
621 ac_func_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 BUILD_PLATFORM
668 BUILD_CPU
669 BUILD_VENDOR
670 BUILD_OS
671 HOST_PLATFORM
672 HOST_CPU
673 HOST_VENDOR
674 HOST_OS
675 OSARCH
676 UNAME
677 PBX_OSREV
681 RANLIB
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 CXXFLAGS
690 ac_ct_CXX
692 CXXCPP
694 EGREP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 GNU_LD
702 GREP
703 FIND
704 COMPRESS
705 BASENAME
707 DIRNAME
710 STRIP
711 WGET
712 FETCH
713 DOWNLOAD
714 AST_DEVMODE
715 ALSA_LIB
716 ALSA_INCLUDE
717 PBX_ALSA
718 CURL_LIB
719 CURL_INCLUDE
720 PBX_CURL
721 CURSES_LIB
722 CURSES_INCLUDE
723 PBX_CURSES
724 GNUTLS_LIB
725 GNUTLS_INCLUDE
726 PBX_GNUTLS
727 GSM_LIB
728 GSM_INCLUDE
729 PBX_GSM
730 IKSEMEL_LIB
731 IKSEMEL_INCLUDE
732 PBX_IKSEMEL
733 IMAP_TK_LIB
734 IMAP_TK_INCLUDE
735 PBX_IMAP_TK
736 ISDNNET_LIB
737 ISDNNET_INCLUDE
738 PBX_ISDNNET
739 KDE_LIB
740 KDE_INCLUDE
741 PBX_KDE
742 MISDN_LIB
743 MISDN_INCLUDE
744 PBX_MISDN
745 NBS_LIB
746 NBS_INCLUDE
747 PBX_NBS
748 NCURSES_LIB
749 NCURSES_INCLUDE
750 PBX_NCURSES
751 NETSNMP_LIB
752 NETSNMP_INCLUDE
753 PBX_NETSNMP
754 NEWT_LIB
755 NEWT_INCLUDE
756 PBX_NEWT
757 UNIXODBC_LIB
758 UNIXODBC_INCLUDE
759 PBX_UNIXODBC
760 OGG_LIB
761 OGG_INCLUDE
762 PBX_OGG
763 OSPTK_LIB
764 OSPTK_INCLUDE
765 PBX_OSPTK
766 OSS_LIB
767 OSS_INCLUDE
768 PBX_OSS
769 POPT_LIB
770 POPT_INCLUDE
771 PBX_POPT
772 PGSQL_LIB
773 PGSQL_INCLUDE
774 PBX_PGSQL
775 PRI_LIB
776 PRI_INCLUDE
777 PBX_PRI
778 PWLIB_LIB
779 PWLIB_INCLUDE
780 PBX_PWLIB
781 OPENH323_LIB
782 OPENH323_INCLUDE
783 PBX_OPENH323
784 QT_LIB
785 QT_INCLUDE
786 PBX_QT
787 RADIUS_LIB
788 RADIUS_INCLUDE
789 PBX_RADIUS
790 SPEEX_LIB
791 SPEEX_INCLUDE
792 PBX_SPEEX
793 SQLITE_LIB
794 SQLITE_INCLUDE
795 PBX_SQLITE
796 SUPPSERV_LIB
797 SUPPSERV_INCLUDE
798 PBX_SUPPSERV
799 OPENSSL_LIB
800 OPENSSL_INCLUDE
801 PBX_OPENSSL
802 FREETDS_LIB
803 FREETDS_INCLUDE
804 PBX_FREETDS
805 TERMCAP_LIB
806 TERMCAP_INCLUDE
807 PBX_TERMCAP
808 TINFO_LIB
809 TINFO_INCLUDE
810 PBX_TINFO
811 TONEZONE_LIB
812 TONEZONE_INCLUDE
813 PBX_TONEZONE
814 VORBIS_LIB
815 VORBIS_INCLUDE
816 PBX_VORBIS
817 VPB_LIB
818 VPB_INCLUDE
819 PBX_VPB
820 ZLIB_LIB
821 ZLIB_INCLUDE
822 PBX_ZLIB
823 ZAPTEL_LIB
824 ZAPTEL_INCLUDE
825 PBX_ZAPTEL
826 ALLOCA
827 LIBOBJS
828 POW_LIB
829 GC_CFLAGS
830 GC_LDFLAGS
831 GSM_INTERNAL
832 KDEINIT
833 KDEDIR
834 NETSNMP_CONFIG
835 PG_CONFIG
836 PTLIB_CONFIG
837 PWLIBDIR
838 PWLIB_INCDIR
839 PWLIB_LIBDIR
840 PWLIB_PLATFORM
841 OPENH323DIR
842 OPENH323_INCDIR
843 OPENH323_LIBDIR
844 OPENH323_SUFFIX
845 OPENH323_BUILD
846 QTMOC
847 EDITLINE_LIB
848 PBX_H323
849 PBX_IXJUSER
850 GTKCONFIG
851 PBX_GTK
852 GTK_INCLUDE
853 GTK_LIB
854 CURL
855 LTLIBOBJS'
856 ac_subst_files=''
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
866 CXXFLAGS
869 CXXCPP'
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
918 ac_prev=
919 ac_dashdash=
920 for ac_option
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
929 case $ac_option in
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *) ac_optarg=yes ;;
932 esac
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
938 ac_dashdash=yes ;;
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
957 --config-cache | -C)
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_$ac_feature=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 echo X"$0" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1322 /^X\(\/\/\)$/{
1323 s//\1/
1326 /^X\(\/\).*/{
1327 s//\1/
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1335 else
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1427 cat <<\_ACEOF
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-dev-mode Turn on developer mode
1443 --disable-largefile omit support for large files
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1450 --with-curl=PATH use cURL files in PATH
1451 --with-curses=PATH use curses files in PATH
1452 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1453 PATH
1454 --with-gsm=PATH use GSM files in PATH , or 'internal'
1455 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1456 --with-imap=PATH use UW IMAP Toolkit files in PATH
1457 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1458 --with-kde=PATH use KDE files in PATH
1459 --with-misdn=PATH use mISDN User Library files in PATH
1460 --with-nbs=PATH use Network Broadcast Sound files in PATH
1461 --with-ncurses=PATH use ncurses files in PATH
1462 --with-netsnmp=PATH use Net-SNMP files in PATH
1463 --with-newt=PATH use newt files in PATH
1464 --with-odbc=PATH use unixODBC files in PATH
1465 --with-ogg=PATH use OGG files in PATH
1466 --with-osptk=PATH use OSP Toolkit files in PATH
1467 --with-oss=PATH use Open Sound System files in PATH
1468 --with-popt=PATH use popt files in PATH
1469 --with-postgres=PATH use PostgreSQL files in PATH
1470 --with-pri=PATH use ISDN PRI files in PATH
1471 --with-pwlib=PATH use PWlib files in PATH
1472 --with-h323=PATH use OpenH323 files in PATH
1473 --with-qt=PATH use Qt files in PATH
1474 --with-radius=PATH use Radius Client files in PATH
1475 --with-speex=PATH use Speex files in PATH
1476 --with-sqlite=PATH use SQLite files in PATH
1477 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1478 --with-ssl=PATH use OpenSSL files in PATH
1479 --with-tds=PATH use FreeTDS files in PATH
1480 --with-termcap=PATH use Termcap files in PATH
1481 --with-tinfo=PATH use Term Info files in PATH
1482 --with-tonezone=PATH use tonezone files in PATH
1483 --with-vorbis=PATH use Vorbis files in PATH
1484 --with-vpb=PATH use Voicetronix API files in PATH
1485 --with-z=PATH use zlib files in PATH
1486 --with-zaptel=PATH use Zaptel files in PATH
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 _ACEOF
1505 ac_status=$?
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 "Asterisk"
1573 _ACEOF
1574 exit
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1583 $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1644 for ac_arg
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1689 echo
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 esac |
1724 sort
1726 echo
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1825 shift
1826 for ac_site_file
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1834 done
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1853 ac_header_list="$ac_header_list sys/time.h"
1854 ac_header_list="$ac_header_list unistd.h"
1855 ac_func_list="$ac_func_list alarm"
1856 ac_header_list="$ac_header_list utime.h"
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # cross-compile macros
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1946 done
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1993 esac
1994 build=$ac_cv_build
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_build
1997 shift
1998 build_cpu=$1
1999 build_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 build_os=$*
2004 IFS=$ac_save_IFS
2005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2015 else
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2025 case $ac_cv_host in
2026 *-*-*) ;;
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2030 esac
2031 host=$ac_cv_host
2032 ac_save_IFS=$IFS; IFS='-'
2033 set x $ac_cv_host
2034 shift
2035 host_cpu=$1
2036 host_vendor=$2
2037 shift; shift
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2040 host_os=$*
2041 IFS=$ac_save_IFS
2042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2046 # check existence of the package
2049 # specify output header file
2050 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2056 case "${host_os}" in
2057 freebsd*)
2058 ac_default_prefix=/usr/local
2059 CPPFLAGS=-I/usr/local/include
2060 LDFLAGS=-L/usr/local/lib
2063 ac_default_prefix=/usr
2064 if test ${sysconfdir} = '${prefix}/etc'; then
2065 sysconfdir=/etc
2067 if test ${mandir} = '${prefix}/man'; then
2068 mandir=/usr/share/man
2071 esac
2073 if test ${localstatedir} = '${prefix}/var'; then
2074 localstatedir=/var
2077 BUILD_PLATFORM=${build}
2078 BUILD_CPU=${build_cpu}
2079 BUILD_VENDOR=${build_vendor}
2080 BUILD_OS=${build_os}
2087 HOST_PLATFORM=${host}
2088 HOST_CPU=${host_cpu}
2089 HOST_VENDOR=${host_vendor}
2090 HOST_OS=${host_os}
2097 case "${host_os}" in
2098 freebsd*)
2099 OSARCH=FreeBSD
2101 netbsd*)
2102 OSARCH=NetBSD
2104 openbsd*)
2105 OSARCH=OpenBSD
2107 solaris*)
2108 OSARCH=SunOS
2111 OSARCH=${HOST_OS}
2113 esac
2117 # check for uname
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}uname; ac_word=$2
2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123 if test "${ac_cv_path_UNAME+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 case $UNAME in
2127 [\\/]* | ?:[\\/]*)
2128 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2142 done
2143 done
2144 IFS=$as_save_IFS
2147 esac
2149 UNAME=$ac_cv_path_UNAME
2150 if test -n "$UNAME"; then
2151 { echo "$as_me:$LINENO: result: $UNAME" >&5
2152 echo "${ECHO_T}$UNAME" >&6; }
2153 else
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2160 if test -z "$ac_cv_path_UNAME"; then
2161 ac_pt_UNAME=$UNAME
2162 # Extract the first word of "uname", so it can be a program name with args.
2163 set dummy uname; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 case $ac_pt_UNAME in
2170 [\\/]* | ?:[\\/]*)
2171 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2187 IFS=$as_save_IFS
2190 esac
2192 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2193 if test -n "$ac_pt_UNAME"; then
2194 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2195 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2196 else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2201 if test "x$ac_pt_UNAME" = x; then
2202 UNAME="No"
2203 else
2204 case $cross_compiling:$ac_tool_warned in
2205 yes:)
2206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet. If you think this
2208 configuration is useful to you, please write to autoconf@gnu.org." >&5
2209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet. If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2212 ac_tool_warned=yes ;;
2213 esac
2214 UNAME=$ac_pt_UNAME
2216 else
2217 UNAME="$ac_cv_path_UNAME"
2220 if test ! x"${UNAME}" = xNo; then
2221 PBX_OSREV=$(${UNAME} -r)
2225 # This needs to be before any macros that use the C compiler
2227 cat >>confdefs.h <<\_ACEOF
2228 #define _GNU_SOURCE 1
2229 _ACEOF
2239 # cross-compile checks
2240 if test "${cross_compiling}" = "yes";
2241 then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2266 IFS=$as_save_IFS
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2281 if test -z "$ac_cv_prog_CC"; then
2282 ac_ct_CC=$CC
2283 # Extract the first word of "gcc", so it can be a program name with args.
2284 set dummy gcc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_ac_ct_CC="gcc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6; }
2314 else
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2319 if test "x$ac_ct_CC" = x; then
2320 CC=":"
2321 else
2322 case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2330 ac_tool_warned=yes ;;
2331 esac
2332 CC=$ac_ct_CC
2334 else
2335 CC="$ac_cv_prog_CC"
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}g++; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CXX+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$CXX"; then
2347 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2360 done
2361 done
2362 IFS=$as_save_IFS
2366 CXX=$ac_cv_prog_CXX
2367 if test -n "$CXX"; then
2368 { echo "$as_me:$LINENO: result: $CXX" >&5
2369 echo "${ECHO_T}$CXX" >&6; }
2370 else
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CXX"; then
2378 ac_ct_CXX=$CXX
2379 # Extract the first word of "g++", so it can be a program name with args.
2380 set dummy g++; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$ac_ct_CXX"; then
2387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CXX="g++"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 break 2
2400 done
2401 done
2402 IFS=$as_save_IFS
2406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2407 if test -n "$ac_ct_CXX"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2409 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2410 else
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CXX" = x; then
2416 CXX=":"
2417 else
2418 case $cross_compiling:$ac_tool_warned in
2419 yes:)
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2427 esac
2428 CXX=$ac_ct_CXX
2430 else
2431 CXX="$ac_cv_prog_CXX"
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}ld; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_LD+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 if test -n "$LD"; then
2443 ac_cv_prog_LD="$LD" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_LD="${ac_tool_prefix}ld"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2456 done
2457 done
2458 IFS=$as_save_IFS
2462 LD=$ac_cv_prog_LD
2463 if test -n "$LD"; then
2464 { echo "$as_me:$LINENO: result: $LD" >&5
2465 echo "${ECHO_T}$LD" >&6; }
2466 else
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_LD"; then
2474 ac_ct_LD=$LD
2475 # Extract the first word of "ld", so it can be a program name with args.
2476 set dummy ld; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$ac_ct_LD"; then
2483 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_LD="ld"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2503 if test -n "$ac_ct_LD"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2505 echo "${ECHO_T}$ac_ct_LD" >&6; }
2506 else
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_LD" = x; then
2512 LD=":"
2513 else
2514 case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524 LD=$ac_ct_LD
2526 else
2527 LD="$ac_cv_prog_LD"
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_RANLIB+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$RANLIB"; then
2539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2552 done
2553 done
2554 IFS=$as_save_IFS
2558 RANLIB=$ac_cv_prog_RANLIB
2559 if test -n "$RANLIB"; then
2560 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2561 echo "${ECHO_T}$RANLIB" >&6; }
2562 else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2569 if test -z "$ac_cv_prog_RANLIB"; then
2570 ac_ct_RANLIB=$RANLIB
2571 # Extract the first word of "ranlib", so it can be a program name with args.
2572 set dummy ranlib; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -n "$ac_ct_RANLIB"; then
2579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_RANLIB="ranlib"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2594 IFS=$as_save_IFS
2598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2599 if test -n "$ac_ct_RANLIB"; then
2600 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2601 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2602 else
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2607 if test "x$ac_ct_RANLIB" = x; then
2608 RANLIB=":"
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&5
2615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 RANLIB=$ac_ct_RANLIB
2622 else
2623 RANLIB="$ac_cv_prog_RANLIB"
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}ar; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_AR+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 if test -n "$AR"; then
2635 ac_cv_prog_AR="$AR" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_AR="${ac_tool_prefix}ar"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 AR=$ac_cv_prog_AR
2655 if test -n "$AR"; then
2656 { echo "$as_me:$LINENO: result: $AR" >&5
2657 echo "${ECHO_T}$AR" >&6; }
2658 else
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2665 if test -z "$ac_cv_prog_AR"; then
2666 ac_ct_AR=$AR
2667 # Extract the first word of "ar", so it can be a program name with args.
2668 set dummy ar; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$ac_ct_AR"; then
2675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_ac_ct_AR="ar"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2688 done
2689 done
2690 IFS=$as_save_IFS
2694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2695 if test -n "$ac_ct_AR"; then
2696 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2697 echo "${ECHO_T}$ac_ct_AR" >&6; }
2698 else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2703 if test "x$ac_ct_AR" = x; then
2704 AR=":"
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716 AR=$ac_ct_AR
2718 else
2719 AR="$ac_cv_prog_AR"
2724 # Checks for programs.
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761 echo "${ECHO_T}$CC" >&6; }
2762 else
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2770 ac_ct_CC=$CC
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2794 IFS=$as_save_IFS
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2801 echo "${ECHO_T}$ac_ct_CC" >&6; }
2802 else
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&5
2815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2818 ac_tool_warned=yes ;;
2819 esac
2820 CC=$ac_ct_CC
2822 else
2823 CC="$ac_cv_prog_CC"
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}cc; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_CC="${ac_tool_prefix}cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { echo "$as_me:$LINENO: result: $CC" >&5
2858 echo "${ECHO_T}$CC" >&6; }
2859 else
2860 { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 ac_prog_rejected=no
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2888 continue
2890 ac_cv_prog_CC="cc"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2896 IFS=$as_save_IFS
2898 if test $ac_prog_rejected = yes; then
2899 # We found a bogon in the path, so make sure we never use it.
2900 set dummy $ac_cv_prog_CC
2901 shift
2902 if test $# != 0; then
2903 # We chose a different compiler from the bogus one.
2904 # However, it has the same basename, so the bogon will be chosen
2905 # first if we set CC to just the basename; use the full file name.
2906 shift
2907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { echo "$as_me:$LINENO: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6; }
2916 else
2917 { echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6; }
2923 if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 for ac_prog in cl.exe
2927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2950 IFS=$as_save_IFS
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6; }
2958 else
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2964 test -n "$CC" && break
2965 done
2967 if test -z "$CC"; then
2968 ac_ct_CC=$CC
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="$ac_prog"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6; }
3002 else
3003 { echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6; }
3008 test -n "$ac_ct_CC" && break
3009 done
3011 if test "x$ac_ct_CC" = x; then
3012 CC=""
3013 else
3014 case $cross_compiling:$ac_tool_warned in
3015 yes:)
3016 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf@gnu.org." >&5
3019 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3020 whose name does not start with the host triplet. If you think this
3021 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO: checking for C compiler version" >&5
3039 ac_compiler=`set X $ac_compile; echo $2`
3040 { (ac_try="$ac_compiler --version >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler --version >&5") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3050 { (ac_try="$ac_compiler -v >&5"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compiler -v >&5") 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }
3060 { (ac_try="$ac_compiler -V >&5"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compiler -V >&5") 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3090 # of exeext.
3091 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3092 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3093 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # List of possible output files, starting from the most likely.
3096 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3097 # only as a last resort. b.out is created by i960 compilers.
3098 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3100 # The IRIX 6 linker writes into existing files which may not be
3101 # executable, retaining their permissions. Remove them first so a
3102 # subsequent execution test works.
3103 ac_rmfiles=
3104 for ac_file in $ac_files
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110 done
3111 rm -f $ac_rmfiles
3113 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3126 # so that the user can short-circuit this test for compilers unknown to
3127 # Autoconf.
3128 for ac_file in $ac_files ''
3130 test -f "$ac_file" || continue
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3134 [ab].out )
3135 # We found the default executable, but exeext='' is most
3136 # certainly right.
3137 break;;
3138 *.* )
3139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3140 then :; else
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3147 # actually working.
3148 break;;
3150 break;;
3151 esac
3152 done
3153 test "$ac_cv_exeext" = no && ac_cv_exeext=
3155 else
3156 ac_file=''
3159 { echo "$as_me:$LINENO: result: $ac_file" >&5
3160 echo "${ECHO_T}$ac_file" >&6; }
3161 if test -z "$ac_file"; then
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C compiler cannot create executables
3168 See \`config.log' for more details." >&2;}
3169 { (exit 77); exit 77; }; }
3172 ac_exeext=$ac_cv_exeext
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3179 # If not cross compiling, check that we can run a simple program.
3180 if test "$cross_compiling" != yes; then
3181 if { ac_try='./$ac_file'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 cross_compiling=no
3192 else
3193 if test "$cross_compiling" = maybe; then
3194 cross_compiling=yes
3195 else
3196 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot run C compiled programs.
3200 If you meant to cross compile, use \`--host'.
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3206 { echo "$as_me:$LINENO: result: yes" >&5
3207 echo "${ECHO_T}yes" >&6; }
3209 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 # Check that the compiler produces executables we can run. If not, either
3212 # the compiler is broken, or we cross compile.
3213 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3214 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3215 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3216 echo "${ECHO_T}$cross_compiling" >&6; }
3218 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3219 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3220 if { (ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 # `rm'.
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242 done
3243 else
3244 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&5
3246 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3251 rm -f conftest$ac_cv_exeext
3252 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3253 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3255 rm -f conftest.$ac_ext
3256 EXEEXT=$ac_cv_exeext
3257 ac_exeext=$EXEEXT
3258 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3259 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3260 if test "${ac_cv_objext+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 rm -f conftest.o conftest.obj
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; then
3289 for ac_file in conftest.o conftest.obj conftest.*; do
3290 test -f "$ac_file" || continue;
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294 break;;
3295 esac
3296 done
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." >&2;}
3305 { (exit 1); exit 1; }; }
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3311 echo "${ECHO_T}$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3313 ac_objext=$OBJEXT
3314 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3327 main ()
3329 #ifndef __GNUC__
3330 choke me
3331 #endif
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_compiler_gnu=yes
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_compiler_gnu=no
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3368 GCC=`test $ac_compiler_gnu = yes && echo yes`
3369 ac_test_CFLAGS=${CFLAGS+set}
3370 ac_save_CFLAGS=$CFLAGS
3371 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3372 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_cc_g+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 ac_save_c_werror_flag=$ac_c_werror_flag
3377 ac_c_werror_flag=yes
3378 ac_cv_prog_cc_g=no
3379 CFLAGS="-g"
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_prog_cc_g=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 CFLAGS=""
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 CFLAGS="-g"
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3465 main ()
3469 return 0;
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; 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
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
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"
3516 else
3517 if test "$GCC" = yes; then
3518 CFLAGS="-O2"
3519 else
3520 CFLAGS=
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;
3547 return p[i];
3549 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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];
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];
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;
3580 main ()
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3584 return 0;
3586 _ACEOF
3587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
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 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest.$ac_objext; then
3608 ac_cv_prog_cc_c89=$ac_arg
3609 else
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3616 rm -f core conftest.err conftest.$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3626 { echo "$as_me:$LINENO: result: none needed" >&5
3627 echo "${ECHO_T}none needed" >&6; } ;;
3628 xno)
3629 { echo "$as_me:$LINENO: result: unsupported" >&5
3630 echo "${ECHO_T}unsupported" >&6; } ;;
3632 CC="$CC $ac_cv_prog_cc_c89"
3633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3634 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 ac_ext=cpp
3645 ac_cpp='$CXXCPP $CPPFLAGS'
3646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649 if test -z "$CXX"; then
3650 if test -n "$CCC"; then
3651 CXX=$CCC
3652 else
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_CXX+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 if test -n "$CXX"; then
3664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3683 CXX=$ac_cv_prog_CXX
3684 if test -n "$CXX"; then
3685 { echo "$as_me:$LINENO: result: $CXX" >&5
3686 echo "${ECHO_T}$CXX" >&6; }
3687 else
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3693 test -n "$CXX" && break
3694 done
3696 if test -z "$CXX"; then
3697 ac_ct_CXX=$CXX
3698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_CXX="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3728 if test -n "$ac_ct_CXX"; then
3729 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3730 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3731 else
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3737 test -n "$ac_ct_CXX" && break
3738 done
3740 if test "x$ac_ct_CXX" = x; then
3741 CXX="g++"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CXX=$ac_ct_CXX
3759 # Provide some information about the compiler.
3760 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3761 ac_compiler=`set X $ac_compile; echo $2`
3762 { (ac_try="$ac_compiler --version >&5"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compiler --version >&5") 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }
3772 { (ac_try="$ac_compiler -v >&5"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compiler -v >&5") 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3782 { (ac_try="$ac_compiler -V >&5"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compiler -V >&5") 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3793 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3794 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3795 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3806 main ()
3808 #ifndef __GNUC__
3809 choke me
3810 #endif
3813 return 0;
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_cxx_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.$ac_objext; then
3833 ac_compiler_gnu=yes
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_compiler_gnu=no
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3845 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3846 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3847 GXX=`test $ac_compiler_gnu = yes && echo yes`
3848 ac_test_CXXFLAGS=${CXXFLAGS+set}
3849 ac_save_CXXFLAGS=$CXXFLAGS
3850 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3851 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3852 if test "${ac_cv_prog_cxx_g+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3856 ac_cxx_werror_flag=yes
3857 ac_cv_prog_cxx_g=no
3858 CXXFLAGS="-g"
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3867 main ()
3871 return 0;
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_compile") 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } && {
3888 test -z "$ac_cxx_werror_flag" ||
3889 test ! -s conftest.err
3890 } && test -s conftest.$ac_objext; then
3891 ac_cv_prog_cxx_g=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 CXXFLAGS=""
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h. */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_cxx_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3935 CXXFLAGS="-g"
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3944 main ()
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_cxx_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3968 ac_cv_prog_cxx_g=yes
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3986 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3987 if test "$ac_test_CXXFLAGS" = set; then
3988 CXXFLAGS=$ac_save_CXXFLAGS
3989 elif test $ac_cv_prog_cxx_g = yes; then
3990 if test "$GXX" = yes; then
3991 CXXFLAGS="-g -O2"
3992 else
3993 CXXFLAGS="-g"
3995 else
3996 if test "$GXX" = yes; then
3997 CXXFLAGS="-O2"
3998 else
3999 CXXFLAGS=
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4015 # On Suns, sometimes $CPP names a directory.
4016 if test -n "$CPP" && test -d "$CPP"; then
4017 CPP=
4019 if test -z "$CPP"; then
4020 if test "${ac_cv_prog_CPP+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 # Double quotes because CPP needs to be expanded
4024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026 ac_preproc_ok=false
4027 for ac_c_preproc_warn_flag in '' yes
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #ifdef __STDC__
4042 # include <limits.h>
4043 #else
4044 # include <assert.h>
4045 #endif
4046 Syntax error
4047 _ACEOF
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null && {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4063 }; then
4065 else
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 # Broken: fails on valid input.
4070 continue
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (ac_try="$ac_cpp conftest.$ac_ext"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null && {
4098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4099 test ! -s conftest.err
4100 }; then
4101 # Broken: success on invalid input.
4102 continue
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4112 rm -f conftest.err conftest.$ac_ext
4114 done
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.err conftest.$ac_ext
4117 if $ac_preproc_ok; then
4118 break
4121 done
4122 ac_cv_prog_CPP=$CPP
4125 CPP=$ac_cv_prog_CPP
4126 else
4127 ac_cv_prog_CPP=$CPP
4129 { echo "$as_me:$LINENO: result: $CPP" >&5
4130 echo "${ECHO_T}$CPP" >&6; }
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if { (ac_try="$ac_cpp conftest.$ac_ext"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } >/dev/null && {
4166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 }; then
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 # Broken: fails on valid input.
4175 continue
4178 rm -f conftest.err conftest.$ac_ext
4180 # OK, works on sane cases. Now check whether nonexistent headers
4181 # can be detected and how.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if { (ac_try="$ac_cpp conftest.$ac_ext"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } >/dev/null && {
4203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 }; then
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4217 rm -f conftest.err conftest.$ac_ext
4219 done
4220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221 rm -f conftest.err conftest.$ac_ext
4222 if $ac_preproc_ok; then
4224 else
4225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." >&5
4227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; }
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 ac_ext=cpp
4239 ac_cpp='$CXXCPP $CPPFLAGS'
4240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4243 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4244 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4245 if test -z "$CXXCPP"; then
4246 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 # Double quotes because CXXCPP needs to be expanded
4250 for CXXCPP in "$CXX -E" "/lib/cpp"
4252 ac_preproc_ok=false
4253 for ac_cxx_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272 Syntax error
4273 _ACEOF
4274 if { (ac_try="$ac_cpp conftest.$ac_ext"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4288 test ! -s conftest.err
4289 }; then
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Broken: fails on valid input.
4296 continue
4299 rm -f conftest.err conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h. */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4310 _ACEOF
4311 if { (ac_try="$ac_cpp conftest.$ac_ext"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } >/dev/null && {
4324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4325 test ! -s conftest.err
4326 }; then
4327 # Broken: success on invalid input.
4328 continue
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 # Passes both tests.
4334 ac_preproc_ok=:
4335 break
4338 rm -f conftest.err conftest.$ac_ext
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4344 break
4347 done
4348 ac_cv_prog_CXXCPP=$CXXCPP
4351 CXXCPP=$ac_cv_prog_CXXCPP
4352 else
4353 ac_cv_prog_CXXCPP=$CXXCPP
4355 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4356 echo "${ECHO_T}$CXXCPP" >&6; }
4357 ac_preproc_ok=false
4358 for ac_cxx_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377 Syntax error
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4393 test ! -s conftest.err
4394 }; then
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 # Broken: fails on valid input.
4401 continue
4404 rm -f conftest.err conftest.$ac_ext
4406 # OK, works on sane cases. Now check whether nonexistent headers
4407 # can be detected and how.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <ac_nonexistent.h>
4415 _ACEOF
4416 if { (ac_try="$ac_cpp conftest.$ac_ext"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } >/dev/null && {
4429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4430 test ! -s conftest.err
4431 }; then
4432 # Broken: success on invalid input.
4433 continue
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 # Passes both tests.
4439 ac_preproc_ok=:
4440 break
4443 rm -f conftest.err conftest.$ac_ext
4445 done
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then
4450 else
4451 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4452 See \`config.log' for more details." >&5
4453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4454 See \`config.log' for more details." >&2;}
4455 { (exit 1); exit 1; }; }
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
4465 # the developers regenerating the configure script don't have to install libtool.
4466 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4467 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4468 if test "${ac_cv_path_SED+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4472 for ac_i in 1 2 3 4 5 6 7; do
4473 ac_script="$ac_script$as_nl$ac_script"
4474 done
4475 echo "$ac_script" | sed 99q >conftest.sed
4476 $as_unset ac_script || ac_script=
4477 # Extract the first word of "sed gsed" to use in msg output
4478 if test -z "$SED"; then
4479 set dummy sed gsed; ac_prog_name=$2
4480 if test "${ac_cv_path_SED+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_path_SED_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in sed gsed; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4494 # Check for GNU ac_path_SED and select it if it is found.
4495 # Check for GNU $ac_path_SED
4496 case `"$ac_path_SED" --version 2>&1` in
4497 *GNU*)
4498 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4500 ac_count=0
4501 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4502 while :
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 echo '' >> "conftest.nl"
4508 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 ac_count=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_SED_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_SED="$ac_path_SED"
4514 ac_path_SED_max=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4523 $ac_path_SED_found && break 3
4524 done
4525 done
4527 done
4528 IFS=$as_save_IFS
4533 SED="$ac_cv_path_SED"
4534 if test -z "$SED"; then
4535 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4537 { (exit 1); exit 1; }; }
4540 else
4541 ac_cv_path_SED=$SED
4545 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4546 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4547 SED="$ac_cv_path_SED"
4548 rm -f conftest.sed
4550 { echo "$as_me:$LINENO: checking for egrep" >&5
4551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_egrep+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4556 then ac_cv_prog_egrep='grep -E'
4557 else ac_cv_prog_egrep='egrep'
4560 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4561 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
4562 EGREP=$ac_cv_prog_egrep
4566 # Check whether --with-gnu-ld was given.
4567 if test "${with_gnu_ld+set}" = set; then
4568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4569 else
4570 with_gnu_ld=no
4573 ac_prog=ld
4574 if test "$GCC" = yes; then
4575 # Check if gcc -print-prog-name=ld gives a path.
4576 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4577 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4578 case $host in
4579 *-*-mingw*)
4580 # gcc leaves a trailing carriage return which upsets mingw
4581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4584 esac
4585 case $ac_prog in
4586 # Accept absolute paths.
4587 [\\/]* | ?:[\\/]*)
4588 re_direlt='/[^/][^/]*/\.\./'
4589 # Canonicalize the pathname of ld
4590 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4591 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4592 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4593 done
4594 test -z "$LD" && LD="$ac_prog"
4597 # If it fails, then pretend we aren't using GCC.
4598 ac_prog=ld
4601 # If it is relative, then search for the first ld in PATH.
4602 with_gnu_ld=unknown
4604 esac
4605 elif test "$with_gnu_ld" = yes; then
4606 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4607 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4610 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4612 if test "${lt_cv_path_LD+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 if test -z "$LD"; then
4616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4617 for ac_dir in $PATH; do
4618 IFS="$lt_save_ifs"
4619 test -z "$ac_dir" && ac_dir=.
4620 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4621 lt_cv_path_LD="$ac_dir/$ac_prog"
4622 # Check to see if the program is GNU ld. I'd rather use --version,
4623 # but apparently some variants of GNU ld only accept -v.
4624 # Break only if it was the GNU/non-GNU ld that we prefer.
4625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4626 *GNU* | *'with BFD'*)
4627 test "$with_gnu_ld" != no && break
4630 test "$with_gnu_ld" != yes && break
4632 esac
4634 done
4635 IFS="$lt_save_ifs"
4636 else
4637 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4641 LD="$lt_cv_path_LD"
4642 if test -n "$LD"; then
4643 { echo "$as_me:$LINENO: result: $LD" >&5
4644 echo "${ECHO_T}$LD" >&6; }
4645 else
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4649 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4650 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4651 { (exit 1); exit 1; }; }
4652 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4653 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4654 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4658 case `$LD -v 2>&1 </dev/null` in
4659 *GNU* | *'with BFD'*)
4660 lt_cv_prog_gnu_ld=yes
4663 lt_cv_prog_gnu_ld=no
4665 esac
4667 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4668 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4669 with_gnu_ld=$lt_cv_prog_gnu_ld
4672 for ac_prog in gawk mawk nawk awk
4674 # Extract the first word of "$ac_prog", so it can be a program name with args.
4675 set dummy $ac_prog; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_AWK+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$AWK"; then
4682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_AWK="$ac_prog"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 AWK=$ac_cv_prog_AWK
4702 if test -n "$AWK"; then
4703 { echo "$as_me:$LINENO: result: $AWK" >&5
4704 echo "${ECHO_T}$AWK" >&6; }
4705 else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4711 test -n "$AWK" && break
4712 done
4714 # Find a good install program. We prefer a C program (faster),
4715 # so one script is as good as another. But avoid the broken or
4716 # incompatible versions:
4717 # SysV /etc/install, /usr/sbin/install
4718 # SunOS /usr/etc/install
4719 # IRIX /sbin/install
4720 # AIX /bin/install
4721 # AmigaOS /C/install, which installs bootblocks on floppy discs
4722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4725 # OS/2's system install, which has a completely different semantic
4726 # ./install, which can be erroneously created by make from ./install.sh.
4727 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4728 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4729 if test -z "$INSTALL"; then
4730 if test "${ac_cv_path_install+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 # Account for people who put trailing slashes in PATH elements.
4739 case $as_dir/ in
4740 ./ | .// | /cC/* | \
4741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4743 /usr/ucb/* ) ;;
4745 # OSF1 and SCO ODT 3.0 have their own names for install.
4746 # Don't use installbsd from OSF since it installs stuff as root
4747 # by default.
4748 for ac_prog in ginstall scoinst install; do
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4751 if test $ac_prog = install &&
4752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4753 # AIX install. It has an incompatible calling convention.
4755 elif test $ac_prog = install &&
4756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4757 # program-specific install script used by HP pwplus--don't use.
4759 else
4760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4761 break 3
4764 done
4765 done
4767 esac
4768 done
4769 IFS=$as_save_IFS
4773 if test "${ac_cv_path_install+set}" = set; then
4774 INSTALL=$ac_cv_path_install
4775 else
4776 # As a last resort, use the slow shell script. Don't cache a
4777 # value for INSTALL within a source directory, because that will
4778 # break other packages using the cache if that directory is
4779 # removed, or if the value is a relative name.
4780 INSTALL=$ac_install_sh
4783 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4784 echo "${ECHO_T}$INSTALL" >&6; }
4786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4787 # It thinks the first close brace ends the variable substitution.
4788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4794 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4795 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4796 LN_S=$as_ln_s
4797 if test "$LN_S" = "ln -s"; then
4798 { echo "$as_me:$LINENO: result: yes" >&5
4799 echo "${ECHO_T}yes" >&6; }
4800 else
4801 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4802 echo "${ECHO_T}no, using $LN_S" >&6; }
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_RANLIB+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 if test -n "$RANLIB"; then
4814 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4827 done
4828 done
4829 IFS=$as_save_IFS
4833 RANLIB=$ac_cv_prog_RANLIB
4834 if test -n "$RANLIB"; then
4835 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4836 echo "${ECHO_T}$RANLIB" >&6; }
4837 else
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4844 if test -z "$ac_cv_prog_RANLIB"; then
4845 ac_ct_RANLIB=$RANLIB
4846 # Extract the first word of "ranlib", so it can be a program name with args.
4847 set dummy ranlib; ac_word=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 if test -n "$ac_ct_RANLIB"; then
4854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_RANLIB="ranlib"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4874 if test -n "$ac_ct_RANLIB"; then
4875 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4876 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4877 else
4878 { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4882 if test "x$ac_ct_RANLIB" = x; then
4883 RANLIB=":"
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4888 whose name does not start with the host triplet. If you think this
4889 configuration is useful to you, please write to autoconf@gnu.org." >&5
4890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet. If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 RANLIB=$ac_ct_RANLIB
4897 else
4898 RANLIB="$ac_cv_prog_RANLIB"
4901 { echo "$as_me:$LINENO: checking for GNU make" >&5
4902 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
4903 if test "${GNU_MAKE+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 GNU_MAKE='Not Found' ;
4907 GNU_MAKE_VERSION_MAJOR=0 ;
4908 GNU_MAKE_VERSION_MINOR=0 ;
4909 for a in make gmake gnumake ; do
4910 if test -z "$a" ; then continue ; fi ;
4911 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4912 GNU_MAKE=$a ;
4913 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
4914 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
4915 break;
4917 done ;
4920 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4921 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
4922 if test "x$GNU_MAKE" = "xNot Found" ; then
4923 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
4924 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
4925 { (exit 1); exit 1; }; }
4926 exit 1
4931 GNU_LD=0
4932 if test "x$with_gnu_ld" = "xyes" ; then
4933 GNU_LD=1
4937 # Extract the first word of "grep", so it can be a program name with args.
4938 set dummy grep; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_GREP+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 case $GREP in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4964 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4966 esac
4968 GREP=$ac_cv_path_GREP
4969 if test -n "$GREP"; then
4970 { echo "$as_me:$LINENO: result: $GREP" >&5
4971 echo "${ECHO_T}$GREP" >&6; }
4972 else
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4978 # Extract the first word of "ar", so it can be a program name with args.
4979 set dummy ar; ac_word=$2
4980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982 if test "${ac_cv_path_AR+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 case $AR in
4986 [\\/]* | ?:[\\/]*)
4987 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5005 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
5007 esac
5009 AR=$ac_cv_path_AR
5010 if test -n "$AR"; then
5011 { echo "$as_me:$LINENO: result: $AR" >&5
5012 echo "${ECHO_T}$AR" >&6; }
5013 else
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 # Extract the first word of "find", so it can be a program name with args.
5020 set dummy find; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_path_FIND+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 case $FIND in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5046 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
5048 esac
5050 FIND=$ac_cv_path_FIND
5051 if test -n "$FIND"; then
5052 { echo "$as_me:$LINENO: result: $FIND" >&5
5053 echo "${ECHO_T}$FIND" >&6; }
5054 else
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 # Extract the first word of "compress", so it can be a program name with args.
5061 set dummy compress; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_COMPRESS+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 case $COMPRESS in
5068 [\\/]* | ?:[\\/]*)
5069 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5087 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
5089 esac
5091 COMPRESS=$ac_cv_path_COMPRESS
5092 if test -n "$COMPRESS"; then
5093 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5094 echo "${ECHO_T}$COMPRESS" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5101 # Extract the first word of "basename", so it can be a program name with args.
5102 set dummy basename; ac_word=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_BASENAME+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 case $BASENAME in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5128 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
5130 esac
5132 BASENAME=$ac_cv_path_BASENAME
5133 if test -n "$BASENAME"; then
5134 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5135 echo "${ECHO_T}$BASENAME" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 # Extract the first word of "id", so it can be a program name with args.
5143 set dummy id; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_ID+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 case $ID in
5150 [\\/]* | ?:[\\/]*)
5151 ac_cv_path_ID="$ID" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5169 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
5171 esac
5173 ID=$ac_cv_path_ID
5174 if test -n "$ID"; then
5175 { echo "$as_me:$LINENO: result: $ID" >&5
5176 echo "${ECHO_T}$ID" >&6; }
5177 else
5178 { echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6; }
5183 # Extract the first word of "dirname", so it can be a program name with args.
5184 set dummy dirname; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_path_DIRNAME+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 case $DIRNAME in
5191 [\\/]* | ?:[\\/]*)
5192 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5210 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
5212 esac
5214 DIRNAME=$ac_cv_path_DIRNAME
5215 if test -n "$DIRNAME"; then
5216 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5217 echo "${ECHO_T}$DIRNAME" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5224 # Extract the first word of "sh", so it can be a program name with args.
5225 set dummy sh; ac_word=$2
5226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228 if test "${ac_cv_path_SHELL+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 case $SHELL in
5232 [\\/]* | ?:[\\/]*)
5233 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5251 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
5253 esac
5255 SHELL=$ac_cv_path_SHELL
5256 if test -n "$SHELL"; then
5257 { echo "$as_me:$LINENO: result: $SHELL" >&5
5258 echo "${ECHO_T}$SHELL" >&6; }
5259 else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 # Extract the first word of "ln", so it can be a program name with args.
5266 set dummy ln; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_LN+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 case $LN in
5273 [\\/]* | ?:[\\/]*)
5274 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5292 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
5294 esac
5296 LN=$ac_cv_path_LN
5297 if test -n "$LN"; then
5298 { echo "$as_me:$LINENO: result: $LN" >&5
5299 echo "${ECHO_T}$LN" >&6; }
5300 else
5301 { echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6; }
5306 # Extract the first word of "dot", so it can be a program name with args.
5307 set dummy dot; ac_word=$2
5308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_DOT+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 case $DOT in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5333 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
5335 esac
5337 DOT=$ac_cv_path_DOT
5338 if test -n "$DOT"; then
5339 { echo "$as_me:$LINENO: result: $DOT" >&5
5340 echo "${ECHO_T}$DOT" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 # Extract the first word of "strip", so it can be a program name with args.
5348 set dummy strip; ac_word=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_path_STRIP+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 case $STRIP in
5355 [\\/]* | ?:[\\/]*)
5356 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5374 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
5376 esac
5378 STRIP=$ac_cv_path_STRIP
5379 if test -n "$STRIP"; then
5380 { echo "$as_me:$LINENO: result: $STRIP" >&5
5381 echo "${ECHO_T}$STRIP" >&6; }
5382 else
5383 { echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6; }
5388 # Extract the first word of "wget", so it can be a program name with args.
5389 set dummy wget; ac_word=$2
5390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5392 if test "${ac_cv_path_WGET+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 case $WGET in
5396 [\\/]* | ?:[\\/]*)
5397 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5415 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
5417 esac
5419 WGET=$ac_cv_path_WGET
5420 if test -n "$WGET"; then
5421 { echo "$as_me:$LINENO: result: $WGET" >&5
5422 echo "${ECHO_T}$WGET" >&6; }
5423 else
5424 { echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6; }
5429 if test "${WGET}" != ":" ; then
5430 DOWNLOAD=${WGET}
5431 else
5432 # Extract the first word of "fetch", so it can be a program name with args.
5433 set dummy fetch; ac_word=$2
5434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5436 if test "${ac_cv_path_FETCH+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 case $FETCH in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5457 IFS=$as_save_IFS
5459 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
5461 esac
5463 FETCH=$ac_cv_path_FETCH
5464 if test -n "$FETCH"; then
5465 { echo "$as_me:$LINENO: result: $FETCH" >&5
5466 echo "${ECHO_T}$FETCH" >&6; }
5467 else
5468 { echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6; }
5473 DOWNLOAD=${FETCH}
5477 ac_ext=c
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484 # Check whether --enable-dev-mode was given.
5485 if test "${enable_dev_mode+set}" = set; then
5486 enableval=$enable_dev_mode; case "${enableval}" in
5487 y|ye|yes) AST_DEVMODE=yes ;;
5488 n|no) AST_DEVMODE=no ;;
5489 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5490 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5492 esac
5497 # package option names should be in alphabetical order
5498 # by the --with option name, to make things easier for the users :-)
5501 ALSA_DESCRIP="Advanced Linux Sound Architecture"
5502 ALSA_OPTION="asound"
5504 # Check whether --with-asound was given.
5505 if test "${with_asound+set}" = set; then
5506 withval=$with_asound;
5507 case ${withval} in
5508 n|no)
5509 USE_ALSA=no
5511 y|ye|yes)
5512 ALSA_MANDATORY="yes"
5515 ALSA_DIR="${withval}"
5516 ALSA_MANDATORY="yes"
5518 esac
5522 PBX_ALSA=0
5528 CURL_DESCRIP="cURL"
5529 CURL_OPTION="curl"
5531 # Check whether --with-curl was given.
5532 if test "${with_curl+set}" = set; then
5533 withval=$with_curl;
5534 case ${withval} in
5535 n|no)
5536 USE_CURL=no
5538 y|ye|yes)
5539 CURL_MANDATORY="yes"
5542 CURL_DIR="${withval}"
5543 CURL_MANDATORY="yes"
5545 esac
5549 PBX_CURL=0
5555 CURSES_DESCRIP="curses"
5556 CURSES_OPTION="curses"
5558 # Check whether --with-curses was given.
5559 if test "${with_curses+set}" = set; then
5560 withval=$with_curses;
5561 case ${withval} in
5562 n|no)
5563 USE_CURSES=no
5565 y|ye|yes)
5566 CURSES_MANDATORY="yes"
5569 CURSES_DIR="${withval}"
5570 CURSES_MANDATORY="yes"
5572 esac
5576 PBX_CURSES=0
5582 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
5583 GNUTLS_OPTION="gnutls"
5585 # Check whether --with-gnutls was given.
5586 if test "${with_gnutls+set}" = set; then
5587 withval=$with_gnutls;
5588 case ${withval} in
5589 n|no)
5590 USE_GNUTLS=no
5592 y|ye|yes)
5593 GNUTLS_MANDATORY="yes"
5596 GNUTLS_DIR="${withval}"
5597 GNUTLS_MANDATORY="yes"
5599 esac
5603 PBX_GNUTLS=0
5609 GSM_DESCRIP="GSM"
5610 GSM_OPTION="gsm"
5612 # Check whether --with-gsm was given.
5613 if test "${with_gsm+set}" = set; then
5614 withval=$with_gsm;
5615 case ${withval} in
5616 n|no)
5617 USE_GSM=no
5619 y|ye|yes)
5620 GSM_MANDATORY="yes"
5623 GSM_DIR="${withval}"
5624 GSM_MANDATORY="yes"
5626 esac
5630 PBX_GSM=0
5636 IKSEMEL_DESCRIP="Iksemel Jabber Library"
5637 IKSEMEL_OPTION="iksemel"
5639 # Check whether --with-iksemel was given.
5640 if test "${with_iksemel+set}" = set; then
5641 withval=$with_iksemel;
5642 case ${withval} in
5643 n|no)
5644 USE_IKSEMEL=no
5646 y|ye|yes)
5647 IKSEMEL_MANDATORY="yes"
5650 IKSEMEL_DIR="${withval}"
5651 IKSEMEL_MANDATORY="yes"
5653 esac
5657 PBX_IKSEMEL=0
5663 IMAP_TK_DESCRIP="UW IMAP Toolkit"
5664 IMAP_TK_OPTION="imap"
5666 # Check whether --with-imap was given.
5667 if test "${with_imap+set}" = set; then
5668 withval=$with_imap;
5669 case ${withval} in
5670 n|no)
5671 USE_IMAP_TK=no
5673 y|ye|yes)
5674 IMAP_TK_MANDATORY="yes"
5677 IMAP_TK_DIR="${withval}"
5678 IMAP_TK_MANDATORY="yes"
5680 esac
5684 PBX_IMAP_TK=0
5690 ISDNNET_DESCRIP="ISDN4Linux Library"
5691 ISDNNET_OPTION="isdnnet"
5693 # Check whether --with-isdnnet was given.
5694 if test "${with_isdnnet+set}" = set; then
5695 withval=$with_isdnnet;
5696 case ${withval} in
5697 n|no)
5698 USE_ISDNNET=no
5700 y|ye|yes)
5701 ISDNNET_MANDATORY="yes"
5704 ISDNNET_DIR="${withval}"
5705 ISDNNET_MANDATORY="yes"
5707 esac
5711 PBX_ISDNNET=0
5717 KDE_DESCRIP="KDE"
5718 KDE_OPTION="kde"
5720 # Check whether --with-kde was given.
5721 if test "${with_kde+set}" = set; then
5722 withval=$with_kde;
5723 case ${withval} in
5724 n|no)
5725 USE_KDE=no
5727 y|ye|yes)
5728 KDE_MANDATORY="yes"
5731 KDE_DIR="${withval}"
5732 KDE_MANDATORY="yes"
5734 esac
5738 PBX_KDE=0
5744 MISDN_DESCRIP="mISDN User Library"
5745 MISDN_OPTION="misdn"
5747 # Check whether --with-misdn was given.
5748 if test "${with_misdn+set}" = set; then
5749 withval=$with_misdn;
5750 case ${withval} in
5751 n|no)
5752 USE_MISDN=no
5754 y|ye|yes)
5755 MISDN_MANDATORY="yes"
5758 MISDN_DIR="${withval}"
5759 MISDN_MANDATORY="yes"
5761 esac
5765 PBX_MISDN=0
5771 NBS_DESCRIP="Network Broadcast Sound"
5772 NBS_OPTION="nbs"
5774 # Check whether --with-nbs was given.
5775 if test "${with_nbs+set}" = set; then
5776 withval=$with_nbs;
5777 case ${withval} in
5778 n|no)
5779 USE_NBS=no
5781 y|ye|yes)
5782 NBS_MANDATORY="yes"
5785 NBS_DIR="${withval}"
5786 NBS_MANDATORY="yes"
5788 esac
5792 PBX_NBS=0
5798 NCURSES_DESCRIP="ncurses"
5799 NCURSES_OPTION="ncurses"
5801 # Check whether --with-ncurses was given.
5802 if test "${with_ncurses+set}" = set; then
5803 withval=$with_ncurses;
5804 case ${withval} in
5805 n|no)
5806 USE_NCURSES=no
5808 y|ye|yes)
5809 NCURSES_MANDATORY="yes"
5812 NCURSES_DIR="${withval}"
5813 NCURSES_MANDATORY="yes"
5815 esac
5819 PBX_NCURSES=0
5825 NETSNMP_DESCRIP="Net-SNMP"
5826 NETSNMP_OPTION="netsnmp"
5828 # Check whether --with-netsnmp was given.
5829 if test "${with_netsnmp+set}" = set; then
5830 withval=$with_netsnmp;
5831 case ${withval} in
5832 n|no)
5833 USE_NETSNMP=no
5835 y|ye|yes)
5836 NETSNMP_MANDATORY="yes"
5839 NETSNMP_DIR="${withval}"
5840 NETSNMP_MANDATORY="yes"
5842 esac
5846 PBX_NETSNMP=0
5852 NEWT_DESCRIP="newt"
5853 NEWT_OPTION="newt"
5855 # Check whether --with-newt was given.
5856 if test "${with_newt+set}" = set; then
5857 withval=$with_newt;
5858 case ${withval} in
5859 n|no)
5860 USE_NEWT=no
5862 y|ye|yes)
5863 NEWT_MANDATORY="yes"
5866 NEWT_DIR="${withval}"
5867 NEWT_MANDATORY="yes"
5869 esac
5873 PBX_NEWT=0
5879 UNIXODBC_DESCRIP="unixODBC"
5880 UNIXODBC_OPTION="odbc"
5882 # Check whether --with-odbc was given.
5883 if test "${with_odbc+set}" = set; then
5884 withval=$with_odbc;
5885 case ${withval} in
5886 n|no)
5887 USE_UNIXODBC=no
5889 y|ye|yes)
5890 UNIXODBC_MANDATORY="yes"
5893 UNIXODBC_DIR="${withval}"
5894 UNIXODBC_MANDATORY="yes"
5896 esac
5900 PBX_UNIXODBC=0
5906 OGG_DESCRIP="OGG"
5907 OGG_OPTION="ogg"
5909 # Check whether --with-ogg was given.
5910 if test "${with_ogg+set}" = set; then
5911 withval=$with_ogg;
5912 case ${withval} in
5913 n|no)
5914 USE_OGG=no
5916 y|ye|yes)
5917 OGG_MANDATORY="yes"
5920 OGG_DIR="${withval}"
5921 OGG_MANDATORY="yes"
5923 esac
5927 PBX_OGG=0
5933 OSPTK_DESCRIP="OSP Toolkit"
5934 OSPTK_OPTION="osptk"
5936 # Check whether --with-osptk was given.
5937 if test "${with_osptk+set}" = set; then
5938 withval=$with_osptk;
5939 case ${withval} in
5940 n|no)
5941 USE_OSPTK=no
5943 y|ye|yes)
5944 OSPTK_MANDATORY="yes"
5947 OSPTK_DIR="${withval}"
5948 OSPTK_MANDATORY="yes"
5950 esac
5954 PBX_OSPTK=0
5960 OSS_DESCRIP="Open Sound System"
5961 OSS_OPTION="oss"
5963 # Check whether --with-oss was given.
5964 if test "${with_oss+set}" = set; then
5965 withval=$with_oss;
5966 case ${withval} in
5967 n|no)
5968 USE_OSS=no
5970 y|ye|yes)
5971 OSS_MANDATORY="yes"
5974 OSS_DIR="${withval}"
5975 OSS_MANDATORY="yes"
5977 esac
5981 PBX_OSS=0
5987 POPT_DESCRIP="popt"
5988 POPT_OPTION="popt"
5990 # Check whether --with-popt was given.
5991 if test "${with_popt+set}" = set; then
5992 withval=$with_popt;
5993 case ${withval} in
5994 n|no)
5995 USE_POPT=no
5997 y|ye|yes)
5998 POPT_MANDATORY="yes"
6001 POPT_DIR="${withval}"
6002 POPT_MANDATORY="yes"
6004 esac
6008 PBX_POPT=0
6014 PGSQL_DESCRIP="PostgreSQL"
6015 PGSQL_OPTION="postgres"
6017 # Check whether --with-postgres was given.
6018 if test "${with_postgres+set}" = set; then
6019 withval=$with_postgres;
6020 case ${withval} in
6021 n|no)
6022 USE_PGSQL=no
6024 y|ye|yes)
6025 PGSQL_MANDATORY="yes"
6028 PGSQL_DIR="${withval}"
6029 PGSQL_MANDATORY="yes"
6031 esac
6035 PBX_PGSQL=0
6041 PRI_DESCRIP="ISDN PRI"
6042 PRI_OPTION="pri"
6044 # Check whether --with-pri was given.
6045 if test "${with_pri+set}" = set; then
6046 withval=$with_pri;
6047 case ${withval} in
6048 n|no)
6049 USE_PRI=no
6051 y|ye|yes)
6052 PRI_MANDATORY="yes"
6055 PRI_DIR="${withval}"
6056 PRI_MANDATORY="yes"
6058 esac
6062 PBX_PRI=0
6068 PWLIB_DESCRIP="PWlib"
6069 PWLIB_OPTION="pwlib"
6071 # Check whether --with-pwlib was given.
6072 if test "${with_pwlib+set}" = set; then
6073 withval=$with_pwlib;
6074 case ${withval} in
6075 n|no)
6076 USE_PWLIB=no
6078 y|ye|yes)
6079 PWLIB_MANDATORY="yes"
6082 PWLIB_DIR="${withval}"
6083 PWLIB_MANDATORY="yes"
6085 esac
6089 PBX_PWLIB=0
6095 OPENH323_DESCRIP="OpenH323"
6096 OPENH323_OPTION="h323"
6098 # Check whether --with-h323 was given.
6099 if test "${with_h323+set}" = set; then
6100 withval=$with_h323;
6101 case ${withval} in
6102 n|no)
6103 USE_OPENH323=no
6105 y|ye|yes)
6106 OPENH323_MANDATORY="yes"
6109 OPENH323_DIR="${withval}"
6110 OPENH323_MANDATORY="yes"
6112 esac
6116 PBX_OPENH323=0
6122 QT_DESCRIP="Qt"
6123 QT_OPTION="qt"
6125 # Check whether --with-qt was given.
6126 if test "${with_qt+set}" = set; then
6127 withval=$with_qt;
6128 case ${withval} in
6129 n|no)
6130 USE_QT=no
6132 y|ye|yes)
6133 QT_MANDATORY="yes"
6136 QT_DIR="${withval}"
6137 QT_MANDATORY="yes"
6139 esac
6143 PBX_QT=0
6149 RADIUS_DESCRIP="Radius Client"
6150 RADIUS_OPTION="radius"
6152 # Check whether --with-radius was given.
6153 if test "${with_radius+set}" = set; then
6154 withval=$with_radius;
6155 case ${withval} in
6156 n|no)
6157 USE_RADIUS=no
6159 y|ye|yes)
6160 RADIUS_MANDATORY="yes"
6163 RADIUS_DIR="${withval}"
6164 RADIUS_MANDATORY="yes"
6166 esac
6170 PBX_RADIUS=0
6176 SPEEX_DESCRIP="Speex"
6177 SPEEX_OPTION="speex"
6179 # Check whether --with-speex was given.
6180 if test "${with_speex+set}" = set; then
6181 withval=$with_speex;
6182 case ${withval} in
6183 n|no)
6184 USE_SPEEX=no
6186 y|ye|yes)
6187 SPEEX_MANDATORY="yes"
6190 SPEEX_DIR="${withval}"
6191 SPEEX_MANDATORY="yes"
6193 esac
6197 PBX_SPEEX=0
6203 SQLITE_DESCRIP="SQLite"
6204 SQLITE_OPTION="sqlite"
6206 # Check whether --with-sqlite was given.
6207 if test "${with_sqlite+set}" = set; then
6208 withval=$with_sqlite;
6209 case ${withval} in
6210 n|no)
6211 USE_SQLITE=no
6213 y|ye|yes)
6214 SQLITE_MANDATORY="yes"
6217 SQLITE_DIR="${withval}"
6218 SQLITE_MANDATORY="yes"
6220 esac
6224 PBX_SQLITE=0
6230 SUPPSERV_DESCRIP="mISDN Supplemental Services"
6231 SUPPSERV_OPTION="suppserv"
6233 # Check whether --with-suppserv was given.
6234 if test "${with_suppserv+set}" = set; then
6235 withval=$with_suppserv;
6236 case ${withval} in
6237 n|no)
6238 USE_SUPPSERV=no
6240 y|ye|yes)
6241 SUPPSERV_MANDATORY="yes"
6244 SUPPSERV_DIR="${withval}"
6245 SUPPSERV_MANDATORY="yes"
6247 esac
6251 PBX_SUPPSERV=0
6257 OPENSSL_DESCRIP="OpenSSL"
6258 OPENSSL_OPTION="ssl"
6260 # Check whether --with-ssl was given.
6261 if test "${with_ssl+set}" = set; then
6262 withval=$with_ssl;
6263 case ${withval} in
6264 n|no)
6265 USE_OPENSSL=no
6267 y|ye|yes)
6268 OPENSSL_MANDATORY="yes"
6271 OPENSSL_DIR="${withval}"
6272 OPENSSL_MANDATORY="yes"
6274 esac
6278 PBX_OPENSSL=0
6284 FREETDS_DESCRIP="FreeTDS"
6285 FREETDS_OPTION="tds"
6287 # Check whether --with-tds was given.
6288 if test "${with_tds+set}" = set; then
6289 withval=$with_tds;
6290 case ${withval} in
6291 n|no)
6292 USE_FREETDS=no
6294 y|ye|yes)
6295 FREETDS_MANDATORY="yes"
6298 FREETDS_DIR="${withval}"
6299 FREETDS_MANDATORY="yes"
6301 esac
6305 PBX_FREETDS=0
6311 TERMCAP_DESCRIP="Termcap"
6312 TERMCAP_OPTION="termcap"
6314 # Check whether --with-termcap was given.
6315 if test "${with_termcap+set}" = set; then
6316 withval=$with_termcap;
6317 case ${withval} in
6318 n|no)
6319 USE_TERMCAP=no
6321 y|ye|yes)
6322 TERMCAP_MANDATORY="yes"
6325 TERMCAP_DIR="${withval}"
6326 TERMCAP_MANDATORY="yes"
6328 esac
6332 PBX_TERMCAP=0
6338 TINFO_DESCRIP="Term Info"
6339 TINFO_OPTION="tinfo"
6341 # Check whether --with-tinfo was given.
6342 if test "${with_tinfo+set}" = set; then
6343 withval=$with_tinfo;
6344 case ${withval} in
6345 n|no)
6346 USE_TINFO=no
6348 y|ye|yes)
6349 TINFO_MANDATORY="yes"
6352 TINFO_DIR="${withval}"
6353 TINFO_MANDATORY="yes"
6355 esac
6359 PBX_TINFO=0
6365 TONEZONE_DESCRIP="tonezone"
6366 TONEZONE_OPTION="tonezone"
6368 # Check whether --with-tonezone was given.
6369 if test "${with_tonezone+set}" = set; then
6370 withval=$with_tonezone;
6371 case ${withval} in
6372 n|no)
6373 USE_TONEZONE=no
6375 y|ye|yes)
6376 TONEZONE_MANDATORY="yes"
6379 TONEZONE_DIR="${withval}"
6380 TONEZONE_MANDATORY="yes"
6382 esac
6386 PBX_TONEZONE=0
6392 VORBIS_DESCRIP="Vorbis"
6393 VORBIS_OPTION="vorbis"
6395 # Check whether --with-vorbis was given.
6396 if test "${with_vorbis+set}" = set; then
6397 withval=$with_vorbis;
6398 case ${withval} in
6399 n|no)
6400 USE_VORBIS=no
6402 y|ye|yes)
6403 VORBIS_MANDATORY="yes"
6406 VORBIS_DIR="${withval}"
6407 VORBIS_MANDATORY="yes"
6409 esac
6413 PBX_VORBIS=0
6419 VPB_DESCRIP="Voicetronix API"
6420 VPB_OPTION="vpb"
6422 # Check whether --with-vpb was given.
6423 if test "${with_vpb+set}" = set; then
6424 withval=$with_vpb;
6425 case ${withval} in
6426 n|no)
6427 USE_VPB=no
6429 y|ye|yes)
6430 VPB_MANDATORY="yes"
6433 VPB_DIR="${withval}"
6434 VPB_MANDATORY="yes"
6436 esac
6440 PBX_VPB=0
6446 ZLIB_DESCRIP="zlib"
6447 ZLIB_OPTION="z"
6449 # Check whether --with-z was given.
6450 if test "${with_z+set}" = set; then
6451 withval=$with_z;
6452 case ${withval} in
6453 n|no)
6454 USE_ZLIB=no
6456 y|ye|yes)
6457 ZLIB_MANDATORY="yes"
6460 ZLIB_DIR="${withval}"
6461 ZLIB_MANDATORY="yes"
6463 esac
6467 PBX_ZLIB=0
6473 ZAPTEL_DESCRIP="Zaptel"
6474 ZAPTEL_OPTION="zaptel"
6476 # Check whether --with-zaptel was given.
6477 if test "${with_zaptel+set}" = set; then
6478 withval=$with_zaptel;
6479 case ${withval} in
6480 n|no)
6481 USE_ZAPTEL=no
6483 y|ye|yes)
6484 ZAPTEL_MANDATORY="yes"
6487 ZAPTEL_DIR="${withval}"
6488 ZAPTEL_MANDATORY="yes"
6490 esac
6494 PBX_ZAPTEL=0
6500 # check for basic system features and functionality before
6501 # checking for package libraries
6505 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6506 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 # Extract the first word of "grep ggrep" to use in msg output
6511 if test -z "$GREP"; then
6512 set dummy grep ggrep; ac_prog_name=$2
6513 if test "${ac_cv_path_GREP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 ac_path_GREP_found=false
6517 # Loop through the user's path and test for each of PROGNAME-LIST
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_prog in grep ggrep; do
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6527 # Check for GNU ac_path_GREP and select it if it is found.
6528 # Check for GNU $ac_path_GREP
6529 case `"$ac_path_GREP" --version 2>&1` in
6530 *GNU*)
6531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6533 ac_count=0
6534 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6535 while :
6537 cat "conftest.in" "conftest.in" >"conftest.tmp"
6538 mv "conftest.tmp" "conftest.in"
6539 cp "conftest.in" "conftest.nl"
6540 echo 'GREP' >> "conftest.nl"
6541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6543 ac_count=`expr $ac_count + 1`
6544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6545 # Best one so far, save it but keep looking for a better one
6546 ac_cv_path_GREP="$ac_path_GREP"
6547 ac_path_GREP_max=$ac_count
6549 # 10*(2^10) chars as input seems more than enough
6550 test $ac_count -gt 10 && break
6551 done
6552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6553 esac
6556 $ac_path_GREP_found && break 3
6557 done
6558 done
6560 done
6561 IFS=$as_save_IFS
6566 GREP="$ac_cv_path_GREP"
6567 if test -z "$GREP"; then
6568 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6569 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6570 { (exit 1); exit 1; }; }
6573 else
6574 ac_cv_path_GREP=$GREP
6579 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6580 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6581 GREP="$ac_cv_path_GREP"
6584 { echo "$as_me:$LINENO: checking for egrep" >&5
6585 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_EGREP+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6590 then ac_cv_path_EGREP="$GREP -E"
6591 else
6592 # Extract the first word of "egrep" to use in msg output
6593 if test -z "$EGREP"; then
6594 set dummy egrep; ac_prog_name=$2
6595 if test "${ac_cv_path_EGREP+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 ac_path_EGREP_found=false
6599 # Loop through the user's path and test for each of PROGNAME-LIST
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_prog in egrep; do
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6609 # Check for GNU ac_path_EGREP and select it if it is found.
6610 # Check for GNU $ac_path_EGREP
6611 case `"$ac_path_EGREP" --version 2>&1` in
6612 *GNU*)
6613 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6615 ac_count=0
6616 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6617 while :
6619 cat "conftest.in" "conftest.in" >"conftest.tmp"
6620 mv "conftest.tmp" "conftest.in"
6621 cp "conftest.in" "conftest.nl"
6622 echo 'EGREP' >> "conftest.nl"
6623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6625 ac_count=`expr $ac_count + 1`
6626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6627 # Best one so far, save it but keep looking for a better one
6628 ac_cv_path_EGREP="$ac_path_EGREP"
6629 ac_path_EGREP_max=$ac_count
6631 # 10*(2^10) chars as input seems more than enough
6632 test $ac_count -gt 10 && break
6633 done
6634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6635 esac
6638 $ac_path_EGREP_found && break 3
6639 done
6640 done
6642 done
6643 IFS=$as_save_IFS
6648 EGREP="$ac_cv_path_EGREP"
6649 if test -z "$EGREP"; then
6650 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6651 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6652 { (exit 1); exit 1; }; }
6655 else
6656 ac_cv_path_EGREP=$EGREP
6662 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6663 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6664 EGREP="$ac_cv_path_EGREP"
6667 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6669 if test "${ac_cv_header_stdc+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <stdlib.h>
6679 #include <stdarg.h>
6680 #include <string.h>
6681 #include <float.h>
6684 main ()
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 ac_cv_header_stdc=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_header_stdc=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 if test $ac_cv_header_stdc = yes; then
6719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <string.h>
6728 _ACEOF
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "memchr" >/dev/null 2>&1; then
6732 else
6733 ac_cv_header_stdc=no
6735 rm -f conftest*
6739 if test $ac_cv_header_stdc = yes; then
6740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 #include <stdlib.h>
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "free" >/dev/null 2>&1; then
6753 else
6754 ac_cv_header_stdc=no
6756 rm -f conftest*
6760 if test $ac_cv_header_stdc = yes; then
6761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6762 if test "$cross_compiling" = yes; then
6764 else
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <ctype.h>
6772 #include <stdlib.h>
6773 #if ((' ' & 0x0FF) == 0x020)
6774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6776 #else
6777 # define ISLOWER(c) \
6778 (('a' <= (c) && (c) <= 'i') \
6779 || ('j' <= (c) && (c) <= 'r') \
6780 || ('s' <= (c) && (c) <= 'z'))
6781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6782 #endif
6784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6786 main ()
6788 int i;
6789 for (i = 0; i < 256; i++)
6790 if (XOR (islower (i), ISLOWER (i))
6791 || toupper (i) != TOUPPER (i))
6792 return 2;
6793 return 0;
6795 _ACEOF
6796 rm -f conftest$ac_exeext
6797 if { (ac_try="$ac_link"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_link") 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6807 { (case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_try") 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6817 else
6818 echo "$as_me: program exited with status $ac_status" >&5
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ( exit $ac_status )
6823 ac_cv_header_stdc=no
6825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6831 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6832 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6833 if test $ac_cv_header_stdc = yes; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define STDC_HEADERS 1
6837 _ACEOF
6841 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6852 inttypes.h stdint.h unistd.h
6854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 $ac_includes_default
6868 #include <$ac_header>
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6887 eval "$as_ac_Header=yes"
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 eval "$as_ac_Header=no"
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 ac_res=`eval echo '${'$as_ac_Header'}'`
6898 { echo "$as_me:$LINENO: result: $ac_res" >&5
6899 echo "${ECHO_T}$ac_res" >&6; }
6900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6901 cat >>confdefs.h <<_ACEOF
6902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 _ACEOF
6907 done
6910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6911 # for constant arguments. Useless!
6912 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6913 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6914 if test "${ac_cv_working_alloca_h+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #include <alloca.h>
6925 main ()
6927 char *p = (char *) alloca (2 * sizeof (int));
6928 if (p) return 0;
6930 return 0;
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6935 case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938 esac
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_link") 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && {
6947 test -z "$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 } && test -s conftest$ac_exeext &&
6950 $as_test_x conftest$ac_exeext; then
6951 ac_cv_working_alloca_h=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_working_alloca_h=no
6959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6960 conftest$ac_exeext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6963 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6964 if test $ac_cv_working_alloca_h = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define HAVE_ALLOCA_H 1
6968 _ACEOF
6972 { echo "$as_me:$LINENO: checking for alloca" >&5
6973 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6974 if test "${ac_cv_func_alloca_works+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 #ifdef __GNUC__
6984 # define alloca __builtin_alloca
6985 #else
6986 # ifdef _MSC_VER
6987 # include <malloc.h>
6988 # define alloca _alloca
6989 # else
6990 # ifdef HAVE_ALLOCA_H
6991 # include <alloca.h>
6992 # else
6993 # ifdef _AIX
6994 #pragma alloca
6995 # else
6996 # ifndef alloca /* predefined by HP cc +Olibcalls */
6997 char *alloca ();
6998 # endif
6999 # endif
7000 # endif
7001 # endif
7002 #endif
7005 main ()
7007 char *p = (char *) alloca (1);
7008 if (p) return 0;
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (ac_try="$ac_link"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_link") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest$ac_exeext &&
7030 $as_test_x conftest$ac_exeext; then
7031 ac_cv_func_alloca_works=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_func_alloca_works=no
7039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7040 conftest$ac_exeext conftest.$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7043 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7045 if test $ac_cv_func_alloca_works = yes; then
7047 cat >>confdefs.h <<\_ACEOF
7048 #define HAVE_ALLOCA 1
7049 _ACEOF
7051 else
7052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7053 # that cause trouble. Some versions do not even contain alloca or
7054 # contain a buggy version. If you still want to use their alloca,
7055 # use ar to extract alloca.o from them instead of compiling alloca.c.
7057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7059 cat >>confdefs.h <<\_ACEOF
7060 #define C_ALLOCA 1
7061 _ACEOF
7064 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7065 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7066 if test "${ac_cv_os_cray+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #if defined CRAY && ! defined CRAY2
7076 webecray
7077 #else
7078 wenotbecray
7079 #endif
7081 _ACEOF
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "webecray" >/dev/null 2>&1; then
7084 ac_cv_os_cray=yes
7085 else
7086 ac_cv_os_cray=no
7088 rm -f conftest*
7091 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7092 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7093 if test $ac_cv_os_cray = yes; then
7094 for ac_func in _getb67 GETB67 getb67; do
7095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7109 #define $ac_func innocuous_$ac_func
7111 /* System header to define __stub macros and hopefully few prototypes,
7112 which can conflict with char $ac_func (); below.
7113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114 <limits.h> exists even on freestanding compilers. */
7116 #ifdef __STDC__
7117 # include <limits.h>
7118 #else
7119 # include <assert.h>
7120 #endif
7122 #undef $ac_func
7124 /* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7127 #ifdef __cplusplus
7128 extern "C"
7129 #endif
7130 char $ac_func ();
7131 /* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134 #if defined __stub_$ac_func || defined __stub___$ac_func
7135 choke me
7136 #endif
7139 main ()
7141 return $ac_func ();
7143 return 0;
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (ac_try="$ac_link"
7148 case "(($ac_try" in
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7151 esac
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153 (eval "$ac_link") 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && {
7160 test -z "$ac_c_werror_flag" ||
7161 test ! -s conftest.err
7162 } && test -s conftest$ac_exeext &&
7163 $as_test_x conftest$ac_exeext; then
7164 eval "$as_ac_var=yes"
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 eval "$as_ac_var=no"
7172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7173 conftest$ac_exeext conftest.$ac_ext
7175 ac_res=`eval echo '${'$as_ac_var'}'`
7176 { echo "$as_me:$LINENO: result: $ac_res" >&5
7177 echo "${ECHO_T}$ac_res" >&6; }
7178 if test `eval echo '${'$as_ac_var'}'` = yes; then
7180 cat >>confdefs.h <<_ACEOF
7181 #define CRAY_STACKSEG_END $ac_func
7182 _ACEOF
7184 break
7187 done
7190 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7191 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7192 if test "${ac_cv_c_stack_direction+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 if test "$cross_compiling" = yes; then
7196 ac_cv_c_stack_direction=0
7197 else
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 find_stack_direction ()
7208 static char *addr = 0;
7209 auto char dummy;
7210 if (addr == 0)
7212 addr = &dummy;
7213 return find_stack_direction ();
7215 else
7216 return (&dummy > addr) ? 1 : -1;
7220 main ()
7222 return find_stack_direction () < 0;
7224 _ACEOF
7225 rm -f conftest$ac_exeext
7226 if { (ac_try="$ac_link"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_link") 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7236 { (case "(($ac_try" in
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7239 esac
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_try") 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_c_stack_direction=1
7246 else
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ( exit $ac_status )
7252 ac_cv_c_stack_direction=-1
7254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7260 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7262 cat >>confdefs.h <<_ACEOF
7263 #define STACK_DIRECTION $ac_cv_c_stack_direction
7264 _ACEOF
7274 ac_header_dirent=no
7275 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7276 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7277 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7278 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <sys/types.h>
7289 #include <$ac_hdr>
7292 main ()
7294 if ((DIR *) 0)
7295 return 0;
7297 return 0;
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7302 case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 eval "$as_ac_Header=yes"
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 eval "$as_ac_Header=no"
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 ac_res=`eval echo '${'$as_ac_Header'}'`
7328 { echo "$as_me:$LINENO: result: $ac_res" >&5
7329 echo "${ECHO_T}$ac_res" >&6; }
7330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7333 _ACEOF
7335 ac_header_dirent=$ac_hdr; break
7338 done
7339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7340 if test $ac_header_dirent = dirent.h; then
7341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7343 if test "${ac_cv_search_opendir+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 ac_func_search_save_LIBS=$LIBS
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h. */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7357 #ifdef __cplusplus
7358 extern "C"
7359 #endif
7360 char opendir ();
7362 main ()
7364 return opendir ();
7366 return 0;
7368 _ACEOF
7369 for ac_lib in '' dir; do
7370 if test -z "$ac_lib"; then
7371 ac_res="none required"
7372 else
7373 ac_res=-l$ac_lib
7374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7376 rm -f conftest.$ac_objext conftest$ac_exeext
7377 if { (ac_try="$ac_link"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_link") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext &&
7393 $as_test_x conftest$ac_exeext; then
7394 ac_cv_search_opendir=$ac_res
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403 conftest$ac_exeext
7404 if test "${ac_cv_search_opendir+set}" = set; then
7405 break
7407 done
7408 if test "${ac_cv_search_opendir+set}" = set; then
7410 else
7411 ac_cv_search_opendir=no
7413 rm conftest.$ac_ext
7414 LIBS=$ac_func_search_save_LIBS
7416 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7417 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7418 ac_res=$ac_cv_search_opendir
7419 if test "$ac_res" != no; then
7420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7424 else
7425 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7427 if test "${ac_cv_search_opendir+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 ac_func_search_save_LIBS=$LIBS
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7441 #ifdef __cplusplus
7442 extern "C"
7443 #endif
7444 char opendir ();
7446 main ()
7448 return opendir ();
7450 return 0;
7452 _ACEOF
7453 for ac_lib in '' x; do
7454 if test -z "$ac_lib"; then
7455 ac_res="none required"
7456 else
7457 ac_res=-l$ac_lib
7458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_link") 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext &&
7477 $as_test_x conftest$ac_exeext; then
7478 ac_cv_search_opendir=$ac_res
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7487 conftest$ac_exeext
7488 if test "${ac_cv_search_opendir+set}" = set; then
7489 break
7491 done
7492 if test "${ac_cv_search_opendir+set}" = set; then
7494 else
7495 ac_cv_search_opendir=no
7497 rm conftest.$ac_ext
7498 LIBS=$ac_func_search_save_LIBS
7500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7502 ac_res=$ac_cv_search_opendir
7503 if test "$ac_res" != no; then
7504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7510 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7512 if test "${ac_cv_header_stdc+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 #include <stdlib.h>
7522 #include <stdarg.h>
7523 #include <string.h>
7524 #include <float.h>
7527 main ()
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 ac_cv_header_stdc=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_cv_header_stdc=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 if test $ac_cv_header_stdc = yes; then
7562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <string.h>
7571 _ACEOF
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573 $EGREP "memchr" >/dev/null 2>&1; then
7575 else
7576 ac_cv_header_stdc=no
7578 rm -f conftest*
7582 if test $ac_cv_header_stdc = yes; then
7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #include <stdlib.h>
7592 _ACEOF
7593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7594 $EGREP "free" >/dev/null 2>&1; then
7596 else
7597 ac_cv_header_stdc=no
7599 rm -f conftest*
7603 if test $ac_cv_header_stdc = yes; then
7604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7605 if test "$cross_compiling" = yes; then
7607 else
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 #include <ctype.h>
7615 #include <stdlib.h>
7616 #if ((' ' & 0x0FF) == 0x020)
7617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7619 #else
7620 # define ISLOWER(c) \
7621 (('a' <= (c) && (c) <= 'i') \
7622 || ('j' <= (c) && (c) <= 'r') \
7623 || ('s' <= (c) && (c) <= 'z'))
7624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7625 #endif
7627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7629 main ()
7631 int i;
7632 for (i = 0; i < 256; i++)
7633 if (XOR (islower (i), ISLOWER (i))
7634 || toupper (i) != TOUPPER (i))
7635 return 2;
7636 return 0;
7638 _ACEOF
7639 rm -f conftest$ac_exeext
7640 if { (ac_try="$ac_link"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_link") 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7650 { (case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_try") 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7660 else
7661 echo "$as_me: program exited with status $ac_status" >&5
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 ( exit $ac_status )
7666 ac_cv_header_stdc=no
7668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7674 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7675 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7676 if test $ac_cv_header_stdc = yes; then
7678 cat >>confdefs.h <<\_ACEOF
7679 #define STDC_HEADERS 1
7680 _ACEOF
7684 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7685 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7686 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <sys/types.h>
7696 #include <sys/wait.h>
7697 #ifndef WEXITSTATUS
7698 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7699 #endif
7700 #ifndef WIFEXITED
7701 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7702 #endif
7705 main ()
7707 int s;
7708 wait (&s);
7709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7711 return 0;
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7716 case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7731 ac_cv_header_sys_wait_h=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_header_sys_wait_h=no
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7743 if test $ac_cv_header_sys_wait_h = yes; then
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_SYS_WAIT_H 1
7747 _ACEOF
7774 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_res=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785 echo "${ECHO_T}$ac_res" >&6; }
7786 else
7787 # Is the header compilable?
7788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h. */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 $ac_includes_default
7797 #include <$ac_header>
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_header_compiler=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_header_compiler=no
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7826 echo "${ECHO_T}$ac_header_compiler" >&6; }
7828 # Is the header present?
7829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <$ac_header>
7838 _ACEOF
7839 if { (ac_try="$ac_cpp conftest.$ac_ext"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev/null && {
7852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 }; then
7855 ac_header_preproc=yes
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_header_preproc=no
7863 rm -f conftest.err conftest.$ac_ext
7864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7865 echo "${ECHO_T}$ac_header_preproc" >&6; }
7867 # So? What about this header?
7868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7869 yes:no: )
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7874 ac_header_preproc=yes
7876 no:yes:* )
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7891 esac
7892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 eval "$as_ac_Header=\$ac_header_preproc"
7899 ac_res=`eval echo '${'$as_ac_Header'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7911 done
7914 # Check whether --enable-largefile was given.
7915 if test "${enable_largefile+set}" = set; then
7916 enableval=$enable_largefile;
7919 if test "$enable_largefile" != no; then
7921 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7922 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7923 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 ac_cv_sys_largefile_CC=no
7927 if test "$GCC" != yes; then
7928 ac_save_CC=$CC
7929 while :; do
7930 # IRIX 6.2 and later do not support large files by default,
7931 # so use the C compiler's -n32 option if that helps.
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <sys/types.h>
7939 /* Check that off_t can represent 2**63 - 1 correctly.
7940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941 since some C++ compilers masquerading as C compilers
7942 incorrectly reject 9223372036854775807. */
7943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945 && LARGE_OFF_T % 2147483647 == 1)
7946 ? 1 : -1];
7948 main ()
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 break
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7980 rm -f core conftest.err conftest.$ac_objext
7981 CC="$CC -n32"
7982 rm -f conftest.$ac_objext
7983 if { (ac_try="$ac_compile"
7984 case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_compile") 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest.$ac_objext; then
7999 ac_cv_sys_largefile_CC=' -n32'; break
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8007 rm -f core conftest.err conftest.$ac_objext
8008 break
8009 done
8010 CC=$ac_save_CC
8011 rm -f conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8015 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8016 if test "$ac_cv_sys_largefile_CC" != no; then
8017 CC=$CC$ac_cv_sys_largefile_CC
8020 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8021 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8022 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 while :; do
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 #include <sys/types.h>
8033 /* Check that off_t can represent 2**63 - 1 correctly.
8034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8035 since some C++ compilers masquerading as C compilers
8036 incorrectly reject 9223372036854775807. */
8037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8039 && LARGE_OFF_T % 2147483647 == 1)
8040 ? 1 : -1];
8042 main ()
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 ac_cv_sys_file_offset_bits=no; break
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #define _FILE_OFFSET_BITS 64
8082 #include <sys/types.h>
8083 /* Check that off_t can represent 2**63 - 1 correctly.
8084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8085 since some C++ compilers masquerading as C compilers
8086 incorrectly reject 9223372036854775807. */
8087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8089 && LARGE_OFF_T % 2147483647 == 1)
8090 ? 1 : -1];
8092 main ()
8096 return 0;
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8101 case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104 esac
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.$ac_objext; then
8116 ac_cv_sys_file_offset_bits=64; break
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 ac_cv_sys_file_offset_bits=unknown
8126 break
8127 done
8129 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8130 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8131 case $ac_cv_sys_file_offset_bits in #(
8132 no | unknown) ;;
8134 cat >>confdefs.h <<_ACEOF
8135 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8136 _ACEOF
8138 esac
8139 rm -f conftest*
8140 if test $ac_cv_sys_file_offset_bits = unknown; then
8141 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8142 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8143 if test "${ac_cv_sys_large_files+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 while :; do
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <sys/types.h>
8154 /* Check that off_t can represent 2**63 - 1 correctly.
8155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8156 since some C++ compilers masquerading as C compilers
8157 incorrectly reject 9223372036854775807. */
8158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8160 && LARGE_OFF_T % 2147483647 == 1)
8161 ? 1 : -1];
8163 main ()
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_cv_sys_large_files=no; break
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 #define _LARGE_FILES 1
8203 #include <sys/types.h>
8204 /* Check that off_t can represent 2**63 - 1 correctly.
8205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8206 since some C++ compilers masquerading as C compilers
8207 incorrectly reject 9223372036854775807. */
8208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8210 && LARGE_OFF_T % 2147483647 == 1)
8211 ? 1 : -1];
8213 main ()
8217 return 0;
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8237 ac_cv_sys_large_files=1; break
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 ac_cv_sys_large_files=unknown
8247 break
8248 done
8250 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8251 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8252 case $ac_cv_sys_large_files in #(
8253 no | unknown) ;;
8255 cat >>confdefs.h <<_ACEOF
8256 #define _LARGE_FILES $ac_cv_sys_large_files
8257 _ACEOF
8259 esac
8260 rm -f conftest*
8265 # Checks for typedefs, structures, and compiler characteristics.
8266 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8267 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8268 if test "${ac_cv_header_stdbool_h+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 #include <stdbool.h>
8279 #ifndef bool
8280 "error: bool is not defined"
8281 #endif
8282 #ifndef false
8283 "error: false is not defined"
8284 #endif
8285 #if false
8286 "error: false is not 0"
8287 #endif
8288 #ifndef true
8289 "error: true is not defined"
8290 #endif
8291 #if true != 1
8292 "error: true is not 1"
8293 #endif
8294 #ifndef __bool_true_false_are_defined
8295 "error: __bool_true_false_are_defined is not defined"
8296 #endif
8298 struct s { _Bool s: 1; _Bool t; } s;
8300 char a[true == 1 ? 1 : -1];
8301 char b[false == 0 ? 1 : -1];
8302 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8303 char d[(bool) 0.5 == true ? 1 : -1];
8304 bool e = &s;
8305 char f[(_Bool) 0.0 == false ? 1 : -1];
8306 char g[true];
8307 char h[sizeof (_Bool)];
8308 char i[sizeof s.t];
8309 enum { j = false, k = true, l = false * true, m = true * 256 };
8310 _Bool n[m];
8311 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8312 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8313 # if defined __xlc__ || defined __GNUC__
8314 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8315 reported by James Lemley on 2005-10-05; see
8316 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8317 This test is not quite right, since xlc is allowed to
8318 reject this program, as the initializer for xlcbug is
8319 not one of the forms that C requires support for.
8320 However, doing the test right would require a runtime
8321 test, and that would make cross-compilation harder.
8322 Let us hope that IBM fixes the xlc bug, and also adds
8323 support for this kind of constant expression. In the
8324 meantime, this test will reject xlc, which is OK, since
8325 our stdbool.h substitute should suffice. We also test
8326 this with GCC, where it should work, to detect more
8327 quickly whether someone messes up the test in the
8328 future. */
8329 char digs[] = "0123456789";
8330 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8331 # endif
8332 /* Catch a bug in an HP-UX C compiler. See
8333 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8334 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8336 _Bool q = true;
8337 _Bool *pq = &q;
8340 main ()
8343 *pq |= q;
8344 *pq |= ! q;
8345 /* Refer to every declared value, to avoid compiler optimizations. */
8346 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8347 + !m + !n + !o + !p + !q + !pq);
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest.$ac_objext; then
8370 ac_cv_header_stdbool_h=yes
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_cv_header_stdbool_h=no
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8381 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8382 { echo "$as_me:$LINENO: checking for _Bool" >&5
8383 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8384 if test "${ac_cv_type__Bool+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 typedef _Bool ac__type_new_;
8396 main ()
8398 if ((ac__type_new_ *) 0)
8399 return 0;
8400 if (sizeof (ac__type_new_))
8401 return 0;
8403 return 0;
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then
8423 ac_cv_type__Bool=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_type__Bool=no
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8434 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8435 if test $ac_cv_type__Bool = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE__BOOL 1
8439 _ACEOF
8444 if test $ac_cv_header_stdbool_h = yes; then
8446 cat >>confdefs.h <<\_ACEOF
8447 #define HAVE_STDBOOL_H 1
8448 _ACEOF
8452 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8453 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8454 if test "${ac_cv_c_const+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8465 main ()
8467 /* FIXME: Include the comments suggested by Paul. */
8468 #ifndef __cplusplus
8469 /* Ultrix mips cc rejects this. */
8470 typedef int charset[2];
8471 const charset cs;
8472 /* SunOS 4.1.1 cc rejects this. */
8473 char const *const *pcpcc;
8474 char **ppc;
8475 /* NEC SVR4.0.2 mips cc rejects this. */
8476 struct point {int x, y;};
8477 static struct point const zero = {0,0};
8478 /* AIX XL C 1.02.0.0 rejects this.
8479 It does not let you subtract one const X* pointer from another in
8480 an arm of an if-expression whose if-part is not a constant
8481 expression */
8482 const char *g = "string";
8483 pcpcc = &g + (g ? g-g : 0);
8484 /* HPUX 7.0 cc rejects these. */
8485 ++pcpcc;
8486 ppc = (char**) pcpcc;
8487 pcpcc = (char const *const *) ppc;
8488 { /* SCO 3.2v4 cc rejects this. */
8489 char *t;
8490 char const *s = 0 ? (char *) 0 : (char const *) 0;
8492 *t++ = 0;
8493 if (s) return 0;
8495 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8496 int x[] = {25, 17};
8497 const int *foo = &x[0];
8498 ++foo;
8500 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8501 typedef const int *iptr;
8502 iptr p = 0;
8503 ++p;
8505 { /* AIX XL C 1.02.0.0 rejects this saying
8506 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8507 struct s { int j; const int *ap[3]; };
8508 struct s *b; b->j = 5;
8510 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8511 const int foo = 10;
8512 if (!foo) return 0;
8514 return !cs[0] && !zero.x;
8515 #endif
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_c_const=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_c_const=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8549 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8550 if test $ac_cv_c_const = no; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define const
8554 _ACEOF
8558 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8559 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8560 if test "${ac_cv_type_uid_t+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <sys/types.h>
8571 _ACEOF
8572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8573 $EGREP "uid_t" >/dev/null 2>&1; then
8574 ac_cv_type_uid_t=yes
8575 else
8576 ac_cv_type_uid_t=no
8578 rm -f conftest*
8581 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8582 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8583 if test $ac_cv_type_uid_t = no; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define uid_t int
8587 _ACEOF
8590 cat >>confdefs.h <<\_ACEOF
8591 #define gid_t int
8592 _ACEOF
8596 { echo "$as_me:$LINENO: checking for inline" >&5
8597 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8598 if test "${ac_cv_c_inline+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 ac_cv_c_inline=no
8602 for ac_kw in inline __inline__ __inline; do
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 #ifndef __cplusplus
8610 typedef int foo_t;
8611 static $ac_kw foo_t static_foo () {return 0; }
8612 $ac_kw foo_t foo () {return 0; }
8613 #endif
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8633 ac_cv_c_inline=$ac_kw
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 test "$ac_cv_c_inline" != no && break
8643 done
8646 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8647 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8650 case $ac_cv_c_inline in
8651 inline | yes) ;;
8653 case $ac_cv_c_inline in
8654 no) ac_val=;;
8655 *) ac_val=$ac_cv_c_inline;;
8656 esac
8657 cat >>confdefs.h <<_ACEOF
8658 #ifndef __cplusplus
8659 #define inline $ac_val
8660 #endif
8661 _ACEOF
8663 esac
8665 { echo "$as_me:$LINENO: checking for mode_t" >&5
8666 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8667 if test "${ac_cv_type_mode_t+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h. */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 typedef mode_t ac__type_new_;
8679 main ()
8681 if ((ac__type_new_ *) 0)
8682 return 0;
8683 if (sizeof (ac__type_new_))
8684 return 0;
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8691 case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_cv_type_mode_t=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_type_mode_t=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8717 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8718 if test $ac_cv_type_mode_t = yes; then
8720 else
8722 cat >>confdefs.h <<_ACEOF
8723 #define mode_t int
8724 _ACEOF
8728 { echo "$as_me:$LINENO: checking for off_t" >&5
8729 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_off_t+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef off_t ac__type_new_;
8742 main ()
8744 if ((ac__type_new_ *) 0)
8745 return 0;
8746 if (sizeof (ac__type_new_))
8747 return 0;
8749 return 0;
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (ac_try="$ac_compile"
8754 case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_type_off_t=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_type_off_t=no
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8780 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8781 if test $ac_cv_type_off_t = yes; then
8783 else
8785 cat >>confdefs.h <<_ACEOF
8786 #define off_t long int
8787 _ACEOF
8791 { echo "$as_me:$LINENO: checking for pid_t" >&5
8792 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8793 if test "${ac_cv_type_pid_t+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8803 typedef pid_t ac__type_new_;
8805 main ()
8807 if ((ac__type_new_ *) 0)
8808 return 0;
8809 if (sizeof (ac__type_new_))
8810 return 0;
8812 return 0;
8814 _ACEOF
8815 rm -f conftest.$ac_objext
8816 if { (ac_try="$ac_compile"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_c_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest.$ac_objext; then
8832 ac_cv_type_pid_t=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_cv_type_pid_t=no
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8843 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8844 if test $ac_cv_type_pid_t = yes; then
8846 else
8848 cat >>confdefs.h <<_ACEOF
8849 #define pid_t int
8850 _ACEOF
8854 { echo "$as_me:$LINENO: checking for size_t" >&5
8855 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8856 if test "${ac_cv_type_size_t+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef size_t ac__type_new_;
8868 main ()
8870 if ((ac__type_new_ *) 0)
8871 return 0;
8872 if (sizeof (ac__type_new_))
8873 return 0;
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8880 case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_cv_type_size_t=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_cv_type_size_t=no
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8906 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8907 if test $ac_cv_type_size_t = yes; then
8909 else
8911 cat >>confdefs.h <<_ACEOF
8912 #define size_t unsigned int
8913 _ACEOF
8917 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8918 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
8919 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8930 main ()
8932 static struct stat ac_aggr;
8933 if (ac_aggr.st_blksize)
8934 return 0;
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (ac_try="$ac_compile"
8941 case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_cv_member_struct_stat_st_blksize=yes
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8969 main ()
8971 static struct stat ac_aggr;
8972 if (sizeof ac_aggr.st_blksize)
8973 return 0;
8975 return 0;
8977 _ACEOF
8978 rm -f conftest.$ac_objext
8979 if { (ac_try="$ac_compile"
8980 case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_compile") 2>conftest.er1
8986 ac_status=$?
8987 grep -v '^ *+' conftest.er1 >conftest.err
8988 rm -f conftest.er1
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest.$ac_objext; then
8995 ac_cv_member_struct_stat_st_blksize=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_member_struct_stat_st_blksize=no
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9009 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9010 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9014 _ACEOF
9019 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9020 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9021 if test "${ac_cv_header_time+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 #include <sys/types.h>
9031 #include <sys/time.h>
9032 #include <time.h>
9035 main ()
9037 if ((struct tm *) 0)
9038 return 0;
9040 return 0;
9042 _ACEOF
9043 rm -f conftest.$ac_objext
9044 if { (ac_try="$ac_compile"
9045 case "(($ac_try" in
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
9060 ac_cv_header_time=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_header_time=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9071 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9072 if test $ac_cv_header_time = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define TIME_WITH_SYS_TIME 1
9076 _ACEOF
9080 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9081 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9082 if test "${ac_cv_struct_tm+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9092 #include <time.h>
9095 main ()
9097 struct tm tm;
9098 int *p = &tm.tm_sec;
9099 return !p;
9101 return 0;
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (ac_try="$ac_compile"
9106 case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9121 ac_cv_struct_tm=time.h
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_cv_struct_tm=sys/time.h
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9132 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9133 if test $ac_cv_struct_tm = sys/time.h; then
9135 cat >>confdefs.h <<\_ACEOF
9136 #define TM_IN_SYS_TIME 1
9137 _ACEOF
9141 { echo "$as_me:$LINENO: checking for working volatile" >&5
9142 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9143 if test "${ac_cv_c_volatile+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9154 main ()
9157 volatile int x;
9158 int * volatile y = (int *) 0;
9159 return !x && !y;
9161 return 0;
9163 _ACEOF
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_compile") 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } && {
9178 test -z "$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 } && test -s conftest.$ac_objext; then
9181 ac_cv_c_volatile=yes
9182 else
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_cv_c_volatile=no
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9192 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9193 if test $ac_cv_c_volatile = no; then
9195 cat >>confdefs.h <<\_ACEOF
9196 #define volatile
9197 _ACEOF
9201 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9202 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9203 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 $ac_includes_default
9213 typedef ptrdiff_t ac__type_new_;
9215 main ()
9217 if ((ac__type_new_ *) 0)
9218 return 0;
9219 if (sizeof (ac__type_new_))
9220 return 0;
9222 return 0;
9224 _ACEOF
9225 rm -f conftest.$ac_objext
9226 if { (ac_try="$ac_compile"
9227 case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_compile") 2>conftest.er1
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest.$ac_objext; then
9242 ac_cv_type_ptrdiff_t=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_type_ptrdiff_t=no
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9253 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9254 if test $ac_cv_type_ptrdiff_t = yes; then
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_PTRDIFF_T 1
9258 _ACEOF
9264 # Checks for library functions.
9266 for ac_header in unistd.h
9268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 ac_res=`eval echo '${'$as_ac_Header'}'`
9276 { echo "$as_me:$LINENO: result: $ac_res" >&5
9277 echo "${ECHO_T}$ac_res" >&6; }
9278 else
9279 # Is the header compilable?
9280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 #include <$ac_header>
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (ac_try="$ac_compile"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest.$ac_objext; then
9308 ac_header_compiler=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_header_compiler=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9318 echo "${ECHO_T}$ac_header_compiler" >&6; }
9320 # Is the header present?
9321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9323 cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h. */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9329 #include <$ac_header>
9330 _ACEOF
9331 if { (ac_try="$ac_cpp conftest.$ac_ext"
9332 case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9338 ac_status=$?
9339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } >/dev/null && {
9344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 }; then
9347 ac_header_preproc=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_header_preproc=no
9355 rm -f conftest.err conftest.$ac_ext
9356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9357 echo "${ECHO_T}$ac_header_preproc" >&6; }
9359 # So? What about this header?
9360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9361 yes:no: )
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9366 ac_header_preproc=yes
9368 no:yes:* )
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9383 esac
9384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 eval "$as_ac_Header=\$ac_header_preproc"
9391 ac_res=`eval echo '${'$as_ac_Header'}'`
9392 { echo "$as_me:$LINENO: result: $ac_res" >&5
9393 echo "${ECHO_T}$ac_res" >&6; }
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397 cat >>confdefs.h <<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 _ACEOF
9403 done
9405 { echo "$as_me:$LINENO: checking for working chown" >&5
9406 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9407 if test "${ac_cv_func_chown_works+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 if test "$cross_compiling" = yes; then
9411 ac_cv_func_chown_works=no
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 #include <fcntl.h>
9423 main ()
9425 char *f = "conftest.chown";
9426 struct stat before, after;
9428 if (creat (f, 0600) < 0)
9429 return 1;
9430 if (stat (f, &before) < 0)
9431 return 1;
9432 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9433 return 1;
9434 if (stat (f, &after) < 0)
9435 return 1;
9436 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9439 return 0;
9441 _ACEOF
9442 rm -f conftest$ac_exeext
9443 if { (ac_try="$ac_link"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_link") 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9453 { (case "(($ac_try" in
9454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9456 esac
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_try") 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_func_chown_works=yes
9463 else
9464 echo "$as_me: program exited with status $ac_status" >&5
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ( exit $ac_status )
9469 ac_cv_func_chown_works=no
9471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9475 rm -f conftest.chown
9478 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9479 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9480 if test $ac_cv_func_chown_works = yes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_CHOWN 1
9484 _ACEOF
9488 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9489 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9490 if test "${ac_cv_func_closedir_void+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 if test "$cross_compiling" = yes; then
9494 ac_cv_func_closedir_void=yes
9495 else
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 #include <$ac_header_dirent>
9504 #ifndef __cplusplus
9505 int closedir ();
9506 #endif
9509 main ()
9511 return closedir (opendir (".")) != 0;
9513 return 0;
9515 _ACEOF
9516 rm -f conftest$ac_exeext
9517 if { (ac_try="$ac_link"
9518 case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_func_closedir_void=no
9537 else
9538 echo "$as_me: program exited with status $ac_status" >&5
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ( exit $ac_status )
9543 ac_cv_func_closedir_void=yes
9545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9551 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9552 if test $ac_cv_func_closedir_void = yes; then
9554 cat >>confdefs.h <<\_ACEOF
9555 #define CLOSEDIR_VOID 1
9556 _ACEOF
9560 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9561 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_error_at_line+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 #include <error.h>
9573 main ()
9575 error_at_line (0, 0, "", 0, "an error occurred");
9577 return 0;
9579 _ACEOF
9580 rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (ac_try="$ac_link"
9582 case "(($ac_try" in
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_link") 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest$ac_exeext &&
9597 $as_test_x conftest$ac_exeext; then
9598 ac_cv_lib_error_at_line=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_error_at_line=no
9606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9607 conftest$ac_exeext conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9610 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
9611 if test $ac_cv_lib_error_at_line = no; then
9612 case " $LIBOBJS " in
9613 *" error.$ac_objext "* ) ;;
9614 *) LIBOBJS="$LIBOBJS error.$ac_objext"
9616 esac
9621 for ac_header in vfork.h
9623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_res=`eval echo '${'$as_ac_Header'}'`
9631 { echo "$as_me:$LINENO: result: $ac_res" >&5
9632 echo "${ECHO_T}$ac_res" >&6; }
9633 else
9634 # Is the header compilable?
9635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9644 #include <$ac_header>
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (ac_try="$ac_compile"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_compile") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest.$ac_objext; then
9663 ac_header_compiler=yes
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_header_compiler=no
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9673 echo "${ECHO_T}$ac_header_compiler" >&6; }
9675 # Is the header present?
9676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #include <$ac_header>
9685 _ACEOF
9686 if { (ac_try="$ac_cpp conftest.$ac_ext"
9687 case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev/null && {
9699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 }; then
9702 ac_header_preproc=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_header_preproc=no
9710 rm -f conftest.err conftest.$ac_ext
9711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9712 echo "${ECHO_T}$ac_header_preproc" >&6; }
9714 # So? What about this header?
9715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9716 yes:no: )
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9721 ac_header_preproc=yes
9723 no:yes:* )
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9738 esac
9739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 eval "$as_ac_Header=\$ac_header_preproc"
9746 ac_res=`eval echo '${'$as_ac_Header'}'`
9747 { echo "$as_me:$LINENO: result: $ac_res" >&5
9748 echo "${ECHO_T}$ac_res" >&6; }
9751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9752 cat >>confdefs.h <<_ACEOF
9753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9754 _ACEOF
9758 done
9762 for ac_func in fork vfork
9764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778 #define $ac_func innocuous_$ac_func
9780 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char $ac_func (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9785 #ifdef __STDC__
9786 # include <limits.h>
9787 #else
9788 # include <assert.h>
9789 #endif
9791 #undef $ac_func
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char $ac_func ();
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined __stub_$ac_func || defined __stub___$ac_func
9804 choke me
9805 #endif
9808 main ()
9810 return $ac_func ();
9812 return 0;
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9817 case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext &&
9832 $as_test_x conftest$ac_exeext; then
9833 eval "$as_ac_var=yes"
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 eval "$as_ac_var=no"
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842 conftest$ac_exeext conftest.$ac_ext
9844 ac_res=`eval echo '${'$as_ac_var'}'`
9845 { echo "$as_me:$LINENO: result: $ac_res" >&5
9846 echo "${ECHO_T}$ac_res" >&6; }
9847 if test `eval echo '${'$as_ac_var'}'` = yes; then
9848 cat >>confdefs.h <<_ACEOF
9849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9850 _ACEOF
9853 done
9855 if test "x$ac_cv_func_fork" = xyes; then
9856 { echo "$as_me:$LINENO: checking for working fork" >&5
9857 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9858 if test "${ac_cv_func_fork_works+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 if test "$cross_compiling" = yes; then
9862 ac_cv_func_fork_works=cross
9863 else
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9872 main ()
9875 /* By Ruediger Kuhlmann. */
9876 return fork () < 0;
9879 return 0;
9881 _ACEOF
9882 rm -f conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_func_fork_works=yes
9903 else
9904 echo "$as_me: program exited with status $ac_status" >&5
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ( exit $ac_status )
9909 ac_cv_func_fork_works=no
9911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9917 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
9919 else
9920 ac_cv_func_fork_works=$ac_cv_func_fork
9922 if test "x$ac_cv_func_fork_works" = xcross; then
9923 case $host in
9924 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
9925 # Override, as these systems have only a dummy fork() stub
9926 ac_cv_func_fork_works=no
9929 ac_cv_func_fork_works=yes
9931 esac
9932 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9933 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9935 ac_cv_func_vfork_works=$ac_cv_func_vfork
9936 if test "x$ac_cv_func_vfork" = xyes; then
9937 { echo "$as_me:$LINENO: checking for working vfork" >&5
9938 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9939 if test "${ac_cv_func_vfork_works+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 if test "$cross_compiling" = yes; then
9943 ac_cv_func_vfork_works=cross
9944 else
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 /* Thanks to Paul Eggert for this test. */
9952 $ac_includes_default
9953 #include <sys/wait.h>
9954 #ifdef HAVE_VFORK_H
9955 # include <vfork.h>
9956 #endif
9957 /* On some sparc systems, changes by the child to local and incoming
9958 argument registers are propagated back to the parent. The compiler
9959 is told about this with #include <vfork.h>, but some compilers
9960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9961 static variable whose address is put into a register that is
9962 clobbered by the vfork. */
9963 static void
9964 #ifdef __cplusplus
9965 sparc_address_test (int arg)
9966 # else
9967 sparc_address_test (arg) int arg;
9968 #endif
9970 static pid_t child;
9971 if (!child) {
9972 child = vfork ();
9973 if (child < 0) {
9974 perror ("vfork");
9975 _exit(2);
9977 if (!child) {
9978 arg = getpid();
9979 write(-1, "", 0);
9980 _exit (arg);
9986 main ()
9988 pid_t parent = getpid ();
9989 pid_t child;
9991 sparc_address_test (0);
9993 child = vfork ();
9995 if (child == 0) {
9996 /* Here is another test for sparc vfork register problems. This
9997 test uses lots of local variables, at least as many local
9998 variables as main has allocated so far including compiler
9999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10001 reuse the register of parent for one of the local variables,
10002 since it will think that parent can't possibly be used any more
10003 in this routine. Assigning to the local variable will thus
10004 munge parent in the parent process. */
10005 pid_t
10006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10008 /* Convince the compiler that p..p7 are live; otherwise, it might
10009 use the same hardware register for all 8 local variables. */
10010 if (p != p1 || p != p2 || p != p3 || p != p4
10011 || p != p5 || p != p6 || p != p7)
10012 _exit(1);
10014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10015 from child file descriptors. If the child closes a descriptor
10016 before it execs or exits, this munges the parent's descriptor
10017 as well. Test for this by closing stdout in the child. */
10018 _exit(close(fileno(stdout)) != 0);
10019 } else {
10020 int status;
10021 struct stat st;
10023 while (wait(&status) != child)
10025 return (
10026 /* Was there some problem with vforking? */
10027 child < 0
10029 /* Did the child fail? (This shouldn't happen.) */
10030 || status
10032 /* Did the vfork/compiler bug occur? */
10033 || parent != getpid()
10035 /* Did the file descriptor bug occur? */
10036 || fstat(fileno(stdout), &st) != 0
10040 _ACEOF
10041 rm -f conftest$ac_exeext
10042 if { (ac_try="$ac_link"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_link") 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_func_vfork_works=yes
10062 else
10063 echo "$as_me: program exited with status $ac_status" >&5
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ( exit $ac_status )
10068 ac_cv_func_vfork_works=no
10070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10076 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10079 if test "x$ac_cv_func_fork_works" = xcross; then
10080 ac_cv_func_vfork_works=$ac_cv_func_vfork
10081 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10082 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10085 if test "x$ac_cv_func_vfork_works" = xyes; then
10087 cat >>confdefs.h <<\_ACEOF
10088 #define HAVE_WORKING_VFORK 1
10089 _ACEOF
10091 else
10093 cat >>confdefs.h <<\_ACEOF
10094 #define vfork fork
10095 _ACEOF
10098 if test "x$ac_cv_func_fork_works" = xyes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_WORKING_FORK 1
10102 _ACEOF
10106 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10107 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10108 if test "${ac_cv_sys_largefile_source+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 while :; do
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <sys/types.h> /* for off_t */
10119 #include <stdio.h>
10121 main ()
10123 int (*fp) (FILE *, off_t, int) = fseeko;
10124 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10126 return 0;
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest$ac_exeext &&
10146 $as_test_x conftest$ac_exeext; then
10147 ac_cv_sys_largefile_source=no; break
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #define _LARGEFILE_SOURCE 1
10164 #include <sys/types.h> /* for off_t */
10165 #include <stdio.h>
10167 main ()
10169 int (*fp) (FILE *, off_t, int) = fseeko;
10170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 ac_cv_sys_largefile_source=1; break
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203 ac_cv_sys_largefile_source=unknown
10204 break
10205 done
10207 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10209 case $ac_cv_sys_largefile_source in #(
10210 no | unknown) ;;
10212 cat >>confdefs.h <<_ACEOF
10213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10214 _ACEOF
10216 esac
10217 rm -f conftest*
10219 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10220 # in glibc 2.1.3, but that breaks too many other things.
10221 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10222 if test $ac_cv_sys_largefile_source != unknown; then
10224 cat >>confdefs.h <<\_ACEOF
10225 #define HAVE_FSEEKO 1
10226 _ACEOF
10230 if test $ac_cv_c_compiler_gnu = yes; then
10231 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10232 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10233 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 ac_pattern="Autoconf.*'x'"
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <sgtty.h>
10244 Autoconf TIOCGETP
10245 _ACEOF
10246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10247 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10248 ac_cv_prog_gcc_traditional=yes
10249 else
10250 ac_cv_prog_gcc_traditional=no
10252 rm -f conftest*
10255 if test $ac_cv_prog_gcc_traditional = no; then
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <termio.h>
10263 Autoconf TCGETA
10264 _ACEOF
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10267 ac_cv_prog_gcc_traditional=yes
10269 rm -f conftest*
10273 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10274 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10275 if test $ac_cv_prog_gcc_traditional = yes; then
10276 CC="$CC -traditional"
10280 # XXX: these are commented out until we determine whether it matters if our malloc()
10281 # acts exactly like glibc's or not
10282 # AC_FUNC_MALLOC
10283 # AC_FUNC_REALLOC
10284 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10285 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10286 if test "${ac_cv_func_memcmp_working+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 if test "$cross_compiling" = yes; then
10290 ac_cv_func_memcmp_working=no
10291 else
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 $ac_includes_default
10300 main ()
10303 /* Some versions of memcmp are not 8-bit clean. */
10304 char c0 = '\100', c1 = '\200', c2 = '\201';
10305 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10306 return 1;
10308 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10309 or more and with at least one buffer not starting on a 4-byte boundary.
10310 William Lewis provided this test program. */
10312 char foo[21];
10313 char bar[21];
10314 int i;
10315 for (i = 0; i < 4; i++)
10317 char *a = foo + i;
10318 char *b = bar + i;
10319 strcpy (a, "--------01111111");
10320 strcpy (b, "--------10000000");
10321 if (memcmp (a, b, 16) >= 0)
10322 return 1;
10324 return 0;
10328 return 0;
10330 _ACEOF
10331 rm -f conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10342 { (case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func_memcmp_working=yes
10352 else
10353 echo "$as_me: program exited with status $ac_status" >&5
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ( exit $ac_status )
10358 ac_cv_func_memcmp_working=no
10360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10366 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10367 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10368 *" memcmp.$ac_objext "* ) ;;
10369 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10371 esac
10378 for ac_header in $ac_header_list
10380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_res=`eval echo '${'$as_ac_Header'}'`
10388 { echo "$as_me:$LINENO: result: $ac_res" >&5
10389 echo "${ECHO_T}$ac_res" >&6; }
10390 else
10391 # Is the header compilable?
10392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #include <$ac_header>
10402 _ACEOF
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && {
10417 test -z "$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10419 } && test -s conftest.$ac_objext; then
10420 ac_header_compiler=yes
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_header_compiler=no
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10430 echo "${ECHO_T}$ac_header_compiler" >&6; }
10432 # Is the header present?
10433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <$ac_header>
10442 _ACEOF
10443 if { (ac_try="$ac_cpp conftest.$ac_ext"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null && {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 }; then
10459 ac_header_preproc=yes
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_preproc=no
10467 rm -f conftest.err conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 echo "${ECHO_T}$ac_header_preproc" >&6; }
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 yes:no: )
10474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10478 ac_header_preproc=yes
10480 no:yes:* )
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10495 esac
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 eval "$as_ac_Header=\$ac_header_preproc"
10503 ac_res=`eval echo '${'$as_ac_Header'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10511 _ACEOF
10515 done
10525 for ac_func in $ac_func_list
10527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10541 #define $ac_func innocuous_$ac_func
10543 /* System header to define __stub macros and hopefully few prototypes,
10544 which can conflict with char $ac_func (); below.
10545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10546 <limits.h> exists even on freestanding compilers. */
10548 #ifdef __STDC__
10549 # include <limits.h>
10550 #else
10551 # include <assert.h>
10552 #endif
10554 #undef $ac_func
10556 /* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 char $ac_func ();
10563 /* The GNU C library defines this for functions which it implements
10564 to always fail with ENOSYS. Some functions are actually named
10565 something starting with __ and the normal name is an alias. */
10566 #if defined __stub_$ac_func || defined __stub___$ac_func
10567 choke me
10568 #endif
10571 main ()
10573 return $ac_func ();
10575 return 0;
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
10596 eval "$as_ac_var=yes"
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 eval "$as_ac_var=no"
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605 conftest$ac_exeext conftest.$ac_ext
10607 ac_res=`eval echo '${'$as_ac_var'}'`
10608 { echo "$as_me:$LINENO: result: $ac_res" >&5
10609 echo "${ECHO_T}$ac_res" >&6; }
10610 if test `eval echo '${'$as_ac_var'}'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10613 _ACEOF
10616 done
10634 { echo "$as_me:$LINENO: checking for working mktime" >&5
10635 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
10636 if test "${ac_cv_func_working_mktime+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 if test "$cross_compiling" = yes; then
10640 ac_cv_func_working_mktime=no
10641 else
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 /* Test program from Paul Eggert and Tony Leneis. */
10649 #ifdef TIME_WITH_SYS_TIME
10650 # include <sys/time.h>
10651 # include <time.h>
10652 #else
10653 # ifdef HAVE_SYS_TIME_H
10654 # include <sys/time.h>
10655 # else
10656 # include <time.h>
10657 # endif
10658 #endif
10660 #include <stdlib.h>
10662 #ifdef HAVE_UNISTD_H
10663 # include <unistd.h>
10664 #endif
10666 #ifndef HAVE_ALARM
10667 # define alarm(X) /* empty */
10668 #endif
10670 /* Work around redefinition to rpl_putenv by other config tests. */
10671 #undef putenv
10673 static time_t time_t_max;
10674 static time_t time_t_min;
10676 /* Values we'll use to set the TZ environment variable. */
10677 static char *tz_strings[] = {
10678 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10679 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10681 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10683 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10684 Based on a problem report from Andreas Jaeger. */
10685 static int
10686 spring_forward_gap ()
10688 /* glibc (up to about 1998-10-07) failed this test. */
10689 struct tm tm;
10691 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10692 instead of "TZ=America/Vancouver" in order to detect the bug even
10693 on systems that don't support the Olson extension, or don't have the
10694 full zoneinfo tables installed. */
10695 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10697 tm.tm_year = 98;
10698 tm.tm_mon = 3;
10699 tm.tm_mday = 5;
10700 tm.tm_hour = 2;
10701 tm.tm_min = 0;
10702 tm.tm_sec = 0;
10703 tm.tm_isdst = -1;
10704 return mktime (&tm) != (time_t) -1;
10707 static int
10708 mktime_test1 (now)
10709 time_t now;
10711 struct tm *lt;
10712 return ! (lt = localtime (&now)) || mktime (lt) == now;
10715 static int
10716 mktime_test (now)
10717 time_t now;
10719 return (mktime_test1 (now)
10720 && mktime_test1 ((time_t) (time_t_max - now))
10721 && mktime_test1 ((time_t) (time_t_min + now)));
10724 static int
10725 irix_6_4_bug ()
10727 /* Based on code from Ariel Faigon. */
10728 struct tm tm;
10729 tm.tm_year = 96;
10730 tm.tm_mon = 3;
10731 tm.tm_mday = 0;
10732 tm.tm_hour = 0;
10733 tm.tm_min = 0;
10734 tm.tm_sec = 0;
10735 tm.tm_isdst = -1;
10736 mktime (&tm);
10737 return tm.tm_mon == 2 && tm.tm_mday == 31;
10740 static int
10741 bigtime_test (j)
10742 int j;
10744 struct tm tm;
10745 time_t now;
10746 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10747 now = mktime (&tm);
10748 if (now != (time_t) -1)
10750 struct tm *lt = localtime (&now);
10751 if (! (lt
10752 && lt->tm_year == tm.tm_year
10753 && lt->tm_mon == tm.tm_mon
10754 && lt->tm_mday == tm.tm_mday
10755 && lt->tm_hour == tm.tm_hour
10756 && lt->tm_min == tm.tm_min
10757 && lt->tm_sec == tm.tm_sec
10758 && lt->tm_yday == tm.tm_yday
10759 && lt->tm_wday == tm.tm_wday
10760 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10761 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10762 return 0;
10764 return 1;
10767 static int
10768 year_2050_test ()
10770 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10771 ignoring leap seconds. */
10772 unsigned long int answer = 2527315200UL;
10774 struct tm tm;
10775 time_t t;
10776 tm.tm_year = 2050 - 1900;
10777 tm.tm_mon = 2 - 1;
10778 tm.tm_mday = 1;
10779 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10780 tm.tm_isdst = -1;
10782 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10783 instead of "TZ=America/Vancouver" in order to detect the bug even
10784 on systems that don't support the Olson extension, or don't have the
10785 full zoneinfo tables installed. */
10786 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10788 t = mktime (&tm);
10790 /* Check that the result is either a failure, or close enough
10791 to the correct answer that we can assume the discrepancy is
10792 due to leap seconds. */
10793 return (t == (time_t) -1
10794 || (0 < t && answer - 120 <= t && t <= answer + 120));
10798 main ()
10800 time_t t, delta;
10801 int i, j;
10803 /* This test makes some buggy mktime implementations loop.
10804 Give up after 60 seconds; a mktime slower than that
10805 isn't worth using anyway. */
10806 alarm (60);
10808 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10809 continue;
10810 time_t_max--;
10811 if ((time_t) -1 < 0)
10812 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
10813 continue;
10814 delta = time_t_max / 997; /* a suitable prime number */
10815 for (i = 0; i < N_STRINGS; i++)
10817 if (tz_strings[i])
10818 putenv (tz_strings[i]);
10820 for (t = 0; t <= time_t_max - delta; t += delta)
10821 if (! mktime_test (t))
10822 return 1;
10823 if (! (mktime_test ((time_t) 1)
10824 && mktime_test ((time_t) (60 * 60))
10825 && mktime_test ((time_t) (60 * 60 * 24))))
10826 return 1;
10828 for (j = 1; 0 < j; j *= 2)
10829 if (! bigtime_test (j))
10830 return 1;
10831 if (! bigtime_test (j - 1))
10832 return 1;
10834 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10836 _ACEOF
10837 rm -f conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_working_mktime=yes
10858 else
10859 echo "$as_me: program exited with status $ac_status" >&5
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ( exit $ac_status )
10864 ac_cv_func_working_mktime=no
10866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10872 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
10873 if test $ac_cv_func_working_mktime = no; then
10874 case " $LIBOBJS " in
10875 *" mktime.$ac_objext "* ) ;;
10876 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10878 esac
10884 for ac_header in stdlib.h unistd.h
10886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10896 else
10897 # Is the header compilable?
10898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <$ac_header>
10908 _ACEOF
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_header_compiler=yes
10927 else
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_compiler=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10936 echo "${ECHO_T}$ac_header_compiler" >&6; }
10938 # Is the header present?
10939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <$ac_header>
10948 _ACEOF
10949 if { (ac_try="$ac_cpp conftest.$ac_ext"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null && {
10962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 }; then
10965 ac_header_preproc=yes
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_preproc=no
10973 rm -f conftest.err conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 echo "${ECHO_T}$ac_header_preproc" >&6; }
10977 # So? What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10979 yes:no: )
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10984 ac_header_preproc=yes
10986 no:yes:* )
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11001 esac
11002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 eval "$as_ac_Header=\$ac_header_preproc"
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11017 _ACEOF
11021 done
11024 for ac_func in getpagesize
11026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11040 #define $ac_func innocuous_$ac_func
11042 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char $ac_func (); below.
11044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 <limits.h> exists even on freestanding compilers. */
11047 #ifdef __STDC__
11048 # include <limits.h>
11049 #else
11050 # include <assert.h>
11051 #endif
11053 #undef $ac_func
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char $ac_func ();
11062 /* The GNU C library defines this for functions which it implements
11063 to always fail with ENOSYS. Some functions are actually named
11064 something starting with __ and the normal name is an alias. */
11065 #if defined __stub_$ac_func || defined __stub___$ac_func
11066 choke me
11067 #endif
11070 main ()
11072 return $ac_func ();
11074 return 0;
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_link") 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext &&
11094 $as_test_x conftest$ac_exeext; then
11095 eval "$as_ac_var=yes"
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 eval "$as_ac_var=no"
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11106 ac_res=`eval echo '${'$as_ac_var'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109 if test `eval echo '${'$as_ac_var'}'` = yes; then
11110 cat >>confdefs.h <<_ACEOF
11111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11112 _ACEOF
11115 done
11117 { echo "$as_me:$LINENO: checking for working mmap" >&5
11118 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11119 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 if test "$cross_compiling" = yes; then
11123 ac_cv_func_mmap_fixed_mapped=no
11124 else
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 $ac_includes_default
11132 /* malloc might have been renamed as rpl_malloc. */
11133 #undef malloc
11135 /* Thanks to Mike Haertel and Jim Avera for this test.
11136 Here is a matrix of mmap possibilities:
11137 mmap private not fixed
11138 mmap private fixed at somewhere currently unmapped
11139 mmap private fixed at somewhere already mapped
11140 mmap shared not fixed
11141 mmap shared fixed at somewhere currently unmapped
11142 mmap shared fixed at somewhere already mapped
11143 For private mappings, we should verify that changes cannot be read()
11144 back from the file, nor mmap's back from the file at a different
11145 address. (There have been systems where private was not correctly
11146 implemented like the infamous i386 svr4.0, and systems where the
11147 VM page cache was not coherent with the file system buffer cache
11148 like early versions of FreeBSD and possibly contemporary NetBSD.)
11149 For shared mappings, we should conversely verify that changes get
11150 propagated back to all the places they're supposed to be.
11152 Grep wants private fixed already mapped.
11153 The main things grep needs to know about mmap are:
11154 * does it exist and is it safe to write into the mmap'd area
11155 * how to use it (BSD variants) */
11157 #include <fcntl.h>
11158 #include <sys/mman.h>
11160 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11161 char *malloc ();
11162 #endif
11164 /* This mess was copied from the GNU getpagesize.h. */
11165 #ifndef HAVE_GETPAGESIZE
11166 /* Assume that all systems that can run configure have sys/param.h. */
11167 # ifndef HAVE_SYS_PARAM_H
11168 # define HAVE_SYS_PARAM_H 1
11169 # endif
11171 # ifdef _SC_PAGESIZE
11172 # define getpagesize() sysconf(_SC_PAGESIZE)
11173 # else /* no _SC_PAGESIZE */
11174 # ifdef HAVE_SYS_PARAM_H
11175 # include <sys/param.h>
11176 # ifdef EXEC_PAGESIZE
11177 # define getpagesize() EXEC_PAGESIZE
11178 # else /* no EXEC_PAGESIZE */
11179 # ifdef NBPG
11180 # define getpagesize() NBPG * CLSIZE
11181 # ifndef CLSIZE
11182 # define CLSIZE 1
11183 # endif /* no CLSIZE */
11184 # else /* no NBPG */
11185 # ifdef NBPC
11186 # define getpagesize() NBPC
11187 # else /* no NBPC */
11188 # ifdef PAGESIZE
11189 # define getpagesize() PAGESIZE
11190 # endif /* PAGESIZE */
11191 # endif /* no NBPC */
11192 # endif /* no NBPG */
11193 # endif /* no EXEC_PAGESIZE */
11194 # else /* no HAVE_SYS_PARAM_H */
11195 # define getpagesize() 8192 /* punt totally */
11196 # endif /* no HAVE_SYS_PARAM_H */
11197 # endif /* no _SC_PAGESIZE */
11199 #endif /* no HAVE_GETPAGESIZE */
11202 main ()
11204 char *data, *data2, *data3;
11205 int i, pagesize;
11206 int fd;
11208 pagesize = getpagesize ();
11210 /* First, make a file with some known garbage in it. */
11211 data = (char *) malloc (pagesize);
11212 if (!data)
11213 return 1;
11214 for (i = 0; i < pagesize; ++i)
11215 *(data + i) = rand ();
11216 umask (0);
11217 fd = creat ("conftest.mmap", 0600);
11218 if (fd < 0)
11219 return 1;
11220 if (write (fd, data, pagesize) != pagesize)
11221 return 1;
11222 close (fd);
11224 /* Next, try to mmap the file at a fixed address which already has
11225 something else allocated at it. If we can, also make sure that
11226 we see the same garbage. */
11227 fd = open ("conftest.mmap", O_RDWR);
11228 if (fd < 0)
11229 return 1;
11230 data2 = (char *) malloc (2 * pagesize);
11231 if (!data2)
11232 return 1;
11233 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11234 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11235 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11236 return 1;
11237 for (i = 0; i < pagesize; ++i)
11238 if (*(data + i) != *(data2 + i))
11239 return 1;
11241 /* Finally, make sure that changes to the mapped area do not
11242 percolate back to the file as seen by read(). (This is a bug on
11243 some variants of i386 svr4.0.) */
11244 for (i = 0; i < pagesize; ++i)
11245 *(data2 + i) = *(data2 + i) + 1;
11246 data3 = (char *) malloc (pagesize);
11247 if (!data3)
11248 return 1;
11249 if (read (fd, data3, pagesize) != pagesize)
11250 return 1;
11251 for (i = 0; i < pagesize; ++i)
11252 if (*(data + i) != *(data3 + i))
11253 return 1;
11254 close (fd);
11255 return 0;
11257 _ACEOF
11258 rm -f conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_cv_func_mmap_fixed_mapped=yes
11279 else
11280 echo "$as_me: program exited with status $ac_status" >&5
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ( exit $ac_status )
11285 ac_cv_func_mmap_fixed_mapped=no
11287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11293 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_MMAP 1
11298 _ACEOF
11301 rm -f conftest.mmap
11305 for ac_header in sys/select.h sys/socket.h
11307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 ac_res=`eval echo '${'$as_ac_Header'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 else
11318 # Is the header compilable?
11319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 $ac_includes_default
11328 #include <$ac_header>
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_header_compiler=yes
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_header_compiler=no
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11357 echo "${ECHO_T}$ac_header_compiler" >&6; }
11359 # Is the header present?
11360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <$ac_header>
11369 _ACEOF
11370 if { (ac_try="$ac_cpp conftest.$ac_ext"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } >/dev/null && {
11383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11384 test ! -s conftest.err
11385 }; then
11386 ac_header_preproc=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_header_preproc=no
11394 rm -f conftest.err conftest.$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11396 echo "${ECHO_T}$ac_header_preproc" >&6; }
11398 # So? What about this header?
11399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11400 yes:no: )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11405 ac_header_preproc=yes
11407 no:yes:* )
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11422 esac
11423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 eval "$as_ac_Header=\$ac_header_preproc"
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438 _ACEOF
11442 done
11444 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
11445 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
11446 if test "${ac_cv_func_select_args+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11450 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11451 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #ifdef HAVE_SYS_SELECT_H
11460 # include <sys/select.h>
11461 #endif
11462 #ifdef HAVE_SYS_SOCKET_H
11463 # include <sys/socket.h>
11464 #endif
11467 main ()
11469 extern int select ($ac_arg1,
11470 $ac_arg234, $ac_arg234, $ac_arg234,
11471 $ac_arg5);
11473 return 0;
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 done
11503 done
11504 done
11505 # Provide a safe default value.
11506 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11509 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11510 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
11511 ac_save_IFS=$IFS; IFS=','
11512 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11513 IFS=$ac_save_IFS
11514 shift
11516 cat >>confdefs.h <<_ACEOF
11517 #define SELECT_TYPE_ARG1 $1
11518 _ACEOF
11521 cat >>confdefs.h <<_ACEOF
11522 #define SELECT_TYPE_ARG234 ($2)
11523 _ACEOF
11526 cat >>confdefs.h <<_ACEOF
11527 #define SELECT_TYPE_ARG5 ($3)
11528 _ACEOF
11530 rm -f conftest*
11532 { echo "$as_me:$LINENO: checking for function prototypes" >&5
11533 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
11534 if test "$ac_cv_prog_cc_c89" != no; then
11535 { echo "$as_me:$LINENO: result: yes" >&5
11536 echo "${ECHO_T}yes" >&6; }
11538 cat >>confdefs.h <<\_ACEOF
11539 #define PROTOTYPES 1
11540 _ACEOF
11543 cat >>confdefs.h <<\_ACEOF
11544 #define __PROTOTYPES 1
11545 _ACEOF
11547 else
11548 { echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6; }
11552 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11553 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
11554 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557 ac_cv_func_setvbuf_reversed=no
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 #include <stdio.h>
11565 # ifdef PROTOTYPES
11566 int (setvbuf) (FILE *, int, char *, size_t);
11567 # endif
11569 main ()
11571 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11573 return 0;
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } && {
11590 test -z "$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11592 } && test -s conftest$ac_exeext &&
11593 $as_test_x conftest$ac_exeext; then
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <stdio.h>
11601 # ifdef PROTOTYPES
11602 int (setvbuf) (FILE *, int, char *, size_t);
11603 # endif
11605 main ()
11607 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11609 return 0;
11611 _ACEOF
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (ac_try="$ac_link"
11614 case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_link") 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && {
11626 test -z "$ac_c_werror_flag" ||
11627 test ! -s conftest.err
11628 } && test -s conftest$ac_exeext &&
11629 $as_test_x conftest$ac_exeext; then
11630 # It compiles and links either way, so it must not be declared
11631 # with a prototype and most likely this is a K&R C compiler.
11632 # Try running it.
11633 if test "$cross_compiling" = yes; then
11634 : # Assume setvbuf is not reversed when cross-compiling.
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 $ac_includes_default
11644 main ()
11646 /* This call has the arguments reversed.
11647 A reversed system may check and see that the address of buf
11648 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11649 char buf;
11650 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11651 return 1;
11652 putchar ('\r');
11653 return 0; /* Non-reversed systems SEGV here. */
11655 return 0;
11657 _ACEOF
11658 rm -f conftest$ac_exeext
11659 if { (ac_try="$ac_link"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_link") 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_func_setvbuf_reversed=yes
11679 else
11680 echo "$as_me: program exited with status $ac_status" >&5
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11689 ac_cv_func_setvbuf_reversed=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11698 conftest$ac_exeext conftest.$ac_ext
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11710 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
11711 if test $ac_cv_func_setvbuf_reversed = yes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define SETVBUF_REVERSED 1
11715 _ACEOF
11719 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11720 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11721 if test "${ac_cv_type_signal+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <sys/types.h>
11731 #include <signal.h>
11734 main ()
11736 return *(signal (0, 0)) (0) == 1;
11738 return 0;
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest.$ac_objext; then
11758 ac_cv_type_signal=int
11759 else
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_cv_type_signal=void
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11769 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11771 cat >>confdefs.h <<_ACEOF
11772 #define RETSIGTYPE $ac_cv_type_signal
11773 _ACEOF
11776 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11777 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
11778 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 rm -f conftest.sym conftest.file
11782 echo >conftest.file
11783 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11784 if test "$cross_compiling" = yes; then
11785 ac_cv_func_lstat_dereferences_slashed_symlink=no
11786 else
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11795 main ()
11797 struct stat sbuf;
11798 /* Linux will dereference the symlink and fail.
11799 That is better in the sense that it means we will not
11800 have to compile and use the lstat wrapper. */
11801 return lstat ("conftest.sym/", &sbuf) == 0;
11803 return 0;
11805 _ACEOF
11806 rm -f conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11827 else
11828 echo "$as_me: program exited with status $ac_status" >&5
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ( exit $ac_status )
11833 ac_cv_func_lstat_dereferences_slashed_symlink=no
11835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11839 else
11840 # If the `ln -s' command failed, then we probably don't even
11841 # have an lstat function.
11842 ac_cv_func_lstat_dereferences_slashed_symlink=no
11844 rm -f conftest.sym conftest.file
11847 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11848 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11850 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11852 cat >>confdefs.h <<_ACEOF
11853 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11854 _ACEOF
11857 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11858 case " $LIBOBJS " in
11859 *" lstat.$ac_objext "* ) ;;
11860 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11862 esac
11866 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
11867 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
11868 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 if test "$cross_compiling" = yes; then
11872 ac_cv_func_stat_empty_string_bug=yes
11873 else
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 $ac_includes_default
11882 main ()
11884 struct stat sbuf;
11885 return stat ("", &sbuf) == 0;
11887 return 0;
11889 _ACEOF
11890 rm -f conftest$ac_exeext
11891 if { (ac_try="$ac_link"
11892 case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_link") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_func_stat_empty_string_bug=no
11911 else
11912 echo "$as_me: program exited with status $ac_status" >&5
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ( exit $ac_status )
11917 ac_cv_func_stat_empty_string_bug=yes
11919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11924 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
11925 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
11926 if test $ac_cv_func_stat_empty_string_bug = yes; then
11927 case " $LIBOBJS " in
11928 *" stat.$ac_objext "* ) ;;
11929 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11931 esac
11934 cat >>confdefs.h <<_ACEOF
11935 #define HAVE_STAT_EMPTY_STRING_BUG 1
11936 _ACEOF
11940 { echo "$as_me:$LINENO: checking for working strcoll" >&5
11941 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
11942 if test "${ac_cv_func_strcoll_works+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 if test "$cross_compiling" = yes; then
11946 ac_cv_func_strcoll_works=no
11947 else
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11956 main ()
11958 return (strcoll ("abc", "def") >= 0 ||
11959 strcoll ("ABC", "DEF") >= 0 ||
11960 strcoll ("123", "456") >= 0)
11962 return 0;
11964 _ACEOF
11965 rm -f conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_func_strcoll_works=yes
11986 else
11987 echo "$as_me: program exited with status $ac_status" >&5
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ( exit $ac_status )
11992 ac_cv_func_strcoll_works=no
11994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11999 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12000 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
12001 if test $ac_cv_func_strcoll_works = yes; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_STRCOLL 1
12005 _ACEOF
12010 for ac_func in strftime
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026 #define $ac_func innocuous_$ac_func
12028 /* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12033 #ifdef __STDC__
12034 # include <limits.h>
12035 #else
12036 # include <assert.h>
12037 #endif
12039 #undef $ac_func
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char $ac_func ();
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12052 choke me
12053 #endif
12056 main ()
12058 return $ac_func ();
12060 return 0;
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext &&
12080 $as_test_x conftest$ac_exeext; then
12081 eval "$as_ac_var=yes"
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 eval "$as_ac_var=no"
12089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12090 conftest$ac_exeext conftest.$ac_ext
12092 ac_res=`eval echo '${'$as_ac_var'}'`
12093 { echo "$as_me:$LINENO: result: $ac_res" >&5
12094 echo "${ECHO_T}$ac_res" >&6; }
12095 if test `eval echo '${'$as_ac_var'}'` = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12098 _ACEOF
12100 else
12101 # strftime is in -lintl on SCO UNIX.
12102 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12103 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12104 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107 ac_check_lib_save_LIBS=$LIBS
12108 LIBS="-lintl $LIBS"
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char strftime ();
12124 main ()
12126 return strftime ();
12128 return 0;
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } && {
12145 test -z "$ac_c_werror_flag" ||
12146 test ! -s conftest.err
12147 } && test -s conftest$ac_exeext &&
12148 $as_test_x conftest$ac_exeext; then
12149 ac_cv_lib_intl_strftime=yes
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_cv_lib_intl_strftime=no
12157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12162 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12163 if test $ac_cv_lib_intl_strftime = yes; then
12164 cat >>confdefs.h <<\_ACEOF
12165 #define HAVE_STRFTIME 1
12166 _ACEOF
12168 LIBS="-lintl $LIBS"
12172 done
12175 { echo "$as_me:$LINENO: checking for AIX" >&5
12176 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #ifdef _AIX
12185 #endif
12187 _ACEOF
12188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189 $EGREP "yes" >/dev/null 2>&1; then
12190 { echo "$as_me:$LINENO: result: yes" >&5
12191 echo "${ECHO_T}yes" >&6; }
12192 cat >>confdefs.h <<\_ACEOF
12193 #define _ALL_SOURCE 1
12194 _ACEOF
12196 else
12197 { echo "$as_me:$LINENO: result: no" >&5
12198 echo "${ECHO_T}no" >&6; }
12200 rm -f conftest*
12203 if test "${ac_cv_header_minix_config_h+set}" = set; then
12204 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
12205 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
12206 if test "${ac_cv_header_minix_config_h+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
12210 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
12211 else
12212 # Is the header compilable?
12213 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
12214 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 #include <minix/config.h>
12223 _ACEOF
12224 rm -f conftest.$ac_objext
12225 if { (ac_try="$ac_compile"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_header_compiler=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12251 echo "${ECHO_T}$ac_header_compiler" >&6; }
12253 # Is the header present?
12254 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
12255 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <minix/config.h>
12263 _ACEOF
12264 if { (ac_try="$ac_cpp conftest.$ac_ext"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev/null && {
12277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 }; then
12280 ac_header_preproc=yes
12281 else
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_header_preproc=no
12288 rm -f conftest.err conftest.$ac_ext
12289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12290 echo "${ECHO_T}$ac_header_preproc" >&6; }
12292 # So? What about this header?
12293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12294 yes:no: )
12295 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
12296 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
12298 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
12299 ac_header_preproc=yes
12301 no:yes:* )
12302 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
12303 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
12305 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
12307 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
12309 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
12313 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
12316 esac
12317 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
12318 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
12319 if test "${ac_cv_header_minix_config_h+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322 ac_cv_header_minix_config_h=$ac_header_preproc
12324 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
12325 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
12328 if test $ac_cv_header_minix_config_h = yes; then
12329 MINIX=yes
12330 else
12331 MINIX=
12335 if test "$MINIX" = yes; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define _POSIX_SOURCE 1
12339 _ACEOF
12342 cat >>confdefs.h <<\_ACEOF
12343 #define _POSIX_1_SOURCE 2
12344 _ACEOF
12347 cat >>confdefs.h <<\_ACEOF
12348 #define _MINIX 1
12349 _ACEOF
12363 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
12364 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
12365 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 # define __EXTENSIONS__ 1
12376 $ac_includes_default
12378 main ()
12382 return 0;
12384 _ACEOF
12385 rm -f conftest.$ac_objext
12386 if { (ac_try="$ac_compile"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12402 ac_cv_safe_to_define___extensions__=yes
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_cv_safe_to_define___extensions__=no
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
12413 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
12414 test $ac_cv_safe_to_define___extensions__ = yes &&
12415 cat >>confdefs.h <<\_ACEOF
12416 #define __EXTENSIONS__ 1
12417 _ACEOF
12419 cat >>confdefs.h <<\_ACEOF
12420 #define _POSIX_PTHREAD_SEMANTICS 1
12421 _ACEOF
12423 cat >>confdefs.h <<\_ACEOF
12424 #define _TANDEM_SOURCE 1
12425 _ACEOF
12428 { echo "$as_me:$LINENO: checking for working strnlen" >&5
12429 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
12430 if test "${ac_cv_func_strnlen_working+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 if test "$cross_compiling" = yes; then
12434 ac_cv_func_strnlen_working=no
12435 else
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12444 main ()
12447 #define S "foobar"
12448 #define S_LEN (sizeof S - 1)
12450 /* At least one implementation is buggy: that of AIX 4.3 would
12451 give strnlen (S, 1) == 3. */
12453 int i;
12454 for (i = 0; i < S_LEN + 1; ++i)
12456 int expected = i <= S_LEN ? i : S_LEN;
12457 if (strnlen (S, i) != expected)
12458 return 1;
12460 return 0;
12463 return 0;
12465 _ACEOF
12466 rm -f conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_func_strnlen_working=yes
12487 else
12488 echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ( exit $ac_status )
12493 ac_cv_func_strnlen_working=no
12495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
12501 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
12502 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12503 *" strnlen.$ac_objext "* ) ;;
12504 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12506 esac
12509 { echo "$as_me:$LINENO: checking for working strtod" >&5
12510 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
12511 if test "${ac_cv_func_strtod+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 if test "$cross_compiling" = yes; then
12515 ac_cv_func_strtod=no
12516 else
12517 cat >conftest.$ac_ext <<_ACEOF
12518 /* confdefs.h. */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12524 $ac_includes_default
12525 #ifndef strtod
12526 double strtod ();
12527 #endif
12529 main()
12532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12533 char *string = " +69";
12534 char *term;
12535 double value;
12536 value = strtod (string, &term);
12537 if (value != 69 || term != (string + 4))
12538 return 1;
12542 /* Under Solaris 2.4, strtod returns the wrong value for the
12543 terminating character under some conditions. */
12544 char *string = "NaN";
12545 char *term;
12546 strtod (string, &term);
12547 if (term != string && *(term - 1) == 0)
12548 return 1;
12550 return 0;
12553 _ACEOF
12554 rm -f conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_func_strtod=yes
12575 else
12576 echo "$as_me: program exited with status $ac_status" >&5
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 ( exit $ac_status )
12581 ac_cv_func_strtod=no
12583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12588 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12589 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
12590 if test $ac_cv_func_strtod = no; then
12591 case " $LIBOBJS " in
12592 *" strtod.$ac_objext "* ) ;;
12593 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12595 esac
12597 { echo "$as_me:$LINENO: checking for pow" >&5
12598 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
12599 if test "${ac_cv_func_pow+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h. */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12610 #define pow innocuous_pow
12612 /* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char pow (); below.
12614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12615 <limits.h> exists even on freestanding compilers. */
12617 #ifdef __STDC__
12618 # include <limits.h>
12619 #else
12620 # include <assert.h>
12621 #endif
12623 #undef pow
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 char pow ();
12632 /* The GNU C library defines this for functions which it implements
12633 to always fail with ENOSYS. Some functions are actually named
12634 something starting with __ and the normal name is an alias. */
12635 #if defined __stub_pow || defined __stub___pow
12636 choke me
12637 #endif
12640 main ()
12642 return pow ();
12644 return 0;
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest$ac_exeext &&
12664 $as_test_x conftest$ac_exeext; then
12665 ac_cv_func_pow=yes
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_cv_func_pow=no
12673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12674 conftest$ac_exeext conftest.$ac_ext
12676 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12677 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
12679 if test $ac_cv_func_pow = no; then
12680 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
12681 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
12682 if test "${ac_cv_lib_m_pow+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 ac_check_lib_save_LIBS=$LIBS
12686 LIBS="-lm $LIBS"
12687 cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h. */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char pow ();
12702 main ()
12704 return pow ();
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (ac_try="$ac_link"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest$ac_exeext &&
12726 $as_test_x conftest$ac_exeext; then
12727 ac_cv_lib_m_pow=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_cv_lib_m_pow=no
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736 conftest$ac_exeext conftest.$ac_ext
12737 LIBS=$ac_check_lib_save_LIBS
12739 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12740 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
12741 if test $ac_cv_lib_m_pow = yes; then
12742 POW_LIB=-lm
12743 else
12744 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12745 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12760 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
12761 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
12762 if test "${ac_cv_func_utime_null+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 rm -f conftest.data; >conftest.data
12766 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
12767 if test "$cross_compiling" = yes; then
12768 ac_cv_func_utime_null=no
12769 else
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12777 #ifdef HAVE_UTIME_H
12778 # include <utime.h>
12779 #endif
12781 main ()
12783 struct stat s, t;
12784 return ! (stat ("conftest.data", &s) == 0
12785 && utime ("conftest.data", 0) == 0
12786 && stat ("conftest.data", &t) == 0
12787 && t.st_mtime >= s.st_mtime
12788 && t.st_mtime - s.st_mtime < 120);
12790 return 0;
12792 _ACEOF
12793 rm -f conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_func_utime_null=yes
12814 else
12815 echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ( exit $ac_status )
12820 ac_cv_func_utime_null=no
12822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
12828 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
12829 if test $ac_cv_func_utime_null = yes; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_UTIME_NULL 1
12833 _ACEOF
12836 rm -f conftest.data
12839 for ac_func in vprintf
12841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12855 #define $ac_func innocuous_$ac_func
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below.
12859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 <limits.h> exists even on freestanding compilers. */
12862 #ifdef __STDC__
12863 # include <limits.h>
12864 #else
12865 # include <assert.h>
12866 #endif
12868 #undef $ac_func
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 #ifdef __cplusplus
12874 extern "C"
12875 #endif
12876 char $ac_func ();
12877 /* The GNU C library defines this for functions which it implements
12878 to always fail with ENOSYS. Some functions are actually named
12879 something starting with __ and the normal name is an alias. */
12880 #if defined __stub_$ac_func || defined __stub___$ac_func
12881 choke me
12882 #endif
12885 main ()
12887 return $ac_func ();
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (ac_try="$ac_link"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_link") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest$ac_exeext &&
12909 $as_test_x conftest$ac_exeext; then
12910 eval "$as_ac_var=yes"
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 eval "$as_ac_var=no"
12918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12919 conftest$ac_exeext conftest.$ac_ext
12921 ac_res=`eval echo '${'$as_ac_var'}'`
12922 { echo "$as_me:$LINENO: result: $ac_res" >&5
12923 echo "${ECHO_T}$ac_res" >&6; }
12924 if test `eval echo '${'$as_ac_var'}'` = yes; then
12925 cat >>confdefs.h <<_ACEOF
12926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927 _ACEOF
12929 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12930 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12931 if test "${ac_cv_func__doprnt+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12942 #define _doprnt innocuous__doprnt
12944 /* System header to define __stub macros and hopefully few prototypes,
12945 which can conflict with char _doprnt (); below.
12946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12947 <limits.h> exists even on freestanding compilers. */
12949 #ifdef __STDC__
12950 # include <limits.h>
12951 #else
12952 # include <assert.h>
12953 #endif
12955 #undef _doprnt
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 char _doprnt ();
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined __stub__doprnt || defined __stub____doprnt
12968 choke me
12969 #endif
12972 main ()
12974 return _doprnt ();
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (ac_try="$ac_link"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && {
12993 test -z "$ac_c_werror_flag" ||
12994 test ! -s conftest.err
12995 } && test -s conftest$ac_exeext &&
12996 $as_test_x conftest$ac_exeext; then
12997 ac_cv_func__doprnt=yes
12998 else
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_cv_func__doprnt=no
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext
13008 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13009 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13010 if test $ac_cv_func__doprnt = yes; then
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_DOPRNT 1
13014 _ACEOF
13019 done
13069 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13085 #define $ac_func innocuous_$ac_func
13087 /* System header to define __stub macros and hopefully few prototypes,
13088 which can conflict with char $ac_func (); below.
13089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090 <limits.h> exists even on freestanding compilers. */
13092 #ifdef __STDC__
13093 # include <limits.h>
13094 #else
13095 # include <assert.h>
13096 #endif
13098 #undef $ac_func
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char $ac_func ();
13107 /* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110 #if defined __stub_$ac_func || defined __stub___$ac_func
13111 choke me
13112 #endif
13115 main ()
13117 return $ac_func ();
13119 return 0;
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext &&
13139 $as_test_x conftest$ac_exeext; then
13140 eval "$as_ac_var=yes"
13141 else
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 eval "$as_ac_var=no"
13148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13149 conftest$ac_exeext conftest.$ac_ext
13151 ac_res=`eval echo '${'$as_ac_var'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13154 if test `eval echo '${'$as_ac_var'}'` = yes; then
13155 cat >>confdefs.h <<_ACEOF
13156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 _ACEOF
13160 done
13163 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
13164 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13173 main ()
13175 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
13177 return 0;
13179 _ACEOF
13180 rm -f conftest.$ac_objext conftest$ac_exeext
13181 if { (ac_try="$ac_link"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_link") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest$ac_exeext &&
13197 $as_test_x conftest$ac_exeext; then
13198 { echo "$as_me:$LINENO: result: yes" >&5
13199 echo "${ECHO_T}yes" >&6; }
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_GCC_ATOMICS 1
13203 _ACEOF
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 { echo "$as_me:$LINENO: result: no" >&5
13210 echo "${ECHO_T}no" >&6; }
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13218 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
13219 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 static int __attribute__((pure)) test(void) {}
13228 main ()
13232 return 0;
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest.$ac_objext; then
13252 { echo "$as_me:$LINENO: result: yes" >&5
13253 echo "${ECHO_T}yes" >&6; }
13255 cat >>confdefs.h <<_ACEOF
13256 #define HAVE_ATTRIBUTE_pure 1
13257 _ACEOF
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 { echo "$as_me:$LINENO: result: no" >&5
13264 echo "${ECHO_T}no" >&6; }
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
13271 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 static int __attribute__((malloc)) test(void) {}
13280 main ()
13284 return 0;
13286 _ACEOF
13287 rm -f conftest.$ac_objext
13288 if { (ac_try="$ac_compile"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_compile") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest.$ac_objext; then
13304 { echo "$as_me:$LINENO: result: yes" >&5
13305 echo "${ECHO_T}yes" >&6; }
13307 cat >>confdefs.h <<_ACEOF
13308 #define HAVE_ATTRIBUTE_malloc 1
13309 _ACEOF
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 { echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6; }
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
13323 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 static int __attribute__((const)) test(void) {}
13332 main ()
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.$ac_objext; then
13356 { echo "$as_me:$LINENO: result: yes" >&5
13357 echo "${ECHO_T}yes" >&6; }
13359 cat >>confdefs.h <<_ACEOF
13360 #define HAVE_ATTRIBUTE_const 1
13361 _ACEOF
13363 else
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 { echo "$as_me:$LINENO: result: no" >&5
13368 echo "${ECHO_T}no" >&6; }
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
13375 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h. */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 static int __attribute__((unused)) test(void) {}
13384 main ()
13388 return 0;
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_compile") 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } && {
13405 test -z "$ac_c_werror_flag" ||
13406 test ! -s conftest.err
13407 } && test -s conftest.$ac_objext; then
13408 { echo "$as_me:$LINENO: result: yes" >&5
13409 echo "${ECHO_T}yes" >&6; }
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_ATTRIBUTE_unused 1
13413 _ACEOF
13415 else
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 { echo "$as_me:$LINENO: result: no" >&5
13420 echo "${ECHO_T}no" >&6; }
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
13427 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 static int __attribute__((always_inline)) test(void) {}
13436 main ()
13440 return 0;
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest.$ac_objext; then
13460 { echo "$as_me:$LINENO: result: yes" >&5
13461 echo "${ECHO_T}yes" >&6; }
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_ATTRIBUTE_always_inline 1
13465 _ACEOF
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 { echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6; }
13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
13479 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
13480 saved_CFLAGS="${CFLAGS}"
13481 CFLAGS="${CFLAGS} -ffunction-sections"
13482 cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h. */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13490 main ()
13492 int x = 1;
13494 return 0;
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (ac_try="$ac_compile"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_compile") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest.$ac_objext; then
13514 { echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6; }
13516 saved_LDFLAGS="${LDFLAGS}"
13517 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
13518 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
13519 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13528 main ()
13530 int x = 1;
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest$ac_exeext &&
13552 $as_test_x conftest$ac_exeext; then
13553 { echo "$as_me:$LINENO: result: yes" >&5
13554 echo "${ECHO_T}yes" >&6; }
13555 GC_CFLAGS="-ffunction-sections"
13556 GC_LDFLAGS="-Wl,--gc-sections"
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 { echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6; }
13566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LDFLAGS="${saved_LDFLAGS}"
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 { echo "$as_me:$LINENO: result: no" >&5
13574 echo "${ECHO_T}no" >&6; }
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 CFLAGS="${saved_CFLAGS}"
13583 { echo "$as_me:$LINENO: checking for res_ninit" >&5
13584 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <resolv.h>
13593 main ()
13595 int foo = res_ninit(NULL);
13597 return 0;
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest$ac_exeext &&
13617 $as_test_x conftest$ac_exeext; then
13618 { echo "$as_me:$LINENO: result: yes" >&5
13619 echo "${ECHO_T}yes" >&6; }
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_RES_NINIT 1
13623 _ACEOF
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 { echo "$as_me:$LINENO: result: no" >&5
13630 echo "${ECHO_T}no" >&6; }
13634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13635 conftest$ac_exeext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
13638 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 #include <dlfcn.h>
13647 main ()
13649 int foo = RTLD_NOLOAD;
13651 return 0;
13653 _ACEOF
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest$ac_exeext &&
13671 $as_test_x conftest$ac_exeext; then
13672 { echo "$as_me:$LINENO: result: yes" >&5
13673 echo "${ECHO_T}yes" >&6; }
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_RTLD_NOLOAD 1
13677 _ACEOF
13679 else
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 { echo "$as_me:$LINENO: result: no" >&5
13684 echo "${ECHO_T}no" >&6; }
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
13692 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <netinet/in.h>
13701 main ()
13703 int foo = IP_MTU_DISCOVER;
13705 return 0;
13707 _ACEOF
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (ac_try="$ac_link"
13710 case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest$ac_exeext &&
13725 $as_test_x conftest$ac_exeext; then
13726 { echo "$as_me:$LINENO: result: yes" >&5
13727 echo "${ECHO_T}yes" >&6; }
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_IP_MTU_DISCOVER 1
13731 _ACEOF
13733 else
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 { echo "$as_me:$LINENO: result: no" >&5
13738 echo "${ECHO_T}no" >&6; }
13742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13743 conftest$ac_exeext conftest.$ac_ext
13745 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13746 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
13747 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
13748 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
13752 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
13753 else
13754 # Is the header compilable?
13755 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
13756 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 #include <libkern/OSAtomic.h>
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest.$ac_objext; then
13783 ac_header_compiler=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_header_compiler=no
13791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13793 echo "${ECHO_T}$ac_header_compiler" >&6; }
13795 # Is the header present?
13796 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
13797 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 #include <libkern/OSAtomic.h>
13805 _ACEOF
13806 if { (ac_try="$ac_cpp conftest.$ac_ext"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev/null && {
13819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 }; then
13822 ac_header_preproc=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ac_header_preproc=no
13830 rm -f conftest.err conftest.$ac_ext
13831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13832 echo "${ECHO_T}$ac_header_preproc" >&6; }
13834 # So? What about this header?
13835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 yes:no: )
13837 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
13838 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
13840 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
13841 ac_header_preproc=yes
13843 no:yes:* )
13844 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
13845 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
13847 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
13849 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
13851 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
13853 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
13855 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
13858 esac
13859 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
13860 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
13866 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
13867 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
13870 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_OSX_ATOMICS 1
13874 _ACEOF
13880 { echo "$as_me:$LINENO: checking for int" >&5
13881 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13882 if test "${ac_cv_type_int+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h. */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 typedef int ac__type_new_;
13894 main ()
13896 if ((ac__type_new_ *) 0)
13897 return 0;
13898 if (sizeof (ac__type_new_))
13899 return 0;
13901 return 0;
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_compile") 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest.$ac_objext; then
13921 ac_cv_type_int=yes
13922 else
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ac_cv_type_int=no
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13932 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13934 # The cast to long int works around a bug in the HP C Compiler
13935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13937 # This bug is HP SR number 8606223364.
13938 { echo "$as_me:$LINENO: checking size of int" >&5
13939 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13940 if test "${ac_cv_sizeof_int+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943 if test "$cross_compiling" = yes; then
13944 # Depending upon the size, compute the lo and hi bounds.
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 typedef int ac__type_sizeof_;
13954 main ()
13956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13957 test_array [0] = 0
13960 return 0;
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_lo=0 ac_mid=0
13981 while :; do
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 typedef int ac__type_sizeof_;
13991 main ()
13993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13994 test_array [0] = 0
13997 return 0;
13999 _ACEOF
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.$ac_objext; then
14017 ac_hi=$ac_mid; break
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_lo=`expr $ac_mid + 1`
14023 if test $ac_lo -le $ac_mid; then
14024 ac_lo= ac_hi=
14025 break
14027 ac_mid=`expr 2 '*' $ac_mid + 1`
14030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 done
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 $ac_includes_default
14043 typedef int ac__type_sizeof_;
14045 main ()
14047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14048 test_array [0] = 0
14051 return 0;
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (ac_try="$ac_compile"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059 esac
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_compile") 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest.$ac_objext; then
14071 ac_hi=-1 ac_mid=-1
14072 while :; do
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 $ac_includes_default
14080 typedef int ac__type_sizeof_;
14082 main ()
14084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14085 test_array [0] = 0
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.$ac_objext; then
14108 ac_lo=$ac_mid; break
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_hi=`expr '(' $ac_mid ')' - 1`
14114 if test $ac_mid -le $ac_hi; then
14115 ac_lo= ac_hi=
14116 break
14118 ac_mid=`expr 2 '*' $ac_mid`
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 done
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_lo= ac_hi=
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 # Binary search between lo and hi bounds.
14135 while test "x$ac_lo" != "x$ac_hi"; do
14136 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 typedef int ac__type_sizeof_;
14146 main ()
14148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14149 test_array [0] = 0
14152 return 0;
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (ac_try="$ac_compile"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_compile") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest.$ac_objext; then
14172 ac_hi=$ac_mid
14173 else
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_lo=`expr '(' $ac_mid ')' + 1`
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 done
14182 case $ac_lo in
14183 ?*) ac_cv_sizeof_int=$ac_lo;;
14184 '') if test "$ac_cv_type_int" = yes; then
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14186 See \`config.log' for more details." >&5
14187 echo "$as_me: error: cannot compute sizeof (int)
14188 See \`config.log' for more details." >&2;}
14189 { (exit 77); exit 77; }; }
14190 else
14191 ac_cv_sizeof_int=0
14192 fi ;;
14193 esac
14194 else
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14202 typedef int ac__type_sizeof_;
14203 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14204 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14205 #include <stdio.h>
14206 #include <stdlib.h>
14208 main ()
14211 FILE *f = fopen ("conftest.val", "w");
14212 if (! f)
14213 return 1;
14214 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14216 long int i = longval ();
14217 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14218 return 1;
14219 fprintf (f, "%ld\n", i);
14221 else
14223 unsigned long int i = ulongval ();
14224 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14225 return 1;
14226 fprintf (f, "%lu\n", i);
14228 return ferror (f) || fclose (f) != 0;
14231 return 0;
14233 _ACEOF
14234 rm -f conftest$ac_exeext
14235 if { (ac_try="$ac_link"
14236 case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_link") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_sizeof_int=`cat conftest.val`
14255 else
14256 echo "$as_me: program exited with status $ac_status" >&5
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ( exit $ac_status )
14261 if test "$ac_cv_type_int" = yes; then
14262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14263 See \`config.log' for more details." >&5
14264 echo "$as_me: error: cannot compute sizeof (int)
14265 See \`config.log' for more details." >&2;}
14266 { (exit 77); exit 77; }; }
14267 else
14268 ac_cv_sizeof_int=0
14271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14273 rm -f conftest.val
14275 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14276 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14280 cat >>confdefs.h <<_ACEOF
14281 #define SIZEOF_INT $ac_cv_sizeof_int
14282 _ACEOF
14286 # do the package library checks now
14289 if test "${USE_ALSA}" != "no"; then
14290 pbxlibdir=""
14291 if test "x${ALSA_DIR}" != "x"; then
14292 if test -d ${ALSA_DIR}/lib; then
14293 pbxlibdir="-L${ALSA_DIR}/lib"
14294 else
14295 pbxlibdir="-L${ALSA_DIR}"
14298 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
14299 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
14300 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char snd_spcm_init ();
14320 main ()
14322 return snd_spcm_init ();
14324 return 0;
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_link") 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest$ac_exeext &&
14344 $as_test_x conftest$ac_exeext; then
14345 ac_cv_lib_asound_snd_spcm_init=yes
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_lib_asound_snd_spcm_init=no
14353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354 conftest$ac_exeext conftest.$ac_ext
14355 LIBS=$ac_check_lib_save_LIBS
14357 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
14358 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
14359 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
14360 AST_ALSA_FOUND=yes
14361 else
14362 AST_ALSA_FOUND=no
14366 if test "${AST_ALSA_FOUND}" = "yes"; then
14367 ALSA_LIB="-lasound -lm -ldl"
14368 ALSA_HEADER_FOUND="1"
14369 if test "x${ALSA_DIR}" != "x"; then
14370 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
14371 ALSA_INCLUDE="-I${ALSA_DIR}/include"
14372 if test "xalsa/asoundlib.h" != "x" ; then
14373 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
14376 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_res=`eval echo '${'$as_ac_Header'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382 echo "${ECHO_T}$ac_res" >&6; }
14383 else
14384 # Is the header compilable?
14385 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
14386 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (ac_try="$ac_compile"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_compile") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest.$ac_objext; then
14413 ac_header_compiler=yes
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_header_compiler=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423 echo "${ECHO_T}$ac_header_compiler" >&6; }
14425 # Is the header present?
14426 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
14427 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h. */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
14435 _ACEOF
14436 if { (ac_try="$ac_cpp conftest.$ac_ext"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null && {
14449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 }; then
14452 ac_header_preproc=yes
14453 else
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_header_preproc=no
14460 rm -f conftest.err conftest.$ac_ext
14461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462 echo "${ECHO_T}$ac_header_preproc" >&6; }
14464 # So? What about this header?
14465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 yes:no: )
14467 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14468 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
14470 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
14473 no:yes:* )
14474 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
14475 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
14477 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
14479 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
14481 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
14483 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
14485 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
14488 esac
14489 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
14490 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 eval "$as_ac_Header=\$ac_header_preproc"
14496 ac_res=`eval echo '${'$as_ac_Header'}'`
14497 { echo "$as_me:$LINENO: result: $ac_res" >&5
14498 echo "${ECHO_T}$ac_res" >&6; }
14501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502 ALSA_HEADER_FOUND=1
14503 else
14504 ALSA_HEADER_FOUND=0
14509 else
14510 if test "xalsa/asoundlib.h" != "x" ; then
14511 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14512 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
14513 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
14514 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
14519 else
14520 # Is the header compilable?
14521 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
14522 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 $ac_includes_default
14530 #include <alsa/asoundlib.h>
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
14549 ac_header_compiler=yes
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ac_header_compiler=no
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14559 echo "${ECHO_T}$ac_header_compiler" >&6; }
14561 # Is the header present?
14562 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
14563 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570 #include <alsa/asoundlib.h>
14571 _ACEOF
14572 if { (ac_try="$ac_cpp conftest.$ac_ext"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } >/dev/null && {
14585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 }; then
14588 ac_header_preproc=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_header_preproc=no
14596 rm -f conftest.err conftest.$ac_ext
14597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14598 echo "${ECHO_T}$ac_header_preproc" >&6; }
14600 # So? What about this header?
14601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14602 yes:no: )
14603 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14604 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
14606 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
14607 ac_header_preproc=yes
14609 no:yes:* )
14610 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
14611 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
14613 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
14615 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
14617 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
14619 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
14621 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
14624 esac
14625 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
14626 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
14627 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
14632 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
14633 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
14636 if test $ac_cv_header_alsa_asoundlib_h = yes; then
14637 ALSA_HEADER_FOUND=1
14638 else
14639 ALSA_HEADER_FOUND=0
14645 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
14646 if test ! -z "${ALSA_MANDATORY}" ;
14647 then
14648 { echo "$as_me:$LINENO: ***" >&5
14649 echo "$as_me: ***" >&6;}
14650 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
14651 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
14652 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
14653 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
14654 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
14655 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
14656 exit 1
14658 ALSA_LIB=""
14659 ALSA_INCLUDE=""
14660 PBX_ALSA=0
14661 else
14662 PBX_ALSA=1
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_ALSA 1
14666 _ACEOF
14669 elif test ! -z "${ALSA_MANDATORY}";
14670 then
14671 { echo "$as_me:$LINENO: ***" >&5
14672 echo "$as_me: ***" >&6;}
14673 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
14674 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
14675 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
14676 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
14677 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
14678 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
14679 exit 1
14685 if test "${USE_CURSES}" != "no"; then
14686 pbxlibdir=""
14687 if test "x${CURSES_DIR}" != "x"; then
14688 if test -d ${CURSES_DIR}/lib; then
14689 pbxlibdir="-L${CURSES_DIR}/lib"
14690 else
14691 pbxlibdir="-L${CURSES_DIR}"
14694 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
14695 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_curses_initscr+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lcurses ${pbxlibdir} $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char initscr ();
14716 main ()
14718 return initscr ();
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest$ac_exeext &&
14740 $as_test_x conftest$ac_exeext; then
14741 ac_cv_lib_curses_initscr=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_curses_initscr=no
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
14754 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
14755 if test $ac_cv_lib_curses_initscr = yes; then
14756 AST_CURSES_FOUND=yes
14757 else
14758 AST_CURSES_FOUND=no
14762 if test "${AST_CURSES_FOUND}" = "yes"; then
14763 CURSES_LIB="-lcurses "
14764 CURSES_HEADER_FOUND="1"
14765 if test "x${CURSES_DIR}" != "x"; then
14766 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
14767 CURSES_INCLUDE="-I${CURSES_DIR}/include"
14768 if test "xcurses.h" != "x" ; then
14769 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
14770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
14772 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
14773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 ac_res=`eval echo '${'$as_ac_Header'}'`
14777 { echo "$as_me:$LINENO: result: $ac_res" >&5
14778 echo "${ECHO_T}$ac_res" >&6; }
14779 else
14780 # Is the header compilable?
14781 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
14782 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 $ac_includes_default
14790 #include <${CURSES_DIR}/include/curses.h>
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (ac_try="$ac_compile"
14794 case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14797 esac
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_compile") 2>conftest.er1
14800 ac_status=$?
14801 grep -v '^ *+' conftest.er1 >conftest.err
14802 rm -f conftest.er1
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } && {
14806 test -z "$ac_c_werror_flag" ||
14807 test ! -s conftest.err
14808 } && test -s conftest.$ac_objext; then
14809 ac_header_compiler=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ac_header_compiler=no
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14819 echo "${ECHO_T}$ac_header_compiler" >&6; }
14821 # Is the header present?
14822 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
14823 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #include <${CURSES_DIR}/include/curses.h>
14831 _ACEOF
14832 if { (ac_try="$ac_cpp conftest.$ac_ext"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } >/dev/null && {
14845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 }; then
14848 ac_header_preproc=yes
14849 else
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_header_preproc=no
14856 rm -f conftest.err conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6; }
14860 # So? What about this header?
14861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14862 yes:no: )
14863 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
14866 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
14867 ac_header_preproc=yes
14869 no:yes:* )
14870 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
14871 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
14873 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
14875 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
14877 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
14879 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
14881 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
14884 esac
14885 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
14886 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890 eval "$as_ac_Header=\$ac_header_preproc"
14892 ac_res=`eval echo '${'$as_ac_Header'}'`
14893 { echo "$as_me:$LINENO: result: $ac_res" >&5
14894 echo "${ECHO_T}$ac_res" >&6; }
14897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14898 CURSES_HEADER_FOUND=1
14899 else
14900 CURSES_HEADER_FOUND=0
14905 else
14906 if test "xcurses.h" != "x" ; then
14907 if test "${ac_cv_header_curses_h+set}" = set; then
14908 { echo "$as_me:$LINENO: checking for curses.h" >&5
14909 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
14910 if test "${ac_cv_header_curses_h+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
14914 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
14915 else
14916 # Is the header compilable?
14917 { echo "$as_me:$LINENO: checking curses.h usability" >&5
14918 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 $ac_includes_default
14926 #include <curses.h>
14927 _ACEOF
14928 rm -f conftest.$ac_objext
14929 if { (ac_try="$ac_compile"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 ac_header_compiler=yes
14946 else
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_compiler=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14955 echo "${ECHO_T}$ac_header_compiler" >&6; }
14957 # Is the header present?
14958 { echo "$as_me:$LINENO: checking curses.h presence" >&5
14959 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <curses.h>
14967 _ACEOF
14968 if { (ac_try="$ac_cpp conftest.$ac_ext"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null && {
14981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 }; then
14984 ac_header_preproc=yes
14985 else
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_header_preproc=no
14992 rm -f conftest.err conftest.$ac_ext
14993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 echo "${ECHO_T}$ac_header_preproc" >&6; }
14996 # So? What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998 yes:no: )
14999 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15000 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
15002 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
15003 ac_header_preproc=yes
15005 no:yes:* )
15006 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15007 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15009 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15011 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15013 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
15015 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15017 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15020 esac
15021 { echo "$as_me:$LINENO: checking for curses.h" >&5
15022 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15023 if test "${ac_cv_header_curses_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 ac_cv_header_curses_h=$ac_header_preproc
15028 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15029 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15032 if test $ac_cv_header_curses_h = yes; then
15033 CURSES_HEADER_FOUND=1
15034 else
15035 CURSES_HEADER_FOUND=0
15041 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15042 if test ! -z "${CURSES_MANDATORY}" ;
15043 then
15044 { echo "$as_me:$LINENO: ***" >&5
15045 echo "$as_me: ***" >&6;}
15046 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
15047 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
15048 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
15049 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
15050 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15051 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15052 exit 1
15054 CURSES_LIB=""
15055 CURSES_INCLUDE=""
15056 PBX_CURSES=0
15057 else
15058 PBX_CURSES=1
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_CURSES 1
15062 _ACEOF
15065 elif test ! -z "${CURSES_MANDATORY}";
15066 then
15067 { echo "$as_me:$LINENO: ***" >&5
15068 echo "$as_me: ***" >&6;}
15069 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
15070 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
15071 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15072 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15073 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15074 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15075 exit 1
15080 GSM_INTERNAL="yes"
15082 GSM_SYSTEM="yes"
15083 if test "${USE_GSM}" != "no"; then
15084 if test "${GSM_DIR}" = "internal"; then
15085 GSM_SYSTEM="no"
15086 elif test "${GSM_DIR}" != ""; then
15087 GSM_INTERNAL="no"
15089 if test "${GSM_SYSTEM}" = "yes"; then
15090 gsmlibdir=""
15091 if test "x${GSM_DIR}" != "x"; then
15092 if test -d ${GSM_DIR}/lib; then
15093 gsmlibdir="-L${GSM_DIR}/lib"
15094 else
15095 gsmlibdir="-L${GSM_DIR}"
15098 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
15099 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
15100 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103 ac_check_lib_save_LIBS=$LIBS
15104 LIBS="-lgsm ${gsmlibdir} $LIBS"
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char gsm_create ();
15120 main ()
15122 return gsm_create ();
15124 return 0;
15126 _ACEOF
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext &&
15144 $as_test_x conftest$ac_exeext; then
15145 ac_cv_lib_gsm_gsm_create=yes
15146 else
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_gsm_gsm_create=no
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155 LIBS=$ac_check_lib_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
15158 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
15159 if test $ac_cv_lib_gsm_gsm_create = yes; then
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_GSM 1
15163 _ACEOF
15167 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
15168 GSM_LIB="-lgsm"
15169 if test "x${GSM_DIR}" != "x"; then
15170 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
15171 GSM_INCLUDE="-I${GSM_DIR}/include"
15173 PBX_GSM=1
15174 GSM_INTERNAL="no"
15177 if test "${GSM_INTERNAL}" = "yes"; then
15178 PBX_GSM=1
15183 if test "${USE_IKSEMEL}" != "no"; then
15184 pbxlibdir=""
15185 if test "x${IKSEMEL_DIR}" != "x"; then
15186 if test -d ${IKSEMEL_DIR}/lib; then
15187 pbxlibdir="-L${IKSEMEL_DIR}/lib"
15188 else
15189 pbxlibdir="-L${IKSEMEL_DIR}"
15192 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
15193 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
15194 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-liksemel ${pbxlibdir} $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 char iks_start_sasl ();
15214 main ()
15216 return iks_start_sasl ();
15218 return 0;
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 ac_cv_lib_iksemel_iks_start_sasl=yes
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_cv_lib_iksemel_iks_start_sasl=no
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
15252 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
15253 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
15254 AST_IKSEMEL_FOUND=yes
15255 else
15256 AST_IKSEMEL_FOUND=no
15260 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
15261 IKSEMEL_LIB="-liksemel "
15262 IKSEMEL_HEADER_FOUND="1"
15263 if test "x${IKSEMEL_DIR}" != "x"; then
15264 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
15265 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
15266 if test "xiksemel.h" != "x" ; then
15267 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
15268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15269 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
15270 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
15271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15277 else
15278 # Is the header compilable?
15279 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
15280 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 $ac_includes_default
15288 #include <${IKSEMEL_DIR}/include/iksemel.h>
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest.$ac_objext; then
15307 ac_header_compiler=yes
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_header_compiler=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317 echo "${ECHO_T}$ac_header_compiler" >&6; }
15319 # Is the header present?
15320 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
15321 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <${IKSEMEL_DIR}/include/iksemel.h>
15329 _ACEOF
15330 if { (ac_try="$ac_cpp conftest.$ac_ext"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null && {
15343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 }; then
15346 ac_header_preproc=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_header_preproc=no
15354 rm -f conftest.err conftest.$ac_ext
15355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15356 echo "${ECHO_T}$ac_header_preproc" >&6; }
15358 # So? What about this header?
15359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15360 yes:no: )
15361 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
15362 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
15364 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
15365 ac_header_preproc=yes
15367 no:yes:* )
15368 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
15369 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
15371 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
15373 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
15375 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
15377 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
15379 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
15382 esac
15383 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
15384 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 eval "$as_ac_Header=\$ac_header_preproc"
15390 ac_res=`eval echo '${'$as_ac_Header'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392 echo "${ECHO_T}$ac_res" >&6; }
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 IKSEMEL_HEADER_FOUND=1
15397 else
15398 IKSEMEL_HEADER_FOUND=0
15403 else
15404 if test "xiksemel.h" != "x" ; then
15405 if test "${ac_cv_header_iksemel_h+set}" = set; then
15406 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
15407 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
15408 if test "${ac_cv_header_iksemel_h+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
15412 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
15413 else
15414 # Is the header compilable?
15415 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
15416 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 #include <iksemel.h>
15425 _ACEOF
15426 rm -f conftest.$ac_objext
15427 if { (ac_try="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest.$ac_objext; then
15443 ac_header_compiler=yes
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
15457 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <iksemel.h>
15465 _ACEOF
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null && {
15479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 }; then
15482 ac_header_preproc=yes
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_header_preproc=no
15490 rm -f conftest.err conftest.$ac_ext
15491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6; }
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15496 yes:no: )
15497 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
15500 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
15501 ac_header_preproc=yes
15503 no:yes:* )
15504 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
15505 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
15507 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
15509 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
15511 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
15513 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
15515 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
15518 esac
15519 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
15520 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
15521 if test "${ac_cv_header_iksemel_h+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 ac_cv_header_iksemel_h=$ac_header_preproc
15526 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
15527 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
15530 if test $ac_cv_header_iksemel_h = yes; then
15531 IKSEMEL_HEADER_FOUND=1
15532 else
15533 IKSEMEL_HEADER_FOUND=0
15539 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
15540 if test ! -z "${IKSEMEL_MANDATORY}" ;
15541 then
15542 { echo "$as_me:$LINENO: ***" >&5
15543 echo "$as_me: ***" >&6;}
15544 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
15545 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
15546 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
15547 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
15548 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
15549 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
15550 exit 1
15552 IKSEMEL_LIB=""
15553 IKSEMEL_INCLUDE=""
15554 PBX_IKSEMEL=0
15555 else
15556 PBX_IKSEMEL=1
15558 cat >>confdefs.h <<_ACEOF
15559 #define HAVE_IKSEMEL 1
15560 _ACEOF
15563 elif test ! -z "${IKSEMEL_MANDATORY}";
15564 then
15565 { echo "$as_me:$LINENO: ***" >&5
15566 echo "$as_me: ***" >&6;}
15567 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
15568 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
15569 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15570 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15571 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
15572 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
15573 exit 1
15578 if test "${PBX_IKSEMEL}" = 1; then
15580 if test "${USE_GNUTLS}" != "no"; then
15581 pbxlibdir=""
15582 if test "x${GNUTLS_DIR}" != "x"; then
15583 if test -d ${GNUTLS_DIR}/lib; then
15584 pbxlibdir="-L${GNUTLS_DIR}/lib"
15585 else
15586 pbxlibdir="-L${GNUTLS_DIR}"
15589 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
15590 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
15591 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594 ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-lgnutls ${pbxlibdir} $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15606 #ifdef __cplusplus
15607 extern "C"
15608 #endif
15609 char gnutls_bye ();
15611 main ()
15613 return gnutls_bye ();
15615 return 0;
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_link") 2>conftest.er1
15626 ac_status=$?
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } && {
15632 test -z "$ac_c_werror_flag" ||
15633 test ! -s conftest.err
15634 } && test -s conftest$ac_exeext &&
15635 $as_test_x conftest$ac_exeext; then
15636 ac_cv_lib_gnutls_gnutls_bye=yes
15637 else
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 ac_cv_lib_gnutls_gnutls_bye=no
15644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
15649 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
15650 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
15651 AST_GNUTLS_FOUND=yes
15652 else
15653 AST_GNUTLS_FOUND=no
15657 if test "${AST_GNUTLS_FOUND}" = "yes"; then
15658 GNUTLS_LIB="-lgnutls "
15659 GNUTLS_HEADER_FOUND="1"
15660 if test "x${GNUTLS_DIR}" != "x"; then
15661 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
15662 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
15663 if test "x" != "x" ; then
15664 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
15667 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15674 else
15675 # Is the header compilable?
15676 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
15677 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 #include <${GNUTLS_DIR}/include/>
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest.$ac_objext; then
15704 ac_header_compiler=yes
15705 else
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_compiler=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
15718 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h. */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 #include <${GNUTLS_DIR}/include/>
15726 _ACEOF
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null && {
15740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 }; then
15743 ac_header_preproc=yes
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_header_preproc=no
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15755 # So? What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757 yes:no: )
15758 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
15762 ac_header_preproc=yes
15764 no:yes:* )
15765 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
15779 esac
15780 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
15781 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785 eval "$as_ac_Header=\$ac_header_preproc"
15787 ac_res=`eval echo '${'$as_ac_Header'}'`
15788 { echo "$as_me:$LINENO: result: $ac_res" >&5
15789 echo "${ECHO_T}$ac_res" >&6; }
15792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 GNUTLS_HEADER_FOUND=1
15794 else
15795 GNUTLS_HEADER_FOUND=0
15800 else
15801 if test "x" != "x" ; then
15802 if test "${ac_cv_header_+set}" = set; then
15803 { echo "$as_me:$LINENO: checking for " >&5
15804 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
15805 if test "${ac_cv_header_+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
15809 echo "${ECHO_T}$ac_cv_header_" >&6; }
15810 else
15811 # Is the header compilable?
15812 { echo "$as_me:$LINENO: checking usability" >&5
15813 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h. */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 $ac_includes_default
15821 #include <>
15822 _ACEOF
15823 rm -f conftest.$ac_objext
15824 if { (ac_try="$ac_compile"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_compile") 2>conftest.er1
15831 ac_status=$?
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } && {
15837 test -z "$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 } && test -s conftest.$ac_objext; then
15840 ac_header_compiler=yes
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_header_compiler=no
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15850 echo "${ECHO_T}$ac_header_compiler" >&6; }
15852 # Is the header present?
15853 { echo "$as_me:$LINENO: checking presence" >&5
15854 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
15855 cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h. */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15861 #include <>
15862 _ACEOF
15863 if { (ac_try="$ac_cpp conftest.$ac_ext"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } >/dev/null && {
15876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 }; then
15879 ac_header_preproc=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_header_preproc=no
15887 rm -f conftest.err conftest.$ac_ext
15888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15889 echo "${ECHO_T}$ac_header_preproc" >&6; }
15891 # So? What about this header?
15892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15893 yes:no: )
15894 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
15895 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
15897 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
15898 ac_header_preproc=yes
15900 no:yes:* )
15901 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
15902 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
15904 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
15906 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
15908 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
15910 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
15912 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
15915 esac
15916 { echo "$as_me:$LINENO: checking for " >&5
15917 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
15918 if test "${ac_cv_header_+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921 ac_cv_header_=$ac_header_preproc
15923 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
15924 echo "${ECHO_T}$ac_cv_header_" >&6; }
15927 if test $ac_cv_header_ = yes; then
15928 GNUTLS_HEADER_FOUND=1
15929 else
15930 GNUTLS_HEADER_FOUND=0
15936 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
15937 if test ! -z "${GNUTLS_MANDATORY}" ;
15938 then
15939 { echo "$as_me:$LINENO: ***" >&5
15940 echo "$as_me: ***" >&6;}
15941 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
15942 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
15943 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
15944 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
15945 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
15946 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
15947 exit 1
15949 GNUTLS_LIB=""
15950 GNUTLS_INCLUDE=""
15951 PBX_GNUTLS=0
15952 else
15953 PBX_GNUTLS=1
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_GNUTLS 1
15957 _ACEOF
15960 elif test ! -z "${GNUTLS_MANDATORY}";
15961 then
15962 { echo "$as_me:$LINENO: ***" >&5
15963 echo "$as_me: ***" >&6;}
15964 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
15965 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
15966 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15967 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15968 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
15969 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
15970 exit 1
15974 if test "${PBX_GNUTLS}" = 1; then
15975 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
15979 if test "${USE_IMAP_TK}" != "no"; then
15980 if test "${IMAP_TK_DIR}" = ""; then
15981 IMAP_TK_DIR=`pwd`"/../imap-2004g"
15983 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
15984 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
15985 saved_cppflags="${CPPFLAGS}"
15986 saved_libs="${LIBS}"
15987 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
15988 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
15990 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
15991 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include "c-client.h"
15999 void mm_searched (MAILSTREAM *stream,unsigned long number)
16002 void mm_exists (MAILSTREAM *stream,unsigned long number)
16005 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16008 void mm_flags (MAILSTREAM *stream,unsigned long number)
16011 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16014 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16017 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16020 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16023 void mm_log (char *string,long errflg)
16026 void mm_dlog (char *string)
16029 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16032 void mm_critical (MAILSTREAM *stream)
16035 void mm_nocritical (MAILSTREAM *stream)
16038 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16041 void mm_fatal (char *string)
16045 main ()
16048 MAILSTREAM *foo = mail_open(NULL, "", 0);
16052 return 0;
16054 _ACEOF
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest$ac_exeext &&
16072 $as_test_x conftest$ac_exeext; then
16073 ac_cv_imap_tk="yes"
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_cv_imap_tk="no"
16082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16083 conftest$ac_exeext conftest.$ac_ext
16084 if test "${ac_cv_imap_tk}" = "yes"; then
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include "c-client.h"
16092 void mm_searched (MAILSTREAM *stream,unsigned long number)
16095 void mm_exists (MAILSTREAM *stream,unsigned long number)
16098 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16101 void mm_flags (MAILSTREAM *stream,unsigned long number)
16104 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16107 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16110 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16113 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16116 void mm_log (char *string,long errflg)
16119 void mm_dlog (char *string)
16122 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16125 void mm_critical (MAILSTREAM *stream)
16128 void mm_nocritical (MAILSTREAM *stream)
16131 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16134 void mm_fatal (char *string)
16138 main ()
16141 long check = mail_expunge_full(NULL, "", 0);
16145 return 0;
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_link") 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest$ac_exeext &&
16165 $as_test_x conftest$ac_exeext; then
16166 ac_cv_imap_tk2006="yes"
16167 else
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_cv_imap_tk2006="no"
16175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16176 conftest$ac_exeext conftest.$ac_ext
16178 CPPFLAGS="${saved_cppflags}"
16179 LIBS="${saved_libs}"
16180 if test "${ac_cv_imap_tk}" = "yes"; then
16181 { echo "$as_me:$LINENO: result: yes" >&5
16182 echo "${ECHO_T}yes" >&6; }
16183 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16184 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
16185 PBX_IMAP_TK=1
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_IMAP_TK 1
16189 _ACEOF
16191 if test "${ac_cv_imap_tk2006}" = "yes"; then
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_IMAP_TK2006 1
16195 _ACEOF
16198 elif test ! -z "${IMAP_TK_MANDATORY}"; then
16199 { echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6; }
16201 { echo "$as_me:$LINENO: ***" >&5
16202 echo "$as_me: ***" >&6;}
16203 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
16204 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
16205 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16206 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16207 { echo "$as_me:$LINENO: *** including --without-imap." >&5
16208 echo "$as_me: *** including --without-imap." >&6;}
16209 exit 1
16210 else
16211 { echo "$as_me:$LINENO: result: no" >&5
16212 echo "${ECHO_T}no" >&6; }
16216 ac_ext=cpp
16217 ac_cpp='$CXXCPP $CPPFLAGS'
16218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16223 if test "${USE_KDE}" != "no"; then
16224 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
16225 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
16226 saved_libs="${LIBS}"
16227 saved_cppflags="${CPPFLAGS}"
16228 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
16229 if test -d ${KDE_DIR}/lib; then
16230 kdelibdir="${KDE_DIR}/lib"
16231 else
16232 kdelibdir="${KDE_DIR}"
16234 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include "kcrash.h"
16245 main ()
16247 KCrash::defaultCrashHandler(1);
16249 return 0;
16252 _ACEOF
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_link") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_cxx_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest$ac_exeext &&
16270 $as_test_x conftest$ac_exeext; then
16271 ac_cv_lib_kde_crash="yes"
16272 else
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ac_cv_lib_kde_crash="no"
16279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280 conftest$ac_exeext conftest.$ac_ext
16282 LIBS="${saved_libs}"
16283 CPPFLAGS="${saved_cppflags}"
16285 if test "${ac_cv_lib_kde_crash}" = "yes"; then
16286 { echo "$as_me:$LINENO: result: yes" >&5
16287 echo "${ECHO_T}yes" >&6; }
16288 KDE_LIB="-lkdecore -lkdeui"
16289 if test "${KDE_DIR}" != ""; then
16290 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
16291 KDE_INCLUDE="-I${KDE_DIR}/include"
16293 PBX_KDE=1
16295 cat >>confdefs.h <<\_ACEOF
16296 #define HAVE_LIBKDE 1
16297 _ACEOF
16299 elif test ! -z "${KDE_MANDATORY}"; then
16300 { echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6; }
16302 { echo "$as_me:$LINENO: ***" >&5
16303 echo "$as_me: ***" >&6;}
16304 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
16305 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
16306 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16307 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16308 { echo "$as_me:$LINENO: *** including --without-kde." >&5
16309 echo "$as_me: *** including --without-kde." >&6;}
16310 exit 1
16311 else
16312 { echo "$as_me:$LINENO: result: no" >&5
16313 echo "${ECHO_T}no" >&6; }
16316 if test "${PBX_KDE}" = 1; then
16317 if test -n "$ac_tool_prefix"; then
16318 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
16319 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
16320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16322 if test "${ac_cv_path_KDEINIT+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325 case $KDEINIT in
16326 [\\/]* | ?:[\\/]*)
16327 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
16330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16333 IFS=$as_save_IFS
16334 test -z "$as_dir" && as_dir=.
16335 for ac_exec_ext in '' $ac_executable_extensions; do
16336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16337 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16339 break 2
16341 done
16342 done
16343 IFS=$as_save_IFS
16346 esac
16348 KDEINIT=$ac_cv_path_KDEINIT
16349 if test -n "$KDEINIT"; then
16350 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
16351 echo "${ECHO_T}$KDEINIT" >&6; }
16352 else
16353 { echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6; }
16359 if test -z "$ac_cv_path_KDEINIT"; then
16360 ac_pt_KDEINIT=$KDEINIT
16361 # Extract the first word of "kdeinit", so it can be a program name with args.
16362 set dummy kdeinit; ac_word=$2
16363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16365 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 case $ac_pt_KDEINIT in
16369 [\\/]* | ?:[\\/]*)
16370 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16376 IFS=$as_save_IFS
16377 test -z "$as_dir" && as_dir=.
16378 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16380 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16382 break 2
16384 done
16385 done
16386 IFS=$as_save_IFS
16389 esac
16391 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
16392 if test -n "$ac_pt_KDEINIT"; then
16393 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
16394 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
16395 else
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16400 if test "x$ac_pt_KDEINIT" = x; then
16401 KDEINIT="No"
16402 else
16403 case $cross_compiling:$ac_tool_warned in
16404 yes:)
16405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16406 whose name does not start with the host triplet. If you think this
16407 configuration is useful to you, please write to autoconf@gnu.org." >&5
16408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16409 whose name does not start with the host triplet. If you think this
16410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16411 ac_tool_warned=yes ;;
16412 esac
16413 KDEINIT=$ac_pt_KDEINIT
16415 else
16416 KDEINIT="$ac_cv_path_KDEINIT"
16419 if test ! x"${KDEINIT}" = xNo; then
16420 KDEDIR=$(${DIRNAME} ${KDEINIT})
16421 KDEDIR=$(${DIRNAME} ${KDEDIR})
16426 ac_ext=c
16427 ac_cpp='$CPP $CPPFLAGS'
16428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434 if test "${USE_MISDN}" != "no"; then
16435 pbxlibdir=""
16436 if test "x${MISDN_DIR}" != "x"; then
16437 if test -d ${MISDN_DIR}/lib; then
16438 pbxlibdir="-L${MISDN_DIR}/lib"
16439 else
16440 pbxlibdir="-L${MISDN_DIR}"
16443 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
16444 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
16445 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448 ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-lmISDN ${pbxlibdir} $LIBS"
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16460 #ifdef __cplusplus
16461 extern "C"
16462 #endif
16463 char mISDN_open ();
16465 main ()
16467 return mISDN_open ();
16469 return 0;
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 ac_cv_lib_mISDN_mISDN_open=yes
16491 else
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_lib_mISDN_mISDN_open=no
16498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
16503 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
16504 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
16505 AST_MISDN_FOUND=yes
16506 else
16507 AST_MISDN_FOUND=no
16511 if test "${AST_MISDN_FOUND}" = "yes"; then
16512 MISDN_LIB="-lmISDN "
16513 MISDN_HEADER_FOUND="1"
16514 if test "x${MISDN_DIR}" != "x"; then
16515 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
16516 MISDN_INCLUDE="-I${MISDN_DIR}/include"
16517 if test "xmISDNuser/mISDNlib.h" != "x" ; then
16518 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
16519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16520 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
16521 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 ac_res=`eval echo '${'$as_ac_Header'}'`
16526 { echo "$as_me:$LINENO: result: $ac_res" >&5
16527 echo "${ECHO_T}$ac_res" >&6; }
16528 else
16529 # Is the header compilable?
16530 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
16531 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
16532 cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h. */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 $ac_includes_default
16539 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_compile") 2>conftest.er1
16549 ac_status=$?
16550 grep -v '^ *+' conftest.er1 >conftest.err
16551 rm -f conftest.er1
16552 cat conftest.err >&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest.$ac_objext; then
16558 ac_header_compiler=yes
16559 else
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_header_compiler=no
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6; }
16570 # Is the header present?
16571 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
16572 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
16580 _ACEOF
16581 if { (ac_try="$ac_cpp conftest.$ac_ext"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } >/dev/null && {
16594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 }; then
16597 ac_header_preproc=yes
16598 else
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_header_preproc=no
16605 rm -f conftest.err conftest.$ac_ext
16606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16607 echo "${ECHO_T}$ac_header_preproc" >&6; }
16609 # So? What about this header?
16610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16611 yes:no: )
16612 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16613 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
16615 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
16616 ac_header_preproc=yes
16618 no:yes:* )
16619 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
16620 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
16622 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
16624 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
16626 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
16628 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
16630 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
16633 esac
16634 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
16635 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639 eval "$as_ac_Header=\$ac_header_preproc"
16641 ac_res=`eval echo '${'$as_ac_Header'}'`
16642 { echo "$as_me:$LINENO: result: $ac_res" >&5
16643 echo "${ECHO_T}$ac_res" >&6; }
16646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16647 MISDN_HEADER_FOUND=1
16648 else
16649 MISDN_HEADER_FOUND=0
16654 else
16655 if test "xmISDNuser/mISDNlib.h" != "x" ; then
16656 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16657 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
16658 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16659 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
16663 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
16664 else
16665 # Is the header compilable?
16666 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
16667 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h. */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16675 #include <mISDNuser/mISDNlib.h>
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest.$ac_objext; then
16694 ac_header_compiler=yes
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_header_compiler=no
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 echo "${ECHO_T}$ac_header_compiler" >&6; }
16706 # Is the header present?
16707 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
16708 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <mISDNuser/mISDNlib.h>
16716 _ACEOF
16717 if { (ac_try="$ac_cpp conftest.$ac_ext"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } >/dev/null && {
16730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 }; then
16733 ac_header_preproc=yes
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_header_preproc=no
16741 rm -f conftest.err conftest.$ac_ext
16742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16743 echo "${ECHO_T}$ac_header_preproc" >&6; }
16745 # So? What about this header?
16746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16747 yes:no: )
16748 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16749 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
16751 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
16752 ac_header_preproc=yes
16754 no:yes:* )
16755 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
16756 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
16758 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
16760 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
16762 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
16764 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
16766 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
16769 esac
16770 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
16771 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16772 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
16777 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
16778 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
16781 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
16782 MISDN_HEADER_FOUND=1
16783 else
16784 MISDN_HEADER_FOUND=0
16790 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
16791 if test ! -z "${MISDN_MANDATORY}" ;
16792 then
16793 { echo "$as_me:$LINENO: ***" >&5
16794 echo "$as_me: ***" >&6;}
16795 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
16796 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
16797 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
16798 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
16799 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
16800 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
16801 exit 1
16803 MISDN_LIB=""
16804 MISDN_INCLUDE=""
16805 PBX_MISDN=0
16806 else
16807 PBX_MISDN=1
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_MISDN 1
16811 _ACEOF
16814 elif test ! -z "${MISDN_MANDATORY}";
16815 then
16816 { echo "$as_me:$LINENO: ***" >&5
16817 echo "$as_me: ***" >&6;}
16818 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
16819 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
16820 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16821 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16822 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
16823 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
16824 exit 1
16829 if test "${PBX_MISDN}" = 1; then
16831 if test "${USE_ISDNNET}" != "no"; then
16832 pbxlibdir=""
16833 if test "x${ISDNNET_DIR}" != "x"; then
16834 if test -d ${ISDNNET_DIR}/lib; then
16835 pbxlibdir="-L${ISDNNET_DIR}/lib"
16836 else
16837 pbxlibdir="-L${ISDNNET_DIR}"
16840 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
16841 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
16842 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845 ac_check_lib_save_LIBS=$LIBS
16846 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
16847 cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h. */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char init_manager ();
16862 main ()
16864 return init_manager ();
16866 return 0;
16868 _ACEOF
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && {
16883 test -z "$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 } && test -s conftest$ac_exeext &&
16886 $as_test_x conftest$ac_exeext; then
16887 ac_cv_lib_isdnnet_init_manager=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_cv_lib_isdnnet_init_manager=no
16895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_lib_save_LIBS
16899 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
16900 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
16901 if test $ac_cv_lib_isdnnet_init_manager = yes; then
16902 AST_ISDNNET_FOUND=yes
16903 else
16904 AST_ISDNNET_FOUND=no
16908 if test "${AST_ISDNNET_FOUND}" = "yes"; then
16909 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
16910 ISDNNET_HEADER_FOUND="1"
16911 if test "x${ISDNNET_DIR}" != "x"; then
16912 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
16913 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
16914 if test "xmISDNuser/isdn_net.h" != "x" ; then
16915 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
16916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16917 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
16918 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 ac_res=`eval echo '${'$as_ac_Header'}'`
16923 { echo "$as_me:$LINENO: result: $ac_res" >&5
16924 echo "${ECHO_T}$ac_res" >&6; }
16925 else
16926 # Is the header compilable?
16927 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
16928 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 $ac_includes_default
16936 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.$ac_objext; then
16955 ac_header_compiler=yes
16956 else
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_header_compiler=no
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965 echo "${ECHO_T}$ac_header_compiler" >&6; }
16967 # Is the header present?
16968 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
16969 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
16977 _ACEOF
16978 if { (ac_try="$ac_cpp conftest.$ac_ext"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } >/dev/null && {
16991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 }; then
16994 ac_header_preproc=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_header_preproc=no
17002 rm -f conftest.err conftest.$ac_ext
17003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17004 echo "${ECHO_T}$ac_header_preproc" >&6; }
17006 # So? What about this header?
17007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17008 yes:no: )
17009 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17010 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
17012 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
17013 ac_header_preproc=yes
17015 no:yes:* )
17016 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17017 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17019 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17021 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
17025 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17027 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17030 esac
17031 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17032 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 eval "$as_ac_Header=\$ac_header_preproc"
17038 ac_res=`eval echo '${'$as_ac_Header'}'`
17039 { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17044 ISDNNET_HEADER_FOUND=1
17045 else
17046 ISDNNET_HEADER_FOUND=0
17051 else
17052 if test "xmISDNuser/isdn_net.h" != "x" ; then
17053 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17054 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17055 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17056 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17060 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17061 else
17062 # Is the header compilable?
17063 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
17064 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 $ac_includes_default
17072 #include <mISDNuser/isdn_net.h>
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_compile") 2>conftest.er1
17082 ac_status=$?
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } && {
17088 test -z "$ac_c_werror_flag" ||
17089 test ! -s conftest.err
17090 } && test -s conftest.$ac_objext; then
17091 ac_header_compiler=yes
17092 else
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ac_header_compiler=no
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17101 echo "${ECHO_T}$ac_header_compiler" >&6; }
17103 # Is the header present?
17104 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
17105 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h. */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 #include <mISDNuser/isdn_net.h>
17113 _ACEOF
17114 if { (ac_try="$ac_cpp conftest.$ac_ext"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev/null && {
17127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17129 }; then
17130 ac_header_preproc=yes
17131 else
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17144 yes:no: )
17145 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
17148 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc=yes
17151 no:yes:* )
17152 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
17161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17166 esac
17167 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17168 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17169 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
17174 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17175 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17178 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
17179 ISDNNET_HEADER_FOUND=1
17180 else
17181 ISDNNET_HEADER_FOUND=0
17187 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
17188 if test ! -z "${ISDNNET_MANDATORY}" ;
17189 then
17190 { echo "$as_me:$LINENO: ***" >&5
17191 echo "$as_me: ***" >&6;}
17192 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
17193 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
17194 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
17195 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
17196 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
17197 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
17198 exit 1
17200 ISDNNET_LIB=""
17201 ISDNNET_INCLUDE=""
17202 PBX_ISDNNET=0
17203 else
17204 PBX_ISDNNET=1
17206 cat >>confdefs.h <<_ACEOF
17207 #define HAVE_ISDNNET 1
17208 _ACEOF
17211 elif test ! -z "${ISDNNET_MANDATORY}";
17212 then
17213 { echo "$as_me:$LINENO: ***" >&5
17214 echo "$as_me: ***" >&6;}
17215 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
17216 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
17217 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17218 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17219 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
17220 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
17221 exit 1
17226 if test "${USE_SUPPSERV}" != "no"; then
17227 pbxlibdir=""
17228 if test "x${SUPPSERV_DIR}" != "x"; then
17229 if test -d ${SUPPSERV_DIR}/lib; then
17230 pbxlibdir="-L${SUPPSERV_DIR}/lib"
17231 else
17232 pbxlibdir="-L${SUPPSERV_DIR}"
17235 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
17236 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
17237 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240 ac_check_lib_save_LIBS=$LIBS
17241 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h. */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char encodeFac ();
17257 main ()
17259 return encodeFac ();
17261 return 0;
17263 _ACEOF
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_link") 2>conftest.er1
17272 ac_status=$?
17273 grep -v '^ *+' conftest.er1 >conftest.err
17274 rm -f conftest.er1
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && {
17278 test -z "$ac_c_werror_flag" ||
17279 test ! -s conftest.err
17280 } && test -s conftest$ac_exeext &&
17281 $as_test_x conftest$ac_exeext; then
17282 ac_cv_lib_suppserv_encodeFac=yes
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_cv_lib_suppserv_encodeFac=no
17290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291 conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_check_lib_save_LIBS
17294 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
17295 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
17296 if test $ac_cv_lib_suppserv_encodeFac = yes; then
17297 AST_SUPPSERV_FOUND=yes
17298 else
17299 AST_SUPPSERV_FOUND=no
17303 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
17304 SUPPSERV_LIB="-lsuppserv "
17305 SUPPSERV_HEADER_FOUND="1"
17306 if test "x${SUPPSERV_DIR}" != "x"; then
17307 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
17308 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
17309 if test "xmISDNuser/suppserv.h" != "x" ; then
17310 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
17311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17312 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
17313 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 ac_res=`eval echo '${'$as_ac_Header'}'`
17318 { echo "$as_me:$LINENO: result: $ac_res" >&5
17319 echo "${ECHO_T}$ac_res" >&6; }
17320 else
17321 # Is the header compilable?
17322 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
17323 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 $ac_includes_default
17331 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_header_compiler=yes
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_header_compiler=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17360 echo "${ECHO_T}$ac_header_compiler" >&6; }
17362 # Is the header present?
17363 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
17364 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
17372 _ACEOF
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 }; then
17389 ac_header_preproc=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_header_preproc=no
17397 rm -f conftest.err conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17399 echo "${ECHO_T}$ac_header_preproc" >&6; }
17401 # So? What about this header?
17402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17403 yes:no: )
17404 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17405 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
17407 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
17408 ac_header_preproc=yes
17410 no:yes:* )
17411 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
17412 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
17414 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
17415 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
17416 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
17417 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
17418 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
17420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
17422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
17425 esac
17426 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
17427 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
17428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 eval "$as_ac_Header=\$ac_header_preproc"
17433 ac_res=`eval echo '${'$as_ac_Header'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17439 SUPPSERV_HEADER_FOUND=1
17440 else
17441 SUPPSERV_HEADER_FOUND=0
17446 else
17447 if test "xmISDNuser/suppserv.h" != "x" ; then
17448 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17449 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
17450 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
17451 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
17455 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
17456 else
17457 # Is the header compilable?
17458 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
17459 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 $ac_includes_default
17467 #include <mISDNuser/suppserv.h>
17468 _ACEOF
17469 rm -f conftest.$ac_objext
17470 if { (ac_try="$ac_compile"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_compile") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest.$ac_objext; then
17486 ac_header_compiler=yes
17487 else
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 ac_header_compiler=no
17494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17496 echo "${ECHO_T}$ac_header_compiler" >&6; }
17498 # Is the header present?
17499 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
17500 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 #include <mISDNuser/suppserv.h>
17508 _ACEOF
17509 if { (ac_try="$ac_cpp conftest.$ac_ext"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } >/dev/null && {
17522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 }; then
17525 ac_header_preproc=yes
17526 else
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_preproc=no
17533 rm -f conftest.err conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17535 echo "${ECHO_T}$ac_header_preproc" >&6; }
17537 # So? What about this header?
17538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17539 yes:no: )
17540 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17541 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
17543 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
17544 ac_header_preproc=yes
17546 no:yes:* )
17547 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
17548 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
17550 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
17552 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
17554 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
17556 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
17558 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
17561 esac
17562 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
17563 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
17573 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
17574 SUPPSERV_HEADER_FOUND=1
17575 else
17576 SUPPSERV_HEADER_FOUND=0
17582 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
17583 if test ! -z "${SUPPSERV_MANDATORY}" ;
17584 then
17585 { echo "$as_me:$LINENO: ***" >&5
17586 echo "$as_me: ***" >&6;}
17587 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
17588 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
17589 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
17590 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
17591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
17592 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
17593 exit 1
17595 SUPPSERV_LIB=""
17596 SUPPSERV_INCLUDE=""
17597 PBX_SUPPSERV=0
17598 else
17599 PBX_SUPPSERV=1
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_SUPPSERV 1
17603 _ACEOF
17606 elif test ! -z "${SUPPSERV_MANDATORY}";
17607 then
17608 { echo "$as_me:$LINENO: ***" >&5
17609 echo "$as_me: ***" >&6;}
17610 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
17611 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
17612 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17613 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17614 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
17615 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
17616 exit 1
17623 if test "${USE_NBS}" != "no"; then
17624 pbxlibdir=""
17625 if test "x${NBS_DIR}" != "x"; then
17626 if test -d ${NBS_DIR}/lib; then
17627 pbxlibdir="-L${NBS_DIR}/lib"
17628 else
17629 pbxlibdir="-L${NBS_DIR}"
17632 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
17633 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
17634 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 ac_check_lib_save_LIBS=$LIBS
17638 LIBS="-lnbs ${pbxlibdir} $LIBS"
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17649 #ifdef __cplusplus
17650 extern "C"
17651 #endif
17652 char nbs_connect ();
17654 main ()
17656 return nbs_connect ();
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext conftest$ac_exeext
17662 if { (ac_try="$ac_link"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_link") 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } && {
17675 test -z "$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 } && test -s conftest$ac_exeext &&
17678 $as_test_x conftest$ac_exeext; then
17679 ac_cv_lib_nbs_nbs_connect=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_lib_nbs_nbs_connect=no
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LIBS=$ac_check_lib_save_LIBS
17691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
17692 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
17693 if test $ac_cv_lib_nbs_nbs_connect = yes; then
17694 AST_NBS_FOUND=yes
17695 else
17696 AST_NBS_FOUND=no
17700 if test "${AST_NBS_FOUND}" = "yes"; then
17701 NBS_LIB="-lnbs "
17702 NBS_HEADER_FOUND="1"
17703 if test "x${NBS_DIR}" != "x"; then
17704 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
17705 NBS_INCLUDE="-I${NBS_DIR}/include"
17706 if test "xnbs.h" != "x" ; then
17707 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
17708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17709 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17710 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 ac_res=`eval echo '${'$as_ac_Header'}'`
17715 { echo "$as_me:$LINENO: result: $ac_res" >&5
17716 echo "${ECHO_T}$ac_res" >&6; }
17717 else
17718 # Is the header compilable?
17719 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
17720 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 $ac_includes_default
17728 #include <${NBS_DIR}/include/nbs.h>
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } && {
17744 test -z "$ac_c_werror_flag" ||
17745 test ! -s conftest.err
17746 } && test -s conftest.$ac_objext; then
17747 ac_header_compiler=yes
17748 else
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 ac_header_compiler=no
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17757 echo "${ECHO_T}$ac_header_compiler" >&6; }
17759 # Is the header present?
17760 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
17761 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 #include <${NBS_DIR}/include/nbs.h>
17769 _ACEOF
17770 if { (ac_try="$ac_cpp conftest.$ac_ext"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } >/dev/null && {
17783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 }; then
17786 ac_header_preproc=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_header_preproc=no
17794 rm -f conftest.err conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17796 echo "${ECHO_T}$ac_header_preproc" >&6; }
17798 # So? What about this header?
17799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17800 yes:no: )
17801 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17802 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
17804 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
17805 ac_header_preproc=yes
17807 no:yes:* )
17808 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
17809 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
17810 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
17811 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
17813 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17815 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
17817 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
17818 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
17819 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
17822 esac
17823 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17824 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 eval "$as_ac_Header=\$ac_header_preproc"
17830 ac_res=`eval echo '${'$as_ac_Header'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17836 NBS_HEADER_FOUND=1
17837 else
17838 NBS_HEADER_FOUND=0
17843 else
17844 if test "xnbs.h" != "x" ; then
17845 if test "${ac_cv_header_nbs_h+set}" = set; then
17846 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17847 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17848 if test "${ac_cv_header_nbs_h+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17852 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17853 else
17854 # Is the header compilable?
17855 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
17856 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h. */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <nbs.h>
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 ac_header_compiler=yes
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_header_compiler=no
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17893 echo "${ECHO_T}$ac_header_compiler" >&6; }
17895 # Is the header present?
17896 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
17897 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 #include <nbs.h>
17905 _ACEOF
17906 if { (ac_try="$ac_cpp conftest.$ac_ext"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } >/dev/null && {
17919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17920 test ! -s conftest.err
17921 }; then
17922 ac_header_preproc=yes
17923 else
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_header_preproc=no
17930 rm -f conftest.err conftest.$ac_ext
17931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17932 echo "${ECHO_T}$ac_header_preproc" >&6; }
17934 # So? What about this header?
17935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17936 yes:no: )
17937 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17938 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
17940 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
17941 ac_header_preproc=yes
17943 no:yes:* )
17944 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
17945 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
17946 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
17947 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
17949 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
17950 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17951 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
17953 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
17955 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
17958 esac
17959 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17960 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17961 if test "${ac_cv_header_nbs_h+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964 ac_cv_header_nbs_h=$ac_header_preproc
17966 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17967 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17970 if test $ac_cv_header_nbs_h = yes; then
17971 NBS_HEADER_FOUND=1
17972 else
17973 NBS_HEADER_FOUND=0
17979 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
17980 if test ! -z "${NBS_MANDATORY}" ;
17981 then
17982 { echo "$as_me:$LINENO: ***" >&5
17983 echo "$as_me: ***" >&6;}
17984 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
17985 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
17986 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
17987 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
17988 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
17989 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
17990 exit 1
17992 NBS_LIB=""
17993 NBS_INCLUDE=""
17994 PBX_NBS=0
17995 else
17996 PBX_NBS=1
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_NBS 1
18000 _ACEOF
18003 elif test ! -z "${NBS_MANDATORY}";
18004 then
18005 { echo "$as_me:$LINENO: ***" >&5
18006 echo "$as_me: ***" >&6;}
18007 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
18008 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
18009 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18010 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18011 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18012 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18013 exit 1
18019 if test "${USE_NCURSES}" != "no"; then
18020 pbxlibdir=""
18021 if test "x${NCURSES_DIR}" != "x"; then
18022 if test -d ${NCURSES_DIR}/lib; then
18023 pbxlibdir="-L${NCURSES_DIR}/lib"
18024 else
18025 pbxlibdir="-L${NCURSES_DIR}"
18028 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
18029 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
18030 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033 ac_check_lib_save_LIBS=$LIBS
18034 LIBS="-lncurses ${pbxlibdir} $LIBS"
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h. */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char initscr ();
18050 main ()
18052 return initscr ();
18054 return 0;
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && {
18071 test -z "$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 } && test -s conftest$ac_exeext &&
18074 $as_test_x conftest$ac_exeext; then
18075 ac_cv_lib_ncurses_initscr=yes
18076 else
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 ac_cv_lib_ncurses_initscr=no
18083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18084 conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
18088 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
18089 if test $ac_cv_lib_ncurses_initscr = yes; then
18090 AST_NCURSES_FOUND=yes
18091 else
18092 AST_NCURSES_FOUND=no
18096 if test "${AST_NCURSES_FOUND}" = "yes"; then
18097 NCURSES_LIB="-lncurses "
18098 NCURSES_HEADER_FOUND="1"
18099 if test "x${NCURSES_DIR}" != "x"; then
18100 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
18101 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
18102 if test "xcurses.h" != "x" ; then
18103 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
18104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18105 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
18106 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_res=`eval echo '${'$as_ac_Header'}'`
18111 { echo "$as_me:$LINENO: result: $ac_res" >&5
18112 echo "${ECHO_T}$ac_res" >&6; }
18113 else
18114 # Is the header compilable?
18115 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
18116 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 $ac_includes_default
18124 #include <${NCURSES_DIR}/include/curses.h>
18125 _ACEOF
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } && {
18140 test -z "$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 } && test -s conftest.$ac_objext; then
18143 ac_header_compiler=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_header_compiler=no
18151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18153 echo "${ECHO_T}$ac_header_compiler" >&6; }
18155 # Is the header present?
18156 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
18157 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 #include <${NCURSES_DIR}/include/curses.h>
18165 _ACEOF
18166 if { (ac_try="$ac_cpp conftest.$ac_ext"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } >/dev/null && {
18179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 }; then
18182 ac_header_preproc=yes
18183 else
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_header_preproc=no
18190 rm -f conftest.err conftest.$ac_ext
18191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18192 echo "${ECHO_T}$ac_header_preproc" >&6; }
18194 # So? What about this header?
18195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18196 yes:no: )
18197 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18198 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
18200 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
18201 ac_header_preproc=yes
18203 no:yes:* )
18204 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
18205 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
18207 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
18209 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
18211 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
18213 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
18215 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
18218 esac
18219 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
18220 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224 eval "$as_ac_Header=\$ac_header_preproc"
18226 ac_res=`eval echo '${'$as_ac_Header'}'`
18227 { echo "$as_me:$LINENO: result: $ac_res" >&5
18228 echo "${ECHO_T}$ac_res" >&6; }
18231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18232 NCURSES_HEADER_FOUND=1
18233 else
18234 NCURSES_HEADER_FOUND=0
18239 else
18240 if test "xcurses.h" != "x" ; then
18241 if test "${ac_cv_header_curses_h+set}" = set; then
18242 { echo "$as_me:$LINENO: checking for curses.h" >&5
18243 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18244 if test "${ac_cv_header_curses_h+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18248 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18249 else
18250 # Is the header compilable?
18251 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18252 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 $ac_includes_default
18260 #include <curses.h>
18261 _ACEOF
18262 rm -f conftest.$ac_objext
18263 if { (ac_try="$ac_compile"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_compile") 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && {
18276 test -z "$ac_c_werror_flag" ||
18277 test ! -s conftest.err
18278 } && test -s conftest.$ac_objext; then
18279 ac_header_compiler=yes
18280 else
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18284 ac_header_compiler=no
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18289 echo "${ECHO_T}$ac_header_compiler" >&6; }
18291 # Is the header present?
18292 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18293 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <curses.h>
18301 _ACEOF
18302 if { (ac_try="$ac_cpp conftest.$ac_ext"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } >/dev/null && {
18315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18317 }; then
18318 ac_header_preproc=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_header_preproc=no
18326 rm -f conftest.err conftest.$ac_ext
18327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18328 echo "${ECHO_T}$ac_header_preproc" >&6; }
18330 # So? What about this header?
18331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18332 yes:no: )
18333 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18334 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18336 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18337 ac_header_preproc=yes
18339 no:yes:* )
18340 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18341 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18343 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18345 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18347 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18349 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18351 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18354 esac
18355 { echo "$as_me:$LINENO: checking for curses.h" >&5
18356 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_curses_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360 ac_cv_header_curses_h=$ac_header_preproc
18362 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18363 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18366 if test $ac_cv_header_curses_h = yes; then
18367 NCURSES_HEADER_FOUND=1
18368 else
18369 NCURSES_HEADER_FOUND=0
18375 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
18376 if test ! -z "${NCURSES_MANDATORY}" ;
18377 then
18378 { echo "$as_me:$LINENO: ***" >&5
18379 echo "$as_me: ***" >&6;}
18380 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
18381 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
18382 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
18383 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
18384 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
18385 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
18386 exit 1
18388 NCURSES_LIB=""
18389 NCURSES_INCLUDE=""
18390 PBX_NCURSES=0
18391 else
18392 PBX_NCURSES=1
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_NCURSES 1
18396 _ACEOF
18399 elif test ! -z "${NCURSES_MANDATORY}";
18400 then
18401 { echo "$as_me:$LINENO: ***" >&5
18402 echo "$as_me: ***" >&6;}
18403 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
18404 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
18405 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18406 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18407 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
18408 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
18409 exit 1
18414 NETSNMP_CONFIG=No
18415 if test "${USE_NETSNMP}" != "no"; then
18416 if test "x${NETSNMP_DIR}" != "x"; then
18417 if test -n "$ac_tool_prefix"; then
18418 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
18419 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
18420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18422 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425 case $NETSNMP_CONFIG in
18426 [\\/]* | ?:[\\/]*)
18427 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
18430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18431 for as_dir in ${NETSNMP_DIR}/bin
18433 IFS=$as_save_IFS
18434 test -z "$as_dir" && as_dir=.
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18437 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18439 break 2
18441 done
18442 done
18443 IFS=$as_save_IFS
18446 esac
18448 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
18449 if test -n "$NETSNMP_CONFIG"; then
18450 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
18451 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
18452 else
18453 { echo "$as_me:$LINENO: result: no" >&5
18454 echo "${ECHO_T}no" >&6; }
18459 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
18460 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
18461 # Extract the first word of "net-snmp-config", so it can be a program name with args.
18462 set dummy net-snmp-config; ac_word=$2
18463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18465 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468 case $ac_pt_NETSNMP_CONFIG in
18469 [\\/]* | ?:[\\/]*)
18470 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in ${NETSNMP_DIR}/bin
18476 IFS=$as_save_IFS
18477 test -z "$as_dir" && as_dir=.
18478 for ac_exec_ext in '' $ac_executable_extensions; do
18479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18480 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18482 break 2
18484 done
18485 done
18486 IFS=$as_save_IFS
18489 esac
18491 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
18492 if test -n "$ac_pt_NETSNMP_CONFIG"; then
18493 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
18494 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
18495 else
18496 { echo "$as_me:$LINENO: result: no" >&5
18497 echo "${ECHO_T}no" >&6; }
18500 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
18501 NETSNMP_CONFIG="No"
18502 else
18503 case $cross_compiling:$ac_tool_warned in
18504 yes:)
18505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18506 whose name does not start with the host triplet. If you think this
18507 configuration is useful to you, please write to autoconf@gnu.org." >&5
18508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18509 whose name does not start with the host triplet. If you think this
18510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18511 ac_tool_warned=yes ;;
18512 esac
18513 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
18515 else
18516 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
18519 if test x"${NETSNMP_CONFIG}" = xNo; then
18520 { echo "$as_me:$LINENO: ***" >&5
18521 echo "$as_me: ***" >&6;}
18522 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
18523 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
18524 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
18525 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
18526 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18527 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18528 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18529 echo "$as_me: *** including --without-netsnmp" >&6;}
18530 exit 1
18532 else
18533 if test -n "$ac_tool_prefix"; then
18534 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
18535 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
18536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18538 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541 case $NETSNMP_CONFIG in
18542 [\\/]* | ?:[\\/]*)
18543 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
18546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18547 for as_dir in $PATH
18549 IFS=$as_save_IFS
18550 test -z "$as_dir" && as_dir=.
18551 for ac_exec_ext in '' $ac_executable_extensions; do
18552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18553 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18555 break 2
18557 done
18558 done
18559 IFS=$as_save_IFS
18562 esac
18564 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
18565 if test -n "$NETSNMP_CONFIG"; then
18566 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
18567 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
18568 else
18569 { echo "$as_me:$LINENO: result: no" >&5
18570 echo "${ECHO_T}no" >&6; }
18575 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
18576 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
18577 # Extract the first word of "net-snmp-config", so it can be a program name with args.
18578 set dummy net-snmp-config; ac_word=$2
18579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18581 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 case $ac_pt_NETSNMP_CONFIG in
18585 [\\/]* | ?:[\\/]*)
18586 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
18589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18592 IFS=$as_save_IFS
18593 test -z "$as_dir" && as_dir=.
18594 for ac_exec_ext in '' $ac_executable_extensions; do
18595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18596 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18598 break 2
18600 done
18601 done
18602 IFS=$as_save_IFS
18605 esac
18607 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
18608 if test -n "$ac_pt_NETSNMP_CONFIG"; then
18609 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
18610 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
18611 else
18612 { echo "$as_me:$LINENO: result: no" >&5
18613 echo "${ECHO_T}no" >&6; }
18616 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
18617 NETSNMP_CONFIG="No"
18618 else
18619 case $cross_compiling:$ac_tool_warned in
18620 yes:)
18621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18622 whose name does not start with the host triplet. If you think this
18623 configuration is useful to you, please write to autoconf@gnu.org." >&5
18624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18625 whose name does not start with the host triplet. If you think this
18626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18627 ac_tool_warned=yes ;;
18628 esac
18629 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
18631 else
18632 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
18637 if test x"${NETSNMP_CONFIG}" != xNo; then
18638 NETSNMP_libs=`net-snmp-config --agent-libs`
18640 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
18641 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18657 #ifdef __cplusplus
18658 extern "C"
18659 #endif
18660 char snmp_register_callback ();
18662 main ()
18664 return snmp_register_callback ();
18666 return 0;
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } && {
18683 test -z "$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 } && test -s conftest$ac_exeext &&
18686 $as_test_x conftest$ac_exeext; then
18687 ac_cv_lib_netsnmp_snmp_register_callback=yes
18688 else
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18692 ac_cv_lib_netsnmp_snmp_register_callback=no
18695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18696 conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18699 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
18700 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
18701 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_NETSNMP 1
18705 _ACEOF
18710 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
18711 NETSNMP_LIB="${NETSNMP_libs}"
18712 PBX_NETSNMP=1
18713 elif test ! -z "${NETSNMP_MANDATORY}";
18714 then
18715 { echo "$as_me:$LINENO: ***" >&5
18716 echo "$as_me: ***" >&6;}
18717 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
18718 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
18719 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18720 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18721 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18722 echo "$as_me: *** including --without-netsnmp" >&6;}
18723 exit 1
18725 elif test ! -z "${NETSNMP_MANDATORY}";
18726 then
18727 { echo "$as_me:$LINENO: ***" >&5
18728 echo "$as_me: ***" >&6;}
18729 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
18730 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
18731 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18732 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18733 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18734 echo "$as_me: *** including --without-netsnmp" >&6;}
18735 exit 1
18739 if test "${USE_NEWT}" != "no"; then
18740 pbxlibdir=""
18741 if test "x${NEWT_DIR}" != "x"; then
18742 if test -d ${NEWT_DIR}/lib; then
18743 pbxlibdir="-L${NEWT_DIR}/lib"
18744 else
18745 pbxlibdir="-L${NEWT_DIR}"
18748 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
18749 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
18750 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lnewt ${pbxlibdir} $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char newtBell ();
18770 main ()
18772 return newtBell ();
18774 return 0;
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest$ac_exeext &&
18794 $as_test_x conftest$ac_exeext; then
18795 ac_cv_lib_newt_newtBell=yes
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_cv_lib_newt_newtBell=no
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
18808 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
18809 if test $ac_cv_lib_newt_newtBell = yes; then
18810 AST_NEWT_FOUND=yes
18811 else
18812 AST_NEWT_FOUND=no
18816 if test "${AST_NEWT_FOUND}" = "yes"; then
18817 NEWT_LIB="-lnewt "
18818 NEWT_HEADER_FOUND="1"
18819 if test "x${NEWT_DIR}" != "x"; then
18820 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
18821 NEWT_INCLUDE="-I${NEWT_DIR}/include"
18822 if test "xnewt.h" != "x" ; then
18823 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
18824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18825 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18826 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18833 else
18834 # Is the header compilable?
18835 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
18836 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
18837 cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h. */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 $ac_includes_default
18844 #include <${NEWT_DIR}/include/newt.h>
18845 _ACEOF
18846 rm -f conftest.$ac_objext
18847 if { (ac_try="$ac_compile"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.$ac_objext; then
18863 ac_header_compiler=yes
18864 else
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_compiler=no
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18873 echo "${ECHO_T}$ac_header_compiler" >&6; }
18875 # Is the header present?
18876 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
18877 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <${NEWT_DIR}/include/newt.h>
18885 _ACEOF
18886 if { (ac_try="$ac_cpp conftest.$ac_ext"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } >/dev/null && {
18899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 }; then
18902 ac_header_preproc=yes
18903 else
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_header_preproc=no
18910 rm -f conftest.err conftest.$ac_ext
18911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18912 echo "${ECHO_T}$ac_header_preproc" >&6; }
18914 # So? What about this header?
18915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18916 yes:no: )
18917 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18918 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
18920 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
18921 ac_header_preproc=yes
18923 no:yes:* )
18924 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
18929 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
18931 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
18935 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
18938 esac
18939 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18940 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 eval "$as_ac_Header=\$ac_header_preproc"
18946 ac_res=`eval echo '${'$as_ac_Header'}'`
18947 { echo "$as_me:$LINENO: result: $ac_res" >&5
18948 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18952 NEWT_HEADER_FOUND=1
18953 else
18954 NEWT_HEADER_FOUND=0
18959 else
18960 if test "xnewt.h" != "x" ; then
18961 if test "${ac_cv_header_newt_h+set}" = set; then
18962 { echo "$as_me:$LINENO: checking for newt.h" >&5
18963 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18964 if test "${ac_cv_header_newt_h+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18968 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18969 else
18970 # Is the header compilable?
18971 { echo "$as_me:$LINENO: checking newt.h usability" >&5
18972 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
18973 cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h. */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18979 $ac_includes_default
18980 #include <newt.h>
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_header_compiler=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_header_compiler=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19009 echo "${ECHO_T}$ac_header_compiler" >&6; }
19011 # Is the header present?
19012 { echo "$as_me:$LINENO: checking newt.h presence" >&5
19013 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <newt.h>
19021 _ACEOF
19022 if { (ac_try="$ac_cpp conftest.$ac_ext"
19023 case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } >/dev/null && {
19035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19036 test ! -s conftest.err
19037 }; then
19038 ac_header_preproc=yes
19039 else
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 ac_header_preproc=no
19046 rm -f conftest.err conftest.$ac_ext
19047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19048 echo "${ECHO_T}$ac_header_preproc" >&6; }
19050 # So? What about this header?
19051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19052 yes:no: )
19053 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19054 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
19056 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
19057 ac_header_preproc=yes
19059 no:yes:* )
19060 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
19061 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
19062 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
19063 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
19064 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
19065 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
19066 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
19067 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
19069 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
19071 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
19074 esac
19075 { echo "$as_me:$LINENO: checking for newt.h" >&5
19076 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19077 if test "${ac_cv_header_newt_h+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 ac_cv_header_newt_h=$ac_header_preproc
19082 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19083 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19086 if test $ac_cv_header_newt_h = yes; then
19087 NEWT_HEADER_FOUND=1
19088 else
19089 NEWT_HEADER_FOUND=0
19095 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
19096 if test ! -z "${NEWT_MANDATORY}" ;
19097 then
19098 { echo "$as_me:$LINENO: ***" >&5
19099 echo "$as_me: ***" >&6;}
19100 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
19101 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
19102 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
19103 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
19104 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
19105 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
19106 exit 1
19108 NEWT_LIB=""
19109 NEWT_INCLUDE=""
19110 PBX_NEWT=0
19111 else
19112 PBX_NEWT=1
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_NEWT 1
19116 _ACEOF
19119 elif test ! -z "${NEWT_MANDATORY}";
19120 then
19121 { echo "$as_me:$LINENO: ***" >&5
19122 echo "$as_me: ***" >&6;}
19123 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
19124 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
19125 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19126 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19127 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
19128 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
19129 exit 1
19135 if test "${USE_UNIXODBC}" != "no"; then
19136 pbxlibdir=""
19137 if test "x${UNIXODBC_DIR}" != "x"; then
19138 if test -d ${UNIXODBC_DIR}/lib; then
19139 pbxlibdir="-L${UNIXODBC_DIR}/lib"
19140 else
19141 pbxlibdir="-L${UNIXODBC_DIR}"
19144 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
19145 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
19146 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149 ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19158 /* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19161 #ifdef __cplusplus
19162 extern "C"
19163 #endif
19164 char SQLConnect ();
19166 main ()
19168 return SQLConnect ();
19170 return 0;
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_link") 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest$ac_exeext &&
19190 $as_test_x conftest$ac_exeext; then
19191 ac_cv_lib_odbc_SQLConnect=yes
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_lib_odbc_SQLConnect=no
19199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
19204 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
19205 if test $ac_cv_lib_odbc_SQLConnect = yes; then
19206 AST_UNIXODBC_FOUND=yes
19207 else
19208 AST_UNIXODBC_FOUND=no
19212 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
19213 UNIXODBC_LIB="-lodbc -lltdl"
19214 UNIXODBC_HEADER_FOUND="1"
19215 if test "x${UNIXODBC_DIR}" != "x"; then
19216 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
19217 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
19218 if test "xsql.h" != "x" ; then
19219 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
19220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19221 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
19222 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
19223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 ac_res=`eval echo '${'$as_ac_Header'}'`
19227 { echo "$as_me:$LINENO: result: $ac_res" >&5
19228 echo "${ECHO_T}$ac_res" >&6; }
19229 else
19230 # Is the header compilable?
19231 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
19232 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19240 #include <${UNIXODBC_DIR}/include/sql.h>
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } && {
19256 test -z "$ac_c_werror_flag" ||
19257 test ! -s conftest.err
19258 } && test -s conftest.$ac_objext; then
19259 ac_header_compiler=yes
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 ac_header_compiler=no
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19269 echo "${ECHO_T}$ac_header_compiler" >&6; }
19271 # Is the header present?
19272 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
19273 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 #include <${UNIXODBC_DIR}/include/sql.h>
19281 _ACEOF
19282 if { (ac_try="$ac_cpp conftest.$ac_ext"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } >/dev/null && {
19295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 }; then
19298 ac_header_preproc=yes
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_header_preproc=no
19306 rm -f conftest.err conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19308 echo "${ECHO_T}$ac_header_preproc" >&6; }
19310 # So? What about this header?
19311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19312 yes:no: )
19313 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19314 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19315 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
19316 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
19317 ac_header_preproc=yes
19319 no:yes:* )
19320 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
19321 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
19323 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
19325 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
19327 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
19329 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
19331 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
19334 esac
19335 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
19336 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
19337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 eval "$as_ac_Header=\$ac_header_preproc"
19342 ac_res=`eval echo '${'$as_ac_Header'}'`
19343 { echo "$as_me:$LINENO: result: $ac_res" >&5
19344 echo "${ECHO_T}$ac_res" >&6; }
19347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19348 UNIXODBC_HEADER_FOUND=1
19349 else
19350 UNIXODBC_HEADER_FOUND=0
19355 else
19356 if test "xsql.h" != "x" ; then
19357 if test "${ac_cv_header_sql_h+set}" = set; then
19358 { echo "$as_me:$LINENO: checking for sql.h" >&5
19359 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
19360 if test "${ac_cv_header_sql_h+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
19364 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
19365 else
19366 # Is the header compilable?
19367 { echo "$as_me:$LINENO: checking sql.h usability" >&5
19368 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
19369 cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h. */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19376 #include <sql.h>
19377 _ACEOF
19378 rm -f conftest.$ac_objext
19379 if { (ac_try="$ac_compile"
19380 case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19383 esac
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_compile") 2>conftest.er1
19386 ac_status=$?
19387 grep -v '^ *+' conftest.er1 >conftest.err
19388 rm -f conftest.er1
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } && {
19392 test -z "$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19394 } && test -s conftest.$ac_objext; then
19395 ac_header_compiler=yes
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_header_compiler=no
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19405 echo "${ECHO_T}$ac_header_compiler" >&6; }
19407 # Is the header present?
19408 { echo "$as_me:$LINENO: checking sql.h presence" >&5
19409 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 #include <sql.h>
19417 _ACEOF
19418 if { (ac_try="$ac_cpp conftest.$ac_ext"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } >/dev/null && {
19431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 }; then
19434 ac_header_preproc=yes
19435 else
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 ac_header_preproc=no
19442 rm -f conftest.err conftest.$ac_ext
19443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19444 echo "${ECHO_T}$ac_header_preproc" >&6; }
19446 # So? What about this header?
19447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19448 yes:no: )
19449 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19450 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
19452 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
19453 ac_header_preproc=yes
19455 no:yes:* )
19456 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
19457 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
19459 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
19461 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
19463 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
19465 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
19467 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
19470 esac
19471 { echo "$as_me:$LINENO: checking for sql.h" >&5
19472 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
19473 if test "${ac_cv_header_sql_h+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 ac_cv_header_sql_h=$ac_header_preproc
19478 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
19479 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
19482 if test $ac_cv_header_sql_h = yes; then
19483 UNIXODBC_HEADER_FOUND=1
19484 else
19485 UNIXODBC_HEADER_FOUND=0
19491 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
19492 if test ! -z "${UNIXODBC_MANDATORY}" ;
19493 then
19494 { echo "$as_me:$LINENO: ***" >&5
19495 echo "$as_me: ***" >&6;}
19496 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
19497 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
19498 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
19499 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
19500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
19501 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
19502 exit 1
19504 UNIXODBC_LIB=""
19505 UNIXODBC_INCLUDE=""
19506 PBX_UNIXODBC=0
19507 else
19508 PBX_UNIXODBC=1
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_UNIXODBC 1
19512 _ACEOF
19515 elif test ! -z "${UNIXODBC_MANDATORY}";
19516 then
19517 { echo "$as_me:$LINENO: ***" >&5
19518 echo "$as_me: ***" >&6;}
19519 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
19520 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
19521 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19522 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19523 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
19524 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
19525 exit 1
19531 if test "${USE_OGG}" != "no"; then
19532 pbxlibdir=""
19533 if test "x${OGG_DIR}" != "x"; then
19534 if test -d ${OGG_DIR}/lib; then
19535 pbxlibdir="-L${OGG_DIR}/lib"
19536 else
19537 pbxlibdir="-L${OGG_DIR}"
19540 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
19541 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
19542 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 ac_check_lib_save_LIBS=$LIBS
19546 LIBS="-logg ${pbxlibdir} $LIBS"
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19554 /* Override any GCC internal prototype to avoid an error.
19555 Use char because int might match the return type of a GCC
19556 builtin and then its argument prototype would still apply. */
19557 #ifdef __cplusplus
19558 extern "C"
19559 #endif
19560 char ogg_sync_init ();
19562 main ()
19564 return ogg_sync_init ();
19566 return 0;
19568 _ACEOF
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19587 ac_cv_lib_ogg_ogg_sync_init=yes
19588 else
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_cv_lib_ogg_ogg_sync_init=no
19595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596 conftest$ac_exeext conftest.$ac_ext
19597 LIBS=$ac_check_lib_save_LIBS
19599 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
19600 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
19601 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
19602 AST_OGG_FOUND=yes
19603 else
19604 AST_OGG_FOUND=no
19608 if test "${AST_OGG_FOUND}" = "yes"; then
19609 OGG_LIB="-logg "
19610 OGG_HEADER_FOUND="1"
19611 if test "x${OGG_DIR}" != "x"; then
19612 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
19613 OGG_INCLUDE="-I${OGG_DIR}/include"
19614 if test "x" != "x" ; then
19615 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
19616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19617 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19618 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623 { echo "$as_me:$LINENO: result: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19625 else
19626 # Is the header compilable?
19627 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
19628 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19636 #include <${OGG_DIR}/include/>
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (ac_try="$ac_compile"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_compile") 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest.$ac_objext; then
19655 ac_header_compiler=yes
19656 else
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_header_compiler=no
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19665 echo "${ECHO_T}$ac_header_compiler" >&6; }
19667 # Is the header present?
19668 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
19669 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <${OGG_DIR}/include/>
19677 _ACEOF
19678 if { (ac_try="$ac_cpp conftest.$ac_ext"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682 esac
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19685 ac_status=$?
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } >/dev/null && {
19691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19692 test ! -s conftest.err
19693 }; then
19694 ac_header_preproc=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_header_preproc=no
19702 rm -f conftest.err conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6; }
19706 # So? What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19708 yes:no: )
19709 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
19710 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
19712 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
19713 ac_header_preproc=yes
19715 no:yes:* )
19716 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
19717 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
19719 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
19721 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
19723 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
19727 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
19730 esac
19731 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19732 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 eval "$as_ac_Header=\$ac_header_preproc"
19738 ac_res=`eval echo '${'$as_ac_Header'}'`
19739 { echo "$as_me:$LINENO: result: $ac_res" >&5
19740 echo "${ECHO_T}$ac_res" >&6; }
19743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19744 OGG_HEADER_FOUND=1
19745 else
19746 OGG_HEADER_FOUND=0
19751 else
19752 if test "x" != "x" ; then
19753 if test "${ac_cv_header_+set}" = set; then
19754 { echo "$as_me:$LINENO: checking for " >&5
19755 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19756 if test "${ac_cv_header_+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19760 echo "${ECHO_T}$ac_cv_header_" >&6; }
19761 else
19762 # Is the header compilable?
19763 { echo "$as_me:$LINENO: checking usability" >&5
19764 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 $ac_includes_default
19772 #include <>
19773 _ACEOF
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
19791 ac_header_compiler=yes
19792 else
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 ac_header_compiler=no
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19801 echo "${ECHO_T}$ac_header_compiler" >&6; }
19803 # Is the header present?
19804 { echo "$as_me:$LINENO: checking presence" >&5
19805 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h. */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 #include <>
19813 _ACEOF
19814 if { (ac_try="$ac_cpp conftest.$ac_ext"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } >/dev/null && {
19827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 }; then
19830 ac_header_preproc=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_preproc=no
19838 rm -f conftest.err conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19840 echo "${ECHO_T}$ac_header_preproc" >&6; }
19842 # So? What about this header?
19843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19844 yes:no: )
19845 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19846 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19848 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19849 ac_header_preproc=yes
19851 no:yes:* )
19852 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19853 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19855 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19857 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19859 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19861 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19863 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19866 esac
19867 { echo "$as_me:$LINENO: checking for " >&5
19868 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19869 if test "${ac_cv_header_+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872 ac_cv_header_=$ac_header_preproc
19874 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19875 echo "${ECHO_T}$ac_cv_header_" >&6; }
19878 if test $ac_cv_header_ = yes; then
19879 OGG_HEADER_FOUND=1
19880 else
19881 OGG_HEADER_FOUND=0
19887 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
19888 if test ! -z "${OGG_MANDATORY}" ;
19889 then
19890 { echo "$as_me:$LINENO: ***" >&5
19891 echo "$as_me: ***" >&6;}
19892 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
19893 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
19894 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
19895 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
19896 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
19897 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
19898 exit 1
19900 OGG_LIB=""
19901 OGG_INCLUDE=""
19902 PBX_OGG=0
19903 else
19904 PBX_OGG=1
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_OGG 1
19908 _ACEOF
19911 elif test ! -z "${OGG_MANDATORY}";
19912 then
19913 { echo "$as_me:$LINENO: ***" >&5
19914 echo "$as_me: ***" >&6;}
19915 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
19916 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
19917 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19918 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19919 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
19920 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
19921 exit 1
19927 if test "${USE_OSPTK}" != "no"; then
19928 pbxlibdir=""
19929 if test "x${OSPTK_DIR}" != "x"; then
19930 if test -d ${OSPTK_DIR}/lib; then
19931 pbxlibdir="-L${OSPTK_DIR}/lib"
19932 else
19933 pbxlibdir="-L${OSPTK_DIR}"
19936 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
19937 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
19938 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 ac_check_lib_save_LIBS=$LIBS
19942 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953 #ifdef __cplusplus
19954 extern "C"
19955 #endif
19956 char OSPPCryptoDecrypt ();
19958 main ()
19960 return OSPPCryptoDecrypt ();
19962 return 0;
19964 _ACEOF
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (ac_try="$ac_link"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } && {
19979 test -z "$ac_c_werror_flag" ||
19980 test ! -s conftest.err
19981 } && test -s conftest$ac_exeext &&
19982 $as_test_x conftest$ac_exeext; then
19983 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
19991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
19996 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
19997 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
19998 AST_OSPTK_FOUND=yes
19999 else
20000 AST_OSPTK_FOUND=no
20004 if test "${AST_OSPTK_FOUND}" = "yes"; then
20005 OSPTK_LIB="-losptk -lcrypto -lssl"
20006 OSPTK_HEADER_FOUND="1"
20007 if test "x${OSPTK_DIR}" != "x"; then
20008 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
20009 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
20010 if test "xosp/osp.h" != "x" ; then
20011 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
20012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20014 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 ac_res=`eval echo '${'$as_ac_Header'}'`
20019 { echo "$as_me:$LINENO: result: $ac_res" >&5
20020 echo "${ECHO_T}$ac_res" >&6; }
20021 else
20022 # Is the header compilable?
20023 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
20024 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 $ac_includes_default
20032 #include <${OSPTK_DIR}/include/osp/osp.h>
20033 _ACEOF
20034 rm -f conftest.$ac_objext
20035 if { (ac_try="$ac_compile"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_compile") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest.$ac_objext; then
20051 ac_header_compiler=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_compiler=no
20059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20061 echo "${ECHO_T}$ac_header_compiler" >&6; }
20063 # Is the header present?
20064 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
20065 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <${OSPTK_DIR}/include/osp/osp.h>
20073 _ACEOF
20074 if { (ac_try="$ac_cpp conftest.$ac_ext"
20075 case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20078 esac
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev/null && {
20087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20088 test ! -s conftest.err
20089 }; then
20090 ac_header_preproc=yes
20091 else
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_header_preproc=no
20098 rm -f conftest.err conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6; }
20102 # So? What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20104 yes:no: )
20105 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
20108 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
20109 ac_header_preproc=yes
20111 no:yes:* )
20112 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
20121 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
20126 esac
20127 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20128 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132 eval "$as_ac_Header=\$ac_header_preproc"
20134 ac_res=`eval echo '${'$as_ac_Header'}'`
20135 { echo "$as_me:$LINENO: result: $ac_res" >&5
20136 echo "${ECHO_T}$ac_res" >&6; }
20139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20140 OSPTK_HEADER_FOUND=1
20141 else
20142 OSPTK_HEADER_FOUND=0
20147 else
20148 if test "xosp/osp.h" != "x" ; then
20149 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20150 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
20151 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
20152 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
20156 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
20157 else
20158 # Is the header compilable?
20159 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
20160 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 #include <osp/osp.h>
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (ac_try="$ac_compile"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_compile") 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && {
20184 test -z "$ac_c_werror_flag" ||
20185 test ! -s conftest.err
20186 } && test -s conftest.$ac_objext; then
20187 ac_header_compiler=yes
20188 else
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_header_compiler=no
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6; }
20199 # Is the header present?
20200 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
20201 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
20202 cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h. */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 #include <osp/osp.h>
20209 _ACEOF
20210 if { (ac_try="$ac_cpp conftest.$ac_ext"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } >/dev/null && {
20223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 }; then
20226 ac_header_preproc=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ac_header_preproc=no
20234 rm -f conftest.err conftest.$ac_ext
20235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20236 echo "${ECHO_T}$ac_header_preproc" >&6; }
20238 # So? What about this header?
20239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20240 yes:no: )
20241 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20242 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
20244 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
20245 ac_header_preproc=yes
20247 no:yes:* )
20248 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
20249 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
20250 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
20251 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
20252 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
20253 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
20255 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
20257 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
20259 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
20262 esac
20263 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
20264 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 ac_cv_header_osp_osp_h=$ac_header_preproc
20270 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
20271 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
20274 if test $ac_cv_header_osp_osp_h = yes; then
20275 OSPTK_HEADER_FOUND=1
20276 else
20277 OSPTK_HEADER_FOUND=0
20283 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
20284 if test ! -z "${OSPTK_MANDATORY}" ;
20285 then
20286 { echo "$as_me:$LINENO: ***" >&5
20287 echo "$as_me: ***" >&6;}
20288 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
20289 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
20290 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
20291 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
20292 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
20293 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
20294 exit 1
20296 OSPTK_LIB=""
20297 OSPTK_INCLUDE=""
20298 PBX_OSPTK=0
20299 else
20300 PBX_OSPTK=1
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_OSPTK 1
20304 _ACEOF
20307 elif test ! -z "${OSPTK_MANDATORY}";
20308 then
20309 { echo "$as_me:$LINENO: ***" >&5
20310 echo "$as_me: ***" >&6;}
20311 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
20312 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
20313 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20314 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20315 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
20316 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
20317 exit 1
20322 PBX_OSS=0
20323 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20324 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
20325 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
20326 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
20330 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
20331 else
20332 # Is the header compilable?
20333 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
20334 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 $ac_includes_default
20342 #include <linux/soundcard.h>
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest.$ac_objext; then
20361 ac_header_compiler=yes
20362 else
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_header_compiler=no
20369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20371 echo "${ECHO_T}$ac_header_compiler" >&6; }
20373 # Is the header present?
20374 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
20375 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <linux/soundcard.h>
20383 _ACEOF
20384 if { (ac_try="$ac_cpp conftest.$ac_ext"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev/null && {
20397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20399 }; then
20400 ac_header_preproc=yes
20401 else
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_header_preproc=no
20408 rm -f conftest.err conftest.$ac_ext
20409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20410 echo "${ECHO_T}$ac_header_preproc" >&6; }
20412 # So? What about this header?
20413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20414 yes:no: )
20415 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20416 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
20418 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
20419 ac_header_preproc=yes
20421 no:yes:* )
20422 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
20423 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
20425 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
20427 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20429 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
20431 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
20433 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
20436 esac
20437 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
20438 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
20439 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 ac_cv_header_linux_soundcard_h=$ac_header_preproc
20444 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
20445 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
20448 if test $ac_cv_header_linux_soundcard_h = yes; then
20450 PBX_OSS=1
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_OSS 1
20454 _ACEOF
20460 if test "$PBX_OSS" = "0"; then
20461 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20462 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20463 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20464 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20468 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20469 else
20470 # Is the header compilable?
20471 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
20472 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
20473 cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h. */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20480 #include <sys/soundcard.h>
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (ac_try="$ac_compile"
20484 case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_compile") 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest.$ac_objext; then
20499 ac_header_compiler=yes
20500 else
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 ac_header_compiler=no
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509 echo "${ECHO_T}$ac_header_compiler" >&6; }
20511 # Is the header present?
20512 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
20513 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h. */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 #include <sys/soundcard.h>
20521 _ACEOF
20522 if { (ac_try="$ac_cpp conftest.$ac_ext"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } >/dev/null && {
20535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 }; then
20538 ac_header_preproc=yes
20539 else
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_header_preproc=no
20546 rm -f conftest.err conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548 echo "${ECHO_T}$ac_header_preproc" >&6; }
20550 # So? What about this header?
20551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20552 yes:no: )
20553 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20554 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
20556 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
20557 ac_header_preproc=yes
20559 no:yes:* )
20560 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
20561 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
20563 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
20565 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20567 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
20569 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
20571 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
20574 esac
20575 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20576 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20577 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 ac_cv_header_sys_soundcard_h=$ac_header_preproc
20582 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20586 if test $ac_cv_header_sys_soundcard_h = yes; then
20588 PBX_OSS=1
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_OSS 1
20592 _ACEOF
20599 if test "$PBX_OSS" = "0"; then
20601 if test "${USE_OSS}" != "no"; then
20602 pbxlibdir=""
20603 if test "x${OSS_DIR}" != "x"; then
20604 if test -d ${OSS_DIR}/lib; then
20605 pbxlibdir="-L${OSS_DIR}/lib"
20606 else
20607 pbxlibdir="-L${OSS_DIR}"
20610 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
20611 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
20612 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615 ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-lossaudio ${pbxlibdir} $LIBS"
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* Override any GCC internal prototype to avoid an error.
20625 Use char because int might match the return type of a GCC
20626 builtin and then its argument prototype would still apply. */
20627 #ifdef __cplusplus
20628 extern "C"
20629 #endif
20630 char oss_ioctl_mixer ();
20632 main ()
20634 return oss_ioctl_mixer ();
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_link") 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest$ac_exeext &&
20656 $as_test_x conftest$ac_exeext; then
20657 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
20658 else
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
20665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
20670 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
20671 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
20672 AST_OSS_FOUND=yes
20673 else
20674 AST_OSS_FOUND=no
20678 if test "${AST_OSS_FOUND}" = "yes"; then
20679 OSS_LIB="-lossaudio "
20680 OSS_HEADER_FOUND="1"
20681 if test "x${OSS_DIR}" != "x"; then
20682 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
20683 OSS_INCLUDE="-I${OSS_DIR}/include"
20684 if test "xsoundcard.h" != "x" ; then
20685 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20688 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 ac_res=`eval echo '${'$as_ac_Header'}'`
20693 { echo "$as_me:$LINENO: result: $ac_res" >&5
20694 echo "${ECHO_T}$ac_res" >&6; }
20695 else
20696 # Is the header compilable?
20697 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
20698 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 $ac_includes_default
20706 #include <${OSS_DIR}/include/soundcard.h>
20707 _ACEOF
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20716 ac_status=$?
20717 grep -v '^ *+' conftest.er1 >conftest.err
20718 rm -f conftest.er1
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.$ac_objext; then
20725 ac_header_compiler=yes
20726 else
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_header_compiler=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20735 echo "${ECHO_T}$ac_header_compiler" >&6; }
20737 # Is the header present?
20738 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
20739 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <${OSS_DIR}/include/soundcard.h>
20747 _ACEOF
20748 if { (ac_try="$ac_cpp conftest.$ac_ext"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null && {
20761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 }; then
20764 ac_header_preproc=yes
20765 else
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_header_preproc=no
20772 rm -f conftest.err conftest.$ac_ext
20773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20774 echo "${ECHO_T}$ac_header_preproc" >&6; }
20776 # So? What about this header?
20777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20778 yes:no: )
20779 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20780 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
20782 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
20783 ac_header_preproc=yes
20785 no:yes:* )
20786 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
20787 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
20789 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
20791 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20793 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
20795 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
20797 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
20800 esac
20801 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20802 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806 eval "$as_ac_Header=\$ac_header_preproc"
20808 ac_res=`eval echo '${'$as_ac_Header'}'`
20809 { echo "$as_me:$LINENO: result: $ac_res" >&5
20810 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20814 OSS_HEADER_FOUND=1
20815 else
20816 OSS_HEADER_FOUND=0
20821 else
20822 if test "xsoundcard.h" != "x" ; then
20823 if test "${ac_cv_header_soundcard_h+set}" = set; then
20824 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20825 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20826 if test "${ac_cv_header_soundcard_h+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20830 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20831 else
20832 # Is the header compilable?
20833 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
20834 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 #include <soundcard.h>
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20861 ac_header_compiler=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_header_compiler=no
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20871 echo "${ECHO_T}$ac_header_compiler" >&6; }
20873 # Is the header present?
20874 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
20875 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <soundcard.h>
20883 _ACEOF
20884 if { (ac_try="$ac_cpp conftest.$ac_ext"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } >/dev/null && {
20897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 }; then
20900 ac_header_preproc=yes
20901 else
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_header_preproc=no
20908 rm -f conftest.err conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20910 echo "${ECHO_T}$ac_header_preproc" >&6; }
20912 # So? What about this header?
20913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20914 yes:no: )
20915 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20916 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
20918 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
20919 ac_header_preproc=yes
20921 no:yes:* )
20922 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
20923 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
20925 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
20927 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20929 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
20931 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
20933 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
20936 esac
20937 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20938 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20939 if test "${ac_cv_header_soundcard_h+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 ac_cv_header_soundcard_h=$ac_header_preproc
20944 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20945 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20948 if test $ac_cv_header_soundcard_h = yes; then
20949 OSS_HEADER_FOUND=1
20950 else
20951 OSS_HEADER_FOUND=0
20957 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
20958 if test ! -z "${OSS_MANDATORY}" ;
20959 then
20960 { echo "$as_me:$LINENO: ***" >&5
20961 echo "$as_me: ***" >&6;}
20962 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
20963 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
20964 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
20965 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
20966 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
20967 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
20968 exit 1
20970 OSS_LIB=""
20971 OSS_INCLUDE=""
20972 PBX_OSS=0
20973 else
20974 PBX_OSS=1
20976 cat >>confdefs.h <<_ACEOF
20977 #define HAVE_OSS 1
20978 _ACEOF
20981 elif test ! -z "${OSS_MANDATORY}";
20982 then
20983 { echo "$as_me:$LINENO: ***" >&5
20984 echo "$as_me: ***" >&6;}
20985 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
20986 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
20987 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20988 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20989 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
20990 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
20991 exit 1
20997 PG_CONFIG=No
20998 if test "${USE_PGSQL}" != "no"; then
20999 if test "x${PGSQL_DIR}" != "x"; then
21000 if test -n "$ac_tool_prefix"; then
21001 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21002 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21005 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008 case $PG_CONFIG in
21009 [\\/]* | ?:[\\/]*)
21010 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in ${PGSQL_DIR}/bin
21016 IFS=$as_save_IFS
21017 test -z "$as_dir" && as_dir=.
21018 for ac_exec_ext in '' $ac_executable_extensions; do
21019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21020 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21022 break 2
21024 done
21025 done
21026 IFS=$as_save_IFS
21029 esac
21031 PG_CONFIG=$ac_cv_path_PG_CONFIG
21032 if test -n "$PG_CONFIG"; then
21033 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21034 echo "${ECHO_T}$PG_CONFIG" >&6; }
21035 else
21036 { echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6; }
21042 if test -z "$ac_cv_path_PG_CONFIG"; then
21043 ac_pt_PG_CONFIG=$PG_CONFIG
21044 # Extract the first word of "pg_config", so it can be a program name with args.
21045 set dummy pg_config; ac_word=$2
21046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21048 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051 case $ac_pt_PG_CONFIG in
21052 [\\/]* | ?:[\\/]*)
21053 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21057 for as_dir in ${PGSQL_DIR}/bin
21059 IFS=$as_save_IFS
21060 test -z "$as_dir" && as_dir=.
21061 for ac_exec_ext in '' $ac_executable_extensions; do
21062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21063 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21065 break 2
21067 done
21068 done
21069 IFS=$as_save_IFS
21072 esac
21074 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21075 if test -n "$ac_pt_PG_CONFIG"; then
21076 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21077 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21078 else
21079 { echo "$as_me:$LINENO: result: no" >&5
21080 echo "${ECHO_T}no" >&6; }
21083 if test "x$ac_pt_PG_CONFIG" = x; then
21084 PG_CONFIG="No"
21085 else
21086 case $cross_compiling:$ac_tool_warned in
21087 yes:)
21088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21089 whose name does not start with the host triplet. If you think this
21090 configuration is useful to you, please write to autoconf@gnu.org." >&5
21091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21092 whose name does not start with the host triplet. If you think this
21093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21094 ac_tool_warned=yes ;;
21095 esac
21096 PG_CONFIG=$ac_pt_PG_CONFIG
21098 else
21099 PG_CONFIG="$ac_cv_path_PG_CONFIG"
21102 if test x"${PG_CONFIG}" = xNo; then
21103 { echo "$as_me:$LINENO: ***" >&5
21104 echo "$as_me: ***" >&6;}
21105 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
21106 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
21107 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
21108 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
21109 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21110 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21111 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21112 echo "$as_me: *** including --without-postgres" >&6;}
21113 exit 1
21115 else
21116 if test -n "$ac_tool_prefix"; then
21117 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21118 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21121 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124 case $PG_CONFIG in
21125 [\\/]* | ?:[\\/]*)
21126 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130 for as_dir in $PATH
21132 IFS=$as_save_IFS
21133 test -z "$as_dir" && as_dir=.
21134 for ac_exec_ext in '' $ac_executable_extensions; do
21135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21136 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21138 break 2
21140 done
21141 done
21142 IFS=$as_save_IFS
21145 esac
21147 PG_CONFIG=$ac_cv_path_PG_CONFIG
21148 if test -n "$PG_CONFIG"; then
21149 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21150 echo "${ECHO_T}$PG_CONFIG" >&6; }
21151 else
21152 { echo "$as_me:$LINENO: result: no" >&5
21153 echo "${ECHO_T}no" >&6; }
21158 if test -z "$ac_cv_path_PG_CONFIG"; then
21159 ac_pt_PG_CONFIG=$PG_CONFIG
21160 # Extract the first word of "pg_config", so it can be a program name with args.
21161 set dummy pg_config; ac_word=$2
21162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21164 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167 case $ac_pt_PG_CONFIG in
21168 [\\/]* | ?:[\\/]*)
21169 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21173 for as_dir in $PATH
21175 IFS=$as_save_IFS
21176 test -z "$as_dir" && as_dir=.
21177 for ac_exec_ext in '' $ac_executable_extensions; do
21178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21179 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21181 break 2
21183 done
21184 done
21185 IFS=$as_save_IFS
21188 esac
21190 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21191 if test -n "$ac_pt_PG_CONFIG"; then
21192 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21193 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21194 else
21195 { echo "$as_me:$LINENO: result: no" >&5
21196 echo "${ECHO_T}no" >&6; }
21199 if test "x$ac_pt_PG_CONFIG" = x; then
21200 PG_CONFIG="No"
21201 else
21202 case $cross_compiling:$ac_tool_warned in
21203 yes:)
21204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21205 whose name does not start with the host triplet. If you think this
21206 configuration is useful to you, please write to autoconf@gnu.org." >&5
21207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21208 whose name does not start with the host triplet. If you think this
21209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21210 ac_tool_warned=yes ;;
21211 esac
21212 PG_CONFIG=$ac_pt_PG_CONFIG
21214 else
21215 PG_CONFIG="$ac_cv_path_PG_CONFIG"
21220 if test "${PG_CONFIG}" != No; then
21221 PGSQL_libdir=`pg_config --libdir`
21222 PGSQL_includedir=`pg_config --includedir`
21224 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
21225 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
21226 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229 ac_check_lib_save_LIBS=$LIBS
21230 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 /* Override any GCC internal prototype to avoid an error.
21239 Use char because int might match the return type of a GCC
21240 builtin and then its argument prototype would still apply. */
21241 #ifdef __cplusplus
21242 extern "C"
21243 #endif
21244 char PQexec ();
21246 main ()
21248 return PQexec ();
21250 return 0;
21252 _ACEOF
21253 rm -f conftest.$ac_objext conftest$ac_exeext
21254 if { (ac_try="$ac_link"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_link") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest$ac_exeext &&
21270 $as_test_x conftest$ac_exeext; then
21271 ac_cv_lib_pq_PQexec=yes
21272 else
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_cv_lib_pq_PQexec=no
21279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21280 conftest$ac_exeext conftest.$ac_ext
21281 LIBS=$ac_check_lib_save_LIBS
21283 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
21284 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
21285 if test $ac_cv_lib_pq_PQexec = yes; then
21287 cat >>confdefs.h <<_ACEOF
21288 #define HAVE_PGSQL 1
21289 _ACEOF
21294 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
21295 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
21296 PGSQL_INCLUDE="-I${PGSQL_includedir}"
21297 PBX_PGSQL=1
21298 elif test ! -z "${PGSQL_MANDATORY}";
21299 then
21300 { echo "$as_me:$LINENO: ***" >&5
21301 echo "$as_me: ***" >&6;}
21302 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
21303 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
21304 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21305 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21306 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21307 echo "$as_me: *** including --without-postgres" >&6;}
21308 exit 1
21310 elif test ! -z "${PGSQL_MANDATORY}";
21311 then
21312 { echo "$as_me:$LINENO: ***" >&5
21313 echo "$as_me: ***" >&6;}
21314 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
21315 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
21316 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21317 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21318 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21319 echo "$as_me: *** including --without-postgres" >&6;}
21320 exit 1
21324 if test "${USE_POPT}" != "no"; then
21325 pbxlibdir=""
21326 if test "x${POPT_DIR}" != "x"; then
21327 if test -d ${POPT_DIR}/lib; then
21328 pbxlibdir="-L${POPT_DIR}/lib"
21329 else
21330 pbxlibdir="-L${POPT_DIR}"
21333 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
21334 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
21335 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 ac_check_lib_save_LIBS=$LIBS
21339 LIBS="-lpopt ${pbxlibdir} $LIBS"
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21347 /* Override any GCC internal prototype to avoid an error.
21348 Use char because int might match the return type of a GCC
21349 builtin and then its argument prototype would still apply. */
21350 #ifdef __cplusplus
21351 extern "C"
21352 #endif
21353 char poptStrerror ();
21355 main ()
21357 return poptStrerror ();
21359 return 0;
21361 _ACEOF
21362 rm -f conftest.$ac_objext conftest$ac_exeext
21363 if { (ac_try="$ac_link"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_link") 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest$ac_exeext &&
21379 $as_test_x conftest$ac_exeext; then
21380 ac_cv_lib_popt_poptStrerror=yes
21381 else
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ac_cv_lib_popt_poptStrerror=no
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21390 LIBS=$ac_check_lib_save_LIBS
21392 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
21393 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
21394 if test $ac_cv_lib_popt_poptStrerror = yes; then
21395 AST_POPT_FOUND=yes
21396 else
21397 AST_POPT_FOUND=no
21401 if test "${AST_POPT_FOUND}" = "yes"; then
21402 POPT_LIB="-lpopt "
21403 POPT_HEADER_FOUND="1"
21404 if test "x${POPT_DIR}" != "x"; then
21405 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
21406 POPT_INCLUDE="-I${POPT_DIR}/include"
21407 if test "xpopt.h" != "x" ; then
21408 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
21409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21410 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21411 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 ac_res=`eval echo '${'$as_ac_Header'}'`
21416 { echo "$as_me:$LINENO: result: $ac_res" >&5
21417 echo "${ECHO_T}$ac_res" >&6; }
21418 else
21419 # Is the header compilable?
21420 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
21421 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 $ac_includes_default
21429 #include <${POPT_DIR}/include/popt.h>
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21439 ac_status=$?
21440 grep -v '^ *+' conftest.er1 >conftest.err
21441 rm -f conftest.er1
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest.$ac_objext; then
21448 ac_header_compiler=yes
21449 else
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21453 ac_header_compiler=no
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21458 echo "${ECHO_T}$ac_header_compiler" >&6; }
21460 # Is the header present?
21461 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
21462 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <${POPT_DIR}/include/popt.h>
21470 _ACEOF
21471 if { (ac_try="$ac_cpp conftest.$ac_ext"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } >/dev/null && {
21484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 }; then
21487 ac_header_preproc=yes
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ac_header_preproc=no
21495 rm -f conftest.err conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6; }
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 yes:no: )
21502 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
21505 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
21506 ac_header_preproc=yes
21508 no:yes:* )
21509 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
21518 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
21523 esac
21524 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21525 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 eval "$as_ac_Header=\$ac_header_preproc"
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21537 POPT_HEADER_FOUND=1
21538 else
21539 POPT_HEADER_FOUND=0
21544 else
21545 if test "xpopt.h" != "x" ; then
21546 if test "${ac_cv_header_popt_h+set}" = set; then
21547 { echo "$as_me:$LINENO: checking for popt.h" >&5
21548 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21549 if test "${ac_cv_header_popt_h+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21553 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21554 else
21555 # Is the header compilable?
21556 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21557 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 $ac_includes_default
21565 #include <popt.h>
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21584 ac_header_compiler=yes
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_header_compiler=no
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21594 echo "${ECHO_T}$ac_header_compiler" >&6; }
21596 # Is the header present?
21597 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21598 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21599 cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h. */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 #include <popt.h>
21606 _ACEOF
21607 if { (ac_try="$ac_cpp conftest.$ac_ext"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21614 ac_status=$?
21615 grep -v '^ *+' conftest.er1 >conftest.err
21616 rm -f conftest.er1
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } >/dev/null && {
21620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21621 test ! -s conftest.err
21622 }; then
21623 ac_header_preproc=yes
21624 else
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 ac_header_preproc=no
21631 rm -f conftest.err conftest.$ac_ext
21632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21633 echo "${ECHO_T}$ac_header_preproc" >&6; }
21635 # So? What about this header?
21636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21637 yes:no: )
21638 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21639 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21641 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21642 ac_header_preproc=yes
21644 no:yes:* )
21645 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21646 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21648 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21650 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21652 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21654 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21656 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21659 esac
21660 { echo "$as_me:$LINENO: checking for popt.h" >&5
21661 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21662 if test "${ac_cv_header_popt_h+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 else
21665 ac_cv_header_popt_h=$ac_header_preproc
21667 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21668 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21671 if test $ac_cv_header_popt_h = yes; then
21672 POPT_HEADER_FOUND=1
21673 else
21674 POPT_HEADER_FOUND=0
21680 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
21681 if test ! -z "${POPT_MANDATORY}" ;
21682 then
21683 { echo "$as_me:$LINENO: ***" >&5
21684 echo "$as_me: ***" >&6;}
21685 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
21686 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
21687 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
21688 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
21689 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
21690 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
21691 exit 1
21693 POPT_LIB=""
21694 POPT_INCLUDE=""
21695 PBX_POPT=0
21696 else
21697 PBX_POPT=1
21699 cat >>confdefs.h <<_ACEOF
21700 #define HAVE_POPT 1
21701 _ACEOF
21704 elif test ! -z "${POPT_MANDATORY}";
21705 then
21706 { echo "$as_me:$LINENO: ***" >&5
21707 echo "$as_me: ***" >&6;}
21708 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
21709 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
21710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21712 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
21713 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
21714 exit 1
21720 if test "${USE_PRI}" != "no"; then
21721 pbxlibdir=""
21722 if test "x${PRI_DIR}" != "x"; then
21723 if test -d ${PRI_DIR}/lib; then
21724 pbxlibdir="-L${PRI_DIR}/lib"
21725 else
21726 pbxlibdir="-L${PRI_DIR}"
21729 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
21730 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
21731 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734 ac_check_lib_save_LIBS=$LIBS
21735 LIBS="-lpri ${pbxlibdir} $LIBS"
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21746 #ifdef __cplusplus
21747 extern "C"
21748 #endif
21749 char pri_call ();
21751 main ()
21753 return pri_call ();
21755 return 0;
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest$ac_exeext &&
21775 $as_test_x conftest$ac_exeext; then
21776 ac_cv_lib_pri_pri_call=yes
21777 else
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_cv_lib_pri_pri_call=no
21784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21785 conftest$ac_exeext conftest.$ac_ext
21786 LIBS=$ac_check_lib_save_LIBS
21788 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
21789 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
21790 if test $ac_cv_lib_pri_pri_call = yes; then
21791 AST_PRI_FOUND=yes
21792 else
21793 AST_PRI_FOUND=no
21797 if test "${AST_PRI_FOUND}" = "yes"; then
21798 PRI_LIB="-lpri "
21799 PRI_HEADER_FOUND="1"
21800 if test "x${PRI_DIR}" != "x"; then
21801 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
21802 PRI_INCLUDE="-I${PRI_DIR}/include"
21803 if test "xlibpri.h" != "x" ; then
21804 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21807 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 ac_res=`eval echo '${'$as_ac_Header'}'`
21812 { echo "$as_me:$LINENO: result: $ac_res" >&5
21813 echo "${ECHO_T}$ac_res" >&6; }
21814 else
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
21817 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <${PRI_DIR}/include/libpri.h>
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21835 ac_status=$?
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
21858 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <${PRI_DIR}/include/libpri.h>
21866 _ACEOF
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 }; then
21883 ac_header_preproc=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21897 yes:no: )
21898 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
21904 no:yes:* )
21905 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
21919 esac
21920 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21921 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925 eval "$as_ac_Header=\$ac_header_preproc"
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21933 PRI_HEADER_FOUND=1
21934 else
21935 PRI_HEADER_FOUND=0
21940 else
21941 if test "xlibpri.h" != "x" ; then
21942 if test "${ac_cv_header_libpri_h+set}" = set; then
21943 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21944 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21945 if test "${ac_cv_header_libpri_h+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21949 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21950 else
21951 # Is the header compilable?
21952 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
21953 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 #include <libpri.h>
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_header_compiler=yes
21981 else
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_header_compiler=no
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6; }
21992 # Is the header present?
21993 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
21994 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <libpri.h>
22002 _ACEOF
22003 if { (ac_try="$ac_cpp conftest.$ac_ext"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null && {
22016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 }; then
22019 ac_header_preproc=yes
22020 else
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_preproc=no
22027 rm -f conftest.err conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029 echo "${ECHO_T}$ac_header_preproc" >&6; }
22031 # So? What about this header?
22032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22033 yes:no: )
22034 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22035 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
22037 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
22038 ac_header_preproc=yes
22040 no:yes:* )
22041 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
22042 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
22044 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
22046 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22048 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
22050 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
22052 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
22055 esac
22056 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22057 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22058 if test "${ac_cv_header_libpri_h+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061 ac_cv_header_libpri_h=$ac_header_preproc
22063 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22064 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22067 if test $ac_cv_header_libpri_h = yes; then
22068 PRI_HEADER_FOUND=1
22069 else
22070 PRI_HEADER_FOUND=0
22076 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
22077 if test ! -z "${PRI_MANDATORY}" ;
22078 then
22079 { echo "$as_me:$LINENO: ***" >&5
22080 echo "$as_me: ***" >&6;}
22081 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
22082 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
22083 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
22084 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
22085 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22086 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
22087 exit 1
22089 PRI_LIB=""
22090 PRI_INCLUDE=""
22091 PBX_PRI=0
22092 else
22093 PBX_PRI=1
22095 cat >>confdefs.h <<_ACEOF
22096 #define HAVE_PRI 1
22097 _ACEOF
22100 elif test ! -z "${PRI_MANDATORY}";
22101 then
22102 { echo "$as_me:$LINENO: ***" >&5
22103 echo "$as_me: ***" >&6;}
22104 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
22105 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
22106 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22107 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22108 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22109 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
22110 exit 1
22115 if test "${USE_PWLIB}" != "no"; then
22116 if test ! -z "${PWLIB_DIR}"; then
22117 PWLIBDIR="${PWLIB_DIR}"
22120 PWLIB_INCDIR=
22121 PWLIB_LIBDIR=
22122 if test "${PWLIBDIR:-unset}" != "unset" ; then
22123 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
22124 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
22125 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
22126 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129 test "$cross_compiling" = yes &&
22130 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22131 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22132 { (exit 1); exit 1; }; }
22133 if test -r "${PWLIBDIR}/version.h"; then
22134 eval "$as_ac_File=yes"
22135 else
22136 eval "$as_ac_File=no"
22139 ac_res=`eval echo '${'$as_ac_File'}'`
22140 { echo "$as_me:$LINENO: result: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22142 if test `eval echo '${'$as_ac_File'}'` = yes; then
22143 HAS_PWLIB=1
22147 if test "${HAS_PWLIB:-unset}" = "unset" ; then
22148 if test "${OPENH323DIR:-unset}" != "unset"; then
22149 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
22151 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155 test "$cross_compiling" = yes &&
22156 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22157 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22158 { (exit 1); exit 1; }; }
22159 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
22160 eval "$as_ac_File=yes"
22161 else
22162 eval "$as_ac_File=no"
22165 ac_res=`eval echo '${'$as_ac_File'}'`
22166 { echo "$as_me:$LINENO: result: $ac_res" >&5
22167 echo "${ECHO_T}$ac_res" >&6; }
22168 if test `eval echo '${'$as_ac_File'}'` = yes; then
22169 HAS_PWLIB=1
22173 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22174 PWLIBDIR="${OPENH323DIR}/../pwlib"
22175 else
22176 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
22177 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
22178 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
22179 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 else
22182 test "$cross_compiling" = yes &&
22183 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22184 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22185 { (exit 1); exit 1; }; }
22186 if test -r "${HOME}/pwlib/include/ptlib.h"; then
22187 eval "$as_ac_File=yes"
22188 else
22189 eval "$as_ac_File=no"
22192 ac_res=`eval echo '${'$as_ac_File'}'`
22193 { echo "$as_me:$LINENO: result: $ac_res" >&5
22194 echo "${ECHO_T}$ac_res" >&6; }
22195 if test `eval echo '${'$as_ac_File'}'` = yes; then
22196 HAS_PWLIB=1
22199 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22200 PWLIBDIR="${HOME}/pwlib"
22201 else
22202 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
22203 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
22204 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22207 test "$cross_compiling" = yes &&
22208 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22209 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22210 { (exit 1); exit 1; }; }
22211 if test -r "/usr/local/include/ptlib.h"; then
22212 ac_cv_file__usr_local_include_ptlib_h=yes
22213 else
22214 ac_cv_file__usr_local_include_ptlib_h=no
22217 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
22218 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
22219 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
22220 HAS_PWLIB=1
22223 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22224 # Extract the first word of "ptlib-config", so it can be a program name with args.
22225 set dummy ptlib-config; ac_word=$2
22226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22228 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231 case $PTLIB_CONFIG in
22232 [\\/]* | ?:[\\/]*)
22233 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22237 for as_dir in /usr/local/bin
22239 IFS=$as_save_IFS
22240 test -z "$as_dir" && as_dir=.
22241 for ac_exec_ext in '' $ac_executable_extensions; do
22242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22243 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22245 break 2
22247 done
22248 done
22249 IFS=$as_save_IFS
22252 esac
22254 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22255 if test -n "$PTLIB_CONFIG"; then
22256 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22257 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22258 else
22259 { echo "$as_me:$LINENO: result: no" >&5
22260 echo "${ECHO_T}no" >&6; }
22264 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
22265 # Extract the first word of "ptlib-config", so it can be a program name with args.
22266 set dummy ptlib-config; ac_word=$2
22267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22269 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272 case $PTLIB_CONFIG in
22273 [\\/]* | ?:[\\/]*)
22274 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22278 for as_dir in /usr/local/share/pwlib/make
22280 IFS=$as_save_IFS
22281 test -z "$as_dir" && as_dir=.
22282 for ac_exec_ext in '' $ac_executable_extensions; do
22283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22284 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22286 break 2
22288 done
22289 done
22290 IFS=$as_save_IFS
22293 esac
22295 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22296 if test -n "$PTLIB_CONFIG"; then
22297 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22298 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22299 else
22300 { echo "$as_me:$LINENO: result: no" >&5
22301 echo "${ECHO_T}no" >&6; }
22306 PWLIB_INCDIR="/usr/local/include"
22307 PWLIB_LIBDIR="/usr/local/lib"
22308 else
22309 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
22310 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314 test "$cross_compiling" = yes &&
22315 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22316 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22317 { (exit 1); exit 1; }; }
22318 if test -r "/usr/include/ptlib.h"; then
22319 ac_cv_file__usr_include_ptlib_h=yes
22320 else
22321 ac_cv_file__usr_include_ptlib_h=no
22324 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
22325 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
22326 if test $ac_cv_file__usr_include_ptlib_h = yes; then
22327 HAS_PWLIB=1
22330 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22331 # Extract the first word of "ptlib-config", so it can be a program name with args.
22332 set dummy ptlib-config; ac_word=$2
22333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22335 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338 case $PTLIB_CONFIG in
22339 [\\/]* | ?:[\\/]*)
22340 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22344 for as_dir in /usr/share/pwlib/make
22346 IFS=$as_save_IFS
22347 test -z "$as_dir" && as_dir=.
22348 for ac_exec_ext in '' $ac_executable_extensions; do
22349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22350 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 break 2
22354 done
22355 done
22356 IFS=$as_save_IFS
22359 esac
22361 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22362 if test -n "$PTLIB_CONFIG"; then
22363 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22364 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22365 else
22366 { echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6; }
22371 PWLIB_INCDIR="/usr/include"
22372 PWLIB_LIBDIR="/usr/lib"
22379 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
22380 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
22381 # exit
22384 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22385 if test "${PWLIBDIR:-unset}" = "unset" ; then
22386 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
22387 PWLIBDIR=`$PTLIB_CONFIG --prefix`
22388 else
22389 echo "Cannot find ptlib-config - please install and try again"
22390 exit
22394 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
22395 PWLIBDIR="/usr/share/pwlib"
22396 PWLIB_INCDIR="/usr/include"
22397 PWLIB_LIBDIR="/usr/lib"
22399 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
22400 PWLIBDIR="/usr/local/share/pwlib"
22401 PWLIB_INCDIR="/usr/local/include"
22402 PWLIB_LIBDIR="/usr/local/lib"
22405 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
22406 PWLIB_INCDIR="${PWLIBDIR}/include"
22408 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
22409 PWLIB_LIBDIR="${PWLIBDIR}/lib"
22418 if test "${HAS_PWLIB:-unset}" != "unset"; then
22419 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
22420 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
22421 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
22422 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
22423 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
22424 let PWLIB_REQ=1*10000+9*100+2
22426 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
22427 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
22428 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
22429 { echo "$as_me:$LINENO: result: no" >&5
22430 echo "${ECHO_T}no" >&6; }
22431 unset HAS_PWLIB
22432 else
22433 { echo "$as_me:$LINENO: result: yes" >&5
22434 echo "${ECHO_T}yes" >&6; }
22439 if test "${HAS_PWLIB:-unset}" != "unset"; then
22441 PWLIB_OSTYPE=
22442 case "$host_os" in
22443 linux*) PWLIB_OSTYPE=linux ;
22445 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
22447 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
22448 ENDLDLIBS="-lossaudio" ;
22450 netbsd* ) PWLIB_OSTYPE=NetBSD ;
22451 ENDLDLIBS="-lossaudio" ;
22453 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
22455 darwin* ) PWLIB_OSTYPE=Darwin ;
22457 beos*) PWLIB_OSTYPE=beos ;
22458 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
22460 cygwin*) PWLIB_OSTYPE=cygwin ;
22462 mingw*) PWLIB_OSTYPE=mingw ;
22463 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
22464 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
22466 * ) PWLIB_OSTYPE="$host_os" ;
22467 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
22468 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
22470 esac
22472 PWLIB_MACHTYPE=
22473 case "$host_cpu" in
22474 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
22477 x86_64) PWLIB_MACHTYPE=x86_64 ;
22478 P_64BIT=1 ;
22479 LIB64=1 ;
22482 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
22483 P_64BIT=1 ;
22486 sparc ) PWLIB_MACHTYPE=sparc ;
22489 powerpc ) PWLIB_MACHTYPE=ppc ;
22492 ppc ) PWLIB_MACHTYPE=ppc ;
22495 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
22496 P_64BIT=1 ;
22497 LIB64=1 ;
22500 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
22501 P_64BIT=1 ;
22502 LIB64=1 ;
22505 ia64) PWLIB_MACHTYPE=ia64 ;
22506 P_64BIT=1 ;
22509 s390x) PWLIB_MACHTYPE=s390x ;
22510 P_64BIT=1 ;
22511 LIB64=1 ;
22514 s390) PWLIB_MACHTYPE=s390 ;
22517 * ) PWLIB_MACHTYPE="$host_cpu";
22518 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
22519 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
22520 esac
22522 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
22527 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
22530 if test "${HAS_PWLIB:-unset}" != "unset"; then
22531 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
22532 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
22534 saved_cppflags="${CPPFLAGS}"
22535 saved_libs="${LIBS}"
22536 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
22537 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
22539 ac_ext=cpp
22540 ac_cpp='$CXXCPP $CPPFLAGS'
22541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 #include "ptlib.h"
22554 main ()
22556 BOOL q = PTime::IsDaylightSavings();
22558 return 0;
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_link") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_cxx_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext &&
22578 $as_test_x conftest$ac_exeext; then
22579 { echo "$as_me:$LINENO: result: yes" >&5
22580 echo "${ECHO_T}yes" >&6; }
22581 ac_cv_lib_PWLIB="yes"
22583 else
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 { echo "$as_me:$LINENO: result: no" >&5
22588 echo "${ECHO_T}no" >&6; }
22589 ac_cv_lib_PWLIB="no"
22594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22595 conftest$ac_exeext conftest.$ac_ext
22597 ac_ext=c
22598 ac_cpp='$CPP $CPPFLAGS'
22599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22604 LIBS="${saved_libs}"
22605 CPPFLAGS="${saved_cppflags}"
22607 if test "${ac_cv_lib_PWLIB}" = "yes"; then
22608 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
22609 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
22610 else
22611 PWLIB_LIB="-l${PLATFORM_PWLIB}"
22613 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
22614 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
22616 PBX_PWLIB=1
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_PWLIB 1
22620 _ACEOF
22628 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
22629 { echo "$as_me:$LINENO: ***" >&5
22630 echo "$as_me: ***" >&6;}
22631 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
22632 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
22633 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22634 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22635 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
22636 echo "$as_me: *** including --without-pwlib" >&6;}
22637 exit 1
22640 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
22641 if test ! -z "${OPENH323_DIR}"; then
22642 OPENH323DIR="${OPENH323_DIR}"
22645 OPENH323_INCDIR=
22646 OPENH323_LIBDIR=
22647 if test "${OPENH323DIR:-unset}" != "unset" ; then
22648 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
22649 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
22650 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
22651 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 else
22654 test "$cross_compiling" = yes &&
22655 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22656 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22657 { (exit 1); exit 1; }; }
22658 if test -r "${OPENH323DIR}/version.h"; then
22659 eval "$as_ac_File=yes"
22660 else
22661 eval "$as_ac_File=no"
22664 ac_res=`eval echo '${'$as_ac_File'}'`
22665 { echo "$as_me:$LINENO: result: $ac_res" >&5
22666 echo "${ECHO_T}$ac_res" >&6; }
22667 if test `eval echo '${'$as_ac_File'}'` = yes; then
22668 HAS_OPENH323=1
22672 if test "${HAS_OPENH323:-unset}" = "unset" ; then
22673 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
22674 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
22675 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
22676 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679 test "$cross_compiling" = yes &&
22680 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22681 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22682 { (exit 1); exit 1; }; }
22683 if test -r "${PWLIBDIR}/../openh323/version.h"; then
22684 eval "$as_ac_File=yes"
22685 else
22686 eval "$as_ac_File=no"
22689 ac_res=`eval echo '${'$as_ac_File'}'`
22690 { echo "$as_me:$LINENO: result: $ac_res" >&5
22691 echo "${ECHO_T}$ac_res" >&6; }
22692 if test `eval echo '${'$as_ac_File'}'` = yes; then
22693 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
22696 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22697 OPENH323DIR="${PWLIBDIR}/../openh323"
22698 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
22699 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
22700 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
22701 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704 test "$cross_compiling" = yes &&
22705 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22706 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22707 { (exit 1); exit 1; }; }
22708 if test -r "${OPENH323DIR}/include/h323.h"; then
22709 eval "$as_ac_File=yes"
22710 else
22711 eval "$as_ac_File=no"
22714 ac_res=`eval echo '${'$as_ac_File'}'`
22715 { echo "$as_me:$LINENO: result: $ac_res" >&5
22716 echo "${ECHO_T}$ac_res" >&6; }
22717 if test `eval echo '${'$as_ac_File'}'` = yes; then
22719 else
22720 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
22723 else
22724 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
22725 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
22726 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
22727 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730 test "$cross_compiling" = yes &&
22731 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22732 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22733 { (exit 1); exit 1; }; }
22734 if test -r "${HOME}/openh323/include/h323.h"; then
22735 eval "$as_ac_File=yes"
22736 else
22737 eval "$as_ac_File=no"
22740 ac_res=`eval echo '${'$as_ac_File'}'`
22741 { echo "$as_me:$LINENO: result: $ac_res" >&5
22742 echo "${ECHO_T}$ac_res" >&6; }
22743 if test `eval echo '${'$as_ac_File'}'` = yes; then
22744 HAS_OPENH323=1
22747 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22748 OPENH323DIR="${HOME}/openh323"
22749 else
22750 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
22751 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
22752 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755 test "$cross_compiling" = yes &&
22756 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22757 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22758 { (exit 1); exit 1; }; }
22759 if test -r "/usr/local/include/openh323/h323.h"; then
22760 ac_cv_file__usr_local_include_openh323_h323_h=yes
22761 else
22762 ac_cv_file__usr_local_include_openh323_h323_h=no
22765 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
22766 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
22767 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
22768 HAS_OPENH323=1
22771 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22772 OPENH323DIR="/usr/local/share/openh323"
22773 OPENH323_INCDIR="/usr/local/include/openh323"
22774 OPENH323_LIBDIR="/usr/local/lib"
22775 else
22776 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
22777 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
22778 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781 test "$cross_compiling" = yes &&
22782 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22783 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22784 { (exit 1); exit 1; }; }
22785 if test -r "/usr/include/openh323/h323.h"; then
22786 ac_cv_file__usr_include_openh323_h323_h=yes
22787 else
22788 ac_cv_file__usr_include_openh323_h323_h=no
22791 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
22792 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
22793 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
22794 HAS_OPENH323=1
22797 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22798 OPENH323DIR="/usr/share/openh323"
22799 OPENH323_INCDIR="/usr/include/openh323"
22800 OPENH323_LIBDIR="/usr/lib"
22807 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22808 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
22809 OPENH323_INCDIR="${OPENH323DIR}/include"
22811 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
22812 OPENH323_LIBDIR="${OPENH323DIR}/lib"
22821 if test "${HAS_OPENH323:-unset}" != "unset"; then
22822 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
22823 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
22824 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
22825 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
22826 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
22827 let OPENH323_REQ=1*10000+17*100+3
22829 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
22830 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
22831 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
22832 { echo "$as_me:$LINENO: result: no" >&5
22833 echo "${ECHO_T}no" >&6; }
22834 unset HAS_OPENH323
22835 else
22836 { echo "$as_me:$LINENO: result: yes" >&5
22837 echo "${ECHO_T}yes" >&6; }
22842 if test "${HAS_OPENH323:-unset}" != "unset"; then
22843 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
22844 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
22845 OPENH323_SUFFIX=
22846 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
22847 libfile=
22848 if test -n "$files"; then
22849 for f in $files; do
22850 if test -f $f -a ! -L $f; then
22851 libfile=`basename $f`
22852 break;
22854 done
22856 if test "${libfile:-unset}" != "unset"; then
22857 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
22859 case "${OPENH323_SUFFIX}" in
22861 OPENH323_BUILD="notrace";;
22863 OPENH323_BUILD="opt";;
22865 OPENH323_BUILD="debug";;
22867 OPENH323_BUILD="notrace";;
22868 esac
22869 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
22870 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
22876 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
22878 if test "${HAS_OPENH323:-unset}" != "unset"; then
22879 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
22880 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
22882 saved_cppflags="${CPPFLAGS}"
22883 saved_libs="${LIBS}"
22884 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
22885 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
22887 ac_ext=cpp
22888 ac_cpp='$CXXCPP $CPPFLAGS'
22889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h. */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 #include "ptlib.h"
22901 #include "h323.h"
22902 #include "h323ep.h"
22904 main ()
22906 H323EndPoint ep = H323EndPoint();
22908 return 0;
22910 _ACEOF
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_cxx_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest$ac_exeext &&
22928 $as_test_x conftest$ac_exeext; then
22929 { echo "$as_me:$LINENO: result: yes" >&5
22930 echo "${ECHO_T}yes" >&6; }
22931 ac_cv_lib_OPENH323="yes"
22933 else
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 { echo "$as_me:$LINENO: result: no" >&5
22938 echo "${ECHO_T}no" >&6; }
22939 ac_cv_lib_OPENH323="no"
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945 conftest$ac_exeext conftest.$ac_ext
22947 ac_ext=c
22948 ac_cpp='$CPP $CPPFLAGS'
22949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22954 LIBS="${saved_libs}"
22955 CPPFLAGS="${saved_cppflags}"
22957 if test "${ac_cv_lib_OPENH323}" = "yes"; then
22958 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
22959 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
22960 else
22961 OPENH323_LIB="-l${PLATFORM_OPENH323}"
22963 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
22964 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
22966 PBX_OPENH323=1
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_OPENH323 1
22970 _ACEOF
22976 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
22977 { echo "$as_me:$LINENO: ***" >&5
22978 echo "$as_me: ***" >&6;}
22979 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
22980 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
22981 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22982 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22983 { echo "$as_me:$LINENO: *** including --without-h323" >&5
22984 echo "$as_me: *** including --without-h323" >&6;}
22985 exit 1
22989 ac_ext=cpp
22990 ac_cpp='$CXXCPP $CPPFLAGS'
22991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22996 if test "${USE_QT}" != "no"; then
22997 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
22998 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
22999 saved_libs="${LIBS}"
23000 saved_cppflags="${CPPFLAGS}"
23001 if test "x${QT_DIR}" != "x"; then
23002 LIBS="${LIBS} -L${QT_DIR}/lib"
23003 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23005 LIBS="${LIBS} -lqt"
23006 qtlib="qt"
23007 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <qt3/qdatetime.h>
23016 main ()
23018 QDate date();
23020 return 0;
23023 _ACEOF
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (ac_try="$ac_link"
23026 case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23029 esac
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_link") 2>conftest.er1
23032 ac_status=$?
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && {
23038 test -z "$ac_cxx_werror_flag" ||
23039 test ! -s conftest.err
23040 } && test -s conftest$ac_exeext &&
23041 $as_test_x conftest$ac_exeext; then
23042 ac_cv_lib_qt_qt_date="yes"
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_cv_lib_qt_qt_date="no"
23050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23051 conftest$ac_exeext conftest.$ac_ext
23052 LIBS="${saved_libs}"
23053 CPPFLAGS="${saved_cppflags}"
23055 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
23056 saved_libs="${LIBS}"
23057 saved_cppflags="${CPPFLAGS}"
23058 if test "x${QT_DIR}" != "x"; then
23059 LIBS="${LIBS} -L${QT_DIR}/lib"
23060 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23062 LIBS="${LIBS} -lqt-mt"
23063 qtlib="qt-mt"
23064 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <qt3/qdatetime.h>
23073 main ()
23075 QDate date();
23077 return 0;
23080 _ACEOF
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (ac_try="$ac_link"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_link") 2>conftest.er1
23089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_cxx_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest$ac_exeext &&
23098 $as_test_x conftest$ac_exeext; then
23099 ac_cv_lib_qt_qt_date="yes"
23100 else
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_cv_lib_qt_qt_date="no"
23107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23108 conftest$ac_exeext conftest.$ac_ext
23109 LIBS="${saved_libs}"
23110 CPPFLAGS="${saved_cppflags}"
23113 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
23114 { echo "$as_me:$LINENO: result: yes" >&5
23115 echo "${ECHO_T}yes" >&6; }
23116 else
23117 { echo "$as_me:$LINENO: result: no" >&5
23118 echo "${ECHO_T}no" >&6; }
23121 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
23122 QT_LIB="-l${qtlib}"
23123 if test "${QT_DIR}" != ""; then
23124 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
23125 QT_INCLUDE="-I${QT_DIR}/include"
23127 PBX_QT=1
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_QT 1
23131 _ACEOF
23133 if test -n "$ac_tool_prefix"; then
23134 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
23135 set dummy ${ac_tool_prefix}moc; ac_word=$2
23136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23138 if test "${ac_cv_path_QTMOC+set}" = set; then
23139 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 else
23141 case $QTMOC in
23142 [\\/]* | ?:[\\/]*)
23143 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
23146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23147 for as_dir in $PATH
23149 IFS=$as_save_IFS
23150 test -z "$as_dir" && as_dir=.
23151 for ac_exec_ext in '' $ac_executable_extensions; do
23152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23153 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
23154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23155 break 2
23157 done
23158 done
23159 IFS=$as_save_IFS
23162 esac
23164 QTMOC=$ac_cv_path_QTMOC
23165 if test -n "$QTMOC"; then
23166 { echo "$as_me:$LINENO: result: $QTMOC" >&5
23167 echo "${ECHO_T}$QTMOC" >&6; }
23168 else
23169 { echo "$as_me:$LINENO: result: no" >&5
23170 echo "${ECHO_T}no" >&6; }
23175 if test -z "$ac_cv_path_QTMOC"; then
23176 ac_pt_QTMOC=$QTMOC
23177 # Extract the first word of "moc", so it can be a program name with args.
23178 set dummy moc; ac_word=$2
23179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23181 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184 case $ac_pt_QTMOC in
23185 [\\/]* | ?:[\\/]*)
23186 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
23189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23190 for as_dir in $PATH
23192 IFS=$as_save_IFS
23193 test -z "$as_dir" && as_dir=.
23194 for ac_exec_ext in '' $ac_executable_extensions; do
23195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23196 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
23197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23198 break 2
23200 done
23201 done
23202 IFS=$as_save_IFS
23205 esac
23207 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
23208 if test -n "$ac_pt_QTMOC"; then
23209 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
23210 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
23211 else
23212 { echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6; }
23216 if test "x$ac_pt_QTMOC" = x; then
23217 QTMOC="No"
23218 else
23219 case $cross_compiling:$ac_tool_warned in
23220 yes:)
23221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23222 whose name does not start with the host triplet. If you think this
23223 configuration is useful to you, please write to autoconf@gnu.org." >&5
23224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23225 whose name does not start with the host triplet. If you think this
23226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23227 ac_tool_warned=yes ;;
23228 esac
23229 QTMOC=$ac_pt_QTMOC
23231 else
23232 QTMOC="$ac_cv_path_QTMOC"
23235 elif test ! -z "${QT_MANDATORY}";
23236 then
23237 { echo "$as_me:$LINENO: ***" >&5
23238 echo "$as_me: ***" >&6;}
23239 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
23240 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
23241 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23242 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23243 { echo "$as_me:$LINENO: *** including --without-qt." >&5
23244 echo "$as_me: *** including --without-qt." >&6;}
23245 exit 1
23249 ac_ext=c
23250 ac_cpp='$CPP $CPPFLAGS'
23251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23257 if test "${USE_RADIUS}" != "no"; then
23258 pbxlibdir=""
23259 if test "x${RADIUS_DIR}" != "x"; then
23260 if test -d ${RADIUS_DIR}/lib; then
23261 pbxlibdir="-L${RADIUS_DIR}/lib"
23262 else
23263 pbxlibdir="-L${RADIUS_DIR}"
23266 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
23267 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h. */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23283 #ifdef __cplusplus
23284 extern "C"
23285 #endif
23286 char rc_read_config ();
23288 main ()
23290 return rc_read_config ();
23292 return 0;
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest$ac_exeext &&
23312 $as_test_x conftest$ac_exeext; then
23313 ac_cv_lib_radiusclient_ng_rc_read_config=yes
23314 else
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 ac_cv_lib_radiusclient_ng_rc_read_config=no
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322 conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23325 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
23326 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
23327 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
23328 AST_RADIUS_FOUND=yes
23329 else
23330 AST_RADIUS_FOUND=no
23334 if test "${AST_RADIUS_FOUND}" = "yes"; then
23335 RADIUS_LIB="-lradiusclient-ng "
23336 RADIUS_HEADER_FOUND="1"
23337 if test "x${RADIUS_DIR}" != "x"; then
23338 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
23339 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
23340 if test "xradiusclient-ng.h" != "x" ; then
23341 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
23342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23343 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
23344 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
23345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 ac_res=`eval echo '${'$as_ac_Header'}'`
23349 { echo "$as_me:$LINENO: result: $ac_res" >&5
23350 echo "${ECHO_T}$ac_res" >&6; }
23351 else
23352 # Is the header compilable?
23353 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
23354 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 $ac_includes_default
23362 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
23363 _ACEOF
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_compile") 2>conftest.er1
23372 ac_status=$?
23373 grep -v '^ *+' conftest.er1 >conftest.err
23374 rm -f conftest.er1
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest.$ac_objext; then
23381 ac_header_compiler=yes
23382 else
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_header_compiler=no
23389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23391 echo "${ECHO_T}$ac_header_compiler" >&6; }
23393 # Is the header present?
23394 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
23395 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
23396 cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h. */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23402 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
23403 _ACEOF
23404 if { (ac_try="$ac_cpp conftest.$ac_ext"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } >/dev/null && {
23417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 }; then
23420 ac_header_preproc=yes
23421 else
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 ac_header_preproc=no
23428 rm -f conftest.err conftest.$ac_ext
23429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23430 echo "${ECHO_T}$ac_header_preproc" >&6; }
23432 # So? What about this header?
23433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23434 yes:no: )
23435 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
23436 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23437 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
23438 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
23439 ac_header_preproc=yes
23441 no:yes:* )
23442 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
23443 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
23445 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
23447 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
23449 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
23451 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
23453 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
23456 esac
23457 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
23458 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461 else
23462 eval "$as_ac_Header=\$ac_header_preproc"
23464 ac_res=`eval echo '${'$as_ac_Header'}'`
23465 { echo "$as_me:$LINENO: result: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23470 RADIUS_HEADER_FOUND=1
23471 else
23472 RADIUS_HEADER_FOUND=0
23477 else
23478 if test "xradiusclient-ng.h" != "x" ; then
23479 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23480 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
23481 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
23482 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23485 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
23486 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
23487 else
23488 # Is the header compilable?
23489 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
23490 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 #include <radiusclient-ng.h>
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_compile") 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest.$ac_objext; then
23517 ac_header_compiler=yes
23518 else
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 ac_header_compiler=no
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23527 echo "${ECHO_T}$ac_header_compiler" >&6; }
23529 # Is the header present?
23530 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
23531 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
23532 cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h. */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 #include <radiusclient-ng.h>
23539 _ACEOF
23540 if { (ac_try="$ac_cpp conftest.$ac_ext"
23541 case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23547 ac_status=$?
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } >/dev/null && {
23553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 }; then
23556 ac_header_preproc=yes
23557 else
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_header_preproc=no
23564 rm -f conftest.err conftest.$ac_ext
23565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23566 echo "${ECHO_T}$ac_header_preproc" >&6; }
23568 # So? What about this header?
23569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23570 yes:no: )
23571 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
23572 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23573 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
23574 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
23575 ac_header_preproc=yes
23577 no:yes:* )
23578 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
23579 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
23580 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
23581 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
23583 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
23584 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
23585 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
23586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
23587 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
23588 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
23589 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
23592 esac
23593 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
23594 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
23595 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23597 else
23598 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
23600 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
23601 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
23604 if test $ac_cv_header_radiusclient_ng_h = yes; then
23605 RADIUS_HEADER_FOUND=1
23606 else
23607 RADIUS_HEADER_FOUND=0
23613 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
23614 if test ! -z "${RADIUS_MANDATORY}" ;
23615 then
23616 { echo "$as_me:$LINENO: ***" >&5
23617 echo "$as_me: ***" >&6;}
23618 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
23619 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
23620 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
23621 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
23622 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
23623 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
23624 exit 1
23626 RADIUS_LIB=""
23627 RADIUS_INCLUDE=""
23628 PBX_RADIUS=0
23629 else
23630 PBX_RADIUS=1
23632 cat >>confdefs.h <<_ACEOF
23633 #define HAVE_RADIUS 1
23634 _ACEOF
23637 elif test ! -z "${RADIUS_MANDATORY}";
23638 then
23639 { echo "$as_me:$LINENO: ***" >&5
23640 echo "$as_me: ***" >&6;}
23641 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
23642 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
23643 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23644 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23645 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
23646 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
23647 exit 1
23653 if test "${USE_SPEEX}" != "no"; then
23654 pbxlibdir=""
23655 if test "x${SPEEX_DIR}" != "x"; then
23656 if test -d ${SPEEX_DIR}/lib; then
23657 pbxlibdir="-L${SPEEX_DIR}/lib"
23658 else
23659 pbxlibdir="-L${SPEEX_DIR}"
23662 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
23663 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
23664 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 else
23667 ac_check_lib_save_LIBS=$LIBS
23668 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h. */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23676 /* Override any GCC internal prototype to avoid an error.
23677 Use char because int might match the return type of a GCC
23678 builtin and then its argument prototype would still apply. */
23679 #ifdef __cplusplus
23680 extern "C"
23681 #endif
23682 char speex_encode ();
23684 main ()
23686 return speex_encode ();
23688 return 0;
23690 _ACEOF
23691 rm -f conftest.$ac_objext conftest$ac_exeext
23692 if { (ac_try="$ac_link"
23693 case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_link") 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest$ac_exeext &&
23708 $as_test_x conftest$ac_exeext; then
23709 ac_cv_lib_speex_speex_encode=yes
23710 else
23711 echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23714 ac_cv_lib_speex_speex_encode=no
23717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23718 conftest$ac_exeext conftest.$ac_ext
23719 LIBS=$ac_check_lib_save_LIBS
23721 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
23722 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
23723 if test $ac_cv_lib_speex_speex_encode = yes; then
23724 AST_SPEEX_FOUND=yes
23725 else
23726 AST_SPEEX_FOUND=no
23730 if test "${AST_SPEEX_FOUND}" = "yes"; then
23731 SPEEX_LIB="-lspeex -lm"
23732 SPEEX_HEADER_FOUND="1"
23733 if test "x${SPEEX_DIR}" != "x"; then
23734 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
23735 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
23736 if test "xspeex/speex.h" != "x" ; then
23737 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
23738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23739 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
23740 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
23741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 ac_res=`eval echo '${'$as_ac_Header'}'`
23745 { echo "$as_me:$LINENO: result: $ac_res" >&5
23746 echo "${ECHO_T}$ac_res" >&6; }
23747 else
23748 # Is the header compilable?
23749 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
23750 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 $ac_includes_default
23758 #include <${SPEEX_DIR}/include/speex/speex.h>
23759 _ACEOF
23760 rm -f conftest.$ac_objext
23761 if { (ac_try="$ac_compile"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_header_compiler=yes
23778 else
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ac_header_compiler=no
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23787 echo "${ECHO_T}$ac_header_compiler" >&6; }
23789 # Is the header present?
23790 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
23791 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <${SPEEX_DIR}/include/speex/speex.h>
23799 _ACEOF
23800 if { (ac_try="$ac_cpp conftest.$ac_ext"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23807 ac_status=$?
23808 grep -v '^ *+' conftest.er1 >conftest.err
23809 rm -f conftest.er1
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } >/dev/null && {
23813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 }; then
23816 ac_header_preproc=yes
23817 else
23818 echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23821 ac_header_preproc=no
23824 rm -f conftest.err conftest.$ac_ext
23825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23826 echo "${ECHO_T}$ac_header_preproc" >&6; }
23828 # So? What about this header?
23829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23830 yes:no: )
23831 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23832 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
23834 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
23835 ac_header_preproc=yes
23837 no:yes:* )
23838 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
23839 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
23840 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
23841 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
23843 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23845 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
23847 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
23848 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
23849 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
23852 esac
23853 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
23854 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
23855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 else
23858 eval "$as_ac_Header=\$ac_header_preproc"
23860 ac_res=`eval echo '${'$as_ac_Header'}'`
23861 { echo "$as_me:$LINENO: result: $ac_res" >&5
23862 echo "${ECHO_T}$ac_res" >&6; }
23865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23866 SPEEX_HEADER_FOUND=1
23867 else
23868 SPEEX_HEADER_FOUND=0
23873 else
23874 if test "xspeex/speex.h" != "x" ; then
23875 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23876 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23877 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23878 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23882 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
23883 else
23884 # Is the header compilable?
23885 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
23886 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
23887 cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h. */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 $ac_includes_default
23894 #include <speex/speex.h>
23895 _ACEOF
23896 rm -f conftest.$ac_objext
23897 if { (ac_try="$ac_compile"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23901 esac
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23904 ac_status=$?
23905 grep -v '^ *+' conftest.er1 >conftest.err
23906 rm -f conftest.er1
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23913 ac_header_compiler=yes
23914 else
23915 echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_header_compiler=no
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23923 echo "${ECHO_T}$ac_header_compiler" >&6; }
23925 # Is the header present?
23926 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
23927 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
23928 cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h. */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 #include <speex/speex.h>
23935 _ACEOF
23936 if { (ac_try="$ac_cpp conftest.$ac_ext"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23943 ac_status=$?
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } >/dev/null && {
23949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 }; then
23952 ac_header_preproc=yes
23953 else
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_header_preproc=no
23960 rm -f conftest.err conftest.$ac_ext
23961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962 echo "${ECHO_T}$ac_header_preproc" >&6; }
23964 # So? What about this header?
23965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23966 yes:no: )
23967 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23968 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23969 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
23970 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
23971 ac_header_preproc=yes
23973 no:yes:* )
23974 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
23975 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
23976 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
23977 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
23978 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
23979 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
23980 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23981 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
23983 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
23984 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
23985 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
23988 esac
23989 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23990 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23991 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993 else
23994 ac_cv_header_speex_speex_h=$ac_header_preproc
23996 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23997 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24000 if test $ac_cv_header_speex_speex_h = yes; then
24001 SPEEX_HEADER_FOUND=1
24002 else
24003 SPEEX_HEADER_FOUND=0
24009 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
24010 if test ! -z "${SPEEX_MANDATORY}" ;
24011 then
24012 { echo "$as_me:$LINENO: ***" >&5
24013 echo "$as_me: ***" >&6;}
24014 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
24015 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
24016 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
24017 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
24018 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24019 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24020 exit 1
24022 SPEEX_LIB=""
24023 SPEEX_INCLUDE=""
24024 PBX_SPEEX=0
24025 else
24026 PBX_SPEEX=1
24028 cat >>confdefs.h <<_ACEOF
24029 #define HAVE_SPEEX 1
24030 _ACEOF
24033 elif test ! -z "${SPEEX_MANDATORY}";
24034 then
24035 { echo "$as_me:$LINENO: ***" >&5
24036 echo "$as_me: ***" >&6;}
24037 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
24038 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
24039 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24040 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24041 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24042 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24043 exit 1
24049 if test "${USE_SQLITE}" != "no"; then
24050 pbxlibdir=""
24051 if test "x${SQLITE_DIR}" != "x"; then
24052 if test -d ${SQLITE_DIR}/lib; then
24053 pbxlibdir="-L${SQLITE_DIR}/lib"
24054 else
24055 pbxlibdir="-L${SQLITE_DIR}"
24058 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
24059 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
24060 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063 ac_check_lib_save_LIBS=$LIBS
24064 LIBS="-lsqlite ${pbxlibdir} $LIBS"
24065 cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h. */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24072 /* Override any GCC internal prototype to avoid an error.
24073 Use char because int might match the return type of a GCC
24074 builtin and then its argument prototype would still apply. */
24075 #ifdef __cplusplus
24076 extern "C"
24077 #endif
24078 char sqlite_exec ();
24080 main ()
24082 return sqlite_exec ();
24084 return 0;
24086 _ACEOF
24087 rm -f conftest.$ac_objext conftest$ac_exeext
24088 if { (ac_try="$ac_link"
24089 case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_link") 2>conftest.er1
24095 ac_status=$?
24096 grep -v '^ *+' conftest.er1 >conftest.err
24097 rm -f conftest.er1
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest$ac_exeext &&
24104 $as_test_x conftest$ac_exeext; then
24105 ac_cv_lib_sqlite_sqlite_exec=yes
24106 else
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_lib_sqlite_sqlite_exec=no
24113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24114 conftest$ac_exeext conftest.$ac_ext
24115 LIBS=$ac_check_lib_save_LIBS
24117 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
24118 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
24119 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
24120 AST_SQLITE_FOUND=yes
24121 else
24122 AST_SQLITE_FOUND=no
24126 if test "${AST_SQLITE_FOUND}" = "yes"; then
24127 SQLITE_LIB="-lsqlite "
24128 SQLITE_HEADER_FOUND="1"
24129 if test "x${SQLITE_DIR}" != "x"; then
24130 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
24131 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
24132 if test "xsqlite.h" != "x" ; then
24133 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
24134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24135 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
24136 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
24137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 ac_res=`eval echo '${'$as_ac_Header'}'`
24141 { echo "$as_me:$LINENO: result: $ac_res" >&5
24142 echo "${ECHO_T}$ac_res" >&6; }
24143 else
24144 # Is the header compilable?
24145 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
24146 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 $ac_includes_default
24154 #include <${SQLITE_DIR}/include/sqlite.h>
24155 _ACEOF
24156 rm -f conftest.$ac_objext
24157 if { (ac_try="$ac_compile"
24158 case "(($ac_try" in
24159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160 *) ac_try_echo=$ac_try;;
24161 esac
24162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163 (eval "$ac_compile") 2>conftest.er1
24164 ac_status=$?
24165 grep -v '^ *+' conftest.er1 >conftest.err
24166 rm -f conftest.er1
24167 cat conftest.err >&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); } && {
24170 test -z "$ac_c_werror_flag" ||
24171 test ! -s conftest.err
24172 } && test -s conftest.$ac_objext; then
24173 ac_header_compiler=yes
24174 else
24175 echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24178 ac_header_compiler=no
24181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24183 echo "${ECHO_T}$ac_header_compiler" >&6; }
24185 # Is the header present?
24186 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
24187 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
24188 cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h. */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 #include <${SQLITE_DIR}/include/sqlite.h>
24195 _ACEOF
24196 if { (ac_try="$ac_cpp conftest.$ac_ext"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24200 esac
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } >/dev/null && {
24209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 }; then
24212 ac_header_preproc=yes
24213 else
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24220 rm -f conftest.err conftest.$ac_ext
24221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24222 echo "${ECHO_T}$ac_header_preproc" >&6; }
24224 # So? What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24226 yes:no: )
24227 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
24228 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
24230 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
24231 ac_header_preproc=yes
24233 no:yes:* )
24234 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
24235 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
24237 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
24238 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
24239 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
24240 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
24241 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
24242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
24243 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
24244 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
24245 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
24248 esac
24249 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
24250 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
24251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254 eval "$as_ac_Header=\$ac_header_preproc"
24256 ac_res=`eval echo '${'$as_ac_Header'}'`
24257 { echo "$as_me:$LINENO: result: $ac_res" >&5
24258 echo "${ECHO_T}$ac_res" >&6; }
24261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24262 SQLITE_HEADER_FOUND=1
24263 else
24264 SQLITE_HEADER_FOUND=0
24269 else
24270 if test "xsqlite.h" != "x" ; then
24271 if test "${ac_cv_header_sqlite_h+set}" = set; then
24272 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
24273 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
24274 if test "${ac_cv_header_sqlite_h+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
24279 else
24280 # Is the header compilable?
24281 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
24282 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 $ac_includes_default
24290 #include <sqlite.h>
24291 _ACEOF
24292 rm -f conftest.$ac_objext
24293 if { (ac_try="$ac_compile"
24294 case "(($ac_try" in
24295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296 *) ac_try_echo=$ac_try;;
24297 esac
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299 (eval "$ac_compile") 2>conftest.er1
24300 ac_status=$?
24301 grep -v '^ *+' conftest.er1 >conftest.err
24302 rm -f conftest.er1
24303 cat conftest.err >&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } && {
24306 test -z "$ac_c_werror_flag" ||
24307 test ! -s conftest.err
24308 } && test -s conftest.$ac_objext; then
24309 ac_header_compiler=yes
24310 else
24311 echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24314 ac_header_compiler=no
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24319 echo "${ECHO_T}$ac_header_compiler" >&6; }
24321 # Is the header present?
24322 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
24323 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h. */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 #include <sqlite.h>
24331 _ACEOF
24332 if { (ac_try="$ac_cpp conftest.$ac_ext"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } >/dev/null && {
24345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 }; then
24348 ac_header_preproc=yes
24349 else
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_header_preproc=no
24356 rm -f conftest.err conftest.$ac_ext
24357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24358 echo "${ECHO_T}$ac_header_preproc" >&6; }
24360 # So? What about this header?
24361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24362 yes:no: )
24363 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
24364 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
24366 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
24367 ac_header_preproc=yes
24369 no:yes:* )
24370 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
24371 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
24373 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
24374 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
24375 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
24376 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
24377 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
24379 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
24380 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
24381 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
24384 esac
24385 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
24386 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_sqlite_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390 ac_cv_header_sqlite_h=$ac_header_preproc
24392 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
24393 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
24396 if test $ac_cv_header_sqlite_h = yes; then
24397 SQLITE_HEADER_FOUND=1
24398 else
24399 SQLITE_HEADER_FOUND=0
24405 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
24406 if test ! -z "${SQLITE_MANDATORY}" ;
24407 then
24408 { echo "$as_me:$LINENO: ***" >&5
24409 echo "$as_me: ***" >&6;}
24410 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
24411 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
24412 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
24413 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
24414 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
24415 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
24416 exit 1
24418 SQLITE_LIB=""
24419 SQLITE_INCLUDE=""
24420 PBX_SQLITE=0
24421 else
24422 PBX_SQLITE=1
24424 cat >>confdefs.h <<_ACEOF
24425 #define HAVE_SQLITE 1
24426 _ACEOF
24429 elif test ! -z "${SQLITE_MANDATORY}";
24430 then
24431 { echo "$as_me:$LINENO: ***" >&5
24432 echo "$as_me: ***" >&6;}
24433 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
24434 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
24435 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24436 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24437 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
24438 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
24439 exit 1
24445 if test "${USE_OPENSSL}" != "no"; then
24446 pbxlibdir=""
24447 if test "x${OPENSSL_DIR}" != "x"; then
24448 if test -d ${OPENSSL_DIR}/lib; then
24449 pbxlibdir="-L${OPENSSL_DIR}/lib"
24450 else
24451 pbxlibdir="-L${OPENSSL_DIR}"
24454 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
24455 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
24456 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24458 else
24459 ac_check_lib_save_LIBS=$LIBS
24460 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
24461 cat >conftest.$ac_ext <<_ACEOF
24462 /* confdefs.h. */
24463 _ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24468 /* Override any GCC internal prototype to avoid an error.
24469 Use char because int might match the return type of a GCC
24470 builtin and then its argument prototype would still apply. */
24471 #ifdef __cplusplus
24472 extern "C"
24473 #endif
24474 char ssl2_connect ();
24476 main ()
24478 return ssl2_connect ();
24480 return 0;
24482 _ACEOF
24483 rm -f conftest.$ac_objext conftest$ac_exeext
24484 if { (ac_try="$ac_link"
24485 case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24488 esac
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490 (eval "$ac_link") 2>conftest.er1
24491 ac_status=$?
24492 grep -v '^ *+' conftest.er1 >conftest.err
24493 rm -f conftest.er1
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } && {
24497 test -z "$ac_c_werror_flag" ||
24498 test ! -s conftest.err
24499 } && test -s conftest$ac_exeext &&
24500 $as_test_x conftest$ac_exeext; then
24501 ac_cv_lib_ssl_ssl2_connect=yes
24502 else
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 ac_cv_lib_ssl_ssl2_connect=no
24509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24510 conftest$ac_exeext conftest.$ac_ext
24511 LIBS=$ac_check_lib_save_LIBS
24513 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
24514 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
24515 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
24516 AST_OPENSSL_FOUND=yes
24517 else
24518 AST_OPENSSL_FOUND=no
24522 if test "${AST_OPENSSL_FOUND}" = "yes"; then
24523 OPENSSL_LIB="-lssl -lcrypto"
24524 OPENSSL_HEADER_FOUND="1"
24525 if test "x${OPENSSL_DIR}" != "x"; then
24526 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
24527 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
24528 if test "xopenssl/ssl.h" != "x" ; then
24529 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
24530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24531 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
24532 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
24533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 ac_res=`eval echo '${'$as_ac_Header'}'`
24537 { echo "$as_me:$LINENO: result: $ac_res" >&5
24538 echo "${ECHO_T}$ac_res" >&6; }
24539 else
24540 # Is the header compilable?
24541 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
24542 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h. */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 $ac_includes_default
24550 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
24551 _ACEOF
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_compile") 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest.$ac_objext; then
24569 ac_header_compiler=yes
24570 else
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_header_compiler=no
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24579 echo "${ECHO_T}$ac_header_compiler" >&6; }
24581 # Is the header present?
24582 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
24583 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
24584 cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h. */
24586 _ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
24591 _ACEOF
24592 if { (ac_try="$ac_cpp conftest.$ac_ext"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } >/dev/null && {
24605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24607 }; then
24608 ac_header_preproc=yes
24609 else
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ac_header_preproc=no
24616 rm -f conftest.err conftest.$ac_ext
24617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24618 echo "${ECHO_T}$ac_header_preproc" >&6; }
24620 # So? What about this header?
24621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24622 yes:no: )
24623 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24624 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24625 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
24626 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
24627 ac_header_preproc=yes
24629 no:yes:* )
24630 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
24631 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
24633 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
24635 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
24637 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
24639 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
24641 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24644 esac
24645 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
24646 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 else
24650 eval "$as_ac_Header=\$ac_header_preproc"
24652 ac_res=`eval echo '${'$as_ac_Header'}'`
24653 { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24658 OPENSSL_HEADER_FOUND=1
24659 else
24660 OPENSSL_HEADER_FOUND=0
24665 else
24666 if test "xopenssl/ssl.h" != "x" ; then
24667 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24668 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24669 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24670 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24674 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24675 else
24676 # Is the header compilable?
24677 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
24678 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
24679 cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h. */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24686 #include <openssl/ssl.h>
24687 _ACEOF
24688 rm -f conftest.$ac_objext
24689 if { (ac_try="$ac_compile"
24690 case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_compile") 2>conftest.er1
24696 ac_status=$?
24697 grep -v '^ *+' conftest.er1 >conftest.err
24698 rm -f conftest.er1
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && {
24702 test -z "$ac_c_werror_flag" ||
24703 test ! -s conftest.err
24704 } && test -s conftest.$ac_objext; then
24705 ac_header_compiler=yes
24706 else
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24710 ac_header_compiler=no
24713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24715 echo "${ECHO_T}$ac_header_compiler" >&6; }
24717 # Is the header present?
24718 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
24719 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
24720 cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h. */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24726 #include <openssl/ssl.h>
24727 _ACEOF
24728 if { (ac_try="$ac_cpp conftest.$ac_ext"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732 esac
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24735 ac_status=$?
24736 grep -v '^ *+' conftest.er1 >conftest.err
24737 rm -f conftest.er1
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } >/dev/null && {
24741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24743 }; then
24744 ac_header_preproc=yes
24745 else
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ac_header_preproc=no
24752 rm -f conftest.err conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24754 echo "${ECHO_T}$ac_header_preproc" >&6; }
24756 # So? What about this header?
24757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24758 yes:no: )
24759 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24760 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24761 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
24762 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
24763 ac_header_preproc=yes
24765 no:yes:* )
24766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
24767 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
24768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
24769 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
24771 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
24773 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
24775 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
24777 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24780 esac
24781 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24782 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24783 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786 ac_cv_header_openssl_ssl_h=$ac_header_preproc
24788 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24789 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24792 if test $ac_cv_header_openssl_ssl_h = yes; then
24793 OPENSSL_HEADER_FOUND=1
24794 else
24795 OPENSSL_HEADER_FOUND=0
24801 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
24802 if test ! -z "${OPENSSL_MANDATORY}" ;
24803 then
24804 { echo "$as_me:$LINENO: ***" >&5
24805 echo "$as_me: ***" >&6;}
24806 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
24807 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
24808 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
24809 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
24810 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
24811 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
24812 exit 1
24814 OPENSSL_LIB=""
24815 OPENSSL_INCLUDE=""
24816 PBX_OPENSSL=0
24817 else
24818 PBX_OPENSSL=1
24820 cat >>confdefs.h <<_ACEOF
24821 #define HAVE_OPENSSL 1
24822 _ACEOF
24825 elif test ! -z "${OPENSSL_MANDATORY}";
24826 then
24827 { echo "$as_me:$LINENO: ***" >&5
24828 echo "$as_me: ***" >&6;}
24829 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
24830 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
24831 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24832 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24833 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
24834 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
24835 exit 1
24841 if test "${USE_FREETDS}" != "no"; then
24842 pbxlibdir=""
24843 if test "x${FREETDS_DIR}" != "x"; then
24844 if test -d ${FREETDS_DIR}/lib; then
24845 pbxlibdir="-L${FREETDS_DIR}/lib"
24846 else
24847 pbxlibdir="-L${FREETDS_DIR}"
24850 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
24851 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
24852 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855 ac_check_lib_save_LIBS=$LIBS
24856 LIBS="-ltds ${pbxlibdir} $LIBS"
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h. */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24864 /* Override any GCC internal prototype to avoid an error.
24865 Use char because int might match the return type of a GCC
24866 builtin and then its argument prototype would still apply. */
24867 #ifdef __cplusplus
24868 extern "C"
24869 #endif
24870 char tds_version ();
24872 main ()
24874 return tds_version ();
24876 return 0;
24878 _ACEOF
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (ac_try="$ac_link"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_link") 2>conftest.er1
24887 ac_status=$?
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && {
24893 test -z "$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 } && test -s conftest$ac_exeext &&
24896 $as_test_x conftest$ac_exeext; then
24897 ac_cv_lib_tds_tds_version=yes
24898 else
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 ac_cv_lib_tds_tds_version=no
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906 conftest$ac_exeext conftest.$ac_ext
24907 LIBS=$ac_check_lib_save_LIBS
24909 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
24910 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
24911 if test $ac_cv_lib_tds_tds_version = yes; then
24912 AST_FREETDS_FOUND=yes
24913 else
24914 AST_FREETDS_FOUND=no
24918 if test "${AST_FREETDS_FOUND}" = "yes"; then
24919 FREETDS_LIB="-ltds "
24920 FREETDS_HEADER_FOUND="1"
24921 if test "x${FREETDS_DIR}" != "x"; then
24922 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
24923 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
24924 if test "xtds.h" != "x" ; then
24925 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
24926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24927 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24928 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 ac_res=`eval echo '${'$as_ac_Header'}'`
24933 { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24935 else
24936 # Is the header compilable?
24937 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
24938 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
24939 cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h. */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 $ac_includes_default
24946 #include <${FREETDS_DIR}/include/tds.h>
24947 _ACEOF
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24965 ac_header_compiler=yes
24966 else
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_header_compiler=no
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24975 echo "${ECHO_T}$ac_header_compiler" >&6; }
24977 # Is the header present?
24978 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
24979 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h. */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 #include <${FREETDS_DIR}/include/tds.h>
24987 _ACEOF
24988 if { (ac_try="$ac_cpp conftest.$ac_ext"
24989 case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24992 esac
24993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24995 ac_status=$?
24996 grep -v '^ *+' conftest.er1 >conftest.err
24997 rm -f conftest.er1
24998 cat conftest.err >&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } >/dev/null && {
25001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25002 test ! -s conftest.err
25003 }; then
25004 ac_header_preproc=yes
25005 else
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25009 ac_header_preproc=no
25012 rm -f conftest.err conftest.$ac_ext
25013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25014 echo "${ECHO_T}$ac_header_preproc" >&6; }
25016 # So? What about this header?
25017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25018 yes:no: )
25019 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25020 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
25022 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
25023 ac_header_preproc=yes
25025 no:yes:* )
25026 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
25027 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
25028 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
25029 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
25030 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
25031 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
25032 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
25033 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
25035 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
25037 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
25040 esac
25041 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25042 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25045 else
25046 eval "$as_ac_Header=\$ac_header_preproc"
25048 ac_res=`eval echo '${'$as_ac_Header'}'`
25049 { echo "$as_me:$LINENO: result: $ac_res" >&5
25050 echo "${ECHO_T}$ac_res" >&6; }
25053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25054 FREETDS_HEADER_FOUND=1
25055 else
25056 FREETDS_HEADER_FOUND=0
25061 else
25062 if test "xtds.h" != "x" ; then
25063 if test "${ac_cv_header_tds_h+set}" = set; then
25064 { echo "$as_me:$LINENO: checking for tds.h" >&5
25065 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25066 if test "${ac_cv_header_tds_h+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25070 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25071 else
25072 # Is the header compilable?
25073 { echo "$as_me:$LINENO: checking tds.h usability" >&5
25074 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
25075 cat >conftest.$ac_ext <<_ACEOF
25076 /* confdefs.h. */
25077 _ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25081 $ac_includes_default
25082 #include <tds.h>
25083 _ACEOF
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25089 esac
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091 (eval "$ac_compile") 2>conftest.er1
25092 ac_status=$?
25093 grep -v '^ *+' conftest.er1 >conftest.err
25094 rm -f conftest.er1
25095 cat conftest.err >&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } && {
25098 test -z "$ac_c_werror_flag" ||
25099 test ! -s conftest.err
25100 } && test -s conftest.$ac_objext; then
25101 ac_header_compiler=yes
25102 else
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 ac_header_compiler=no
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25111 echo "${ECHO_T}$ac_header_compiler" >&6; }
25113 # Is the header present?
25114 { echo "$as_me:$LINENO: checking tds.h presence" >&5
25115 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
25116 cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h. */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 #include <tds.h>
25123 _ACEOF
25124 if { (ac_try="$ac_cpp conftest.$ac_ext"
25125 case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25131 ac_status=$?
25132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } >/dev/null && {
25137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25138 test ! -s conftest.err
25139 }; then
25140 ac_header_preproc=yes
25141 else
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25145 ac_header_preproc=no
25148 rm -f conftest.err conftest.$ac_ext
25149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25150 echo "${ECHO_T}$ac_header_preproc" >&6; }
25152 # So? What about this header?
25153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25154 yes:no: )
25155 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25156 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25157 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
25158 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
25159 ac_header_preproc=yes
25161 no:yes:* )
25162 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
25163 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
25164 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
25165 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
25167 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
25169 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25170 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
25171 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
25173 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
25176 esac
25177 { echo "$as_me:$LINENO: checking for tds.h" >&5
25178 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25179 if test "${ac_cv_header_tds_h+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182 ac_cv_header_tds_h=$ac_header_preproc
25184 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25185 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25188 if test $ac_cv_header_tds_h = yes; then
25189 FREETDS_HEADER_FOUND=1
25190 else
25191 FREETDS_HEADER_FOUND=0
25197 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
25198 if test ! -z "${FREETDS_MANDATORY}" ;
25199 then
25200 { echo "$as_me:$LINENO: ***" >&5
25201 echo "$as_me: ***" >&6;}
25202 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
25203 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
25204 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
25205 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
25206 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
25207 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
25208 exit 1
25210 FREETDS_LIB=""
25211 FREETDS_INCLUDE=""
25212 PBX_FREETDS=0
25213 else
25214 PBX_FREETDS=1
25216 cat >>confdefs.h <<_ACEOF
25217 #define HAVE_FREETDS 1
25218 _ACEOF
25221 elif test ! -z "${FREETDS_MANDATORY}";
25222 then
25223 { echo "$as_me:$LINENO: ***" >&5
25224 echo "$as_me: ***" >&6;}
25225 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
25226 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
25227 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25228 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25229 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
25230 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
25231 exit 1
25235 if test "${PBX_FREETDS}" != "0";
25236 then
25237 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
25238 *0.64*)
25239 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
25241 *0.63*)
25242 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
25244 *0.62*)
25245 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
25248 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
25250 esac
25254 if test "${USE_TERMCAP}" != "no"; then
25255 pbxlibdir=""
25256 if test "x${TERMCAP_DIR}" != "x"; then
25257 if test -d ${TERMCAP_DIR}/lib; then
25258 pbxlibdir="-L${TERMCAP_DIR}/lib"
25259 else
25260 pbxlibdir="-L${TERMCAP_DIR}"
25263 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25264 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
25265 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25266 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 else
25268 ac_check_lib_save_LIBS=$LIBS
25269 LIBS="-ltermcap ${pbxlibdir} $LIBS"
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25277 /* Override any GCC internal prototype to avoid an error.
25278 Use char because int might match the return type of a GCC
25279 builtin and then its argument prototype would still apply. */
25280 #ifdef __cplusplus
25281 extern "C"
25282 #endif
25283 char tgetent ();
25285 main ()
25287 return tgetent ();
25289 return 0;
25291 _ACEOF
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_link") 2>conftest.er1
25300 ac_status=$?
25301 grep -v '^ *+' conftest.er1 >conftest.err
25302 rm -f conftest.er1
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } && {
25306 test -z "$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25308 } && test -s conftest$ac_exeext &&
25309 $as_test_x conftest$ac_exeext; then
25310 ac_cv_lib_termcap_tgetent=yes
25311 else
25312 echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25315 ac_cv_lib_termcap_tgetent=no
25318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25319 conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25322 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25323 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
25324 if test $ac_cv_lib_termcap_tgetent = yes; then
25325 AST_TERMCAP_FOUND=yes
25326 else
25327 AST_TERMCAP_FOUND=no
25331 if test "${AST_TERMCAP_FOUND}" = "yes"; then
25332 TERMCAP_LIB="-ltermcap "
25333 TERMCAP_HEADER_FOUND="1"
25334 if test "x${TERMCAP_DIR}" != "x"; then
25335 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
25336 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
25337 if test "x" != "x" ; then
25338 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
25339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25340 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
25341 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
25342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 ac_res=`eval echo '${'$as_ac_Header'}'`
25346 { echo "$as_me:$LINENO: result: $ac_res" >&5
25347 echo "${ECHO_T}$ac_res" >&6; }
25348 else
25349 # Is the header compilable?
25350 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
25351 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h. */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 $ac_includes_default
25359 #include <${TERMCAP_DIR}/include/>
25360 _ACEOF
25361 rm -f conftest.$ac_objext
25362 if { (ac_try="$ac_compile"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25366 esac
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 ac_header_compiler=yes
25379 else
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 ac_header_compiler=no
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25388 echo "${ECHO_T}$ac_header_compiler" >&6; }
25390 # Is the header present?
25391 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
25392 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
25393 cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h. */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 #include <${TERMCAP_DIR}/include/>
25400 _ACEOF
25401 if { (ac_try="$ac_cpp conftest.$ac_ext"
25402 case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25408 ac_status=$?
25409 grep -v '^ *+' conftest.er1 >conftest.err
25410 rm -f conftest.er1
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } >/dev/null && {
25414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25415 test ! -s conftest.err
25416 }; then
25417 ac_header_preproc=yes
25418 else
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25422 ac_header_preproc=no
25425 rm -f conftest.err conftest.$ac_ext
25426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25427 echo "${ECHO_T}$ac_header_preproc" >&6; }
25429 # So? What about this header?
25430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25431 yes:no: )
25432 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25433 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25434 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
25435 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
25436 ac_header_preproc=yes
25438 no:yes:* )
25439 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
25440 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
25442 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
25444 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
25445 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25446 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
25448 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
25449 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
25450 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25453 esac
25454 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
25455 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
25456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458 else
25459 eval "$as_ac_Header=\$ac_header_preproc"
25461 ac_res=`eval echo '${'$as_ac_Header'}'`
25462 { echo "$as_me:$LINENO: result: $ac_res" >&5
25463 echo "${ECHO_T}$ac_res" >&6; }
25466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25467 TERMCAP_HEADER_FOUND=1
25468 else
25469 TERMCAP_HEADER_FOUND=0
25474 else
25475 if test "x" != "x" ; then
25476 if test "${ac_cv_header_+set}" = set; then
25477 { echo "$as_me:$LINENO: checking for " >&5
25478 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25479 if test "${ac_cv_header_+set}" = set; then
25480 echo $ECHO_N "(cached) $ECHO_C" >&6
25482 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25483 echo "${ECHO_T}$ac_cv_header_" >&6; }
25484 else
25485 # Is the header compilable?
25486 { echo "$as_me:$LINENO: checking usability" >&5
25487 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25488 cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h. */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 $ac_includes_default
25495 #include <>
25496 _ACEOF
25497 rm -f conftest.$ac_objext
25498 if { (ac_try="$ac_compile"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_compile") 2>conftest.er1
25505 ac_status=$?
25506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest.$ac_objext; then
25514 ac_header_compiler=yes
25515 else
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25519 ac_header_compiler=no
25522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25524 echo "${ECHO_T}$ac_header_compiler" >&6; }
25526 # Is the header present?
25527 { echo "$as_me:$LINENO: checking presence" >&5
25528 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25529 cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h. */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 #include <>
25536 _ACEOF
25537 if { (ac_try="$ac_cpp conftest.$ac_ext"
25538 case "(($ac_try" in
25539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540 *) ac_try_echo=$ac_try;;
25541 esac
25542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25544 ac_status=$?
25545 grep -v '^ *+' conftest.er1 >conftest.err
25546 rm -f conftest.er1
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } >/dev/null && {
25550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25551 test ! -s conftest.err
25552 }; then
25553 ac_header_preproc=yes
25554 else
25555 echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25558 ac_header_preproc=no
25561 rm -f conftest.err conftest.$ac_ext
25562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25563 echo "${ECHO_T}$ac_header_preproc" >&6; }
25565 # So? What about this header?
25566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25567 yes:no: )
25568 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25569 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25570 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25571 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25572 ac_header_preproc=yes
25574 no:yes:* )
25575 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25576 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25577 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25578 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25579 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25580 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25581 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25582 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25583 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25584 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25586 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25589 esac
25590 { echo "$as_me:$LINENO: checking for " >&5
25591 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25592 if test "${ac_cv_header_+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595 ac_cv_header_=$ac_header_preproc
25597 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25598 echo "${ECHO_T}$ac_cv_header_" >&6; }
25601 if test $ac_cv_header_ = yes; then
25602 TERMCAP_HEADER_FOUND=1
25603 else
25604 TERMCAP_HEADER_FOUND=0
25610 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
25611 if test ! -z "${TERMCAP_MANDATORY}" ;
25612 then
25613 { echo "$as_me:$LINENO: ***" >&5
25614 echo "$as_me: ***" >&6;}
25615 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
25616 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
25617 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
25618 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
25619 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
25620 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
25621 exit 1
25623 TERMCAP_LIB=""
25624 TERMCAP_INCLUDE=""
25625 PBX_TERMCAP=0
25626 else
25627 PBX_TERMCAP=1
25629 cat >>confdefs.h <<_ACEOF
25630 #define HAVE_TERMCAP 1
25631 _ACEOF
25634 elif test ! -z "${TERMCAP_MANDATORY}";
25635 then
25636 { echo "$as_me:$LINENO: ***" >&5
25637 echo "$as_me: ***" >&6;}
25638 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
25639 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
25640 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25641 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25642 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
25643 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
25644 exit 1
25650 if test "${USE_TINFO}" != "no"; then
25651 pbxlibdir=""
25652 if test "x${TINFO_DIR}" != "x"; then
25653 if test -d ${TINFO_DIR}/lib; then
25654 pbxlibdir="-L${TINFO_DIR}/lib"
25655 else
25656 pbxlibdir="-L${TINFO_DIR}"
25659 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
25660 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
25661 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664 ac_check_lib_save_LIBS=$LIBS
25665 LIBS="-ltinfo ${pbxlibdir} $LIBS"
25666 cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h. */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25673 /* Override any GCC internal prototype to avoid an error.
25674 Use char because int might match the return type of a GCC
25675 builtin and then its argument prototype would still apply. */
25676 #ifdef __cplusplus
25677 extern "C"
25678 #endif
25679 char tgetent ();
25681 main ()
25683 return tgetent ();
25685 return 0;
25687 _ACEOF
25688 rm -f conftest.$ac_objext conftest$ac_exeext
25689 if { (ac_try="$ac_link"
25690 case "(($ac_try" in
25691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692 *) ac_try_echo=$ac_try;;
25693 esac
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695 (eval "$ac_link") 2>conftest.er1
25696 ac_status=$?
25697 grep -v '^ *+' conftest.er1 >conftest.err
25698 rm -f conftest.er1
25699 cat conftest.err >&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); } && {
25702 test -z "$ac_c_werror_flag" ||
25703 test ! -s conftest.err
25704 } && test -s conftest$ac_exeext &&
25705 $as_test_x conftest$ac_exeext; then
25706 ac_cv_lib_tinfo_tgetent=yes
25707 else
25708 echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25711 ac_cv_lib_tinfo_tgetent=no
25714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25715 conftest$ac_exeext conftest.$ac_ext
25716 LIBS=$ac_check_lib_save_LIBS
25718 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25719 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
25720 if test $ac_cv_lib_tinfo_tgetent = yes; then
25721 AST_TINFO_FOUND=yes
25722 else
25723 AST_TINFO_FOUND=no
25727 if test "${AST_TINFO_FOUND}" = "yes"; then
25728 TINFO_LIB="-ltinfo "
25729 TINFO_HEADER_FOUND="1"
25730 if test "x${TINFO_DIR}" != "x"; then
25731 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
25732 TINFO_INCLUDE="-I${TINFO_DIR}/include"
25733 if test "x" != "x" ; then
25734 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
25735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25736 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25737 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25741 ac_res=`eval echo '${'$as_ac_Header'}'`
25742 { echo "$as_me:$LINENO: result: $ac_res" >&5
25743 echo "${ECHO_T}$ac_res" >&6; }
25744 else
25745 # Is the header compilable?
25746 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
25747 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h. */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25754 $ac_includes_default
25755 #include <${TINFO_DIR}/include/>
25756 _ACEOF
25757 rm -f conftest.$ac_objext
25758 if { (ac_try="$ac_compile"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_compile") 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest.$ac_objext; then
25774 ac_header_compiler=yes
25775 else
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_header_compiler=no
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25784 echo "${ECHO_T}$ac_header_compiler" >&6; }
25786 # Is the header present?
25787 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
25788 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 #include <${TINFO_DIR}/include/>
25796 _ACEOF
25797 if { (ac_try="$ac_cpp conftest.$ac_ext"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } >/dev/null && {
25810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25812 }; then
25813 ac_header_preproc=yes
25814 else
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_header_preproc=no
25821 rm -f conftest.err conftest.$ac_ext
25822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25823 echo "${ECHO_T}$ac_header_preproc" >&6; }
25825 # So? What about this header?
25826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25827 yes:no: )
25828 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25829 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
25831 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
25832 ac_header_preproc=yes
25834 no:yes:* )
25835 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
25836 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
25838 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
25840 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25842 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
25844 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
25846 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25849 esac
25850 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25851 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855 eval "$as_ac_Header=\$ac_header_preproc"
25857 ac_res=`eval echo '${'$as_ac_Header'}'`
25858 { echo "$as_me:$LINENO: result: $ac_res" >&5
25859 echo "${ECHO_T}$ac_res" >&6; }
25862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25863 TINFO_HEADER_FOUND=1
25864 else
25865 TINFO_HEADER_FOUND=0
25870 else
25871 if test "x" != "x" ; then
25872 if test "${ac_cv_header_+set}" = set; then
25873 { echo "$as_me:$LINENO: checking for " >&5
25874 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25875 if test "${ac_cv_header_+set}" = set; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25878 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25879 echo "${ECHO_T}$ac_cv_header_" >&6; }
25880 else
25881 # Is the header compilable?
25882 { echo "$as_me:$LINENO: checking usability" >&5
25883 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25884 cat >conftest.$ac_ext <<_ACEOF
25885 /* confdefs.h. */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25890 $ac_includes_default
25891 #include <>
25892 _ACEOF
25893 rm -f conftest.$ac_objext
25894 if { (ac_try="$ac_compile"
25895 case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898 esac
25899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900 (eval "$ac_compile") 2>conftest.er1
25901 ac_status=$?
25902 grep -v '^ *+' conftest.er1 >conftest.err
25903 rm -f conftest.er1
25904 cat conftest.err >&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } && {
25907 test -z "$ac_c_werror_flag" ||
25908 test ! -s conftest.err
25909 } && test -s conftest.$ac_objext; then
25910 ac_header_compiler=yes
25911 else
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 ac_header_compiler=no
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920 echo "${ECHO_T}$ac_header_compiler" >&6; }
25922 # Is the header present?
25923 { echo "$as_me:$LINENO: checking presence" >&5
25924 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h. */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 #include <>
25932 _ACEOF
25933 if { (ac_try="$ac_cpp conftest.$ac_ext"
25934 case "(($ac_try" in
25935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 *) ac_try_echo=$ac_try;;
25937 esac
25938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25940 ac_status=$?
25941 grep -v '^ *+' conftest.er1 >conftest.err
25942 rm -f conftest.er1
25943 cat conftest.err >&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } >/dev/null && {
25946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25947 test ! -s conftest.err
25948 }; then
25949 ac_header_preproc=yes
25950 else
25951 echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25954 ac_header_preproc=no
25957 rm -f conftest.err conftest.$ac_ext
25958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25959 echo "${ECHO_T}$ac_header_preproc" >&6; }
25961 # So? What about this header?
25962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25963 yes:no: )
25964 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25965 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25967 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25968 ac_header_preproc=yes
25970 no:yes:* )
25971 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25972 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25973 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25974 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25976 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25978 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25980 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25982 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25985 esac
25986 { echo "$as_me:$LINENO: checking for " >&5
25987 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25988 if test "${ac_cv_header_+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991 ac_cv_header_=$ac_header_preproc
25993 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25994 echo "${ECHO_T}$ac_cv_header_" >&6; }
25997 if test $ac_cv_header_ = yes; then
25998 TINFO_HEADER_FOUND=1
25999 else
26000 TINFO_HEADER_FOUND=0
26006 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
26007 if test ! -z "${TINFO_MANDATORY}" ;
26008 then
26009 { echo "$as_me:$LINENO: ***" >&5
26010 echo "$as_me: ***" >&6;}
26011 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
26012 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
26013 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
26014 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
26015 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26016 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26017 exit 1
26019 TINFO_LIB=""
26020 TINFO_INCLUDE=""
26021 PBX_TINFO=0
26022 else
26023 PBX_TINFO=1
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_TINFO 1
26027 _ACEOF
26030 elif test ! -z "${TINFO_MANDATORY}";
26031 then
26032 { echo "$as_me:$LINENO: ***" >&5
26033 echo "$as_me: ***" >&6;}
26034 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
26035 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
26036 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26037 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26038 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26039 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26040 exit 1
26045 if test "${host_os}" != "linux-gnu" ; then
26046 tonezone_extra="-lm"
26050 if test "${USE_TONEZONE}" != "no"; then
26051 pbxlibdir=""
26052 if test "x${TONEZONE_DIR}" != "x"; then
26053 if test -d ${TONEZONE_DIR}/lib; then
26054 pbxlibdir="-L${TONEZONE_DIR}/lib"
26055 else
26056 pbxlibdir="-L${TONEZONE_DIR}"
26059 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
26060 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
26061 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064 ac_check_lib_save_LIBS=$LIBS
26065 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
26066 cat >conftest.$ac_ext <<_ACEOF
26067 /* confdefs.h. */
26068 _ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26076 #ifdef __cplusplus
26077 extern "C"
26078 #endif
26079 char tone_zone_find ();
26081 main ()
26083 return tone_zone_find ();
26085 return 0;
26087 _ACEOF
26088 rm -f conftest.$ac_objext conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26093 esac
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095 (eval "$ac_link") 2>conftest.er1
26096 ac_status=$?
26097 grep -v '^ *+' conftest.er1 >conftest.err
26098 rm -f conftest.er1
26099 cat conftest.err >&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } && {
26102 test -z "$ac_c_werror_flag" ||
26103 test ! -s conftest.err
26104 } && test -s conftest$ac_exeext &&
26105 $as_test_x conftest$ac_exeext; then
26106 ac_cv_lib_tonezone_tone_zone_find=yes
26107 else
26108 echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26111 ac_cv_lib_tonezone_tone_zone_find=no
26114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26115 conftest$ac_exeext conftest.$ac_ext
26116 LIBS=$ac_check_lib_save_LIBS
26118 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
26119 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
26120 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
26121 AST_TONEZONE_FOUND=yes
26122 else
26123 AST_TONEZONE_FOUND=no
26127 if test "${AST_TONEZONE_FOUND}" = "yes"; then
26128 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
26129 TONEZONE_HEADER_FOUND="1"
26130 if test "x${TONEZONE_DIR}" != "x"; then
26131 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
26132 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
26133 if test "xzaptel/tonezone.h" != "x" ; then
26134 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
26135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26136 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
26137 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
26138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 ac_res=`eval echo '${'$as_ac_Header'}'`
26142 { echo "$as_me:$LINENO: result: $ac_res" >&5
26143 echo "${ECHO_T}$ac_res" >&6; }
26144 else
26145 # Is the header compilable?
26146 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
26147 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
26148 cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h. */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 $ac_includes_default
26155 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
26156 _ACEOF
26157 rm -f conftest.$ac_objext
26158 if { (ac_try="$ac_compile"
26159 case "(($ac_try" in
26160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161 *) ac_try_echo=$ac_try;;
26162 esac
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_compile") 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } && {
26171 test -z "$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26173 } && test -s conftest.$ac_objext; then
26174 ac_header_compiler=yes
26175 else
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26179 ac_header_compiler=no
26182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26184 echo "${ECHO_T}$ac_header_compiler" >&6; }
26186 # Is the header present?
26187 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
26188 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
26189 cat >conftest.$ac_ext <<_ACEOF
26190 /* confdefs.h. */
26191 _ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h. */
26195 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
26196 _ACEOF
26197 if { (ac_try="$ac_cpp conftest.$ac_ext"
26198 case "(($ac_try" in
26199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26200 *) ac_try_echo=$ac_try;;
26201 esac
26202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26204 ac_status=$?
26205 grep -v '^ *+' conftest.er1 >conftest.err
26206 rm -f conftest.er1
26207 cat conftest.err >&5
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); } >/dev/null && {
26210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26211 test ! -s conftest.err
26212 }; then
26213 ac_header_preproc=yes
26214 else
26215 echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26218 ac_header_preproc=no
26221 rm -f conftest.err conftest.$ac_ext
26222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26223 echo "${ECHO_T}$ac_header_preproc" >&6; }
26225 # So? What about this header?
26226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26227 yes:no: )
26228 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
26229 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
26231 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
26232 ac_header_preproc=yes
26234 no:yes:* )
26235 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
26236 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
26238 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
26240 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
26242 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
26244 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
26246 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
26249 esac
26250 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
26251 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
26252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
26254 else
26255 eval "$as_ac_Header=\$ac_header_preproc"
26257 ac_res=`eval echo '${'$as_ac_Header'}'`
26258 { echo "$as_me:$LINENO: result: $ac_res" >&5
26259 echo "${ECHO_T}$ac_res" >&6; }
26262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26263 TONEZONE_HEADER_FOUND=1
26264 else
26265 TONEZONE_HEADER_FOUND=0
26270 else
26271 if test "xzaptel/tonezone.h" != "x" ; then
26272 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26273 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
26274 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
26275 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26278 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
26279 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
26280 else
26281 # Is the header compilable?
26282 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
26283 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
26284 cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h. */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26290 $ac_includes_default
26291 #include <zaptel/tonezone.h>
26292 _ACEOF
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26301 ac_status=$?
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_header_compiler=yes
26311 else
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_header_compiler=no
26318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26320 echo "${ECHO_T}$ac_header_compiler" >&6; }
26322 # Is the header present?
26323 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
26324 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
26325 cat >conftest.$ac_ext <<_ACEOF
26326 /* confdefs.h. */
26327 _ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h. */
26331 #include <zaptel/tonezone.h>
26332 _ACEOF
26333 if { (ac_try="$ac_cpp conftest.$ac_ext"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26337 esac
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26340 ac_status=$?
26341 grep -v '^ *+' conftest.er1 >conftest.err
26342 rm -f conftest.er1
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } >/dev/null && {
26346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 }; then
26349 ac_header_preproc=yes
26350 else
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_header_preproc=no
26357 rm -f conftest.err conftest.$ac_ext
26358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6; }
26361 # So? What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26363 yes:no: )
26364 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
26368 ac_header_preproc=yes
26370 no:yes:* )
26371 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
26385 esac
26386 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
26387 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
26388 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
26393 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
26394 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
26397 if test $ac_cv_header_zaptel_tonezone_h = yes; then
26398 TONEZONE_HEADER_FOUND=1
26399 else
26400 TONEZONE_HEADER_FOUND=0
26406 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
26407 if test ! -z "${TONEZONE_MANDATORY}" ;
26408 then
26409 { echo "$as_me:$LINENO: ***" >&5
26410 echo "$as_me: ***" >&6;}
26411 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
26412 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
26413 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
26414 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
26415 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
26416 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
26417 exit 1
26419 TONEZONE_LIB=""
26420 TONEZONE_INCLUDE=""
26421 PBX_TONEZONE=0
26422 else
26423 PBX_TONEZONE=1
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_TONEZONE 1
26427 _ACEOF
26430 elif test ! -z "${TONEZONE_MANDATORY}";
26431 then
26432 { echo "$as_me:$LINENO: ***" >&5
26433 echo "$as_me: ***" >&6;}
26434 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
26435 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
26436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26438 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
26439 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
26440 exit 1
26446 if test "${USE_VORBIS}" != "no"; then
26447 pbxlibdir=""
26448 if test "x${VORBIS_DIR}" != "x"; then
26449 if test -d ${VORBIS_DIR}/lib; then
26450 pbxlibdir="-L${VORBIS_DIR}/lib"
26451 else
26452 pbxlibdir="-L${VORBIS_DIR}"
26455 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
26456 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
26457 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26459 else
26460 ac_check_lib_save_LIBS=$LIBS
26461 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
26462 cat >conftest.$ac_ext <<_ACEOF
26463 /* confdefs.h. */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26469 /* Override any GCC internal prototype to avoid an error.
26470 Use char because int might match the return type of a GCC
26471 builtin and then its argument prototype would still apply. */
26472 #ifdef __cplusplus
26473 extern "C"
26474 #endif
26475 char vorbis_info_init ();
26477 main ()
26479 return vorbis_info_init ();
26481 return 0;
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26492 ac_status=$?
26493 grep -v '^ *+' conftest.er1 >conftest.err
26494 rm -f conftest.er1
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 ac_cv_lib_vorbis_vorbis_info_init=yes
26503 else
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_cv_lib_vorbis_vorbis_info_init=no
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26512 LIBS=$ac_check_lib_save_LIBS
26514 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
26515 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
26516 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
26517 AST_VORBIS_FOUND=yes
26518 else
26519 AST_VORBIS_FOUND=no
26523 if test "${AST_VORBIS_FOUND}" = "yes"; then
26524 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
26525 VORBIS_HEADER_FOUND="1"
26526 if test "x${VORBIS_DIR}" != "x"; then
26527 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
26528 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
26529 if test "xvorbis/codec.h" != "x" ; then
26530 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
26531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26532 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26533 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 ac_res=`eval echo '${'$as_ac_Header'}'`
26538 { echo "$as_me:$LINENO: result: $ac_res" >&5
26539 echo "${ECHO_T}$ac_res" >&6; }
26540 else
26541 # Is the header compilable?
26542 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
26543 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
26544 cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h. */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 $ac_includes_default
26551 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26552 _ACEOF
26553 rm -f conftest.$ac_objext
26554 if { (ac_try="$ac_compile"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26558 esac
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560 (eval "$ac_compile") 2>conftest.er1
26561 ac_status=$?
26562 grep -v '^ *+' conftest.er1 >conftest.err
26563 rm -f conftest.er1
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } && {
26567 test -z "$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26569 } && test -s conftest.$ac_objext; then
26570 ac_header_compiler=yes
26571 else
26572 echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26575 ac_header_compiler=no
26578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26580 echo "${ECHO_T}$ac_header_compiler" >&6; }
26582 # Is the header present?
26583 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
26584 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
26585 cat >conftest.$ac_ext <<_ACEOF
26586 /* confdefs.h. */
26587 _ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26591 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26592 _ACEOF
26593 if { (ac_try="$ac_cpp conftest.$ac_ext"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26600 ac_status=$?
26601 grep -v '^ *+' conftest.er1 >conftest.err
26602 rm -f conftest.er1
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } >/dev/null && {
26606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26607 test ! -s conftest.err
26608 }; then
26609 ac_header_preproc=yes
26610 else
26611 echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26614 ac_header_preproc=no
26617 rm -f conftest.err conftest.$ac_ext
26618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26619 echo "${ECHO_T}$ac_header_preproc" >&6; }
26621 # So? What about this header?
26622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26623 yes:no: )
26624 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26625 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
26627 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
26628 ac_header_preproc=yes
26630 no:yes:* )
26631 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
26632 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
26634 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
26636 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26638 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
26640 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
26642 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26645 esac
26646 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26647 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651 eval "$as_ac_Header=\$ac_header_preproc"
26653 ac_res=`eval echo '${'$as_ac_Header'}'`
26654 { echo "$as_me:$LINENO: result: $ac_res" >&5
26655 echo "${ECHO_T}$ac_res" >&6; }
26658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26659 VORBIS_HEADER_FOUND=1
26660 else
26661 VORBIS_HEADER_FOUND=0
26666 else
26667 if test "xvorbis/codec.h" != "x" ; then
26668 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26669 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26670 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26671 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26675 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26676 else
26677 # Is the header compilable?
26678 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
26679 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
26680 cat >conftest.$ac_ext <<_ACEOF
26681 /* confdefs.h. */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 $ac_includes_default
26687 #include <vorbis/codec.h>
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (ac_try="$ac_compile"
26691 case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26694 esac
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696 (eval "$ac_compile") 2>conftest.er1
26697 ac_status=$?
26698 grep -v '^ *+' conftest.er1 >conftest.err
26699 rm -f conftest.er1
26700 cat conftest.err >&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); } && {
26703 test -z "$ac_c_werror_flag" ||
26704 test ! -s conftest.err
26705 } && test -s conftest.$ac_objext; then
26706 ac_header_compiler=yes
26707 else
26708 echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26711 ac_header_compiler=no
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26716 echo "${ECHO_T}$ac_header_compiler" >&6; }
26718 # Is the header present?
26719 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
26720 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
26721 cat >conftest.$ac_ext <<_ACEOF
26722 /* confdefs.h. */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 #include <vorbis/codec.h>
26728 _ACEOF
26729 if { (ac_try="$ac_cpp conftest.$ac_ext"
26730 case "(($ac_try" in
26731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26736 ac_status=$?
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } >/dev/null && {
26742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26743 test ! -s conftest.err
26744 }; then
26745 ac_header_preproc=yes
26746 else
26747 echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26750 ac_header_preproc=no
26753 rm -f conftest.err conftest.$ac_ext
26754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26755 echo "${ECHO_T}$ac_header_preproc" >&6; }
26757 # So? What about this header?
26758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26759 yes:no: )
26760 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26761 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
26763 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
26764 ac_header_preproc=yes
26766 no:yes:* )
26767 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
26768 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
26770 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
26772 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26774 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
26776 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26777 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
26778 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26781 esac
26782 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26783 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26784 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26786 else
26787 ac_cv_header_vorbis_codec_h=$ac_header_preproc
26789 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26790 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26793 if test $ac_cv_header_vorbis_codec_h = yes; then
26794 VORBIS_HEADER_FOUND=1
26795 else
26796 VORBIS_HEADER_FOUND=0
26802 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
26803 if test ! -z "${VORBIS_MANDATORY}" ;
26804 then
26805 { echo "$as_me:$LINENO: ***" >&5
26806 echo "$as_me: ***" >&6;}
26807 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
26808 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
26809 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
26810 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
26811 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
26812 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
26813 exit 1
26815 VORBIS_LIB=""
26816 VORBIS_INCLUDE=""
26817 PBX_VORBIS=0
26818 else
26819 PBX_VORBIS=1
26821 cat >>confdefs.h <<_ACEOF
26822 #define HAVE_VORBIS 1
26823 _ACEOF
26826 elif test ! -z "${VORBIS_MANDATORY}";
26827 then
26828 { echo "$as_me:$LINENO: ***" >&5
26829 echo "$as_me: ***" >&6;}
26830 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
26831 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
26832 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26833 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26834 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
26835 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
26836 exit 1
26841 ac_ext=cpp
26842 ac_cpp='$CXXCPP $CPPFLAGS'
26843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26848 if test "${USE_VPB}" != "no"; then
26849 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
26850 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
26851 saved_libs="${LIBS}"
26852 saved_cppflags="${CPPFLAGS}"
26853 if test "x${VPB_DIR}" != "x"; then
26854 if test -d ${VPB_DIR}/lib; then
26855 vpblibdir=${VPB_DIR}/lib
26856 else
26857 vpblibdir=${VPB_DIR}
26859 LIBS="${LIBS} -L${vpblibdir}"
26860 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
26862 LIBS="${LIBS} -lvpb -lpthread"
26863 cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h. */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 #include <vpbapi.h>
26872 main ()
26874 int q = vpb_open(0,0);
26876 return 0;
26879 _ACEOF
26880 rm -f conftest.$ac_objext conftest$ac_exeext
26881 if { (ac_try="$ac_link"
26882 case "(($ac_try" in
26883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26884 *) ac_try_echo=$ac_try;;
26885 esac
26886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887 (eval "$ac_link") 2>conftest.er1
26888 ac_status=$?
26889 grep -v '^ *+' conftest.er1 >conftest.err
26890 rm -f conftest.er1
26891 cat conftest.err >&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } && {
26894 test -z "$ac_cxx_werror_flag" ||
26895 test ! -s conftest.err
26896 } && test -s conftest$ac_exeext &&
26897 $as_test_x conftest$ac_exeext; then
26898 { echo "$as_me:$LINENO: result: yes" >&5
26899 echo "${ECHO_T}yes" >&6; }
26900 ac_cv_lib_vpb_vpb_open="yes"
26902 else
26903 echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26906 { echo "$as_me:$LINENO: result: no" >&5
26907 echo "${ECHO_T}no" >&6; }
26908 ac_cv_lib_vpb_vpb_open="no"
26913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26914 conftest$ac_exeext conftest.$ac_ext
26915 LIBS="${saved_libs}"
26916 CPPFLAGS="${saved_cppflags}"
26917 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
26918 VPB_LIB="-lvpb"
26919 if test "${VPB_DIR}" != ""; then
26920 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
26921 VPB_INCLUDE="-I${VPB_DIR}/include"
26923 PBX_VPB=1
26925 cat >>confdefs.h <<\_ACEOF
26926 #define HAVE_VPB 1
26927 _ACEOF
26929 elif test ! -z "${VPB_MANDATORY}"; then
26930 { echo "$as_me:$LINENO: ***" >&5
26931 echo "$as_me: ***" >&6;}
26932 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
26933 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
26934 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26935 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26936 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
26937 echo "$as_me: *** including --without-vpb." >&6;}
26938 exit 1
26942 ac_ext=c
26943 ac_cpp='$CPP $CPPFLAGS'
26944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26950 if test "${USE_ZLIB}" != "no"; then
26951 pbxlibdir=""
26952 if test "x${ZLIB_DIR}" != "x"; then
26953 if test -d ${ZLIB_DIR}/lib; then
26954 pbxlibdir="-L${ZLIB_DIR}/lib"
26955 else
26956 pbxlibdir="-L${ZLIB_DIR}"
26959 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
26960 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
26961 if test "${ac_cv_lib_z_compress+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964 ac_check_lib_save_LIBS=$LIBS
26965 LIBS="-lz ${pbxlibdir} $LIBS"
26966 cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h. */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26973 /* Override any GCC internal prototype to avoid an error.
26974 Use char because int might match the return type of a GCC
26975 builtin and then its argument prototype would still apply. */
26976 #ifdef __cplusplus
26977 extern "C"
26978 #endif
26979 char compress ();
26981 main ()
26983 return compress ();
26985 return 0;
26987 _ACEOF
26988 rm -f conftest.$ac_objext conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26993 esac
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995 (eval "$ac_link") 2>conftest.er1
26996 ac_status=$?
26997 grep -v '^ *+' conftest.er1 >conftest.err
26998 rm -f conftest.er1
26999 cat conftest.err >&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); } && {
27002 test -z "$ac_c_werror_flag" ||
27003 test ! -s conftest.err
27004 } && test -s conftest$ac_exeext &&
27005 $as_test_x conftest$ac_exeext; then
27006 ac_cv_lib_z_compress=yes
27007 else
27008 echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27011 ac_cv_lib_z_compress=no
27014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27015 conftest$ac_exeext conftest.$ac_ext
27016 LIBS=$ac_check_lib_save_LIBS
27018 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
27019 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
27020 if test $ac_cv_lib_z_compress = yes; then
27021 AST_ZLIB_FOUND=yes
27022 else
27023 AST_ZLIB_FOUND=no
27027 if test "${AST_ZLIB_FOUND}" = "yes"; then
27028 ZLIB_LIB="-lz "
27029 ZLIB_HEADER_FOUND="1"
27030 if test "x${ZLIB_DIR}" != "x"; then
27031 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
27032 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
27033 if test "xzlib.h" != "x" ; then
27034 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
27035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27036 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27037 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 ac_res=`eval echo '${'$as_ac_Header'}'`
27042 { echo "$as_me:$LINENO: result: $ac_res" >&5
27043 echo "${ECHO_T}$ac_res" >&6; }
27044 else
27045 # Is the header compilable?
27046 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
27047 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
27048 cat >conftest.$ac_ext <<_ACEOF
27049 /* confdefs.h. */
27050 _ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h. */
27054 $ac_includes_default
27055 #include <${ZLIB_DIR}/include/zlib.h>
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27062 esac
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_compile") 2>conftest.er1
27065 ac_status=$?
27066 grep -v '^ *+' conftest.er1 >conftest.err
27067 rm -f conftest.er1
27068 cat conftest.err >&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); } && {
27071 test -z "$ac_c_werror_flag" ||
27072 test ! -s conftest.err
27073 } && test -s conftest.$ac_objext; then
27074 ac_header_compiler=yes
27075 else
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27079 ac_header_compiler=no
27082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27084 echo "${ECHO_T}$ac_header_compiler" >&6; }
27086 # Is the header present?
27087 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
27088 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
27089 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h. */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27095 #include <${ZLIB_DIR}/include/zlib.h>
27096 _ACEOF
27097 if { (ac_try="$ac_cpp conftest.$ac_ext"
27098 case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27101 esac
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27104 ac_status=$?
27105 grep -v '^ *+' conftest.er1 >conftest.err
27106 rm -f conftest.er1
27107 cat conftest.err >&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } >/dev/null && {
27110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27111 test ! -s conftest.err
27112 }; then
27113 ac_header_preproc=yes
27114 else
27115 echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27118 ac_header_preproc=no
27121 rm -f conftest.err conftest.$ac_ext
27122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27123 echo "${ECHO_T}$ac_header_preproc" >&6; }
27125 # So? What about this header?
27126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27127 yes:no: )
27128 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27129 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27130 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
27131 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
27132 ac_header_preproc=yes
27134 no:yes:* )
27135 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
27136 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
27138 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
27139 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
27140 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
27141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
27144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
27145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
27146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
27149 esac
27150 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27151 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155 eval "$as_ac_Header=\$ac_header_preproc"
27157 ac_res=`eval echo '${'$as_ac_Header'}'`
27158 { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27163 ZLIB_HEADER_FOUND=1
27164 else
27165 ZLIB_HEADER_FOUND=0
27170 else
27171 if test "xzlib.h" != "x" ; then
27172 if test "${ac_cv_header_zlib_h+set}" = set; then
27173 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27174 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27175 if test "${ac_cv_header_zlib_h+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27179 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27180 else
27181 # Is the header compilable?
27182 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
27183 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
27184 cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h. */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 $ac_includes_default
27191 #include <zlib.h>
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
27201 ac_status=$?
27202 grep -v '^ *+' conftest.er1 >conftest.err
27203 rm -f conftest.er1
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } && {
27207 test -z "$ac_c_werror_flag" ||
27208 test ! -s conftest.err
27209 } && test -s conftest.$ac_objext; then
27210 ac_header_compiler=yes
27211 else
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27215 ac_header_compiler=no
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27220 echo "${ECHO_T}$ac_header_compiler" >&6; }
27222 # Is the header present?
27223 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
27224 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
27225 cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h. */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27231 #include <zlib.h>
27232 _ACEOF
27233 if { (ac_try="$ac_cpp conftest.$ac_ext"
27234 case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27237 esac
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27240 ac_status=$?
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } >/dev/null && {
27246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27247 test ! -s conftest.err
27248 }; then
27249 ac_header_preproc=yes
27250 else
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 ac_header_preproc=no
27257 rm -f conftest.err conftest.$ac_ext
27258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27259 echo "${ECHO_T}$ac_header_preproc" >&6; }
27261 # So? What about this header?
27262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27263 yes:no: )
27264 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27265 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27266 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27267 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27268 ac_header_preproc=yes
27270 no:yes:* )
27271 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27272 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
27274 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27276 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27278 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27280 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27282 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27285 esac
27286 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27287 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27288 if test "${ac_cv_header_zlib_h+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 else
27291 ac_cv_header_zlib_h=$ac_header_preproc
27293 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27294 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27297 if test $ac_cv_header_zlib_h = yes; then
27298 ZLIB_HEADER_FOUND=1
27299 else
27300 ZLIB_HEADER_FOUND=0
27306 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
27307 if test ! -z "${ZLIB_MANDATORY}" ;
27308 then
27309 { echo "$as_me:$LINENO: ***" >&5
27310 echo "$as_me: ***" >&6;}
27311 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
27312 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
27313 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
27314 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
27315 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
27316 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
27317 exit 1
27319 ZLIB_LIB=""
27320 ZLIB_INCLUDE=""
27321 PBX_ZLIB=0
27322 else
27323 PBX_ZLIB=1
27325 cat >>confdefs.h <<_ACEOF
27326 #define HAVE_ZLIB 1
27327 _ACEOF
27330 elif test ! -z "${ZLIB_MANDATORY}";
27331 then
27332 { echo "$as_me:$LINENO: ***" >&5
27333 echo "$as_me: ***" >&6;}
27334 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
27335 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
27336 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27337 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27338 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
27339 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
27340 exit 1
27345 if test "${USE_ZAPTEL}" != "no"; then
27346 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
27347 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
27348 saved_cppflags="${CPPFLAGS}"
27349 if test "x${ZAPTEL_DIR}" != "x"; then
27350 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
27352 cat >conftest.$ac_ext <<_ACEOF
27354 /* confdefs.h. */
27355 _ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h. */
27359 #include <zaptel/zaptel.h>
27361 main ()
27363 int foo = ZT_TONE_DTMF_BASE;
27365 return 0;
27368 _ACEOF
27369 rm -f conftest.$ac_objext
27370 if { (ac_try="$ac_compile"
27371 case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27374 esac
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27377 ac_status=$?
27378 grep -v '^ *+' conftest.er1 >conftest.err
27379 rm -f conftest.er1
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } && {
27383 test -z "$ac_c_werror_flag" ||
27384 test ! -s conftest.err
27385 } && test -s conftest.$ac_objext; then
27386 { echo "$as_me:$LINENO: result: yes" >&5
27387 echo "${ECHO_T}yes" >&6; }
27388 ac_cv_zaptel_h="yes"
27390 else
27391 echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27394 { echo "$as_me:$LINENO: result: no" >&5
27395 echo "${ECHO_T}no" >&6; }
27396 ac_cv_zaptel_h="no"
27401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402 CPPFLAGS="${saved_cppflags}"
27403 if test "${ac_cv_zaptel_h}" = "yes"; then
27404 if test "${ZAPTEL_DIR}" != ""; then
27405 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
27407 PBX_ZAPTEL=1
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_ZAPTEL 1
27411 _ACEOF
27413 elif test ! -z "${ZAPTEL_MANDATORY}";
27414 then
27415 { echo "$as_me:$LINENO: ***" >&5
27416 echo "$as_me: ***" >&6;}
27417 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
27418 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
27419 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27420 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27421 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
27422 echo "$as_me: *** including --without-zaptel." >&6;}
27423 exit 1
27427 if test "${USE_ZAPTEL}" != "no"; then
27428 if test "${PBX_ZAPTEL}" != "1"; then
27429 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
27430 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
27431 saved_cppflags="${CPPFLAGS}"
27432 if test "x${ZAPTEL_DIR}" != "x"; then
27433 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
27435 cat >conftest.$ac_ext <<_ACEOF
27437 /* confdefs.h. */
27438 _ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h. */
27442 #include <zaptel.h>
27444 main ()
27446 int foo = ZT_DIAL_OP_CANCEL;
27448 return 0;
27451 _ACEOF
27452 rm -f conftest.$ac_objext
27453 if { (ac_try="$ac_compile"
27454 case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27457 esac
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_compile") 2>conftest.er1
27460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } && {
27466 test -z "$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 } && test -s conftest.$ac_objext; then
27469 { echo "$as_me:$LINENO: result: yes" >&5
27470 echo "${ECHO_T}yes" >&6; }
27471 ac_cv_zaptel_h="yes"
27473 else
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 { echo "$as_me:$LINENO: result: no" >&5
27478 echo "${ECHO_T}no" >&6; }
27479 ac_cv_zaptel_h="no"
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 CPPFLAGS="${saved_cppflags}"
27486 if test "${ac_cv_zaptel_h}" = "yes"; then
27487 { echo "$as_me:$LINENO: ***" >&5
27488 echo "$as_me: ***" >&6;}
27489 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
27490 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
27491 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
27492 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
27493 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
27494 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
27495 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
27496 echo "$as_me: *** including --without-zaptel." >&6;}
27497 exit 1
27502 EDITLINE_LIB=""
27503 if test "x$TERMCAP_LIB" != "x" ; then
27504 EDITLINE_LIB="$TERMCAP_LIB"
27505 elif test "x$TINFO_LIB" != "x" ; then
27506 EDITLINE_LIB="$TINFO_LIB"
27507 elif test "x$CURSES_LIB" != "x" ; then
27508 EDITLINE_LIB="$CURSES_LIB"
27509 elif test "x$NCURSES_LIB" != "x" ; then
27510 EDITLINE_LIB="$NCURSES_LIB"
27511 else
27512 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
27513 echo "$as_me: error: *** termcap support not found" >&2;}
27514 { (exit 1); exit 1; }; }
27518 if test "${ac_cv_header_h323_h+set}" = set; then
27519 { echo "$as_me:$LINENO: checking for h323.h" >&5
27520 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27521 if test "${ac_cv_header_h323_h+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27525 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27526 else
27527 # Is the header compilable?
27528 { echo "$as_me:$LINENO: checking h323.h usability" >&5
27529 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
27530 cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h. */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27536 $ac_includes_default
27537 #include <h323.h>
27538 _ACEOF
27539 rm -f conftest.$ac_objext
27540 if { (ac_try="$ac_compile"
27541 case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27544 esac
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_compile") 2>conftest.er1
27547 ac_status=$?
27548 grep -v '^ *+' conftest.er1 >conftest.err
27549 rm -f conftest.er1
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } && {
27553 test -z "$ac_c_werror_flag" ||
27554 test ! -s conftest.err
27555 } && test -s conftest.$ac_objext; then
27556 ac_header_compiler=yes
27557 else
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27561 ac_header_compiler=no
27564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27566 echo "${ECHO_T}$ac_header_compiler" >&6; }
27568 # Is the header present?
27569 { echo "$as_me:$LINENO: checking h323.h presence" >&5
27570 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
27571 cat >conftest.$ac_ext <<_ACEOF
27572 /* confdefs.h. */
27573 _ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27577 #include <h323.h>
27578 _ACEOF
27579 if { (ac_try="$ac_cpp conftest.$ac_ext"
27580 case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583 esac
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27586 ac_status=$?
27587 grep -v '^ *+' conftest.er1 >conftest.err
27588 rm -f conftest.er1
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } >/dev/null && {
27592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27593 test ! -s conftest.err
27594 }; then
27595 ac_header_preproc=yes
27596 else
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_header_preproc=no
27603 rm -f conftest.err conftest.$ac_ext
27604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27605 echo "${ECHO_T}$ac_header_preproc" >&6; }
27607 # So? What about this header?
27608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27609 yes:no: )
27610 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27611 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27612 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
27613 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
27614 ac_header_preproc=yes
27616 no:yes:* )
27617 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
27618 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
27620 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
27621 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
27622 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
27623 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
27624 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27625 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
27626 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
27627 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
27628 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
27631 esac
27632 { echo "$as_me:$LINENO: checking for h323.h" >&5
27633 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27634 if test "${ac_cv_header_h323_h+set}" = set; then
27635 echo $ECHO_N "(cached) $ECHO_C" >&6
27636 else
27637 ac_cv_header_h323_h=$ac_header_preproc
27639 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27640 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27643 if test $ac_cv_header_h323_h = yes; then
27644 PBX_H323=1
27645 else
27646 PBX_H323=0
27652 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
27653 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
27654 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 else
27657 cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h. */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27664 #include <linux/version.h>
27665 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
27666 #include <linux/compiler.h>
27667 #endif
27670 #include <linux/ixjuser.h>
27671 _ACEOF
27672 rm -f conftest.$ac_objext
27673 if { (ac_try="$ac_compile"
27674 case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_compile") 2>conftest.er1
27680 ac_status=$?
27681 grep -v '^ *+' conftest.er1 >conftest.err
27682 rm -f conftest.er1
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } && {
27686 test -z "$ac_c_werror_flag" ||
27687 test ! -s conftest.err
27688 } && test -s conftest.$ac_objext; then
27689 ac_cv_header_linux_ixjuser_h=yes
27690 else
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27694 ac_cv_header_linux_ixjuser_h=no
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
27700 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
27701 if test $ac_cv_header_linux_ixjuser_h = yes; then
27702 PBX_IXJUSER=1
27703 else
27704 PBX_IXJUSER=0
27710 PBX_GTK=0
27711 if test -n "$ac_tool_prefix"; then
27712 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
27713 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
27714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27716 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 else
27719 if test -n "$GTKCONFIG"; then
27720 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
27721 else
27722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $PATH
27725 IFS=$as_save_IFS
27726 test -z "$as_dir" && as_dir=.
27727 for ac_exec_ext in '' $ac_executable_extensions; do
27728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27729 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
27730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27731 break 2
27733 done
27734 done
27735 IFS=$as_save_IFS
27739 GTKCONFIG=$ac_cv_prog_GTKCONFIG
27740 if test -n "$GTKCONFIG"; then
27741 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
27742 echo "${ECHO_T}$GTKCONFIG" >&6; }
27743 else
27744 { echo "$as_me:$LINENO: result: no" >&5
27745 echo "${ECHO_T}no" >&6; }
27750 if test -z "$ac_cv_prog_GTKCONFIG"; then
27751 ac_ct_GTKCONFIG=$GTKCONFIG
27752 # Extract the first word of "gtk-config", so it can be a program name with args.
27753 set dummy gtk-config; ac_word=$2
27754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27756 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758 else
27759 if test -n "$ac_ct_GTKCONFIG"; then
27760 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
27761 else
27762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27763 for as_dir in $PATH
27765 IFS=$as_save_IFS
27766 test -z "$as_dir" && as_dir=.
27767 for ac_exec_ext in '' $ac_executable_extensions; do
27768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27769 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
27770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27771 break 2
27773 done
27774 done
27775 IFS=$as_save_IFS
27779 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
27780 if test -n "$ac_ct_GTKCONFIG"; then
27781 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
27782 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
27783 else
27784 { echo "$as_me:$LINENO: result: no" >&5
27785 echo "${ECHO_T}no" >&6; }
27788 if test "x$ac_ct_GTKCONFIG" = x; then
27789 GTKCONFIG="No"
27790 else
27791 case $cross_compiling:$ac_tool_warned in
27792 yes:)
27793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27794 whose name does not start with the host triplet. If you think this
27795 configuration is useful to you, please write to autoconf@gnu.org." >&5
27796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27797 whose name does not start with the host triplet. If you think this
27798 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27799 ac_tool_warned=yes ;;
27800 esac
27801 GTKCONFIG=$ac_ct_GTKCONFIG
27803 else
27804 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
27807 if test ! "x${GTKCONFIG}" = xNo; then
27808 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
27809 GTK_LIB=$(${GTKCONFIG} --libs gthread)
27810 PBX_GTK=1
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_GTK 1
27814 _ACEOF
27821 if test "${USE_CURL}" != "no"; then
27822 if test -n "$ac_tool_prefix"; then
27823 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
27824 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
27825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27827 if test "${ac_cv_path_CURL+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830 case $CURL in
27831 [\\/]* | ?:[\\/]*)
27832 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
27835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $PATH
27838 IFS=$as_save_IFS
27839 test -z "$as_dir" && as_dir=.
27840 for ac_exec_ext in '' $ac_executable_extensions; do
27841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27842 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
27843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27844 break 2
27846 done
27847 done
27848 IFS=$as_save_IFS
27851 esac
27853 CURL=$ac_cv_path_CURL
27854 if test -n "$CURL"; then
27855 { echo "$as_me:$LINENO: result: $CURL" >&5
27856 echo "${ECHO_T}$CURL" >&6; }
27857 else
27858 { echo "$as_me:$LINENO: result: no" >&5
27859 echo "${ECHO_T}no" >&6; }
27864 if test -z "$ac_cv_path_CURL"; then
27865 ac_pt_CURL=$CURL
27866 # Extract the first word of "curl-config", so it can be a program name with args.
27867 set dummy curl-config; ac_word=$2
27868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27870 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27872 else
27873 case $ac_pt_CURL in
27874 [\\/]* | ?:[\\/]*)
27875 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
27878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27879 for as_dir in $PATH
27881 IFS=$as_save_IFS
27882 test -z "$as_dir" && as_dir=.
27883 for ac_exec_ext in '' $ac_executable_extensions; do
27884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27885 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
27886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27887 break 2
27889 done
27890 done
27891 IFS=$as_save_IFS
27894 esac
27896 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
27897 if test -n "$ac_pt_CURL"; then
27898 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
27899 echo "${ECHO_T}$ac_pt_CURL" >&6; }
27900 else
27901 { echo "$as_me:$LINENO: result: no" >&5
27902 echo "${ECHO_T}no" >&6; }
27905 if test "x$ac_pt_CURL" = x; then
27906 CURL="No"
27907 else
27908 case $cross_compiling:$ac_tool_warned in
27909 yes:)
27910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27911 whose name does not start with the host triplet. If you think this
27912 configuration is useful to you, please write to autoconf@gnu.org." >&5
27913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27914 whose name does not start with the host triplet. If you think this
27915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27916 ac_tool_warned=yes ;;
27917 esac
27918 CURL=$ac_pt_CURL
27920 else
27921 CURL="$ac_cv_path_CURL"
27924 if test ! x"${CURL}" = xNo; then
27925 # check for version
27926 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
27927 CURL_INCLUDE=$(${CURL} --cflags)
27928 CURL_LIB=$(${CURL} --libs)
27929 PBX_CURL=1
27931 cat >>confdefs.h <<\_ACEOF
27932 #define HAVE_CURL 1
27933 _ACEOF
27939 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
27941 cat >confcache <<\_ACEOF
27942 # This file is a shell script that caches the results of configure
27943 # tests run on this system so they can be shared between configure
27944 # scripts and configure runs, see configure's option --config-cache.
27945 # It is not useful on other systems. If it contains results you don't
27946 # want to keep, you may remove or edit it.
27948 # config.status only pays attention to the cache file if you give it
27949 # the --recheck option to rerun configure.
27951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27953 # following values.
27955 _ACEOF
27957 # The following way of writing the cache mishandles newlines in values,
27958 # but we know of no workaround that is simple, portable, and efficient.
27959 # So, we kill variables containing newlines.
27960 # Ultrix sh set writes to stderr and can't be redirected directly,
27961 # and sets the high bit in the cache file unless we assign to the vars.
27963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27964 eval ac_val=\$$ac_var
27965 case $ac_val in #(
27966 *${as_nl}*)
27967 case $ac_var in #(
27968 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27969 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27970 esac
27971 case $ac_var in #(
27972 _ | IFS | as_nl) ;; #(
27973 *) $as_unset $ac_var ;;
27974 esac ;;
27975 esac
27976 done
27978 (set) 2>&1 |
27979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27980 *${as_nl}ac_space=\ *)
27981 # `set' does not quote correctly, so add quotes (double-quote
27982 # substitution turns \\\\ into \\, and sed turns \\ into \).
27983 sed -n \
27984 "s/'/'\\\\''/g;
27985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27986 ;; #(
27988 # `set' quotes correctly as required by POSIX, so do not add quotes.
27989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27991 esac |
27992 sort
27994 sed '
27995 /^ac_cv_env_/b end
27996 t clear
27997 :clear
27998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27999 t end
28000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28001 :end' >>confcache
28002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28003 if test -w "$cache_file"; then
28004 test "x$cache_file" != "x/dev/null" &&
28005 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28006 echo "$as_me: updating cache $cache_file" >&6;}
28007 cat confcache >$cache_file
28008 else
28009 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28010 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28013 rm -f confcache
28015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28016 # Let make expand exec_prefix.
28017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28019 DEFS=-DHAVE_CONFIG_H
28021 ac_libobjs=
28022 ac_ltlibobjs=
28023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28024 # 1. Remove the extension, and $U if already installed.
28025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28026 ac_i=`echo "$ac_i" | sed "$ac_script"`
28027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28028 # will be set to the directory where LIBOBJS objects are built.
28029 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28030 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28031 done
28032 LIBOBJS=$ac_libobjs
28034 LTLIBOBJS=$ac_ltlibobjs
28038 : ${CONFIG_STATUS=./config.status}
28039 ac_clean_files_save=$ac_clean_files
28040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28041 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28042 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28043 cat >$CONFIG_STATUS <<_ACEOF
28044 #! $SHELL
28045 # Generated by $as_me.
28046 # Run this file to recreate the current configuration.
28047 # Compiler output produced by configure, useful for debugging
28048 # configure, is in config.log if it exists.
28050 debug=false
28051 ac_cs_recheck=false
28052 ac_cs_silent=false
28053 SHELL=\${CONFIG_SHELL-$SHELL}
28054 _ACEOF
28056 cat >>$CONFIG_STATUS <<\_ACEOF
28057 ## --------------------- ##
28058 ## M4sh Initialization. ##
28059 ## --------------------- ##
28061 # Be more Bourne compatible
28062 DUALCASE=1; export DUALCASE # for MKS sh
28063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28064 emulate sh
28065 NULLCMD=:
28066 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28067 # is contrary to our usage. Disable this feature.
28068 alias -g '${1+"$@"}'='"$@"'
28069 setopt NO_GLOB_SUBST
28070 else
28071 case `(set -o) 2>/dev/null` in
28072 *posix*) set -o posix ;;
28073 esac
28080 # PATH needs CR
28081 # Avoid depending upon Character Ranges.
28082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28085 as_cr_digits='0123456789'
28086 as_cr_alnum=$as_cr_Letters$as_cr_digits
28088 # The user is always right.
28089 if test "${PATH_SEPARATOR+set}" != set; then
28090 echo "#! /bin/sh" >conf$$.sh
28091 echo "exit 0" >>conf$$.sh
28092 chmod +x conf$$.sh
28093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28094 PATH_SEPARATOR=';'
28095 else
28096 PATH_SEPARATOR=:
28098 rm -f conf$$.sh
28101 # Support unset when possible.
28102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28103 as_unset=unset
28104 else
28105 as_unset=false
28109 # IFS
28110 # We need space, tab and new line, in precisely that order. Quoting is
28111 # there to prevent editors from complaining about space-tab.
28112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28113 # splitting by setting IFS to empty value.)
28114 as_nl='
28116 IFS=" "" $as_nl"
28118 # Find who we are. Look in the path if we contain no directory separator.
28119 case $0 in
28120 *[\\/]* ) as_myself=$0 ;;
28121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28122 for as_dir in $PATH
28124 IFS=$as_save_IFS
28125 test -z "$as_dir" && as_dir=.
28126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28127 done
28128 IFS=$as_save_IFS
28131 esac
28132 # We did not find ourselves, most probably we were run as `sh COMMAND'
28133 # in which case we are not to be found in the path.
28134 if test "x$as_myself" = x; then
28135 as_myself=$0
28137 if test ! -f "$as_myself"; then
28138 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28139 { (exit 1); exit 1; }
28142 # Work around bugs in pre-3.0 UWIN ksh.
28143 for as_var in ENV MAIL MAILPATH
28144 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28145 done
28146 PS1='$ '
28147 PS2='> '
28148 PS4='+ '
28150 # NLS nuisances.
28151 for as_var in \
28152 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28153 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28154 LC_TELEPHONE LC_TIME
28156 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28157 eval $as_var=C; export $as_var
28158 else
28159 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28161 done
28163 # Required to use basename.
28164 if expr a : '\(a\)' >/dev/null 2>&1 &&
28165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28166 as_expr=expr
28167 else
28168 as_expr=false
28171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28172 as_basename=basename
28173 else
28174 as_basename=false
28178 # Name of the executable.
28179 as_me=`$as_basename -- "$0" ||
28180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28181 X"$0" : 'X\(//\)$' \| \
28182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28183 echo X/"$0" |
28184 sed '/^.*\/\([^/][^/]*\)\/*$/{
28185 s//\1/
28188 /^X\/\(\/\/\)$/{
28189 s//\1/
28192 /^X\/\(\/\).*/{
28193 s//\1/
28196 s/.*/./; q'`
28198 # CDPATH.
28199 $as_unset CDPATH
28203 as_lineno_1=$LINENO
28204 as_lineno_2=$LINENO
28205 test "x$as_lineno_1" != "x$as_lineno_2" &&
28206 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28208 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28209 # uniformly replaced by the line number. The first 'sed' inserts a
28210 # line-number line after each line using $LINENO; the second 'sed'
28211 # does the real work. The second script uses 'N' to pair each
28212 # line-number line with the line containing $LINENO, and appends
28213 # trailing '-' during substitution so that $LINENO is not a special
28214 # case at line end.
28215 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28216 # scripts with optimization help from Paolo Bonzini. Blame Lee
28217 # E. McMahon (1931-1989) for sed's syntax. :-)
28218 sed -n '
28220 /[$]LINENO/=
28221 ' <$as_myself |
28222 sed '
28223 s/[$]LINENO.*/&-/
28224 t lineno
28226 :lineno
28228 :loop
28229 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28230 t loop
28231 s/-\n.*//
28232 ' >$as_me.lineno &&
28233 chmod +x "$as_me.lineno" ||
28234 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28235 { (exit 1); exit 1; }; }
28237 # Don't try to exec as it changes $[0], causing all sort of problems
28238 # (the dirname of $[0] is not the place where we might find the
28239 # original and so on. Autoconf is especially sensitive to this).
28240 . "./$as_me.lineno"
28241 # Exit status is that of the last command.
28242 exit
28246 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28247 as_dirname=dirname
28248 else
28249 as_dirname=false
28252 ECHO_C= ECHO_N= ECHO_T=
28253 case `echo -n x` in
28254 -n*)
28255 case `echo 'x\c'` in
28256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28257 *) ECHO_C='\c';;
28258 esac;;
28260 ECHO_N='-n';;
28261 esac
28263 if expr a : '\(a\)' >/dev/null 2>&1 &&
28264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28265 as_expr=expr
28266 else
28267 as_expr=false
28270 rm -f conf$$ conf$$.exe conf$$.file
28271 if test -d conf$$.dir; then
28272 rm -f conf$$.dir/conf$$.file
28273 else
28274 rm -f conf$$.dir
28275 mkdir conf$$.dir
28277 echo >conf$$.file
28278 if ln -s conf$$.file conf$$ 2>/dev/null; then
28279 as_ln_s='ln -s'
28280 # ... but there are two gotchas:
28281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28283 # In both cases, we have to default to `cp -p'.
28284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28285 as_ln_s='cp -p'
28286 elif ln conf$$.file conf$$ 2>/dev/null; then
28287 as_ln_s=ln
28288 else
28289 as_ln_s='cp -p'
28291 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28292 rmdir conf$$.dir 2>/dev/null
28294 if mkdir -p . 2>/dev/null; then
28295 as_mkdir_p=:
28296 else
28297 test -d ./-p && rmdir ./-p
28298 as_mkdir_p=false
28301 if test -x / >/dev/null 2>&1; then
28302 as_test_x='test -x'
28303 else
28304 if ls -dL / >/dev/null 2>&1; then
28305 as_ls_L_option=L
28306 else
28307 as_ls_L_option=
28309 as_test_x='
28310 eval sh -c '\''
28311 if test -d "$1"; then
28312 test -d "$1/.";
28313 else
28314 case $1 in
28315 -*)set "./$1";;
28316 esac;
28317 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28318 ???[sx]*):;;*)false;;esac;fi
28319 '\'' sh
28322 as_executable_p=$as_test_x
28324 # Sed expression to map a string onto a valid CPP name.
28325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28327 # Sed expression to map a string onto a valid variable name.
28328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28331 exec 6>&1
28333 # Save the log message, to keep $[0] and so on meaningful, and to
28334 # report actual input values of CONFIG_FILES etc. instead of their
28335 # values after options handling.
28336 ac_log="
28337 This file was extended by $as_me, which was
28338 generated by GNU Autoconf 2.61. Invocation command line was
28340 CONFIG_FILES = $CONFIG_FILES
28341 CONFIG_HEADERS = $CONFIG_HEADERS
28342 CONFIG_LINKS = $CONFIG_LINKS
28343 CONFIG_COMMANDS = $CONFIG_COMMANDS
28344 $ $0 $@
28346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28349 _ACEOF
28351 cat >>$CONFIG_STATUS <<_ACEOF
28352 # Files that config.status was made for.
28353 config_files="$ac_config_files"
28354 config_headers="$ac_config_headers"
28356 _ACEOF
28358 cat >>$CONFIG_STATUS <<\_ACEOF
28359 ac_cs_usage="\
28360 \`$as_me' instantiates files from templates according to the
28361 current configuration.
28363 Usage: $0 [OPTIONS] [FILE]...
28365 -h, --help print this help, then exit
28366 -V, --version print version number and configuration settings, then exit
28367 -q, --quiet do not print progress messages
28368 -d, --debug don't remove temporary files
28369 --recheck update $as_me by reconfiguring in the same conditions
28370 --file=FILE[:TEMPLATE]
28371 instantiate the configuration file FILE
28372 --header=FILE[:TEMPLATE]
28373 instantiate the configuration header FILE
28375 Configuration files:
28376 $config_files
28378 Configuration headers:
28379 $config_headers
28381 Report bugs to <bug-autoconf@gnu.org>."
28383 _ACEOF
28384 cat >>$CONFIG_STATUS <<_ACEOF
28385 ac_cs_version="\\
28386 config.status
28387 configured by $0, generated by GNU Autoconf 2.61,
28388 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28390 Copyright (C) 2006 Free Software Foundation, Inc.
28391 This config.status script is free software; the Free Software Foundation
28392 gives unlimited permission to copy, distribute and modify it."
28394 ac_pwd='$ac_pwd'
28395 srcdir='$srcdir'
28396 INSTALL='$INSTALL'
28397 _ACEOF
28399 cat >>$CONFIG_STATUS <<\_ACEOF
28400 # If no file are specified by the user, then we need to provide default
28401 # value. By we need to know if files were specified by the user.
28402 ac_need_defaults=:
28403 while test $# != 0
28405 case $1 in
28406 --*=*)
28407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28409 ac_shift=:
28412 ac_option=$1
28413 ac_optarg=$2
28414 ac_shift=shift
28416 esac
28418 case $ac_option in
28419 # Handling of the options.
28420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28421 ac_cs_recheck=: ;;
28422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28423 echo "$ac_cs_version"; exit ;;
28424 --debug | --debu | --deb | --de | --d | -d )
28425 debug=: ;;
28426 --file | --fil | --fi | --f )
28427 $ac_shift
28428 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28429 ac_need_defaults=false;;
28430 --header | --heade | --head | --hea )
28431 $ac_shift
28432 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28433 ac_need_defaults=false;;
28434 --he | --h)
28435 # Conflict between --help and --header
28436 { echo "$as_me: error: ambiguous option: $1
28437 Try \`$0 --help' for more information." >&2
28438 { (exit 1); exit 1; }; };;
28439 --help | --hel | -h )
28440 echo "$ac_cs_usage"; exit ;;
28441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28443 ac_cs_silent=: ;;
28445 # This is an error.
28446 -*) { echo "$as_me: error: unrecognized option: $1
28447 Try \`$0 --help' for more information." >&2
28448 { (exit 1); exit 1; }; } ;;
28450 *) ac_config_targets="$ac_config_targets $1"
28451 ac_need_defaults=false ;;
28453 esac
28454 shift
28455 done
28457 ac_configure_extra_args=
28459 if $ac_cs_silent; then
28460 exec 6>/dev/null
28461 ac_configure_extra_args="$ac_configure_extra_args --silent"
28464 _ACEOF
28465 cat >>$CONFIG_STATUS <<_ACEOF
28466 if \$ac_cs_recheck; then
28467 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28468 CONFIG_SHELL=$SHELL
28469 export CONFIG_SHELL
28470 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28473 _ACEOF
28474 cat >>$CONFIG_STATUS <<\_ACEOF
28475 exec 5>>config.log
28477 echo
28478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28479 ## Running $as_me. ##
28480 _ASBOX
28481 echo "$ac_log"
28482 } >&5
28484 _ACEOF
28485 cat >>$CONFIG_STATUS <<_ACEOF
28486 _ACEOF
28488 cat >>$CONFIG_STATUS <<\_ACEOF
28490 # Handling of arguments.
28491 for ac_config_target in $ac_config_targets
28493 case $ac_config_target in
28494 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
28495 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
28496 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
28497 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
28499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28501 { (exit 1); exit 1; }; };;
28502 esac
28503 done
28506 # If the user did not use the arguments to specify the items to instantiate,
28507 # then the envvar interface is used. Set only those that are not.
28508 # We use the long form for the default assignment because of an extremely
28509 # bizarre bug on SunOS 4.1.3.
28510 if $ac_need_defaults; then
28511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28515 # Have a temporary directory for convenience. Make it in the build tree
28516 # simply because there is no reason against having it here, and in addition,
28517 # creating and moving files from /tmp can sometimes cause problems.
28518 # Hook for its removal unless debugging.
28519 # Note that there is a small window in which the directory will not be cleaned:
28520 # after its creation but before its name has been assigned to `$tmp'.
28521 $debug ||
28523 tmp=
28524 trap 'exit_status=$?
28525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28527 trap '{ (exit 1); exit 1; }' 1 2 13 15
28529 # Create a (secure) tmp directory for tmp files.
28532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28533 test -n "$tmp" && test -d "$tmp"
28534 } ||
28536 tmp=./conf$$-$RANDOM
28537 (umask 077 && mkdir "$tmp")
28538 } ||
28540 echo "$me: cannot create a temporary directory in ." >&2
28541 { (exit 1); exit 1; }
28545 # Set up the sed scripts for CONFIG_FILES section.
28548 # No need to generate the scripts if there are no CONFIG_FILES.
28549 # This happens for instance when ./config.status config.h
28550 if test -n "$CONFIG_FILES"; then
28552 _ACEOF
28556 ac_delim='%!_!# '
28557 for ac_last_try in false false false false false :; do
28558 cat >conf$$subs.sed <<_ACEOF
28559 SHELL!$SHELL$ac_delim
28560 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28561 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28562 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28563 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28564 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28565 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28566 exec_prefix!$exec_prefix$ac_delim
28567 prefix!$prefix$ac_delim
28568 program_transform_name!$program_transform_name$ac_delim
28569 bindir!$bindir$ac_delim
28570 sbindir!$sbindir$ac_delim
28571 libexecdir!$libexecdir$ac_delim
28572 datarootdir!$datarootdir$ac_delim
28573 datadir!$datadir$ac_delim
28574 sysconfdir!$sysconfdir$ac_delim
28575 sharedstatedir!$sharedstatedir$ac_delim
28576 localstatedir!$localstatedir$ac_delim
28577 includedir!$includedir$ac_delim
28578 oldincludedir!$oldincludedir$ac_delim
28579 docdir!$docdir$ac_delim
28580 infodir!$infodir$ac_delim
28581 htmldir!$htmldir$ac_delim
28582 dvidir!$dvidir$ac_delim
28583 pdfdir!$pdfdir$ac_delim
28584 psdir!$psdir$ac_delim
28585 libdir!$libdir$ac_delim
28586 localedir!$localedir$ac_delim
28587 mandir!$mandir$ac_delim
28588 DEFS!$DEFS$ac_delim
28589 ECHO_C!$ECHO_C$ac_delim
28590 ECHO_N!$ECHO_N$ac_delim
28591 ECHO_T!$ECHO_T$ac_delim
28592 LIBS!$LIBS$ac_delim
28593 build_alias!$build_alias$ac_delim
28594 host_alias!$host_alias$ac_delim
28595 target_alias!$target_alias$ac_delim
28596 build!$build$ac_delim
28597 build_cpu!$build_cpu$ac_delim
28598 build_vendor!$build_vendor$ac_delim
28599 build_os!$build_os$ac_delim
28600 host!$host$ac_delim
28601 host_cpu!$host_cpu$ac_delim
28602 host_vendor!$host_vendor$ac_delim
28603 host_os!$host_os$ac_delim
28604 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
28605 BUILD_CPU!$BUILD_CPU$ac_delim
28606 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
28607 BUILD_OS!$BUILD_OS$ac_delim
28608 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
28609 HOST_CPU!$HOST_CPU$ac_delim
28610 HOST_VENDOR!$HOST_VENDOR$ac_delim
28611 HOST_OS!$HOST_OS$ac_delim
28612 OSARCH!$OSARCH$ac_delim
28613 UNAME!$UNAME$ac_delim
28614 PBX_OSREV!$PBX_OSREV$ac_delim
28615 CC!$CC$ac_delim
28616 CXX!$CXX$ac_delim
28617 LD!$LD$ac_delim
28618 RANLIB!$RANLIB$ac_delim
28619 AR!$AR$ac_delim
28620 CFLAGS!$CFLAGS$ac_delim
28621 LDFLAGS!$LDFLAGS$ac_delim
28622 CPPFLAGS!$CPPFLAGS$ac_delim
28623 ac_ct_CC!$ac_ct_CC$ac_delim
28624 EXEEXT!$EXEEXT$ac_delim
28625 OBJEXT!$OBJEXT$ac_delim
28626 CXXFLAGS!$CXXFLAGS$ac_delim
28627 ac_ct_CXX!$ac_ct_CXX$ac_delim
28628 CPP!$CPP$ac_delim
28629 CXXCPP!$CXXCPP$ac_delim
28630 SED!$SED$ac_delim
28631 EGREP!$EGREP$ac_delim
28632 AWK!$AWK$ac_delim
28633 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28634 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28635 INSTALL_DATA!$INSTALL_DATA$ac_delim
28636 LN_S!$LN_S$ac_delim
28637 GNU_MAKE!$GNU_MAKE$ac_delim
28638 GNU_LD!$GNU_LD$ac_delim
28639 GREP!$GREP$ac_delim
28640 FIND!$FIND$ac_delim
28641 COMPRESS!$COMPRESS$ac_delim
28642 BASENAME!$BASENAME$ac_delim
28643 ID!$ID$ac_delim
28644 DIRNAME!$DIRNAME$ac_delim
28645 LN!$LN$ac_delim
28646 DOT!$DOT$ac_delim
28647 STRIP!$STRIP$ac_delim
28648 WGET!$WGET$ac_delim
28649 FETCH!$FETCH$ac_delim
28650 DOWNLOAD!$DOWNLOAD$ac_delim
28651 AST_DEVMODE!$AST_DEVMODE$ac_delim
28652 ALSA_LIB!$ALSA_LIB$ac_delim
28653 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
28654 PBX_ALSA!$PBX_ALSA$ac_delim
28655 CURL_LIB!$CURL_LIB$ac_delim
28656 _ACEOF
28658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28659 break
28660 elif $ac_last_try; then
28661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28663 { (exit 1); exit 1; }; }
28664 else
28665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28667 done
28669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28670 if test -n "$ac_eof"; then
28671 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28672 ac_eof=`expr $ac_eof + 1`
28675 cat >>$CONFIG_STATUS <<_ACEOF
28676 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28678 _ACEOF
28679 sed '
28680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28681 s/^/s,@/; s/!/@,|#_!!_#|/
28684 s/'"$ac_delim"'$/,g/; t
28685 s/$/\\/; p
28686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28687 ' >>$CONFIG_STATUS <conf$$subs.sed
28688 rm -f conf$$subs.sed
28689 cat >>$CONFIG_STATUS <<_ACEOF
28690 CEOF$ac_eof
28691 _ACEOF
28694 ac_delim='%!_!# '
28695 for ac_last_try in false false false false false :; do
28696 cat >conf$$subs.sed <<_ACEOF
28697 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
28698 PBX_CURL!$PBX_CURL$ac_delim
28699 CURSES_LIB!$CURSES_LIB$ac_delim
28700 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
28701 PBX_CURSES!$PBX_CURSES$ac_delim
28702 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
28703 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
28704 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
28705 GSM_LIB!$GSM_LIB$ac_delim
28706 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
28707 PBX_GSM!$PBX_GSM$ac_delim
28708 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
28709 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
28710 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
28711 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
28712 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
28713 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
28714 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
28715 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
28716 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
28717 KDE_LIB!$KDE_LIB$ac_delim
28718 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
28719 PBX_KDE!$PBX_KDE$ac_delim
28720 MISDN_LIB!$MISDN_LIB$ac_delim
28721 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
28722 PBX_MISDN!$PBX_MISDN$ac_delim
28723 NBS_LIB!$NBS_LIB$ac_delim
28724 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
28725 PBX_NBS!$PBX_NBS$ac_delim
28726 NCURSES_LIB!$NCURSES_LIB$ac_delim
28727 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
28728 PBX_NCURSES!$PBX_NCURSES$ac_delim
28729 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
28730 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
28731 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
28732 NEWT_LIB!$NEWT_LIB$ac_delim
28733 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
28734 PBX_NEWT!$PBX_NEWT$ac_delim
28735 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
28736 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
28737 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
28738 OGG_LIB!$OGG_LIB$ac_delim
28739 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
28740 PBX_OGG!$PBX_OGG$ac_delim
28741 OSPTK_LIB!$OSPTK_LIB$ac_delim
28742 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
28743 PBX_OSPTK!$PBX_OSPTK$ac_delim
28744 OSS_LIB!$OSS_LIB$ac_delim
28745 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
28746 PBX_OSS!$PBX_OSS$ac_delim
28747 POPT_LIB!$POPT_LIB$ac_delim
28748 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
28749 PBX_POPT!$PBX_POPT$ac_delim
28750 PGSQL_LIB!$PGSQL_LIB$ac_delim
28751 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
28752 PBX_PGSQL!$PBX_PGSQL$ac_delim
28753 PRI_LIB!$PRI_LIB$ac_delim
28754 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
28755 PBX_PRI!$PBX_PRI$ac_delim
28756 PWLIB_LIB!$PWLIB_LIB$ac_delim
28757 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
28758 PBX_PWLIB!$PBX_PWLIB$ac_delim
28759 OPENH323_LIB!$OPENH323_LIB$ac_delim
28760 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
28761 PBX_OPENH323!$PBX_OPENH323$ac_delim
28762 QT_LIB!$QT_LIB$ac_delim
28763 QT_INCLUDE!$QT_INCLUDE$ac_delim
28764 PBX_QT!$PBX_QT$ac_delim
28765 RADIUS_LIB!$RADIUS_LIB$ac_delim
28766 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
28767 PBX_RADIUS!$PBX_RADIUS$ac_delim
28768 SPEEX_LIB!$SPEEX_LIB$ac_delim
28769 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
28770 PBX_SPEEX!$PBX_SPEEX$ac_delim
28771 SQLITE_LIB!$SQLITE_LIB$ac_delim
28772 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
28773 PBX_SQLITE!$PBX_SQLITE$ac_delim
28774 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
28775 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
28776 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
28777 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
28778 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
28779 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
28780 FREETDS_LIB!$FREETDS_LIB$ac_delim
28781 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
28782 PBX_FREETDS!$PBX_FREETDS$ac_delim
28783 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
28784 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
28785 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
28786 TINFO_LIB!$TINFO_LIB$ac_delim
28787 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
28788 PBX_TINFO!$PBX_TINFO$ac_delim
28789 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
28790 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
28791 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
28792 VORBIS_LIB!$VORBIS_LIB$ac_delim
28793 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
28794 _ACEOF
28796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28797 break
28798 elif $ac_last_try; then
28799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28801 { (exit 1); exit 1; }; }
28802 else
28803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28805 done
28807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28808 if test -n "$ac_eof"; then
28809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28810 ac_eof=`expr $ac_eof + 1`
28813 cat >>$CONFIG_STATUS <<_ACEOF
28814 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28816 _ACEOF
28817 sed '
28818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28819 s/^/s,@/; s/!/@,|#_!!_#|/
28822 s/'"$ac_delim"'$/,g/; t
28823 s/$/\\/; p
28824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28825 ' >>$CONFIG_STATUS <conf$$subs.sed
28826 rm -f conf$$subs.sed
28827 cat >>$CONFIG_STATUS <<_ACEOF
28828 CEOF$ac_eof
28829 _ACEOF
28832 ac_delim='%!_!# '
28833 for ac_last_try in false false false false false :; do
28834 cat >conf$$subs.sed <<_ACEOF
28835 PBX_VORBIS!$PBX_VORBIS$ac_delim
28836 VPB_LIB!$VPB_LIB$ac_delim
28837 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
28838 PBX_VPB!$PBX_VPB$ac_delim
28839 ZLIB_LIB!$ZLIB_LIB$ac_delim
28840 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
28841 PBX_ZLIB!$PBX_ZLIB$ac_delim
28842 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
28843 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
28844 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
28845 ALLOCA!$ALLOCA$ac_delim
28846 LIBOBJS!$LIBOBJS$ac_delim
28847 POW_LIB!$POW_LIB$ac_delim
28848 GC_CFLAGS!$GC_CFLAGS$ac_delim
28849 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
28850 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
28851 KDEINIT!$KDEINIT$ac_delim
28852 KDEDIR!$KDEDIR$ac_delim
28853 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
28854 PG_CONFIG!$PG_CONFIG$ac_delim
28855 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
28856 PWLIBDIR!$PWLIBDIR$ac_delim
28857 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
28858 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
28859 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
28860 OPENH323DIR!$OPENH323DIR$ac_delim
28861 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
28862 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
28863 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
28864 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
28865 QTMOC!$QTMOC$ac_delim
28866 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
28867 PBX_H323!$PBX_H323$ac_delim
28868 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
28869 GTKCONFIG!$GTKCONFIG$ac_delim
28870 PBX_GTK!$PBX_GTK$ac_delim
28871 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
28872 GTK_LIB!$GTK_LIB$ac_delim
28873 CURL!$CURL$ac_delim
28874 LTLIBOBJS!$LTLIBOBJS$ac_delim
28875 _ACEOF
28877 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
28878 break
28879 elif $ac_last_try; then
28880 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28881 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28882 { (exit 1); exit 1; }; }
28883 else
28884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28886 done
28888 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28889 if test -n "$ac_eof"; then
28890 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28891 ac_eof=`expr $ac_eof + 1`
28894 cat >>$CONFIG_STATUS <<_ACEOF
28895 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28897 _ACEOF
28898 sed '
28899 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28900 s/^/s,@/; s/!/@,|#_!!_#|/
28903 s/'"$ac_delim"'$/,g/; t
28904 s/$/\\/; p
28905 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28906 ' >>$CONFIG_STATUS <conf$$subs.sed
28907 rm -f conf$$subs.sed
28908 cat >>$CONFIG_STATUS <<_ACEOF
28909 :end
28910 s/|#_!!_#|//g
28911 CEOF$ac_eof
28912 _ACEOF
28915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28917 # trailing colons and then remove the whole line if VPATH becomes empty
28918 # (actually we leave an empty line to preserve line numbers).
28919 if test "x$srcdir" = x.; then
28920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28921 s/:*\$(srcdir):*/:/
28922 s/:*\${srcdir}:*/:/
28923 s/:*@srcdir@:*/:/
28924 s/^\([^=]*=[ ]*\):*/\1/
28925 s/:*$//
28926 s/^[^=]*=[ ]*$//
28930 cat >>$CONFIG_STATUS <<\_ACEOF
28931 fi # test -n "$CONFIG_FILES"
28934 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28936 case $ac_tag in
28937 :[FHLC]) ac_mode=$ac_tag; continue;;
28938 esac
28939 case $ac_mode$ac_tag in
28940 :[FHL]*:*);;
28941 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28942 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28943 { (exit 1); exit 1; }; };;
28944 :[FH]-) ac_tag=-:-;;
28945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28946 esac
28947 ac_save_IFS=$IFS
28948 IFS=:
28949 set x $ac_tag
28950 IFS=$ac_save_IFS
28951 shift
28952 ac_file=$1
28953 shift
28955 case $ac_mode in
28956 :L) ac_source=$1;;
28957 :[FH])
28958 ac_file_inputs=
28959 for ac_f
28961 case $ac_f in
28962 -) ac_f="$tmp/stdin";;
28963 *) # Look for the file first in the build tree, then in the source tree
28964 # (if the path is not absolute). The absolute path cannot be DOS-style,
28965 # because $ac_f cannot contain `:'.
28966 test -f "$ac_f" ||
28967 case $ac_f in
28968 [\\/$]*) false;;
28969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28970 esac ||
28971 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28972 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28973 { (exit 1); exit 1; }; };;
28974 esac
28975 ac_file_inputs="$ac_file_inputs $ac_f"
28976 done
28978 # Let's still pretend it is `configure' which instantiates (i.e., don't
28979 # use $as_me), people would be surprised to read:
28980 # /* config.h. Generated by config.status. */
28981 configure_input="Generated from "`IFS=:
28982 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28983 if test x"$ac_file" != x-; then
28984 configure_input="$ac_file. $configure_input"
28985 { echo "$as_me:$LINENO: creating $ac_file" >&5
28986 echo "$as_me: creating $ac_file" >&6;}
28989 case $ac_tag in
28990 *:-:* | *:-) cat >"$tmp/stdin";;
28991 esac
28993 esac
28995 ac_dir=`$as_dirname -- "$ac_file" ||
28996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28997 X"$ac_file" : 'X\(//\)[^/]' \| \
28998 X"$ac_file" : 'X\(//\)$' \| \
28999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29000 echo X"$ac_file" |
29001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29002 s//\1/
29005 /^X\(\/\/\)[^/].*/{
29006 s//\1/
29009 /^X\(\/\/\)$/{
29010 s//\1/
29013 /^X\(\/\).*/{
29014 s//\1/
29017 s/.*/./; q'`
29018 { as_dir="$ac_dir"
29019 case $as_dir in #(
29020 -*) as_dir=./$as_dir;;
29021 esac
29022 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29023 as_dirs=
29024 while :; do
29025 case $as_dir in #(
29026 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29027 *) as_qdir=$as_dir;;
29028 esac
29029 as_dirs="'$as_qdir' $as_dirs"
29030 as_dir=`$as_dirname -- "$as_dir" ||
29031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29032 X"$as_dir" : 'X\(//\)[^/]' \| \
29033 X"$as_dir" : 'X\(//\)$' \| \
29034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29035 echo X"$as_dir" |
29036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29037 s//\1/
29040 /^X\(\/\/\)[^/].*/{
29041 s//\1/
29044 /^X\(\/\/\)$/{
29045 s//\1/
29048 /^X\(\/\).*/{
29049 s//\1/
29052 s/.*/./; q'`
29053 test -d "$as_dir" && break
29054 done
29055 test -z "$as_dirs" || eval "mkdir $as_dirs"
29056 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29057 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29058 { (exit 1); exit 1; }; }; }
29059 ac_builddir=.
29061 case "$ac_dir" in
29062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29065 # A ".." for each directory in $ac_dir_suffix.
29066 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29067 case $ac_top_builddir_sub in
29068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29070 esac ;;
29071 esac
29072 ac_abs_top_builddir=$ac_pwd
29073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29074 # for backward compatibility:
29075 ac_top_builddir=$ac_top_build_prefix
29077 case $srcdir in
29078 .) # We are building in place.
29079 ac_srcdir=.
29080 ac_top_srcdir=$ac_top_builddir_sub
29081 ac_abs_top_srcdir=$ac_pwd ;;
29082 [\\/]* | ?:[\\/]* ) # Absolute name.
29083 ac_srcdir=$srcdir$ac_dir_suffix;
29084 ac_top_srcdir=$srcdir
29085 ac_abs_top_srcdir=$srcdir ;;
29086 *) # Relative name.
29087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29088 ac_top_srcdir=$ac_top_build_prefix$srcdir
29089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29090 esac
29091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29094 case $ac_mode in
29097 # CONFIG_FILE
29100 case $INSTALL in
29101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29103 esac
29104 _ACEOF
29106 cat >>$CONFIG_STATUS <<\_ACEOF
29107 # If the template does not know about datarootdir, expand it.
29108 # FIXME: This hack should be removed a few years after 2.60.
29109 ac_datarootdir_hack=; ac_datarootdir_seen=
29111 case `sed -n '/datarootdir/ {
29115 /@datadir@/p
29116 /@docdir@/p
29117 /@infodir@/p
29118 /@localedir@/p
29119 /@mandir@/p
29120 ' $ac_file_inputs` in
29121 *datarootdir*) ac_datarootdir_seen=yes;;
29122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29123 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29124 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29125 _ACEOF
29126 cat >>$CONFIG_STATUS <<_ACEOF
29127 ac_datarootdir_hack='
29128 s&@datadir@&$datadir&g
29129 s&@docdir@&$docdir&g
29130 s&@infodir@&$infodir&g
29131 s&@localedir@&$localedir&g
29132 s&@mandir@&$mandir&g
29133 s&\\\${datarootdir}&$datarootdir&g' ;;
29134 esac
29135 _ACEOF
29137 # Neutralize VPATH when `$srcdir' = `.'.
29138 # Shell code in configure.ac might set extrasub.
29139 # FIXME: do we really want to maintain this feature?
29140 cat >>$CONFIG_STATUS <<_ACEOF
29141 sed "$ac_vpsub
29142 $extrasub
29143 _ACEOF
29144 cat >>$CONFIG_STATUS <<\_ACEOF
29146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29147 s&@configure_input@&$configure_input&;t t
29148 s&@top_builddir@&$ac_top_builddir_sub&;t t
29149 s&@srcdir@&$ac_srcdir&;t t
29150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29151 s&@top_srcdir@&$ac_top_srcdir&;t t
29152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29153 s&@builddir@&$ac_builddir&;t t
29154 s&@abs_builddir@&$ac_abs_builddir&;t t
29155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29156 s&@INSTALL@&$ac_INSTALL&;t t
29157 $ac_datarootdir_hack
29158 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
29160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29161 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29163 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29164 which seems to be undefined. Please make sure it is defined." >&5
29165 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29166 which seems to be undefined. Please make sure it is defined." >&2;}
29168 rm -f "$tmp/stdin"
29169 case $ac_file in
29170 -) cat "$tmp/out"; rm -f "$tmp/out";;
29171 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29172 esac
29176 # CONFIG_HEADER
29178 _ACEOF
29180 # Transform confdefs.h into a sed script `conftest.defines', that
29181 # substitutes the proper values into config.h.in to produce config.h.
29182 rm -f conftest.defines conftest.tail
29183 # First, append a space to every undef/define line, to ease matching.
29184 echo 's/$/ /' >conftest.defines
29185 # Then, protect against being on the right side of a sed subst, or in
29186 # an unquoted here document, in config.status. If some macros were
29187 # called several times there might be several #defines for the same
29188 # symbol, which is useless. But do not sort them, since the last
29189 # AC_DEFINE must be honored.
29190 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29191 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29192 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29193 # PARAMS is the parameter list in the macro definition--in most cases, it's
29194 # just an empty string.
29195 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29196 ac_dB='\\)[ (].*,\\1define\\2'
29197 ac_dC=' '
29198 ac_dD=' ,'
29200 uniq confdefs.h |
29201 sed -n '
29202 t rset
29203 :rset
29204 s/^[ ]*#[ ]*define[ ][ ]*//
29205 t ok
29208 s/[\\&,]/\\&/g
29209 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29210 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29211 ' >>conftest.defines
29213 # Remove the space that was appended to ease matching.
29214 # Then replace #undef with comments. This is necessary, for
29215 # example, in the case of _POSIX_SOURCE, which is predefined and required
29216 # on some systems where configure will not decide to define it.
29217 # (The regexp can be short, since the line contains either #define or #undef.)
29218 echo 's/ $//
29219 s,^[ #]*u.*,/* & */,' >>conftest.defines
29221 # Break up conftest.defines:
29222 ac_max_sed_lines=50
29224 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29225 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29226 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29227 # et cetera.
29228 ac_in='$ac_file_inputs'
29229 ac_out='"$tmp/out1"'
29230 ac_nxt='"$tmp/out2"'
29232 while :
29234 # Write a here document:
29235 cat >>$CONFIG_STATUS <<_ACEOF
29236 # First, check the format of the line:
29237 cat >"\$tmp/defines.sed" <<\\CEOF
29238 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29239 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29241 :def
29242 _ACEOF
29243 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29244 echo 'CEOF
29245 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29246 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29247 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29248 grep . conftest.tail >/dev/null || break
29249 rm -f conftest.defines
29250 mv conftest.tail conftest.defines
29251 done
29252 rm -f conftest.defines conftest.tail
29254 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29255 cat >>$CONFIG_STATUS <<\_ACEOF
29256 if test x"$ac_file" != x-; then
29257 echo "/* $configure_input */" >"$tmp/config.h"
29258 cat "$ac_result" >>"$tmp/config.h"
29259 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29260 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29261 echo "$as_me: $ac_file is unchanged" >&6;}
29262 else
29263 rm -f $ac_file
29264 mv "$tmp/config.h" $ac_file
29266 else
29267 echo "/* $configure_input */"
29268 cat "$ac_result"
29270 rm -f "$tmp/out12"
29274 esac
29276 done # for ac_tag
29279 { (exit 0); exit 0; }
29280 _ACEOF
29281 chmod +x $CONFIG_STATUS
29282 ac_clean_files=$ac_clean_files_save
29285 # configure is writing to config.log, and then calls config.status.
29286 # config.status does its own redirection, appending to config.log.
29287 # Unfortunately, on DOS this fails, as config.log is still kept open
29288 # by configure, so config.status won't be able to write to it; its
29289 # output is simply discarded. So we exec the FD to /dev/null,
29290 # effectively closing config.log, so it can be properly (re)opened and
29291 # appended to by config.status. When coming back to configure, we
29292 # need to make the FD available again.
29293 if test "$no_create" != yes; then
29294 ac_cs_success=:
29295 ac_config_status_args=
29296 test "$silent" = yes &&
29297 ac_config_status_args="$ac_config_status_args --quiet"
29298 exec 5>/dev/null
29299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29300 exec 5>>config.log
29301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29302 # would make configure fail if this is the last instruction.
29303 $ac_cs_success || { (exit 1); exit 1; }
29307 if test "x${silent}" != "xyes" ; then
29308 echo
29309 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
29310 echo " .\$7\$7.. .7\$\$7:. "
29311 echo " .\$\$:. ,\$7.7 "
29312 echo " .\$7. 7\$\$\$\$ .\$\$77 "
29313 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
29314 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
29315 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
29316 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
29317 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
29318 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
29319 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
29320 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
29321 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
29322 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
29323 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
29324 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
29325 echo " \$\$\$\$\$ \$\$\$ "
29326 echo " \$\$\$\$7. \$\$ (TM) "
29327 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
29328 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
29329 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
29330 echo
29333 { echo "$as_me:$LINENO: Package configured for: " >&5
29334 echo "$as_me: Package configured for: " >&6;}
29335 { echo "$as_me:$LINENO: OS type : $host_os" >&5
29336 echo "$as_me: OS type : $host_os" >&6;}
29337 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
29338 echo "$as_me: Host CPU : $host_cpu" >&6;}
29339 if test "${cross_compiling}" = "yes"; then
29340 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
29341 echo "$as_me: Cross Compilation = YES" >&6;}