move extern declaration for this option to a header file where it belongs
[asterisk-bristuff.git] / configure
blob8e9e65e7736bce9ecaab89cace29398807413979
1 #! /bin/sh
2 # From configure.ac Revision: 48561 .
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
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 GNU_LD
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
867 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 CPP C preprocessor
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
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"
2057 cat >>confdefs.h <<\_ACEOF
2058 #define _GNU_SOURCE 1
2059 _ACEOF
2062 ac_ext=c
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2091 IFS=$as_save_IFS
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$ac_cv_prog_CC"; then
2107 ac_ct_CC=$CC
2108 # Extract the first word of "gcc", so it can be a program name with args.
2109 set dummy gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test -n "$ac_ct_CC"; then
2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_ac_ct_CC="gcc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2131 IFS=$as_save_IFS
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6; }
2139 else
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2144 if test "x$ac_ct_CC" = x; then
2145 CC=""
2146 else
2147 case $cross_compiling:$ac_tool_warned in
2148 yes:)
2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2155 ac_tool_warned=yes ;;
2156 esac
2157 CC=$ac_ct_CC
2159 else
2160 CC="$ac_cv_prog_CC"
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_CC="${ac_tool_prefix}cc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2186 done
2187 done
2188 IFS=$as_save_IFS
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2196 else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2204 if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206 set dummy cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 ac_prog_rejected=no
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2225 continue
2227 ac_cv_prog_CC="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2231 done
2232 done
2233 IFS=$as_save_IFS
2235 if test $ac_prog_rejected = yes; then
2236 # We found a bogon in the path, so make sure we never use it.
2237 set dummy $ac_cv_prog_CC
2238 shift
2239 if test $# != 0; then
2240 # We chose a different compiler from the bogus one.
2241 # However, it has the same basename, so the bogon will be chosen
2242 # first if we set CC to just the basename; use the full file name.
2243 shift
2244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2253 else
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2260 if test -z "$CC"; then
2261 if test -n "$ac_tool_prefix"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2285 done
2286 done
2287 IFS=$as_save_IFS
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 { echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6; }
2295 else
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$CC" && break
2302 done
2304 if test -z "$CC"; then
2305 ac_ct_CC=$CC
2306 for ac_prog in cl.exe
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6; }
2339 else
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2345 test -n "$ac_ct_CC" && break
2346 done
2348 if test "x$ac_ct_CC" = x; then
2349 CC=""
2350 else
2351 case $cross_compiling:$ac_tool_warned in
2352 yes:)
2353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&5
2356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2359 ac_tool_warned=yes ;;
2360 esac
2361 CC=$ac_ct_CC
2368 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&5
2370 echo "$as_me: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO: checking for C compiler version" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (ac_try="$ac_compiler --version >&5"
2378 case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compiler --version >&5") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387 { (ac_try="$ac_compiler -v >&5"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compiler -v >&5") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -V >&5"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compiler -V >&5") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2420 return 0;
2422 _ACEOF
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2427 # of exeext.
2428 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2429 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 # List of possible output files, starting from the most likely.
2433 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2434 # only as a last resort. b.out is created by i960 compilers.
2435 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2437 # The IRIX 6 linker writes into existing files which may not be
2438 # executable, retaining their permissions. Remove them first so a
2439 # subsequent execution test works.
2440 ac_rmfiles=
2441 for ac_file in $ac_files
2443 case $ac_file in
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2446 esac
2447 done
2448 rm -f $ac_rmfiles
2450 if { (ac_try="$ac_link_default"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_link_default") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2463 # so that the user can short-circuit this test for compilers unknown to
2464 # Autoconf.
2465 for ac_file in $ac_files ''
2467 test -f "$ac_file" || continue
2468 case $ac_file in
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2471 [ab].out )
2472 # We found the default executable, but exeext='' is most
2473 # certainly right.
2474 break;;
2475 *.* )
2476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2477 then :; else
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480 # We set ac_cv_exeext here because the later test for it is not
2481 # safe: cross compilers may not add the suffix if given an `-o'
2482 # argument, so we may need to know it at that point already.
2483 # Even if this section looks crufty: it has the advantage of
2484 # actually working.
2485 break;;
2487 break;;
2488 esac
2489 done
2490 test "$ac_cv_exeext" = no && ac_cv_exeext=
2492 else
2493 ac_file=''
2496 { echo "$as_me:$LINENO: result: $ac_file" >&5
2497 echo "${ECHO_T}$ac_file" >&6; }
2498 if test -z "$ac_file"; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: C compiler cannot create executables
2505 See \`config.log' for more details." >&2;}
2506 { (exit 77); exit 77; }; }
2509 ac_exeext=$ac_cv_exeext
2511 # Check that the compiler produces executables we can run. If not, either
2512 # the compiler is broken, or we cross compile.
2513 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2514 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2515 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2516 # If not cross compiling, check that we can run a simple program.
2517 if test "$cross_compiling" != yes; then
2518 if { ac_try='./$ac_file'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 cross_compiling=no
2529 else
2530 if test "$cross_compiling" = maybe; then
2531 cross_compiling=yes
2532 else
2533 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2543 { echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6; }
2546 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2547 ac_clean_files=$ac_clean_files_save
2548 # Check that the compiler produces executables we can run. If not, either
2549 # the compiler is broken, or we cross compile.
2550 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2551 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2552 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2553 echo "${ECHO_T}$cross_compiling" >&6; }
2555 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2556 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2557 if { (ac_try="$ac_link"
2558 case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_link") 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2569 # work properly (i.e., refer to `conftest.exe'), while it won't with
2570 # `rm'.
2571 for ac_file in conftest.exe conftest conftest.*; do
2572 test -f "$ac_file" || continue
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2576 break;;
2577 * ) break;;
2578 esac
2579 done
2580 else
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest$ac_cv_exeext
2589 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2594 ac_exeext=$EXEEXT
2595 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 main ()
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 for ac_file in conftest.o conftest.obj conftest.*; do
2627 test -f "$ac_file" || continue;
2628 case $ac_file in
2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2631 break;;
2632 esac
2633 done
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2647 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2648 echo "${ECHO_T}$ac_cv_objext" >&6; }
2649 OBJEXT=$ac_cv_objext
2650 ac_objext=$OBJEXT
2651 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2652 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2653 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 main ()
2666 #ifndef __GNUC__
2667 choke me
2668 #endif
2671 return 0;
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compile") 2>conftest.er1
2682 ac_status=$?
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } && {
2688 test -z "$ac_c_werror_flag" ||
2689 test ! -s conftest.err
2690 } && test -s conftest.$ac_objext; then
2691 ac_compiler_gnu=yes
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 ac_compiler_gnu=no
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2704 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2705 GCC=`test $ac_compiler_gnu = yes && echo yes`
2706 ac_test_CFLAGS=${CFLAGS+set}
2707 ac_save_CFLAGS=$CFLAGS
2708 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2709 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_cc_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713 ac_save_c_werror_flag=$ac_c_werror_flag
2714 ac_c_werror_flag=yes
2715 ac_cv_prog_cc_g=no
2716 CFLAGS="-g"
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h. */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 main ()
2729 return 0;
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2749 ac_cv_prog_cc_g=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 CFLAGS=""
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 ac_c_werror_flag=$ac_save_c_werror_flag
2793 CFLAGS="-g"
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2826 ac_cv_prog_cc_g=yes
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_c_werror_flag=$ac_save_c_werror_flag
2843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2845 if test "$ac_test_CFLAGS" = set; then
2846 CFLAGS=$ac_save_CFLAGS
2847 elif test $ac_cv_prog_cc_g = yes; then
2848 if test "$GCC" = yes; then
2849 CFLAGS="-g -O2"
2850 else
2851 CFLAGS="-g"
2853 else
2854 if test "$GCC" = yes; then
2855 CFLAGS="-O2"
2856 else
2857 CFLAGS=
2860 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2861 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_cc_c89+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 ac_cv_prog_cc_c89=no
2866 ac_save_CC=$CC
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2873 #include <stdarg.h>
2874 #include <stdio.h>
2875 #include <sys/types.h>
2876 #include <sys/stat.h>
2877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2878 struct buf { int x; };
2879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2880 static char *e (p, i)
2881 char **p;
2882 int i;
2884 return p[i];
2886 static char *f (char * (*g) (char **, int), char **p, ...)
2888 char *s;
2889 va_list v;
2890 va_start (v,p);
2891 s = g (p, va_arg (v,int));
2892 va_end (v);
2893 return s;
2896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2897 function prototypes and stuff, but not '\xHH' hex character constants.
2898 These don't provoke an error unfortunately, instead are silently treated
2899 as 'x'. The following induces an error, until -std is added to get
2900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2901 array size at least. It's necessary to write '\x00'==0 to get something
2902 that's true only with -std. */
2903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2906 inside strings and character constants. */
2907 #define FOO(x) 'x'
2908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2910 int test (int i, double x);
2911 struct s1 {int (*f) (int a);};
2912 struct s2 {int (*f) (double a);};
2913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2914 int argc;
2915 char **argv;
2917 main ()
2919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2921 return 0;
2923 _ACEOF
2924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2927 CC="$ac_save_CC $ac_arg"
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_cv_prog_cc_c89=$ac_arg
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f core conftest.err conftest.$ac_objext
2954 test "x$ac_cv_prog_cc_c89" != "xno" && break
2955 done
2956 rm -f conftest.$ac_ext
2957 CC=$ac_save_CC
2960 # AC_CACHE_VAL
2961 case "x$ac_cv_prog_cc_c89" in
2963 { echo "$as_me:$LINENO: result: none needed" >&5
2964 echo "${ECHO_T}none needed" >&6; } ;;
2965 xno)
2966 { echo "$as_me:$LINENO: result: unsupported" >&5
2967 echo "${ECHO_T}unsupported" >&6; } ;;
2969 CC="$CC $ac_cv_prog_cc_c89"
2970 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2971 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2972 esac
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2991 CPP=
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3000 ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #ifdef __STDC__
3016 # include <limits.h>
3017 #else
3018 # include <assert.h>
3019 #endif
3020 Syntax error
3021 _ACEOF
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3044 continue
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether nonexistent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3058 _ACEOF
3059 if { (ac_try="$ac_cpp conftest.$ac_ext"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null && {
3072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 }; then
3075 # Broken: success on invalid input.
3076 continue
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 # Passes both tests.
3082 ac_preproc_ok=:
3083 break
3086 rm -f conftest.err conftest.$ac_ext
3088 done
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.$ac_ext
3091 if $ac_preproc_ok; then
3092 break
3095 done
3096 ac_cv_prog_CPP=$CPP
3099 CPP=$ac_cv_prog_CPP
3100 else
3101 ac_cv_prog_CPP=$CPP
3103 { echo "$as_me:$LINENO: result: $CPP" >&5
3104 echo "${ECHO_T}$CPP" >&6; }
3105 ac_preproc_ok=false
3106 for ac_c_preproc_warn_flag in '' yes
3108 # Use a header file that comes with gcc, so configuring glibc
3109 # with a fresh cross-compiler works.
3110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3111 # <limits.h> exists even on freestanding compilers.
3112 # On the NeXT, cc -E runs the code through the compiler's parser,
3113 # not just through cpp. "Syntax error" is here to catch this case.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #ifdef __STDC__
3121 # include <limits.h>
3122 #else
3123 # include <assert.h>
3124 #endif
3125 Syntax error
3126 _ACEOF
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3149 continue
3152 rm -f conftest.err conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3163 _ACEOF
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null && {
3177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 }; then
3180 # Broken: success on invalid input.
3181 continue
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3191 rm -f conftest.err conftest.$ac_ext
3193 done
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.$ac_ext
3196 if $ac_preproc_ok; then
3198 else
3199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3214 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3215 if test "${ac_cv_path_GREP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 # Extract the first word of "grep ggrep" to use in msg output
3219 if test -z "$GREP"; then
3220 set dummy grep ggrep; ac_prog_name=$2
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 ac_path_GREP_found=false
3225 # Loop through the user's path and test for each of PROGNAME-LIST
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in grep ggrep; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3235 # Check for GNU ac_path_GREP and select it if it is found.
3236 # Check for GNU $ac_path_GREP
3237 case `"$ac_path_GREP" --version 2>&1` in
3238 *GNU*)
3239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3241 ac_count=0
3242 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3243 while :
3245 cat "conftest.in" "conftest.in" >"conftest.tmp"
3246 mv "conftest.tmp" "conftest.in"
3247 cp "conftest.in" "conftest.nl"
3248 echo 'GREP' >> "conftest.nl"
3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3251 ac_count=`expr $ac_count + 1`
3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253 # Best one so far, save it but keep looking for a better one
3254 ac_cv_path_GREP="$ac_path_GREP"
3255 ac_path_GREP_max=$ac_count
3257 # 10*(2^10) chars as input seems more than enough
3258 test $ac_count -gt 10 && break
3259 done
3260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3261 esac
3264 $ac_path_GREP_found && break 3
3265 done
3266 done
3268 done
3269 IFS=$as_save_IFS
3274 GREP="$ac_cv_path_GREP"
3275 if test -z "$GREP"; then
3276 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278 { (exit 1); exit 1; }; }
3281 else
3282 ac_cv_path_GREP=$GREP
3287 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3289 GREP="$ac_cv_path_GREP"
3292 { echo "$as_me:$LINENO: checking for egrep" >&5
3293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_EGREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3298 then ac_cv_path_EGREP="$GREP -E"
3299 else
3300 # Extract the first word of "egrep" to use in msg output
3301 if test -z "$EGREP"; then
3302 set dummy egrep; ac_prog_name=$2
3303 if test "${ac_cv_path_EGREP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 ac_path_EGREP_found=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_prog in egrep; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3317 # Check for GNU ac_path_EGREP and select it if it is found.
3318 # Check for GNU $ac_path_EGREP
3319 case `"$ac_path_EGREP" --version 2>&1` in
3320 *GNU*)
3321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3323 ac_count=0
3324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3325 while :
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 echo 'EGREP' >> "conftest.nl"
3331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3333 ac_count=`expr $ac_count + 1`
3334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_EGREP="$ac_path_EGREP"
3337 ac_path_EGREP_max=$ac_count
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3341 done
3342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3343 esac
3346 $ac_path_EGREP_found && break 3
3347 done
3348 done
3350 done
3351 IFS=$as_save_IFS
3356 EGREP="$ac_cv_path_EGREP"
3357 if test -z "$EGREP"; then
3358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3363 else
3364 ac_cv_path_EGREP=$EGREP
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3372 EGREP="$ac_cv_path_EGREP"
3376 { echo "$as_me:$LINENO: checking for AIX" >&5
3377 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #ifdef _AIX
3386 #endif
3388 _ACEOF
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 $EGREP "yes" >/dev/null 2>&1; then
3391 { echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6; }
3393 cat >>confdefs.h <<\_ACEOF
3394 #define _ALL_SOURCE 1
3395 _ACEOF
3397 else
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3401 rm -f conftest*
3404 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3406 if test "${ac_cv_header_stdc+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <stdlib.h>
3416 #include <stdarg.h>
3417 #include <string.h>
3418 #include <float.h>
3421 main ()
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_header_stdc=yes
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_cv_header_stdc=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 if test $ac_cv_header_stdc = yes; then
3456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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. */
3463 #include <string.h>
3465 _ACEOF
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 $EGREP "memchr" >/dev/null 2>&1; then
3469 else
3470 ac_cv_header_stdc=no
3472 rm -f conftest*
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <stdlib.h>
3486 _ACEOF
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 $EGREP "free" >/dev/null 2>&1; then
3490 else
3491 ac_cv_header_stdc=no
3493 rm -f conftest*
3497 if test $ac_cv_header_stdc = yes; then
3498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3499 if test "$cross_compiling" = yes; then
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ctype.h>
3509 #include <stdlib.h>
3510 #if ((' ' & 0x0FF) == 0x020)
3511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3513 #else
3514 # define ISLOWER(c) \
3515 (('a' <= (c) && (c) <= 'i') \
3516 || ('j' <= (c) && (c) <= 'r') \
3517 || ('s' <= (c) && (c) <= 'z'))
3518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3519 #endif
3521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3523 main ()
3525 int i;
3526 for (i = 0; i < 256; i++)
3527 if (XOR (islower (i), ISLOWER (i))
3528 || toupper (i) != TOUPPER (i))
3529 return 2;
3530 return 0;
3532 _ACEOF
3533 rm -f conftest$ac_exeext
3534 if { (ac_try="$ac_link"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3544 { (case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_try") 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3554 else
3555 echo "$as_me: program exited with status $ac_status" >&5
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ( exit $ac_status )
3560 ac_cv_header_stdc=no
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3574 _ACEOF
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 eval "$as_ac_Header=yes"
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 eval "$as_ac_Header=no"
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_res=`eval echo '${'$as_ac_Header'}'`
3635 { echo "$as_me:$LINENO: result: $ac_res" >&5
3636 echo "${ECHO_T}$ac_res" >&6; }
3637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3638 cat >>confdefs.h <<_ACEOF
3639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3640 _ACEOF
3644 done
3647 if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3649 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3654 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3655 else
3656 # Is the header compilable?
3657 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3658 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3666 #include <minix/config.h>
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_header_compiler=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_compiler=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6; }
3697 # Is the header present?
3698 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3699 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <minix/config.h>
3707 _ACEOF
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null && {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 }; then
3724 ac_header_preproc=yes
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_header_preproc=no
3732 rm -f conftest.err conftest.$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6; }
3736 # So? What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3738 yes:no: )
3739 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3743 ac_header_preproc=yes
3745 no:yes:* )
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3760 esac
3761 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3762 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3763 if test "${ac_cv_header_minix_config_h+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 ac_cv_header_minix_config_h=$ac_header_preproc
3768 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3769 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3772 if test $ac_cv_header_minix_config_h = yes; then
3773 MINIX=yes
3774 else
3775 MINIX=
3779 if test "$MINIX" = yes; then
3781 cat >>confdefs.h <<\_ACEOF
3782 #define _POSIX_SOURCE 1
3783 _ACEOF
3786 cat >>confdefs.h <<\_ACEOF
3787 #define _POSIX_1_SOURCE 2
3788 _ACEOF
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _MINIX 1
3793 _ACEOF
3807 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3808 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # define __EXTENSIONS__ 1
3820 $ac_includes_default
3822 main ()
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (ac_try="$ac_compile"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_cv_safe_to_define___extensions__=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_safe_to_define___extensions__=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3857 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 cat >>confdefs.h <<\_ACEOF
3860 #define __EXTENSIONS__ 1
3861 _ACEOF
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_PTHREAD_SEMANTICS 1
3865 _ACEOF
3867 cat >>confdefs.h <<\_ACEOF
3868 #define _TANDEM_SOURCE 1
3869 _ACEOF
3873 case "${host_os}" in
3874 freebsd*)
3875 ac_default_prefix=/usr/local
3876 CPPFLAGS=-I/usr/local/include
3877 LDFLAGS=-L/usr/local/lib
3880 ac_default_prefix=/usr
3881 if test ${sysconfdir} = '${prefix}/etc'; then
3882 sysconfdir=/etc
3884 if test ${mandir} = '${prefix}/man'; then
3885 mandir=/usr/share/man
3888 esac
3890 if test ${localstatedir} = '${prefix}/var'; then
3891 localstatedir=/var
3894 BUILD_PLATFORM=${build}
3895 BUILD_CPU=${build_cpu}
3896 BUILD_VENDOR=${build_vendor}
3897 BUILD_OS=${build_os}
3904 HOST_PLATFORM=${host}
3905 HOST_CPU=${host_cpu}
3906 HOST_VENDOR=${host_vendor}
3907 HOST_OS=${host_os}
3914 case "${host_os}" in
3915 freebsd*)
3916 OSARCH=FreeBSD
3918 netbsd*)
3919 OSARCH=NetBSD
3921 openbsd*)
3922 OSARCH=OpenBSD
3924 solaris*)
3925 OSARCH=SunOS
3928 OSARCH=${HOST_OS}
3930 esac
3934 # check for uname
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}uname; ac_word=$2
3938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_UNAME+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 case $UNAME in
3944 [\\/]* | ?:[\\/]*)
3945 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3964 esac
3966 UNAME=$ac_cv_path_UNAME
3967 if test -n "$UNAME"; then
3968 { echo "$as_me:$LINENO: result: $UNAME" >&5
3969 echo "${ECHO_T}$UNAME" >&6; }
3970 else
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3977 if test -z "$ac_cv_path_UNAME"; then
3978 ac_pt_UNAME=$UNAME
3979 # Extract the first word of "uname", so it can be a program name with args.
3980 set dummy uname; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 case $ac_pt_UNAME in
3987 [\\/]* | ?:[\\/]*)
3988 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4004 IFS=$as_save_IFS
4007 esac
4009 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4010 if test -n "$ac_pt_UNAME"; then
4011 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4012 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4013 else
4014 { echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6; }
4018 if test "x$ac_pt_UNAME" = x; then
4019 UNAME="No"
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4024 whose name does not start with the host triplet. If you think this
4025 configuration is useful to you, please write to autoconf@gnu.org." >&5
4026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4027 whose name does not start with the host triplet. If you think this
4028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 UNAME=$ac_pt_UNAME
4033 else
4034 UNAME="$ac_cv_path_UNAME"
4037 if test ! x"${UNAME}" = xNo; then
4038 PBX_OSREV=$(${UNAME} -r)
4048 # cross-compile checks
4049 if test "${cross_compiling}" = "yes";
4050 then
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4073 done
4074 done
4075 IFS=$as_save_IFS
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081 { echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6; }
4083 else
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4091 ac_ct_CC=$CC
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 echo "${ECHO_T}$ac_ct_CC" >&6; }
4123 else
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4129 CC=":"
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4134 whose name does not start with the host triplet. If you think this
4135 configuration is useful to you, please write to autoconf@gnu.org." >&5
4136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet. If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 CC=$ac_ct_CC
4143 else
4144 CC="$ac_cv_prog_CC"
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}g++; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 if test -n "$CXX"; then
4156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4175 CXX=$ac_cv_prog_CXX
4176 if test -n "$CXX"; then
4177 { echo "$as_me:$LINENO: result: $CXX" >&5
4178 echo "${ECHO_T}$CXX" >&6; }
4179 else
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4186 if test -z "$ac_cv_prog_CXX"; then
4187 ac_ct_CXX=$CXX
4188 # Extract the first word of "g++", so it can be a program name with args.
4189 set dummy g++; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if test -n "$ac_ct_CXX"; then
4196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_ac_ct_CXX="g++"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4216 if test -n "$ac_ct_CXX"; then
4217 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4218 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4219 else
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4224 if test "x$ac_ct_CXX" = x; then
4225 CXX=":"
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4230 whose name does not start with the host triplet. If you think this
4231 configuration is useful to you, please write to autoconf@gnu.org." >&5
4232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet. If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4235 ac_tool_warned=yes ;;
4236 esac
4237 CXX=$ac_ct_CXX
4239 else
4240 CXX="$ac_cv_prog_CXX"
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}ld; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_LD+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$LD"; then
4252 ac_cv_prog_LD="$LD" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_LD="${ac_tool_prefix}ld"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 LD=$ac_cv_prog_LD
4272 if test -n "$LD"; then
4273 { echo "$as_me:$LINENO: result: $LD" >&5
4274 echo "${ECHO_T}$LD" >&6; }
4275 else
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4282 if test -z "$ac_cv_prog_LD"; then
4283 ac_ct_LD=$LD
4284 # Extract the first word of "ld", so it can be a program name with args.
4285 set dummy ld; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$ac_ct_LD"; then
4292 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_ac_ct_LD="ld"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4312 if test -n "$ac_ct_LD"; then
4313 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4314 echo "${ECHO_T}$ac_ct_LD" >&6; }
4315 else
4316 { echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6; }
4320 if test "x$ac_ct_LD" = x; then
4321 LD=":"
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet. If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&5
4328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet. If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4331 ac_tool_warned=yes ;;
4332 esac
4333 LD=$ac_ct_LD
4335 else
4336 LD="$ac_cv_prog_LD"
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_RANLIB+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 if test -n "$RANLIB"; then
4348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4361 done
4362 done
4363 IFS=$as_save_IFS
4367 RANLIB=$ac_cv_prog_RANLIB
4368 if test -n "$RANLIB"; then
4369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4370 echo "${ECHO_T}$RANLIB" >&6; }
4371 else
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4378 if test -z "$ac_cv_prog_RANLIB"; then
4379 ac_ct_RANLIB=$RANLIB
4380 # Extract the first word of "ranlib", so it can be a program name with args.
4381 set dummy ranlib; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 if test -n "$ac_ct_RANLIB"; then
4388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_RANLIB="ranlib"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4403 IFS=$as_save_IFS
4407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4408 if test -n "$ac_ct_RANLIB"; then
4409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4411 else
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4416 if test "x$ac_ct_RANLIB" = x; then
4417 RANLIB=":"
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4422 whose name does not start with the host triplet. If you think this
4423 configuration is useful to you, please write to autoconf@gnu.org." >&5
4424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet. If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429 RANLIB=$ac_ct_RANLIB
4431 else
4432 RANLIB="$ac_cv_prog_RANLIB"
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ar; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_AR+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 if test -n "$AR"; then
4444 ac_cv_prog_AR="$AR" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_AR="${ac_tool_prefix}ar"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4459 IFS=$as_save_IFS
4463 AR=$ac_cv_prog_AR
4464 if test -n "$AR"; then
4465 { echo "$as_me:$LINENO: result: $AR" >&5
4466 echo "${ECHO_T}$AR" >&6; }
4467 else
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4474 if test -z "$ac_cv_prog_AR"; then
4475 ac_ct_AR=$AR
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$ac_ct_AR"; then
4484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_AR="ar"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4504 if test -n "$ac_ct_AR"; then
4505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4506 echo "${ECHO_T}$ac_ct_AR" >&6; }
4507 else
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4512 if test "x$ac_ct_AR" = x; then
4513 AR=":"
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 AR=$ac_ct_AR
4527 else
4528 AR="$ac_cv_prog_AR"
4533 # Checks for programs.
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4561 done
4562 done
4563 IFS=$as_save_IFS
4567 CC=$ac_cv_prog_CC
4568 if test -n "$CC"; then
4569 { echo "$as_me:$LINENO: result: $CC" >&5
4570 echo "${ECHO_T}$CC" >&6; }
4571 else
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4578 if test -z "$ac_cv_prog_CC"; then
4579 ac_ct_CC=$CC
4580 # Extract the first word of "gcc", so it can be a program name with args.
4581 set dummy gcc; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_CC="gcc"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4610 echo "${ECHO_T}$ac_ct_CC" >&6; }
4611 else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4616 if test "x$ac_ct_CC" = x; then
4617 CC=""
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620 yes:)
4621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4622 whose name does not start with the host triplet. If you think this
4623 configuration is useful to you, please write to autoconf@gnu.org." >&5
4624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4625 whose name does not start with the host triplet. If you think this
4626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 CC=$ac_ct_CC
4631 else
4632 CC="$ac_cv_prog_CC"
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 CC=$ac_cv_prog_CC
4665 if test -n "$CC"; then
4666 { echo "$as_me:$LINENO: result: $CC" >&5
4667 echo "${ECHO_T}$CC" >&6; }
4668 else
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4699 ac_cv_prog_CC="cc"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5
4724 echo "${ECHO_T}$CC" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765 { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 test -n "$CC" && break
4774 done
4776 if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4810 echo "${ECHO_T}$ac_ct_CC" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 test -n "$ac_ct_CC" && break
4818 done
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&5
4828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4829 whose name does not start with the host triplet. If you think this
4830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833 CC=$ac_ct_CC
4840 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4841 See \`config.log' for more details." >&5
4842 echo "$as_me: error: no acceptable C compiler found in \$PATH
4843 See \`config.log' for more details." >&2;}
4844 { (exit 1); exit 1; }; }
4846 # Provide some information about the compiler.
4847 echo "$as_me:$LINENO: checking for C compiler version" >&5
4848 ac_compiler=`set X $ac_compile; echo $2`
4849 { (ac_try="$ac_compiler --version >&5"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_compiler --version >&5") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }
4859 { (ac_try="$ac_compiler -v >&5"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_compiler -v >&5") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869 { (ac_try="$ac_compiler -V >&5"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compiler -V >&5") 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }
4880 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4893 main ()
4895 #ifndef __GNUC__
4896 choke me
4897 #endif
4900 return 0;
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_compiler_gnu=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_compiler_gnu=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4932 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4934 GCC=`test $ac_compiler_gnu = yes && echo yes`
4935 ac_test_CFLAGS=${CFLAGS+set}
4936 ac_save_CFLAGS=$CFLAGS
4937 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 ac_save_c_werror_flag=$ac_c_werror_flag
4943 ac_c_werror_flag=yes
4944 ac_cv_prog_cc_g=no
4945 CFLAGS="-g"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 ac_cv_prog_cc_g=yes
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 CFLAGS=""
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4992 main ()
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5022 CFLAGS="-g"
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5031 main ()
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_cv_prog_cc_g=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_c_werror_flag=$ac_save_c_werror_flag
5072 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5074 if test "$ac_test_CFLAGS" = set; then
5075 CFLAGS=$ac_save_CFLAGS
5076 elif test $ac_cv_prog_cc_g = yes; then
5077 if test "$GCC" = yes; then
5078 CFLAGS="-g -O2"
5079 else
5080 CFLAGS="-g"
5082 else
5083 if test "$GCC" = yes; then
5084 CFLAGS="-O2"
5085 else
5086 CFLAGS=
5089 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5090 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_cc_c89+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 ac_cv_prog_cc_c89=no
5095 ac_save_CC=$CC
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <stdarg.h>
5103 #include <stdio.h>
5104 #include <sys/types.h>
5105 #include <sys/stat.h>
5106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5107 struct buf { int x; };
5108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5109 static char *e (p, i)
5110 char **p;
5111 int i;
5113 return p[i];
5115 static char *f (char * (*g) (char **, int), char **p, ...)
5117 char *s;
5118 va_list v;
5119 va_start (v,p);
5120 s = g (p, va_arg (v,int));
5121 va_end (v);
5122 return s;
5125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5126 function prototypes and stuff, but not '\xHH' hex character constants.
5127 These don't provoke an error unfortunately, instead are silently treated
5128 as 'x'. The following induces an error, until -std is added to get
5129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5130 array size at least. It's necessary to write '\x00'==0 to get something
5131 that's true only with -std. */
5132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5135 inside strings and character constants. */
5136 #define FOO(x) 'x'
5137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5139 int test (int i, double x);
5140 struct s1 {int (*f) (int a);};
5141 struct s2 {int (*f) (double a);};
5142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5143 int argc;
5144 char **argv;
5146 main ()
5148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5150 return 0;
5152 _ACEOF
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5156 CC="$ac_save_CC $ac_arg"
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5159 case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162 esac
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
5174 ac_cv_prog_cc_c89=$ac_arg
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5182 rm -f core conftest.err conftest.$ac_objext
5183 test "x$ac_cv_prog_cc_c89" != "xno" && break
5184 done
5185 rm -f conftest.$ac_ext
5186 CC=$ac_save_CC
5189 # AC_CACHE_VAL
5190 case "x$ac_cv_prog_cc_c89" in
5192 { echo "$as_me:$LINENO: result: none needed" >&5
5193 echo "${ECHO_T}none needed" >&6; } ;;
5194 xno)
5195 { echo "$as_me:$LINENO: result: unsupported" >&5
5196 echo "${ECHO_T}unsupported" >&6; } ;;
5198 CC="$CC $ac_cv_prog_cc_c89"
5199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5201 esac
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 if test -z "$CXX"; then
5216 if test -n "$CCC"; then
5217 CXX=$CCC
5218 else
5219 if test -n "$ac_tool_prefix"; then
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_CXX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$CXX"; then
5230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 CXX=$ac_cv_prog_CXX
5250 if test -n "$CXX"; then
5251 { echo "$as_me:$LINENO: result: $CXX" >&5
5252 echo "${ECHO_T}$CXX" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5259 test -n "$CXX" && break
5260 done
5262 if test -z "$CXX"; then
5263 ac_ct_CXX=$CXX
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$ac_ct_CXX"; then
5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_CXX="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5294 if test -n "$ac_ct_CXX"; then
5295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 test -n "$ac_ct_CXX" && break
5304 done
5306 if test "x$ac_ct_CXX" = x; then
5307 CXX="g++"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312 whose name does not start with the host triplet. If you think this
5313 configuration is useful to you, please write to autoconf@gnu.org." >&5
5314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315 whose name does not start with the host triplet. If you think this
5316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 CXX=$ac_ct_CXX
5325 # Provide some information about the compiler.
5326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5327 ac_compiler=`set X $ac_compile; echo $2`
5328 { (ac_try="$ac_compiler --version >&5"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compiler --version >&5") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }
5338 { (ac_try="$ac_compiler -v >&5"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compiler -v >&5") 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }
5348 { (ac_try="$ac_compiler -V >&5"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler -V >&5") 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }
5359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5372 main ()
5374 #ifndef __GNUC__
5375 choke me
5376 #endif
5379 return 0;
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_compiler_gnu=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_compiler_gnu=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5413 GXX=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_test_CXXFLAGS=${CXXFLAGS+set}
5415 ac_save_CXXFLAGS=$CXXFLAGS
5416 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5417 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5418 if test "${ac_cv_prog_cxx_g+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5422 ac_cxx_werror_flag=yes
5423 ac_cv_prog_cxx_g=no
5424 CXXFLAGS="-g"
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5433 main ()
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 CXXFLAGS=""
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5471 main ()
5475 return 0;
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5501 CXXFLAGS="-g"
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_prog_cxx_g=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5552 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5553 if test "$ac_test_CXXFLAGS" = set; then
5554 CXXFLAGS=$ac_save_CXXFLAGS
5555 elif test $ac_cv_prog_cxx_g = yes; then
5556 if test "$GXX" = yes; then
5557 CXXFLAGS="-g -O2"
5558 else
5559 CXXFLAGS="-g"
5561 else
5562 if test "$GXX" = yes; then
5563 CXXFLAGS="-O2"
5564 else
5565 CXXFLAGS=
5568 ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574 ac_ext=c
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5583 CPP=
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 # Double quotes because CPP needs to be expanded
5590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5592 ac_preproc_ok=false
5593 for ac_c_preproc_warn_flag in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error" is here to catch this case.
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 #ifdef __STDC__
5608 # include <limits.h>
5609 #else
5610 # include <assert.h>
5611 #endif
5612 Syntax error
5613 _ACEOF
5614 if { (ac_try="$ac_cpp conftest.$ac_ext"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null && {
5627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 }; then
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 # Broken: fails on valid input.
5636 continue
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <ac_nonexistent.h>
5650 _ACEOF
5651 if { (ac_try="$ac_cpp conftest.$ac_ext"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 }; then
5667 # Broken: success on invalid input.
5668 continue
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5678 rm -f conftest.err conftest.$ac_ext
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5684 break
5687 done
5688 ac_cv_prog_CPP=$CPP
5691 CPP=$ac_cv_prog_CPP
5692 else
5693 ac_cv_prog_CPP=$CPP
5695 { echo "$as_me:$LINENO: result: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5697 ac_preproc_ok=false
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #ifdef __STDC__
5713 # include <limits.h>
5714 #else
5715 # include <assert.h>
5716 #endif
5717 Syntax error
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 }; then
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Broken: fails on valid input.
5741 continue
5744 rm -f conftest.err conftest.$ac_ext
5746 # OK, works on sane cases. Now check whether nonexistent headers
5747 # can be detected and how.
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5755 _ACEOF
5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 }; then
5772 # Broken: success on invalid input.
5773 continue
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Passes both tests.
5779 ac_preproc_ok=:
5780 break
5783 rm -f conftest.err conftest.$ac_ext
5785 done
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then
5790 else
5791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5798 ac_ext=c
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 ac_ext=cpp
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5810 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5811 if test -z "$CXXCPP"; then
5812 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 # Double quotes because CXXCPP needs to be expanded
5816 for CXXCPP in "$CXX -E" "/lib/cpp"
5818 ac_preproc_ok=false
5819 for ac_cxx_preproc_warn_flag in '' yes
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #ifdef __STDC__
5834 # include <limits.h>
5835 #else
5836 # include <assert.h>
5837 #endif
5838 Syntax error
5839 _ACEOF
5840 if { (ac_try="$ac_cpp conftest.$ac_ext"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null && {
5853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5854 test ! -s conftest.err
5855 }; then
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Broken: fails on valid input.
5862 continue
5865 rm -f conftest.err conftest.$ac_ext
5867 # OK, works on sane cases. Now check whether nonexistent headers
5868 # can be detected and how.
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5876 _ACEOF
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5891 test ! -s conftest.err
5892 }; then
5893 # Broken: success on invalid input.
5894 continue
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 # Passes both tests.
5900 ac_preproc_ok=:
5901 break
5904 rm -f conftest.err conftest.$ac_ext
5906 done
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.$ac_ext
5909 if $ac_preproc_ok; then
5910 break
5913 done
5914 ac_cv_prog_CXXCPP=$CXXCPP
5917 CXXCPP=$ac_cv_prog_CXXCPP
5918 else
5919 ac_cv_prog_CXXCPP=$CXXCPP
5921 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5922 echo "${ECHO_T}$CXXCPP" >&6; }
5923 ac_preproc_ok=false
5924 for ac_cxx_preproc_warn_flag in '' yes
5926 # Use a header file that comes with gcc, so configuring glibc
5927 # with a fresh cross-compiler works.
5928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5929 # <limits.h> exists even on freestanding compilers.
5930 # On the NeXT, cc -E runs the code through the compiler's parser,
5931 # not just through cpp. "Syntax error" is here to catch this case.
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #ifdef __STDC__
5939 # include <limits.h>
5940 #else
5941 # include <assert.h>
5942 #endif
5943 Syntax error
5944 _ACEOF
5945 if { (ac_try="$ac_cpp conftest.$ac_ext"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null && {
5958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959 test ! -s conftest.err
5960 }; then
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Broken: fails on valid input.
5967 continue
5970 rm -f conftest.err conftest.$ac_ext
5972 # OK, works on sane cases. Now check whether nonexistent headers
5973 # can be detected and how.
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <ac_nonexistent.h>
5981 _ACEOF
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5997 }; then
5998 # Broken: success on invalid input.
5999 continue
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 # Passes both tests.
6005 ac_preproc_ok=:
6006 break
6009 rm -f conftest.err conftest.$ac_ext
6011 done
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.err conftest.$ac_ext
6014 if $ac_preproc_ok; then
6016 else
6017 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&2;}
6021 { (exit 1); exit 1; }; }
6024 ac_ext=c
6025 ac_cpp='$CPP $CPPFLAGS'
6026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6031 # the developers regenerating the configure script don't have to install libtool.
6032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_SED+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6038 for ac_i in 1 2 3 4 5 6 7; do
6039 ac_script="$ac_script$as_nl$ac_script"
6040 done
6041 echo "$ac_script" | sed 99q >conftest.sed
6042 $as_unset ac_script || ac_script=
6043 # Extract the first word of "sed gsed" to use in msg output
6044 if test -z "$SED"; then
6045 set dummy sed gsed; ac_prog_name=$2
6046 if test "${ac_cv_path_SED+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 ac_path_SED_found=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_prog in sed gsed; do
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6059 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6060 # Check for GNU ac_path_SED and select it if it is found.
6061 # Check for GNU $ac_path_SED
6062 case `"$ac_path_SED" --version 2>&1` in
6063 *GNU*)
6064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6066 ac_count=0
6067 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6068 while :
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 echo '' >> "conftest.nl"
6074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6076 ac_count=`expr $ac_count + 1`
6077 if test $ac_count -gt ${ac_path_SED_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_SED="$ac_path_SED"
6080 ac_path_SED_max=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6084 done
6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 esac
6089 $ac_path_SED_found && break 3
6090 done
6091 done
6093 done
6094 IFS=$as_save_IFS
6099 SED="$ac_cv_path_SED"
6100 if test -z "$SED"; then
6101 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6102 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6103 { (exit 1); exit 1; }; }
6106 else
6107 ac_cv_path_SED=$SED
6111 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6112 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6113 SED="$ac_cv_path_SED"
6114 rm -f conftest.sed
6116 { echo "$as_me:$LINENO: checking for egrep" >&5
6117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_egrep+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6122 then ac_cv_prog_egrep='grep -E'
6123 else ac_cv_prog_egrep='egrep'
6126 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6128 EGREP=$ac_cv_prog_egrep
6132 # Check whether --with-gnu-ld was given.
6133 if test "${with_gnu_ld+set}" = set; then
6134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6135 else
6136 with_gnu_ld=no
6139 ac_prog=ld
6140 if test "$GCC" = yes; then
6141 # Check if gcc -print-prog-name=ld gives a path.
6142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6143 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6144 case $host in
6145 *-*-mingw*)
6146 # gcc leaves a trailing carriage return which upsets mingw
6147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6150 esac
6151 case $ac_prog in
6152 # Accept absolute paths.
6153 [\\/]* | ?:[\\/]*)
6154 re_direlt='/[^/][^/]*/\.\./'
6155 # Canonicalize the pathname of ld
6156 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6158 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6159 done
6160 test -z "$LD" && LD="$ac_prog"
6163 # If it fails, then pretend we aren't using GCC.
6164 ac_prog=ld
6167 # If it is relative, then search for the first ld in PATH.
6168 with_gnu_ld=unknown
6170 esac
6171 elif test "$with_gnu_ld" = yes; then
6172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6174 else
6175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6178 if test "${lt_cv_path_LD+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 if test -z "$LD"; then
6182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6183 for ac_dir in $PATH; do
6184 IFS="$lt_save_ifs"
6185 test -z "$ac_dir" && ac_dir=.
6186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6187 lt_cv_path_LD="$ac_dir/$ac_prog"
6188 # Check to see if the program is GNU ld. I'd rather use --version,
6189 # but apparently some variants of GNU ld only accept -v.
6190 # Break only if it was the GNU/non-GNU ld that we prefer.
6191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6192 *GNU* | *'with BFD'*)
6193 test "$with_gnu_ld" != no && break
6196 test "$with_gnu_ld" != yes && break
6198 esac
6200 done
6201 IFS="$lt_save_ifs"
6202 else
6203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6207 LD="$lt_cv_path_LD"
6208 if test -n "$LD"; then
6209 { echo "$as_me:$LINENO: result: $LD" >&5
6210 echo "${ECHO_T}$LD" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6217 { (exit 1); exit 1; }; }
6218 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224 case `$LD -v 2>&1 </dev/null` in
6225 *GNU* | *'with BFD'*)
6226 lt_cv_prog_gnu_ld=yes
6229 lt_cv_prog_gnu_ld=no
6231 esac
6233 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6235 with_gnu_ld=$lt_cv_prog_gnu_ld
6238 for ac_prog in gawk mawk nawk awk
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy $ac_prog; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_AWK+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 if test -n "$AWK"; then
6248 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AWK="$ac_prog"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6261 done
6262 done
6263 IFS=$as_save_IFS
6267 AWK=$ac_cv_prog_AWK
6268 if test -n "$AWK"; then
6269 { echo "$as_me:$LINENO: result: $AWK" >&5
6270 echo "${ECHO_T}$AWK" >&6; }
6271 else
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 test -n "$AWK" && break
6278 done
6280 # Find a good install program. We prefer a C program (faster),
6281 # so one script is as good as another. But avoid the broken or
6282 # incompatible versions:
6283 # SysV /etc/install, /usr/sbin/install
6284 # SunOS /usr/etc/install
6285 # IRIX /sbin/install
6286 # AIX /bin/install
6287 # AmigaOS /C/install, which installs bootblocks on floppy discs
6288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6291 # OS/2's system install, which has a completely different semantic
6292 # ./install, which can be erroneously created by make from ./install.sh.
6293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6295 if test -z "$INSTALL"; then
6296 if test "${ac_cv_path_install+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 # Account for people who put trailing slashes in PATH elements.
6305 case $as_dir/ in
6306 ./ | .// | /cC/* | \
6307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6309 /usr/ucb/* ) ;;
6311 # OSF1 and SCO ODT 3.0 have their own names for install.
6312 # Don't use installbsd from OSF since it installs stuff as root
6313 # by default.
6314 for ac_prog in ginstall scoinst install; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6317 if test $ac_prog = install &&
6318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6319 # AIX install. It has an incompatible calling convention.
6321 elif test $ac_prog = install &&
6322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6323 # program-specific install script used by HP pwplus--don't use.
6325 else
6326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6327 break 3
6330 done
6331 done
6333 esac
6334 done
6335 IFS=$as_save_IFS
6339 if test "${ac_cv_path_install+set}" = set; then
6340 INSTALL=$ac_cv_path_install
6341 else
6342 # As a last resort, use the slow shell script. Don't cache a
6343 # value for INSTALL within a source directory, because that will
6344 # break other packages using the cache if that directory is
6345 # removed, or if the value is a relative name.
6346 INSTALL=$ac_install_sh
6349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6350 echo "${ECHO_T}$INSTALL" >&6; }
6352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6353 # It thinks the first close brace ends the variable substitution.
6354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6362 LN_S=$as_ln_s
6363 if test "$LN_S" = "ln -s"; then
6364 { echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6368 echo "${ECHO_T}no, using $LN_S" >&6; }
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_RANLIB+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$RANLIB"; then
6380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6395 IFS=$as_save_IFS
6399 RANLIB=$ac_cv_prog_RANLIB
6400 if test -n "$RANLIB"; then
6401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6402 echo "${ECHO_T}$RANLIB" >&6; }
6403 else
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6410 if test -z "$ac_cv_prog_RANLIB"; then
6411 ac_ct_RANLIB=$RANLIB
6412 # Extract the first word of "ranlib", so it can be a program name with args.
6413 set dummy ranlib; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 if test -n "$ac_ct_RANLIB"; then
6420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_RANLIB="ranlib"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440 if test -n "$ac_ct_RANLIB"; then
6441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6443 else
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6448 if test "x$ac_ct_RANLIB" = x; then
6449 RANLIB=":"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&5
6456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 RANLIB=$ac_ct_RANLIB
6463 else
6464 RANLIB="$ac_cv_prog_RANLIB"
6467 { echo "$as_me:$LINENO: checking for GNU make" >&5
6468 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6469 if test "${GNU_MAKE+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 GNU_MAKE='Not Found' ;
6473 GNU_MAKE_VERSION_MAJOR=0 ;
6474 GNU_MAKE_VERSION_MINOR=0 ;
6475 for a in make gmake gnumake ; do
6476 if test -z "$a" ; then continue ; fi ;
6477 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6478 GNU_MAKE=$a ;
6479 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6480 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6481 break;
6483 done ;
6486 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6487 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6488 if test "x$GNU_MAKE" = "xNot Found" ; then
6489 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6490 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6491 { (exit 1); exit 1; }; }
6492 exit 1
6497 GNU_LD=0
6498 if test "x$with_gnu_ld" = "xyes" ; then
6499 GNU_LD=1
6503 # Extract the first word of "grep", so it can be a program name with args.
6504 set dummy grep; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 case $GREP in
6511 [\\/]* | ?:[\\/]*)
6512 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6530 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6532 esac
6534 GREP=$ac_cv_path_GREP
6535 if test -n "$GREP"; then
6536 { echo "$as_me:$LINENO: result: $GREP" >&5
6537 echo "${ECHO_T}$GREP" >&6; }
6538 else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 # Extract the first word of "ar", so it can be a program name with args.
6545 set dummy ar; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 case $AR in
6552 [\\/]* | ?:[\\/]*)
6553 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6571 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
6573 esac
6575 AR=$ac_cv_path_AR
6576 if test -n "$AR"; then
6577 { echo "$as_me:$LINENO: result: $AR" >&5
6578 echo "${ECHO_T}$AR" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "find", so it can be a program name with args.
6586 set dummy find; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_FIND+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 case $FIND in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6608 done
6609 done
6610 IFS=$as_save_IFS
6612 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6614 esac
6616 FIND=$ac_cv_path_FIND
6617 if test -n "$FIND"; then
6618 { echo "$as_me:$LINENO: result: $FIND" >&5
6619 echo "${ECHO_T}$FIND" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "compress", so it can be a program name with args.
6627 set dummy compress; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_COMPRESS+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 case $COMPRESS in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6653 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6655 esac
6657 COMPRESS=$ac_cv_path_COMPRESS
6658 if test -n "$COMPRESS"; then
6659 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6660 echo "${ECHO_T}$COMPRESS" >&6; }
6661 else
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "basename", so it can be a program name with args.
6668 set dummy basename; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BASENAME+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 case $BASENAME in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6694 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6696 esac
6698 BASENAME=$ac_cv_path_BASENAME
6699 if test -n "$BASENAME"; then
6700 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6701 echo "${ECHO_T}$BASENAME" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "id", so it can be a program name with args.
6709 set dummy id; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_ID+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 case $ID in
6716 [\\/]* | ?:[\\/]*)
6717 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6735 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6737 esac
6739 ID=$ac_cv_path_ID
6740 if test -n "$ID"; then
6741 { echo "$as_me:$LINENO: result: $ID" >&5
6742 echo "${ECHO_T}$ID" >&6; }
6743 else
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 # Extract the first word of "dirname", so it can be a program name with args.
6750 set dummy dirname; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_DIRNAME+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 case $DIRNAME in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6776 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6778 esac
6780 DIRNAME=$ac_cv_path_DIRNAME
6781 if test -n "$DIRNAME"; then
6782 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6783 echo "${ECHO_T}$DIRNAME" >&6; }
6784 else
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "sh", so it can be a program name with args.
6791 set dummy sh; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_SHELL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 case $SHELL in
6798 [\\/]* | ?:[\\/]*)
6799 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6817 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6819 esac
6821 SHELL=$ac_cv_path_SHELL
6822 if test -n "$SHELL"; then
6823 { echo "$as_me:$LINENO: result: $SHELL" >&5
6824 echo "${ECHO_T}$SHELL" >&6; }
6825 else
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "ln", so it can be a program name with args.
6832 set dummy ln; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_LN+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 case $LN in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6854 done
6855 done
6856 IFS=$as_save_IFS
6858 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6860 esac
6862 LN=$ac_cv_path_LN
6863 if test -n "$LN"; then
6864 { echo "$as_me:$LINENO: result: $LN" >&5
6865 echo "${ECHO_T}$LN" >&6; }
6866 else
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "dot", so it can be a program name with args.
6873 set dummy dot; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_DOT+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 case $DOT in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6899 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
6901 esac
6903 DOT=$ac_cv_path_DOT
6904 if test -n "$DOT"; then
6905 { echo "$as_me:$LINENO: result: $DOT" >&5
6906 echo "${ECHO_T}$DOT" >&6; }
6907 else
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 case $STRIP in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6936 done
6937 done
6938 IFS=$as_save_IFS
6940 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
6942 esac
6944 STRIP=$ac_cv_path_STRIP
6945 if test -n "$STRIP"; then
6946 { echo "$as_me:$LINENO: result: $STRIP" >&5
6947 echo "${ECHO_T}$STRIP" >&6; }
6948 else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "wget", so it can be a program name with args.
6955 set dummy wget; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_WGET+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 case $WGET in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6981 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
6983 esac
6985 WGET=$ac_cv_path_WGET
6986 if test -n "$WGET"; then
6987 { echo "$as_me:$LINENO: result: $WGET" >&5
6988 echo "${ECHO_T}$WGET" >&6; }
6989 else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 if test "${WGET}" != ":" ; then
6996 DOWNLOAD=${WGET}
6997 else
6998 # Extract the first word of "fetch", so it can be a program name with args.
6999 set dummy fetch; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_FETCH+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 case $FETCH in
7006 [\\/]* | ?:[\\/]*)
7007 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7025 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7027 esac
7029 FETCH=$ac_cv_path_FETCH
7030 if test -n "$FETCH"; then
7031 { echo "$as_me:$LINENO: result: $FETCH" >&5
7032 echo "${ECHO_T}$FETCH" >&6; }
7033 else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7039 DOWNLOAD=${FETCH}
7043 ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050 # Check whether --enable-dev-mode was given.
7051 if test "${enable_dev_mode+set}" = set; then
7052 enableval=$enable_dev_mode; case "${enableval}" in
7053 y|ye|yes) AST_DEVMODE=yes ;;
7054 n|no) AST_DEVMODE=no ;;
7055 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7056 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7057 { (exit 1); exit 1; }; } ;;
7058 esac
7063 # package option names should be in alphabetical order
7064 # by the --with option name, to make things easier for the users :-)
7067 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7068 ALSA_OPTION="asound"
7070 # Check whether --with-asound was given.
7071 if test "${with_asound+set}" = set; then
7072 withval=$with_asound;
7073 case ${withval} in
7074 n|no)
7075 USE_ALSA=no
7077 y|ye|yes)
7078 ALSA_MANDATORY="yes"
7081 ALSA_DIR="${withval}"
7082 ALSA_MANDATORY="yes"
7084 esac
7088 PBX_ALSA=0
7094 CURL_DESCRIP="cURL"
7095 CURL_OPTION="curl"
7097 # Check whether --with-curl was given.
7098 if test "${with_curl+set}" = set; then
7099 withval=$with_curl;
7100 case ${withval} in
7101 n|no)
7102 USE_CURL=no
7104 y|ye|yes)
7105 CURL_MANDATORY="yes"
7108 CURL_DIR="${withval}"
7109 CURL_MANDATORY="yes"
7111 esac
7115 PBX_CURL=0
7121 CURSES_DESCRIP="curses"
7122 CURSES_OPTION="curses"
7124 # Check whether --with-curses was given.
7125 if test "${with_curses+set}" = set; then
7126 withval=$with_curses;
7127 case ${withval} in
7128 n|no)
7129 USE_CURSES=no
7131 y|ye|yes)
7132 CURSES_MANDATORY="yes"
7135 CURSES_DIR="${withval}"
7136 CURSES_MANDATORY="yes"
7138 esac
7142 PBX_CURSES=0
7148 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7149 GNUTLS_OPTION="gnutls"
7151 # Check whether --with-gnutls was given.
7152 if test "${with_gnutls+set}" = set; then
7153 withval=$with_gnutls;
7154 case ${withval} in
7155 n|no)
7156 USE_GNUTLS=no
7158 y|ye|yes)
7159 GNUTLS_MANDATORY="yes"
7162 GNUTLS_DIR="${withval}"
7163 GNUTLS_MANDATORY="yes"
7165 esac
7169 PBX_GNUTLS=0
7175 GSM_DESCRIP="GSM"
7176 GSM_OPTION="gsm"
7178 # Check whether --with-gsm was given.
7179 if test "${with_gsm+set}" = set; then
7180 withval=$with_gsm;
7181 case ${withval} in
7182 n|no)
7183 USE_GSM=no
7185 y|ye|yes)
7186 GSM_MANDATORY="yes"
7189 GSM_DIR="${withval}"
7190 GSM_MANDATORY="yes"
7192 esac
7196 PBX_GSM=0
7202 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7203 IKSEMEL_OPTION="iksemel"
7205 # Check whether --with-iksemel was given.
7206 if test "${with_iksemel+set}" = set; then
7207 withval=$with_iksemel;
7208 case ${withval} in
7209 n|no)
7210 USE_IKSEMEL=no
7212 y|ye|yes)
7213 IKSEMEL_MANDATORY="yes"
7216 IKSEMEL_DIR="${withval}"
7217 IKSEMEL_MANDATORY="yes"
7219 esac
7223 PBX_IKSEMEL=0
7229 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7230 IMAP_TK_OPTION="imap"
7232 # Check whether --with-imap was given.
7233 if test "${with_imap+set}" = set; then
7234 withval=$with_imap;
7235 case ${withval} in
7236 n|no)
7237 USE_IMAP_TK=no
7239 y|ye|yes)
7240 IMAP_TK_MANDATORY="yes"
7243 IMAP_TK_DIR="${withval}"
7244 IMAP_TK_MANDATORY="yes"
7246 esac
7250 PBX_IMAP_TK=0
7256 ISDNNET_DESCRIP="ISDN4Linux Library"
7257 ISDNNET_OPTION="isdnnet"
7259 # Check whether --with-isdnnet was given.
7260 if test "${with_isdnnet+set}" = set; then
7261 withval=$with_isdnnet;
7262 case ${withval} in
7263 n|no)
7264 USE_ISDNNET=no
7266 y|ye|yes)
7267 ISDNNET_MANDATORY="yes"
7270 ISDNNET_DIR="${withval}"
7271 ISDNNET_MANDATORY="yes"
7273 esac
7277 PBX_ISDNNET=0
7283 KDE_DESCRIP="KDE"
7284 KDE_OPTION="kde"
7286 # Check whether --with-kde was given.
7287 if test "${with_kde+set}" = set; then
7288 withval=$with_kde;
7289 case ${withval} in
7290 n|no)
7291 USE_KDE=no
7293 y|ye|yes)
7294 KDE_MANDATORY="yes"
7297 KDE_DIR="${withval}"
7298 KDE_MANDATORY="yes"
7300 esac
7304 PBX_KDE=0
7310 MISDN_DESCRIP="mISDN User Library"
7311 MISDN_OPTION="misdn"
7313 # Check whether --with-misdn was given.
7314 if test "${with_misdn+set}" = set; then
7315 withval=$with_misdn;
7316 case ${withval} in
7317 n|no)
7318 USE_MISDN=no
7320 y|ye|yes)
7321 MISDN_MANDATORY="yes"
7324 MISDN_DIR="${withval}"
7325 MISDN_MANDATORY="yes"
7327 esac
7331 PBX_MISDN=0
7337 NBS_DESCRIP="Network Broadcast Sound"
7338 NBS_OPTION="nbs"
7340 # Check whether --with-nbs was given.
7341 if test "${with_nbs+set}" = set; then
7342 withval=$with_nbs;
7343 case ${withval} in
7344 n|no)
7345 USE_NBS=no
7347 y|ye|yes)
7348 NBS_MANDATORY="yes"
7351 NBS_DIR="${withval}"
7352 NBS_MANDATORY="yes"
7354 esac
7358 PBX_NBS=0
7364 NCURSES_DESCRIP="ncurses"
7365 NCURSES_OPTION="ncurses"
7367 # Check whether --with-ncurses was given.
7368 if test "${with_ncurses+set}" = set; then
7369 withval=$with_ncurses;
7370 case ${withval} in
7371 n|no)
7372 USE_NCURSES=no
7374 y|ye|yes)
7375 NCURSES_MANDATORY="yes"
7378 NCURSES_DIR="${withval}"
7379 NCURSES_MANDATORY="yes"
7381 esac
7385 PBX_NCURSES=0
7391 NETSNMP_DESCRIP="Net-SNMP"
7392 NETSNMP_OPTION="netsnmp"
7394 # Check whether --with-netsnmp was given.
7395 if test "${with_netsnmp+set}" = set; then
7396 withval=$with_netsnmp;
7397 case ${withval} in
7398 n|no)
7399 USE_NETSNMP=no
7401 y|ye|yes)
7402 NETSNMP_MANDATORY="yes"
7405 NETSNMP_DIR="${withval}"
7406 NETSNMP_MANDATORY="yes"
7408 esac
7412 PBX_NETSNMP=0
7418 NEWT_DESCRIP="newt"
7419 NEWT_OPTION="newt"
7421 # Check whether --with-newt was given.
7422 if test "${with_newt+set}" = set; then
7423 withval=$with_newt;
7424 case ${withval} in
7425 n|no)
7426 USE_NEWT=no
7428 y|ye|yes)
7429 NEWT_MANDATORY="yes"
7432 NEWT_DIR="${withval}"
7433 NEWT_MANDATORY="yes"
7435 esac
7439 PBX_NEWT=0
7445 UNIXODBC_DESCRIP="unixODBC"
7446 UNIXODBC_OPTION="odbc"
7448 # Check whether --with-odbc was given.
7449 if test "${with_odbc+set}" = set; then
7450 withval=$with_odbc;
7451 case ${withval} in
7452 n|no)
7453 USE_UNIXODBC=no
7455 y|ye|yes)
7456 UNIXODBC_MANDATORY="yes"
7459 UNIXODBC_DIR="${withval}"
7460 UNIXODBC_MANDATORY="yes"
7462 esac
7466 PBX_UNIXODBC=0
7472 OGG_DESCRIP="OGG"
7473 OGG_OPTION="ogg"
7475 # Check whether --with-ogg was given.
7476 if test "${with_ogg+set}" = set; then
7477 withval=$with_ogg;
7478 case ${withval} in
7479 n|no)
7480 USE_OGG=no
7482 y|ye|yes)
7483 OGG_MANDATORY="yes"
7486 OGG_DIR="${withval}"
7487 OGG_MANDATORY="yes"
7489 esac
7493 PBX_OGG=0
7499 OSPTK_DESCRIP="OSP Toolkit"
7500 OSPTK_OPTION="osptk"
7502 # Check whether --with-osptk was given.
7503 if test "${with_osptk+set}" = set; then
7504 withval=$with_osptk;
7505 case ${withval} in
7506 n|no)
7507 USE_OSPTK=no
7509 y|ye|yes)
7510 OSPTK_MANDATORY="yes"
7513 OSPTK_DIR="${withval}"
7514 OSPTK_MANDATORY="yes"
7516 esac
7520 PBX_OSPTK=0
7526 OSS_DESCRIP="Open Sound System"
7527 OSS_OPTION="oss"
7529 # Check whether --with-oss was given.
7530 if test "${with_oss+set}" = set; then
7531 withval=$with_oss;
7532 case ${withval} in
7533 n|no)
7534 USE_OSS=no
7536 y|ye|yes)
7537 OSS_MANDATORY="yes"
7540 OSS_DIR="${withval}"
7541 OSS_MANDATORY="yes"
7543 esac
7547 PBX_OSS=0
7553 POPT_DESCRIP="popt"
7554 POPT_OPTION="popt"
7556 # Check whether --with-popt was given.
7557 if test "${with_popt+set}" = set; then
7558 withval=$with_popt;
7559 case ${withval} in
7560 n|no)
7561 USE_POPT=no
7563 y|ye|yes)
7564 POPT_MANDATORY="yes"
7567 POPT_DIR="${withval}"
7568 POPT_MANDATORY="yes"
7570 esac
7574 PBX_POPT=0
7580 PGSQL_DESCRIP="PostgreSQL"
7581 PGSQL_OPTION="postgres"
7583 # Check whether --with-postgres was given.
7584 if test "${with_postgres+set}" = set; then
7585 withval=$with_postgres;
7586 case ${withval} in
7587 n|no)
7588 USE_PGSQL=no
7590 y|ye|yes)
7591 PGSQL_MANDATORY="yes"
7594 PGSQL_DIR="${withval}"
7595 PGSQL_MANDATORY="yes"
7597 esac
7601 PBX_PGSQL=0
7607 PRI_DESCRIP="ISDN PRI"
7608 PRI_OPTION="pri"
7610 # Check whether --with-pri was given.
7611 if test "${with_pri+set}" = set; then
7612 withval=$with_pri;
7613 case ${withval} in
7614 n|no)
7615 USE_PRI=no
7617 y|ye|yes)
7618 PRI_MANDATORY="yes"
7621 PRI_DIR="${withval}"
7622 PRI_MANDATORY="yes"
7624 esac
7628 PBX_PRI=0
7634 PWLIB_DESCRIP="PWlib"
7635 PWLIB_OPTION="pwlib"
7637 # Check whether --with-pwlib was given.
7638 if test "${with_pwlib+set}" = set; then
7639 withval=$with_pwlib;
7640 case ${withval} in
7641 n|no)
7642 USE_PWLIB=no
7644 y|ye|yes)
7645 PWLIB_MANDATORY="yes"
7648 PWLIB_DIR="${withval}"
7649 PWLIB_MANDATORY="yes"
7651 esac
7655 PBX_PWLIB=0
7661 OPENH323_DESCRIP="OpenH323"
7662 OPENH323_OPTION="h323"
7664 # Check whether --with-h323 was given.
7665 if test "${with_h323+set}" = set; then
7666 withval=$with_h323;
7667 case ${withval} in
7668 n|no)
7669 USE_OPENH323=no
7671 y|ye|yes)
7672 OPENH323_MANDATORY="yes"
7675 OPENH323_DIR="${withval}"
7676 OPENH323_MANDATORY="yes"
7678 esac
7682 PBX_OPENH323=0
7688 QT_DESCRIP="Qt"
7689 QT_OPTION="qt"
7691 # Check whether --with-qt was given.
7692 if test "${with_qt+set}" = set; then
7693 withval=$with_qt;
7694 case ${withval} in
7695 n|no)
7696 USE_QT=no
7698 y|ye|yes)
7699 QT_MANDATORY="yes"
7702 QT_DIR="${withval}"
7703 QT_MANDATORY="yes"
7705 esac
7709 PBX_QT=0
7715 RADIUS_DESCRIP="Radius Client"
7716 RADIUS_OPTION="radius"
7718 # Check whether --with-radius was given.
7719 if test "${with_radius+set}" = set; then
7720 withval=$with_radius;
7721 case ${withval} in
7722 n|no)
7723 USE_RADIUS=no
7725 y|ye|yes)
7726 RADIUS_MANDATORY="yes"
7729 RADIUS_DIR="${withval}"
7730 RADIUS_MANDATORY="yes"
7732 esac
7736 PBX_RADIUS=0
7742 SPEEX_DESCRIP="Speex"
7743 SPEEX_OPTION="speex"
7745 # Check whether --with-speex was given.
7746 if test "${with_speex+set}" = set; then
7747 withval=$with_speex;
7748 case ${withval} in
7749 n|no)
7750 USE_SPEEX=no
7752 y|ye|yes)
7753 SPEEX_MANDATORY="yes"
7756 SPEEX_DIR="${withval}"
7757 SPEEX_MANDATORY="yes"
7759 esac
7763 PBX_SPEEX=0
7769 SQLITE_DESCRIP="SQLite"
7770 SQLITE_OPTION="sqlite"
7772 # Check whether --with-sqlite was given.
7773 if test "${with_sqlite+set}" = set; then
7774 withval=$with_sqlite;
7775 case ${withval} in
7776 n|no)
7777 USE_SQLITE=no
7779 y|ye|yes)
7780 SQLITE_MANDATORY="yes"
7783 SQLITE_DIR="${withval}"
7784 SQLITE_MANDATORY="yes"
7786 esac
7790 PBX_SQLITE=0
7796 SUPPSERV_DESCRIP="mISDN Supplemental Services"
7797 SUPPSERV_OPTION="suppserv"
7799 # Check whether --with-suppserv was given.
7800 if test "${with_suppserv+set}" = set; then
7801 withval=$with_suppserv;
7802 case ${withval} in
7803 n|no)
7804 USE_SUPPSERV=no
7806 y|ye|yes)
7807 SUPPSERV_MANDATORY="yes"
7810 SUPPSERV_DIR="${withval}"
7811 SUPPSERV_MANDATORY="yes"
7813 esac
7817 PBX_SUPPSERV=0
7823 OPENSSL_DESCRIP="OpenSSL"
7824 OPENSSL_OPTION="ssl"
7826 # Check whether --with-ssl was given.
7827 if test "${with_ssl+set}" = set; then
7828 withval=$with_ssl;
7829 case ${withval} in
7830 n|no)
7831 USE_OPENSSL=no
7833 y|ye|yes)
7834 OPENSSL_MANDATORY="yes"
7837 OPENSSL_DIR="${withval}"
7838 OPENSSL_MANDATORY="yes"
7840 esac
7844 PBX_OPENSSL=0
7850 FREETDS_DESCRIP="FreeTDS"
7851 FREETDS_OPTION="tds"
7853 # Check whether --with-tds was given.
7854 if test "${with_tds+set}" = set; then
7855 withval=$with_tds;
7856 case ${withval} in
7857 n|no)
7858 USE_FREETDS=no
7860 y|ye|yes)
7861 FREETDS_MANDATORY="yes"
7864 FREETDS_DIR="${withval}"
7865 FREETDS_MANDATORY="yes"
7867 esac
7871 PBX_FREETDS=0
7877 TERMCAP_DESCRIP="Termcap"
7878 TERMCAP_OPTION="termcap"
7880 # Check whether --with-termcap was given.
7881 if test "${with_termcap+set}" = set; then
7882 withval=$with_termcap;
7883 case ${withval} in
7884 n|no)
7885 USE_TERMCAP=no
7887 y|ye|yes)
7888 TERMCAP_MANDATORY="yes"
7891 TERMCAP_DIR="${withval}"
7892 TERMCAP_MANDATORY="yes"
7894 esac
7898 PBX_TERMCAP=0
7904 TINFO_DESCRIP="Term Info"
7905 TINFO_OPTION="tinfo"
7907 # Check whether --with-tinfo was given.
7908 if test "${with_tinfo+set}" = set; then
7909 withval=$with_tinfo;
7910 case ${withval} in
7911 n|no)
7912 USE_TINFO=no
7914 y|ye|yes)
7915 TINFO_MANDATORY="yes"
7918 TINFO_DIR="${withval}"
7919 TINFO_MANDATORY="yes"
7921 esac
7925 PBX_TINFO=0
7931 TONEZONE_DESCRIP="tonezone"
7932 TONEZONE_OPTION="tonezone"
7934 # Check whether --with-tonezone was given.
7935 if test "${with_tonezone+set}" = set; then
7936 withval=$with_tonezone;
7937 case ${withval} in
7938 n|no)
7939 USE_TONEZONE=no
7941 y|ye|yes)
7942 TONEZONE_MANDATORY="yes"
7945 TONEZONE_DIR="${withval}"
7946 TONEZONE_MANDATORY="yes"
7948 esac
7952 PBX_TONEZONE=0
7958 VORBIS_DESCRIP="Vorbis"
7959 VORBIS_OPTION="vorbis"
7961 # Check whether --with-vorbis was given.
7962 if test "${with_vorbis+set}" = set; then
7963 withval=$with_vorbis;
7964 case ${withval} in
7965 n|no)
7966 USE_VORBIS=no
7968 y|ye|yes)
7969 VORBIS_MANDATORY="yes"
7972 VORBIS_DIR="${withval}"
7973 VORBIS_MANDATORY="yes"
7975 esac
7979 PBX_VORBIS=0
7985 VPB_DESCRIP="Voicetronix API"
7986 VPB_OPTION="vpb"
7988 # Check whether --with-vpb was given.
7989 if test "${with_vpb+set}" = set; then
7990 withval=$with_vpb;
7991 case ${withval} in
7992 n|no)
7993 USE_VPB=no
7995 y|ye|yes)
7996 VPB_MANDATORY="yes"
7999 VPB_DIR="${withval}"
8000 VPB_MANDATORY="yes"
8002 esac
8006 PBX_VPB=0
8012 ZLIB_DESCRIP="zlib"
8013 ZLIB_OPTION="z"
8015 # Check whether --with-z was given.
8016 if test "${with_z+set}" = set; then
8017 withval=$with_z;
8018 case ${withval} in
8019 n|no)
8020 USE_ZLIB=no
8022 y|ye|yes)
8023 ZLIB_MANDATORY="yes"
8026 ZLIB_DIR="${withval}"
8027 ZLIB_MANDATORY="yes"
8029 esac
8033 PBX_ZLIB=0
8039 ZAPTEL_DESCRIP="Zaptel"
8040 ZAPTEL_OPTION="zaptel"
8042 # Check whether --with-zaptel was given.
8043 if test "${with_zaptel+set}" = set; then
8044 withval=$with_zaptel;
8045 case ${withval} in
8046 n|no)
8047 USE_ZAPTEL=no
8049 y|ye|yes)
8050 ZAPTEL_MANDATORY="yes"
8053 ZAPTEL_DIR="${withval}"
8054 ZAPTEL_MANDATORY="yes"
8056 esac
8060 PBX_ZAPTEL=0
8066 # check for basic system features and functionality before
8067 # checking for package libraries
8069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8070 # for constant arguments. Useless!
8071 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8072 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8073 if test "${ac_cv_working_alloca_h+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 #include <alloca.h>
8084 main ()
8086 char *p = (char *) alloca (2 * sizeof (int));
8087 if (p) return 0;
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (ac_try="$ac_link"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_link") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest$ac_exeext &&
8109 $as_test_x conftest$ac_exeext; then
8110 ac_cv_working_alloca_h=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_working_alloca_h=no
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8121 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8122 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8123 if test $ac_cv_working_alloca_h = yes; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_ALLOCA_H 1
8127 _ACEOF
8131 { echo "$as_me:$LINENO: checking for alloca" >&5
8132 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8133 if test "${ac_cv_func_alloca_works+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #ifdef __GNUC__
8143 # define alloca __builtin_alloca
8144 #else
8145 # ifdef _MSC_VER
8146 # include <malloc.h>
8147 # define alloca _alloca
8148 # else
8149 # ifdef HAVE_ALLOCA_H
8150 # include <alloca.h>
8151 # else
8152 # ifdef _AIX
8153 #pragma alloca
8154 # else
8155 # ifndef alloca /* predefined by HP cc +Olibcalls */
8156 char *alloca ();
8157 # endif
8158 # endif
8159 # endif
8160 # endif
8161 #endif
8164 main ()
8166 char *p = (char *) alloca (1);
8167 if (p) return 0;
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
8190 ac_cv_func_alloca_works=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_func_alloca_works=no
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199 conftest$ac_exeext conftest.$ac_ext
8201 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8204 if test $ac_cv_func_alloca_works = yes; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_ALLOCA 1
8208 _ACEOF
8210 else
8211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8212 # that cause trouble. Some versions do not even contain alloca or
8213 # contain a buggy version. If you still want to use their alloca,
8214 # use ar to extract alloca.o from them instead of compiling alloca.c.
8216 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8218 cat >>confdefs.h <<\_ACEOF
8219 #define C_ALLOCA 1
8220 _ACEOF
8223 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8225 if test "${ac_cv_os_cray+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #if defined CRAY && ! defined CRAY2
8235 webecray
8236 #else
8237 wenotbecray
8238 #endif
8240 _ACEOF
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "webecray" >/dev/null 2>&1; then
8243 ac_cv_os_cray=yes
8244 else
8245 ac_cv_os_cray=no
8247 rm -f conftest*
8250 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8251 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8252 if test $ac_cv_os_cray = yes; then
8253 for ac_func in _getb67 GETB67 getb67; do
8254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8268 #define $ac_func innocuous_$ac_func
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8275 #ifdef __STDC__
8276 # include <limits.h>
8277 #else
8278 # include <assert.h>
8279 #endif
8281 #undef $ac_func
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 char $ac_func ();
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined __stub_$ac_func || defined __stub___$ac_func
8294 choke me
8295 #endif
8298 main ()
8300 return $ac_func ();
8302 return 0;
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (ac_try="$ac_link"
8307 case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext &&
8322 $as_test_x conftest$ac_exeext; then
8323 eval "$as_ac_var=yes"
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_var=no"
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_var'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define CRAY_STACKSEG_END $ac_func
8341 _ACEOF
8343 break
8346 done
8349 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8351 if test "${ac_cv_c_stack_direction+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_c_stack_direction=0
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 find_stack_direction ()
8367 static char *addr = 0;
8368 auto char dummy;
8369 if (addr == 0)
8371 addr = &dummy;
8372 return find_stack_direction ();
8374 else
8375 return (&dummy > addr) ? 1 : -1;
8379 main ()
8381 return find_stack_direction () < 0;
8383 _ACEOF
8384 rm -f conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8386 case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_c_stack_direction=1
8405 else
8406 echo "$as_me: program exited with status $ac_status" >&5
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ( exit $ac_status )
8411 ac_cv_c_stack_direction=-1
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8418 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8419 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8421 cat >>confdefs.h <<_ACEOF
8422 #define STACK_DIRECTION $ac_cv_c_stack_direction
8423 _ACEOF
8433 ac_header_dirent=no
8434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8436 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8448 #include <$ac_hdr>
8451 main ()
8453 if ((DIR *) 0)
8454 return 0;
8456 return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
8476 eval "$as_ac_Header=yes"
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 eval "$as_ac_Header=no"
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 ac_res=`eval echo '${'$as_ac_Header'}'`
8487 { echo "$as_me:$LINENO: result: $ac_res" >&5
8488 echo "${ECHO_T}$ac_res" >&6; }
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490 cat >>confdefs.h <<_ACEOF
8491 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8492 _ACEOF
8494 ac_header_dirent=$ac_hdr; break
8497 done
8498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8499 if test $ac_header_dirent = dirent.h; then
8500 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8502 if test "${ac_cv_search_opendir+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505 ac_func_search_save_LIBS=$LIBS
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8516 #ifdef __cplusplus
8517 extern "C"
8518 #endif
8519 char opendir ();
8521 main ()
8523 return opendir ();
8525 return 0;
8527 _ACEOF
8528 for ac_lib in '' dir; do
8529 if test -z "$ac_lib"; then
8530 ac_res="none required"
8531 else
8532 ac_res=-l$ac_lib
8533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8537 case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest$ac_exeext &&
8552 $as_test_x conftest$ac_exeext; then
8553 ac_cv_search_opendir=$ac_res
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8562 conftest$ac_exeext
8563 if test "${ac_cv_search_opendir+set}" = set; then
8564 break
8566 done
8567 if test "${ac_cv_search_opendir+set}" = set; then
8569 else
8570 ac_cv_search_opendir=no
8572 rm conftest.$ac_ext
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8583 else
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600 #ifdef __cplusplus
8601 extern "C"
8602 #endif
8603 char opendir ();
8605 main ()
8607 return opendir ();
8609 return 0;
8611 _ACEOF
8612 for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8615 else
8616 ac_res=-l$ac_lib
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest$ac_exeext &&
8636 $as_test_x conftest$ac_exeext; then
8637 ac_cv_search_opendir=$ac_res
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8646 conftest$ac_exeext
8647 if test "${ac_cv_search_opendir+set}" = set; then
8648 break
8650 done
8651 if test "${ac_cv_search_opendir+set}" = set; then
8653 else
8654 ac_cv_search_opendir=no
8656 rm conftest.$ac_ext
8657 LIBS=$ac_func_search_save_LIBS
8659 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8660 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8661 ac_res=$ac_cv_search_opendir
8662 if test "$ac_res" != no; then
8663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8669 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8671 if test "${ac_cv_header_stdc+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <stdlib.h>
8681 #include <stdarg.h>
8682 #include <string.h>
8683 #include <float.h>
8686 main ()
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_header_stdc=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_header_stdc=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 #include <string.h>
8730 _ACEOF
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "memchr" >/dev/null 2>&1; then
8734 else
8735 ac_cv_header_stdc=no
8737 rm -f conftest*
8741 if test $ac_cv_header_stdc = yes; then
8742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <stdlib.h>
8751 _ACEOF
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "free" >/dev/null 2>&1; then
8755 else
8756 ac_cv_header_stdc=no
8758 rm -f conftest*
8762 if test $ac_cv_header_stdc = yes; then
8763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8764 if test "$cross_compiling" = yes; then
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 #include <ctype.h>
8774 #include <stdlib.h>
8775 #if ((' ' & 0x0FF) == 0x020)
8776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8778 #else
8779 # define ISLOWER(c) \
8780 (('a' <= (c) && (c) <= 'i') \
8781 || ('j' <= (c) && (c) <= 'r') \
8782 || ('s' <= (c) && (c) <= 'z'))
8783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8784 #endif
8786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8788 main ()
8790 int i;
8791 for (i = 0; i < 256; i++)
8792 if (XOR (islower (i), ISLOWER (i))
8793 || toupper (i) != TOUPPER (i))
8794 return 2;
8795 return 0;
8797 _ACEOF
8798 rm -f conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8819 else
8820 echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ( exit $ac_status )
8825 ac_cv_header_stdc=no
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8835 if test $ac_cv_header_stdc = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8839 _ACEOF
8843 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8844 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8845 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/wait.h>
8856 #ifndef WEXITSTATUS
8857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8858 #endif
8859 #ifndef WIFEXITED
8860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8861 #endif
8864 main ()
8866 int s;
8867 wait (&s);
8868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_cv_header_sys_wait_h=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_header_sys_wait_h=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8902 if test $ac_cv_header_sys_wait_h = yes; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_SYS_WAIT_H 1
8906 _ACEOF
8933 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
8935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_res=`eval echo '${'$as_ac_Header'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8945 else
8946 # Is the header compilable?
8947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 #include <$ac_header>
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (ac_try="$ac_compile"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest.$ac_objext; then
8975 ac_header_compiler=yes
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_compiler=no
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6; }
8987 # Is the header present?
8988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8997 _ACEOF
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
8999 case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null && {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 }; then
9014 ac_header_preproc=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_header_preproc=no
9022 rm -f conftest.err conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9024 echo "${ECHO_T}$ac_header_preproc" >&6; }
9026 # So? What about this header?
9027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9028 yes:no: )
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9033 ac_header_preproc=yes
9035 no:yes:* )
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9050 esac
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 _ACEOF
9070 done
9073 # Check whether --enable-largefile was given.
9074 if test "${enable_largefile+set}" = set; then
9075 enableval=$enable_largefile;
9078 if test "$enable_largefile" != no; then
9080 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 ac_cv_sys_largefile_CC=no
9086 if test "$GCC" != yes; then
9087 ac_save_CC=$CC
9088 while :; do
9089 # IRIX 6.2 and later do not support large files by default,
9090 # so use the C compiler's -n32 option if that helps.
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 /* Check that off_t can represent 2**63 - 1 correctly.
9099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9100 since some C++ compilers masquerading as C compilers
9101 incorrectly reject 9223372036854775807. */
9102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9104 && LARGE_OFF_T % 2147483647 == 1)
9105 ? 1 : -1];
9107 main ()
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext
9115 if { (ac_try="$ac_compile"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f core conftest.err conftest.$ac_objext
9140 CC="$CC -n32"
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
9143 case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_compile") 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest.$ac_objext; then
9158 ac_cv_sys_largefile_CC=' -n32'; break
9159 else
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9166 rm -f core conftest.err conftest.$ac_objext
9167 break
9168 done
9169 CC=$ac_save_CC
9170 rm -f conftest.$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9174 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9175 if test "$ac_cv_sys_largefile_CC" != no; then
9176 CC=$CC$ac_cv_sys_largefile_CC
9179 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9180 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 while :; do
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9199 ? 1 : -1];
9201 main ()
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (ac_try="$ac_compile"
9210 case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 ac_cv_sys_file_offset_bits=no; break
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #define _FILE_OFFSET_BITS 64
9241 #include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9249 ? 1 : -1];
9251 main ()
9255 return 0;
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_sys_file_offset_bits=64; break
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 ac_cv_sys_file_offset_bits=unknown
9285 break
9286 done
9288 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9289 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9290 case $ac_cv_sys_file_offset_bits in #(
9291 no | unknown) ;;
9293 cat >>confdefs.h <<_ACEOF
9294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9295 _ACEOF
9297 esac
9298 rm -f conftest*
9299 if test $ac_cv_sys_file_offset_bits = unknown; then
9300 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9301 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9302 if test "${ac_cv_sys_large_files+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 while :; do
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9320 ? 1 : -1];
9322 main ()
9326 return 0;
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (ac_try="$ac_compile"
9331 case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_cv_sys_large_files=no; break
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #define _LARGE_FILES 1
9362 #include <sys/types.h>
9363 /* Check that off_t can represent 2**63 - 1 correctly.
9364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9365 since some C++ compilers masquerading as C compilers
9366 incorrectly reject 9223372036854775807. */
9367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9369 && LARGE_OFF_T % 2147483647 == 1)
9370 ? 1 : -1];
9372 main ()
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 ac_cv_sys_large_files=1; break
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 ac_cv_sys_large_files=unknown
9406 break
9407 done
9409 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9410 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9411 case $ac_cv_sys_large_files in #(
9412 no | unknown) ;;
9414 cat >>confdefs.h <<_ACEOF
9415 #define _LARGE_FILES $ac_cv_sys_large_files
9416 _ACEOF
9418 esac
9419 rm -f conftest*
9424 # Checks for typedefs, structures, and compiler characteristics.
9425 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9426 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_stdbool_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 #include <stdbool.h>
9438 #ifndef bool
9439 "error: bool is not defined"
9440 #endif
9441 #ifndef false
9442 "error: false is not defined"
9443 #endif
9444 #if false
9445 "error: false is not 0"
9446 #endif
9447 #ifndef true
9448 "error: true is not defined"
9449 #endif
9450 #if true != 1
9451 "error: true is not 1"
9452 #endif
9453 #ifndef __bool_true_false_are_defined
9454 "error: __bool_true_false_are_defined is not defined"
9455 #endif
9457 struct s { _Bool s: 1; _Bool t; } s;
9459 char a[true == 1 ? 1 : -1];
9460 char b[false == 0 ? 1 : -1];
9461 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9462 char d[(bool) 0.5 == true ? 1 : -1];
9463 bool e = &s;
9464 char f[(_Bool) 0.0 == false ? 1 : -1];
9465 char g[true];
9466 char h[sizeof (_Bool)];
9467 char i[sizeof s.t];
9468 enum { j = false, k = true, l = false * true, m = true * 256 };
9469 _Bool n[m];
9470 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9471 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9472 # if defined __xlc__ || defined __GNUC__
9473 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9474 reported by James Lemley on 2005-10-05; see
9475 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9476 This test is not quite right, since xlc is allowed to
9477 reject this program, as the initializer for xlcbug is
9478 not one of the forms that C requires support for.
9479 However, doing the test right would require a runtime
9480 test, and that would make cross-compilation harder.
9481 Let us hope that IBM fixes the xlc bug, and also adds
9482 support for this kind of constant expression. In the
9483 meantime, this test will reject xlc, which is OK, since
9484 our stdbool.h substitute should suffice. We also test
9485 this with GCC, where it should work, to detect more
9486 quickly whether someone messes up the test in the
9487 future. */
9488 char digs[] = "0123456789";
9489 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9490 # endif
9491 /* Catch a bug in an HP-UX C compiler. See
9492 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9493 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9495 _Bool q = true;
9496 _Bool *pq = &q;
9499 main ()
9502 *pq |= q;
9503 *pq |= ! q;
9504 /* Refer to every declared value, to avoid compiler optimizations. */
9505 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9506 + !m + !n + !o + !p + !q + !pq);
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (ac_try="$ac_compile"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_compile") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest.$ac_objext; then
9529 ac_cv_header_stdbool_h=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_header_stdbool_h=no
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9541 { echo "$as_me:$LINENO: checking for _Bool" >&5
9542 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9543 if test "${ac_cv_type__Bool+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef _Bool ac__type_new_;
9555 main ()
9557 if ((ac__type_new_ *) 0)
9558 return 0;
9559 if (sizeof (ac__type_new_))
9560 return 0;
9562 return 0;
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.$ac_objext; then
9582 ac_cv_type__Bool=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_type__Bool=no
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9593 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9594 if test $ac_cv_type__Bool = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE__BOOL 1
9598 _ACEOF
9603 if test $ac_cv_header_stdbool_h = yes; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_STDBOOL_H 1
9607 _ACEOF
9611 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9612 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9613 if test "${ac_cv_c_const+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9624 main ()
9626 /* FIXME: Include the comments suggested by Paul. */
9627 #ifndef __cplusplus
9628 /* Ultrix mips cc rejects this. */
9629 typedef int charset[2];
9630 const charset cs;
9631 /* SunOS 4.1.1 cc rejects this. */
9632 char const *const *pcpcc;
9633 char **ppc;
9634 /* NEC SVR4.0.2 mips cc rejects this. */
9635 struct point {int x, y;};
9636 static struct point const zero = {0,0};
9637 /* AIX XL C 1.02.0.0 rejects this.
9638 It does not let you subtract one const X* pointer from another in
9639 an arm of an if-expression whose if-part is not a constant
9640 expression */
9641 const char *g = "string";
9642 pcpcc = &g + (g ? g-g : 0);
9643 /* HPUX 7.0 cc rejects these. */
9644 ++pcpcc;
9645 ppc = (char**) pcpcc;
9646 pcpcc = (char const *const *) ppc;
9647 { /* SCO 3.2v4 cc rejects this. */
9648 char *t;
9649 char const *s = 0 ? (char *) 0 : (char const *) 0;
9651 *t++ = 0;
9652 if (s) return 0;
9654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9655 int x[] = {25, 17};
9656 const int *foo = &x[0];
9657 ++foo;
9659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9660 typedef const int *iptr;
9661 iptr p = 0;
9662 ++p;
9664 { /* AIX XL C 1.02.0.0 rejects this saying
9665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9666 struct s { int j; const int *ap[3]; };
9667 struct s *b; b->j = 5;
9669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9670 const int foo = 10;
9671 if (!foo) return 0;
9673 return !cs[0] && !zero.x;
9674 #endif
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (ac_try="$ac_compile"
9682 case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9697 ac_cv_c_const=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_cv_c_const=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9708 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9709 if test $ac_cv_c_const = no; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define const
9713 _ACEOF
9717 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9718 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9719 if test "${ac_cv_type_uid_t+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9730 _ACEOF
9731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9732 $EGREP "uid_t" >/dev/null 2>&1; then
9733 ac_cv_type_uid_t=yes
9734 else
9735 ac_cv_type_uid_t=no
9737 rm -f conftest*
9740 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9741 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9742 if test $ac_cv_type_uid_t = no; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define uid_t int
9746 _ACEOF
9749 cat >>confdefs.h <<\_ACEOF
9750 #define gid_t int
9751 _ACEOF
9755 { echo "$as_me:$LINENO: checking for inline" >&5
9756 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9757 if test "${ac_cv_c_inline+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 ac_cv_c_inline=no
9761 for ac_kw in inline __inline__ __inline; do
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #ifndef __cplusplus
9769 typedef int foo_t;
9770 static $ac_kw foo_t static_foo () {return 0; }
9771 $ac_kw foo_t foo () {return 0; }
9772 #endif
9774 _ACEOF
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9777 case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.$ac_objext; then
9792 ac_cv_c_inline=$ac_kw
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 test "$ac_cv_c_inline" != no && break
9802 done
9805 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9806 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9809 case $ac_cv_c_inline in
9810 inline | yes) ;;
9812 case $ac_cv_c_inline in
9813 no) ac_val=;;
9814 *) ac_val=$ac_cv_c_inline;;
9815 esac
9816 cat >>confdefs.h <<_ACEOF
9817 #ifndef __cplusplus
9818 #define inline $ac_val
9819 #endif
9820 _ACEOF
9822 esac
9824 { echo "$as_me:$LINENO: checking for mode_t" >&5
9825 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9826 if test "${ac_cv_type_mode_t+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 typedef mode_t ac__type_new_;
9838 main ()
9840 if ((ac__type_new_ *) 0)
9841 return 0;
9842 if (sizeof (ac__type_new_))
9843 return 0;
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (ac_try="$ac_compile"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_compile") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest.$ac_objext; then
9865 ac_cv_type_mode_t=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_type_mode_t=no
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9876 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9877 if test $ac_cv_type_mode_t = yes; then
9879 else
9881 cat >>confdefs.h <<_ACEOF
9882 #define mode_t int
9883 _ACEOF
9887 { echo "$as_me:$LINENO: checking for off_t" >&5
9888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_off_t+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 typedef off_t ac__type_new_;
9901 main ()
9903 if ((ac__type_new_ *) 0)
9904 return 0;
9905 if (sizeof (ac__type_new_))
9906 return 0;
9908 return 0;
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (ac_try="$ac_compile"
9913 case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_compile") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest.$ac_objext; then
9928 ac_cv_type_off_t=yes
9929 else
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_type_off_t=no
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9940 if test $ac_cv_type_off_t = yes; then
9942 else
9944 cat >>confdefs.h <<_ACEOF
9945 #define off_t long int
9946 _ACEOF
9950 { echo "$as_me:$LINENO: checking for pid_t" >&5
9951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9952 if test "${ac_cv_type_pid_t+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef pid_t ac__type_new_;
9964 main ()
9966 if ((ac__type_new_ *) 0)
9967 return 0;
9968 if (sizeof (ac__type_new_))
9969 return 0;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext
9975 if { (ac_try="$ac_compile"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_compile") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest.$ac_objext; then
9991 ac_cv_type_pid_t=yes
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_cv_type_pid_t=no
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10003 if test $ac_cv_type_pid_t = yes; then
10005 else
10007 cat >>confdefs.h <<_ACEOF
10008 #define pid_t int
10009 _ACEOF
10013 { echo "$as_me:$LINENO: checking for size_t" >&5
10014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10015 if test "${ac_cv_type_size_t+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_new_;
10027 main ()
10029 if ((ac__type_new_ *) 0)
10030 return 0;
10031 if (sizeof (ac__type_new_))
10032 return 0;
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_cv_type_size_t=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_type_size_t=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10066 if test $ac_cv_type_size_t = yes; then
10068 else
10070 cat >>confdefs.h <<_ACEOF
10071 #define size_t unsigned int
10072 _ACEOF
10076 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10089 main ()
10091 static struct stat ac_aggr;
10092 if (ac_aggr.st_blksize)
10093 return 0;
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (ac_try="$ac_compile"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_compile") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest.$ac_objext; then
10115 ac_cv_member_struct_stat_st_blksize=yes
10116 else
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10128 main ()
10130 static struct stat ac_aggr;
10131 if (sizeof ac_aggr.st_blksize)
10132 return 0;
10134 return 0;
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_cv_member_struct_stat_st_blksize=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_member_struct_stat_st_blksize=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10168 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10169 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10173 _ACEOF
10178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_time+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <sys/types.h>
10190 #include <sys/time.h>
10191 #include <time.h>
10194 main ()
10196 if ((struct tm *) 0)
10197 return 0;
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_header_time=yes
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_header_time=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10231 if test $ac_cv_header_time = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define TIME_WITH_SYS_TIME 1
10235 _ACEOF
10239 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10240 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10241 if test "${ac_cv_struct_tm+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <sys/types.h>
10251 #include <time.h>
10254 main ()
10256 struct tm tm;
10257 int *p = &tm.tm_sec;
10258 return !p;
10260 return 0;
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.$ac_objext; then
10280 ac_cv_struct_tm=time.h
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_cv_struct_tm=sys/time.h
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10291 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10292 if test $ac_cv_struct_tm = sys/time.h; then
10294 cat >>confdefs.h <<\_ACEOF
10295 #define TM_IN_SYS_TIME 1
10296 _ACEOF
10300 { echo "$as_me:$LINENO: checking for working volatile" >&5
10301 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10302 if test "${ac_cv_c_volatile+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10313 main ()
10316 volatile int x;
10317 int * volatile y = (int *) 0;
10318 return !x && !y;
10320 return 0;
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_c_volatile=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_c_volatile=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10351 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10352 if test $ac_cv_c_volatile = no; then
10354 cat >>confdefs.h <<\_ACEOF
10355 #define volatile
10356 _ACEOF
10360 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10361 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 typedef ptrdiff_t ac__type_new_;
10374 main ()
10376 if ((ac__type_new_ *) 0)
10377 return 0;
10378 if (sizeof (ac__type_new_))
10379 return 0;
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_compile") 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest.$ac_objext; then
10401 ac_cv_type_ptrdiff_t=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_type_ptrdiff_t=no
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10413 if test $ac_cv_type_ptrdiff_t = yes; then
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_PTRDIFF_T 1
10417 _ACEOF
10423 # Checks for library functions.
10425 for ac_header in unistd.h
10427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_res=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10437 else
10438 # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (ac_try="$ac_compile"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 ac_header_compiler=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ac_header_compiler=no
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10477 echo "${ECHO_T}$ac_header_compiler" >&6; }
10479 # Is the header present?
10480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 #include <$ac_header>
10489 _ACEOF
10490 if { (ac_try="$ac_cpp conftest.$ac_ext"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev/null && {
10503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 }; then
10506 ac_header_preproc=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_preproc=no
10514 rm -f conftest.err conftest.$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10542 esac
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 eval "$as_ac_Header=\$ac_header_preproc"
10550 ac_res=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10558 _ACEOF
10562 done
10564 { echo "$as_me:$LINENO: checking for working chown" >&5
10565 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10566 if test "${ac_cv_func_chown_works+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_func_chown_works=no
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <fcntl.h>
10582 main ()
10584 char *f = "conftest.chown";
10585 struct stat before, after;
10587 if (creat (f, 0600) < 0)
10588 return 1;
10589 if (stat (f, &before) < 0)
10590 return 1;
10591 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10592 return 1;
10593 if (stat (f, &after) < 0)
10594 return 1;
10595 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10598 return 0;
10600 _ACEOF
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_func_chown_works=yes
10622 else
10623 echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ( exit $ac_status )
10628 ac_cv_func_chown_works=no
10630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10634 rm -f conftest.chown
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10638 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10639 if test $ac_cv_func_chown_works = yes; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_CHOWN 1
10643 _ACEOF
10647 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10648 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10649 if test "${ac_cv_func_closedir_void+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 if test "$cross_compiling" = yes; then
10653 ac_cv_func_closedir_void=yes
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $ac_includes_default
10662 #include <$ac_header_dirent>
10663 #ifndef __cplusplus
10664 int closedir ();
10665 #endif
10668 main ()
10670 return closedir (opendir (".")) != 0;
10672 return 0;
10674 _ACEOF
10675 rm -f conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_func_closedir_void=no
10696 else
10697 echo "$as_me: program exited with status $ac_status" >&5
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ( exit $ac_status )
10702 ac_cv_func_closedir_void=yes
10704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10709 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10710 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10711 if test $ac_cv_func_closedir_void = yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define CLOSEDIR_VOID 1
10715 _ACEOF
10719 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10720 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_error_at_line+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <error.h>
10732 main ()
10734 error_at_line (0, 0, "", 0, "an error occurred");
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (ac_try="$ac_link"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext &&
10756 $as_test_x conftest$ac_exeext; then
10757 ac_cv_lib_error_at_line=yes
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_lib_error_at_line=no
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10769 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10770 if test $ac_cv_lib_error_at_line = no; then
10771 case " $LIBOBJS " in
10772 *" error.$ac_objext "* ) ;;
10773 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10775 esac
10780 for ac_header in vfork.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 else
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_header_compiler=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_compiler=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <$ac_header>
10844 _ACEOF
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 }; then
10861 ac_header_preproc=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10882 no:yes:* )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10897 esac
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903 eval "$as_ac_Header=\$ac_header_preproc"
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10917 done
10921 for ac_func in fork vfork
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10944 #ifdef __STDC__
10945 # include <limits.h>
10946 #else
10947 # include <assert.h>
10948 #endif
10950 #undef $ac_func
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char $ac_func ();
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10963 choke me
10964 #endif
10967 main ()
10969 return $ac_func ();
10971 return 0;
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest$ac_exeext &&
10991 $as_test_x conftest$ac_exeext; then
10992 eval "$as_ac_var=yes"
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 eval "$as_ac_var=no"
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001 conftest$ac_exeext conftest.$ac_ext
11003 ac_res=`eval echo '${'$as_ac_var'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11006 if test `eval echo '${'$as_ac_var'}'` = yes; then
11007 cat >>confdefs.h <<_ACEOF
11008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11009 _ACEOF
11012 done
11014 if test "x$ac_cv_func_fork" = xyes; then
11015 { echo "$as_me:$LINENO: checking for working fork" >&5
11016 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_fork_works+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 if test "$cross_compiling" = yes; then
11021 ac_cv_func_fork_works=cross
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11031 main ()
11034 /* By Ruediger Kuhlmann. */
11035 return fork () < 0;
11038 return 0;
11040 _ACEOF
11041 rm -f conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_func_fork_works=yes
11062 else
11063 echo "$as_me: program exited with status $ac_status" >&5
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ( exit $ac_status )
11068 ac_cv_func_fork_works=no
11070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11075 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11076 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11078 else
11079 ac_cv_func_fork_works=$ac_cv_func_fork
11081 if test "x$ac_cv_func_fork_works" = xcross; then
11082 case $host in
11083 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11084 # Override, as these systems have only a dummy fork() stub
11085 ac_cv_func_fork_works=no
11088 ac_cv_func_fork_works=yes
11090 esac
11091 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11092 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11094 ac_cv_func_vfork_works=$ac_cv_func_vfork
11095 if test "x$ac_cv_func_vfork" = xyes; then
11096 { echo "$as_me:$LINENO: checking for working vfork" >&5
11097 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11098 if test "${ac_cv_func_vfork_works+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 if test "$cross_compiling" = yes; then
11102 ac_cv_func_vfork_works=cross
11103 else
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Thanks to Paul Eggert for this test. */
11111 $ac_includes_default
11112 #include <sys/wait.h>
11113 #ifdef HAVE_VFORK_H
11114 # include <vfork.h>
11115 #endif
11116 /* On some sparc systems, changes by the child to local and incoming
11117 argument registers are propagated back to the parent. The compiler
11118 is told about this with #include <vfork.h>, but some compilers
11119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11120 static variable whose address is put into a register that is
11121 clobbered by the vfork. */
11122 static void
11123 #ifdef __cplusplus
11124 sparc_address_test (int arg)
11125 # else
11126 sparc_address_test (arg) int arg;
11127 #endif
11129 static pid_t child;
11130 if (!child) {
11131 child = vfork ();
11132 if (child < 0) {
11133 perror ("vfork");
11134 _exit(2);
11136 if (!child) {
11137 arg = getpid();
11138 write(-1, "", 0);
11139 _exit (arg);
11145 main ()
11147 pid_t parent = getpid ();
11148 pid_t child;
11150 sparc_address_test (0);
11152 child = vfork ();
11154 if (child == 0) {
11155 /* Here is another test for sparc vfork register problems. This
11156 test uses lots of local variables, at least as many local
11157 variables as main has allocated so far including compiler
11158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11160 reuse the register of parent for one of the local variables,
11161 since it will think that parent can't possibly be used any more
11162 in this routine. Assigning to the local variable will thus
11163 munge parent in the parent process. */
11164 pid_t
11165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11167 /* Convince the compiler that p..p7 are live; otherwise, it might
11168 use the same hardware register for all 8 local variables. */
11169 if (p != p1 || p != p2 || p != p3 || p != p4
11170 || p != p5 || p != p6 || p != p7)
11171 _exit(1);
11173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11174 from child file descriptors. If the child closes a descriptor
11175 before it execs or exits, this munges the parent's descriptor
11176 as well. Test for this by closing stdout in the child. */
11177 _exit(close(fileno(stdout)) != 0);
11178 } else {
11179 int status;
11180 struct stat st;
11182 while (wait(&status) != child)
11184 return (
11185 /* Was there some problem with vforking? */
11186 child < 0
11188 /* Did the child fail? (This shouldn't happen.) */
11189 || status
11191 /* Did the vfork/compiler bug occur? */
11192 || parent != getpid()
11194 /* Did the file descriptor bug occur? */
11195 || fstat(fileno(stdout), &st) != 0
11199 _ACEOF
11200 rm -f conftest$ac_exeext
11201 if { (ac_try="$ac_link"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_func_vfork_works=yes
11221 else
11222 echo "$as_me: program exited with status $ac_status" >&5
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ( exit $ac_status )
11227 ac_cv_func_vfork_works=no
11229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11238 if test "x$ac_cv_func_fork_works" = xcross; then
11239 ac_cv_func_vfork_works=$ac_cv_func_vfork
11240 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11241 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11244 if test "x$ac_cv_func_vfork_works" = xyes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_WORKING_VFORK 1
11248 _ACEOF
11250 else
11252 cat >>confdefs.h <<\_ACEOF
11253 #define vfork fork
11254 _ACEOF
11257 if test "x$ac_cv_func_fork_works" = xyes; then
11259 cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_WORKING_FORK 1
11261 _ACEOF
11265 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11266 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11267 if test "${ac_cv_sys_largefile_source+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 while :; do
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h> /* for off_t */
11278 #include <stdio.h>
11280 main ()
11282 int (*fp) (FILE *, off_t, int) = fseeko;
11283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11285 return 0;
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (ac_try="$ac_link"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_link") 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && {
11302 test -z "$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11304 } && test -s conftest$ac_exeext &&
11305 $as_test_x conftest$ac_exeext; then
11306 ac_cv_sys_largefile_source=no; break
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315 conftest$ac_exeext conftest.$ac_ext
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #define _LARGEFILE_SOURCE 1
11323 #include <sys/types.h> /* for off_t */
11324 #include <stdio.h>
11326 main ()
11328 int (*fp) (FILE *, off_t, int) = fseeko;
11329 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11331 return 0;
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 ac_cv_sys_largefile_source=1; break
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11362 ac_cv_sys_largefile_source=unknown
11363 break
11364 done
11366 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11368 case $ac_cv_sys_largefile_source in #(
11369 no | unknown) ;;
11371 cat >>confdefs.h <<_ACEOF
11372 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11373 _ACEOF
11375 esac
11376 rm -f conftest*
11378 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11379 # in glibc 2.1.3, but that breaks too many other things.
11380 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11381 if test $ac_cv_sys_largefile_source != unknown; then
11383 cat >>confdefs.h <<\_ACEOF
11384 #define HAVE_FSEEKO 1
11385 _ACEOF
11389 if test $ac_cv_c_compiler_gnu = yes; then
11390 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 ac_pattern="Autoconf.*'x'"
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <sgtty.h>
11403 Autoconf TIOCGETP
11404 _ACEOF
11405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11406 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11407 ac_cv_prog_gcc_traditional=yes
11408 else
11409 ac_cv_prog_gcc_traditional=no
11411 rm -f conftest*
11414 if test $ac_cv_prog_gcc_traditional = no; then
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <termio.h>
11422 Autoconf TCGETA
11423 _ACEOF
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11426 ac_cv_prog_gcc_traditional=yes
11428 rm -f conftest*
11432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11434 if test $ac_cv_prog_gcc_traditional = yes; then
11435 CC="$CC -traditional"
11439 # XXX: these are commented out until we determine whether it matters if our malloc()
11440 # acts exactly like glibc's or not
11441 # AC_FUNC_MALLOC
11442 # AC_FUNC_REALLOC
11443 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11444 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 if test "$cross_compiling" = yes; then
11449 ac_cv_func_memcmp_working=no
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11459 main ()
11462 /* Some versions of memcmp are not 8-bit clean. */
11463 char c0 = '\100', c1 = '\200', c2 = '\201';
11464 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11465 return 1;
11467 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11468 or more and with at least one buffer not starting on a 4-byte boundary.
11469 William Lewis provided this test program. */
11471 char foo[21];
11472 char bar[21];
11473 int i;
11474 for (i = 0; i < 4; i++)
11476 char *a = foo + i;
11477 char *b = bar + i;
11478 strcpy (a, "--------01111111");
11479 strcpy (b, "--------10000000");
11480 if (memcmp (a, b, 16) >= 0)
11481 return 1;
11483 return 0;
11487 return 0;
11489 _ACEOF
11490 rm -f conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_func_memcmp_working=yes
11511 else
11512 echo "$as_me: program exited with status $ac_status" >&5
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ( exit $ac_status )
11517 ac_cv_func_memcmp_working=no
11519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11525 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11526 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11527 *" memcmp.$ac_objext "* ) ;;
11528 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11530 esac
11537 for ac_header in $ac_header_list
11539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 ac_res=`eval echo '${'$as_ac_Header'}'`
11547 { echo "$as_me:$LINENO: result: $ac_res" >&5
11548 echo "${ECHO_T}$ac_res" >&6; }
11549 else
11550 # Is the header compilable?
11551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <$ac_header>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (ac_try="$ac_compile"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_compile") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && {
11576 test -z "$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11578 } && test -s conftest.$ac_objext; then
11579 ac_header_compiler=yes
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_compiler=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
11601 _ACEOF
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev/null && {
11615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 }; then
11618 ac_header_preproc=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ac_header_preproc=no
11626 rm -f conftest.err conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11632 yes:no: )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc=yes
11639 no:yes:* )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11654 esac
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 eval "$as_ac_Header=\$ac_header_preproc"
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670 _ACEOF
11674 done
11684 for ac_func in $ac_func_list
11686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11707 #ifdef __STDC__
11708 # include <limits.h>
11709 #else
11710 # include <assert.h>
11711 #endif
11713 #undef $ac_func
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char $ac_func ();
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11726 choke me
11727 #endif
11730 main ()
11732 return $ac_func ();
11734 return 0;
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest$ac_exeext &&
11754 $as_test_x conftest$ac_exeext; then
11755 eval "$as_ac_var=yes"
11756 else
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772 _ACEOF
11775 done
11793 { echo "$as_me:$LINENO: checking for working mktime" >&5
11794 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11795 if test "${ac_cv_func_working_mktime+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 if test "$cross_compiling" = yes; then
11799 ac_cv_func_working_mktime=no
11800 else
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Test program from Paul Eggert and Tony Leneis. */
11808 #ifdef TIME_WITH_SYS_TIME
11809 # include <sys/time.h>
11810 # include <time.h>
11811 #else
11812 # ifdef HAVE_SYS_TIME_H
11813 # include <sys/time.h>
11814 # else
11815 # include <time.h>
11816 # endif
11817 #endif
11819 #include <stdlib.h>
11821 #ifdef HAVE_UNISTD_H
11822 # include <unistd.h>
11823 #endif
11825 #ifndef HAVE_ALARM
11826 # define alarm(X) /* empty */
11827 #endif
11829 /* Work around redefinition to rpl_putenv by other config tests. */
11830 #undef putenv
11832 static time_t time_t_max;
11833 static time_t time_t_min;
11835 /* Values we'll use to set the TZ environment variable. */
11836 static char *tz_strings[] = {
11837 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11838 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11840 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11842 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11843 Based on a problem report from Andreas Jaeger. */
11844 static int
11845 spring_forward_gap ()
11847 /* glibc (up to about 1998-10-07) failed this test. */
11848 struct tm tm;
11850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11851 instead of "TZ=America/Vancouver" in order to detect the bug even
11852 on systems that don't support the Olson extension, or don't have the
11853 full zoneinfo tables installed. */
11854 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11856 tm.tm_year = 98;
11857 tm.tm_mon = 3;
11858 tm.tm_mday = 5;
11859 tm.tm_hour = 2;
11860 tm.tm_min = 0;
11861 tm.tm_sec = 0;
11862 tm.tm_isdst = -1;
11863 return mktime (&tm) != (time_t) -1;
11866 static int
11867 mktime_test1 (now)
11868 time_t now;
11870 struct tm *lt;
11871 return ! (lt = localtime (&now)) || mktime (lt) == now;
11874 static int
11875 mktime_test (now)
11876 time_t now;
11878 return (mktime_test1 (now)
11879 && mktime_test1 ((time_t) (time_t_max - now))
11880 && mktime_test1 ((time_t) (time_t_min + now)));
11883 static int
11884 irix_6_4_bug ()
11886 /* Based on code from Ariel Faigon. */
11887 struct tm tm;
11888 tm.tm_year = 96;
11889 tm.tm_mon = 3;
11890 tm.tm_mday = 0;
11891 tm.tm_hour = 0;
11892 tm.tm_min = 0;
11893 tm.tm_sec = 0;
11894 tm.tm_isdst = -1;
11895 mktime (&tm);
11896 return tm.tm_mon == 2 && tm.tm_mday == 31;
11899 static int
11900 bigtime_test (j)
11901 int j;
11903 struct tm tm;
11904 time_t now;
11905 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11906 now = mktime (&tm);
11907 if (now != (time_t) -1)
11909 struct tm *lt = localtime (&now);
11910 if (! (lt
11911 && lt->tm_year == tm.tm_year
11912 && lt->tm_mon == tm.tm_mon
11913 && lt->tm_mday == tm.tm_mday
11914 && lt->tm_hour == tm.tm_hour
11915 && lt->tm_min == tm.tm_min
11916 && lt->tm_sec == tm.tm_sec
11917 && lt->tm_yday == tm.tm_yday
11918 && lt->tm_wday == tm.tm_wday
11919 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11920 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11921 return 0;
11923 return 1;
11926 static int
11927 year_2050_test ()
11929 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11930 ignoring leap seconds. */
11931 unsigned long int answer = 2527315200UL;
11933 struct tm tm;
11934 time_t t;
11935 tm.tm_year = 2050 - 1900;
11936 tm.tm_mon = 2 - 1;
11937 tm.tm_mday = 1;
11938 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11939 tm.tm_isdst = -1;
11941 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11942 instead of "TZ=America/Vancouver" in order to detect the bug even
11943 on systems that don't support the Olson extension, or don't have the
11944 full zoneinfo tables installed. */
11945 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11947 t = mktime (&tm);
11949 /* Check that the result is either a failure, or close enough
11950 to the correct answer that we can assume the discrepancy is
11951 due to leap seconds. */
11952 return (t == (time_t) -1
11953 || (0 < t && answer - 120 <= t && t <= answer + 120));
11957 main ()
11959 time_t t, delta;
11960 int i, j;
11962 /* This test makes some buggy mktime implementations loop.
11963 Give up after 60 seconds; a mktime slower than that
11964 isn't worth using anyway. */
11965 alarm (60);
11967 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11968 continue;
11969 time_t_max--;
11970 if ((time_t) -1 < 0)
11971 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11972 continue;
11973 delta = time_t_max / 997; /* a suitable prime number */
11974 for (i = 0; i < N_STRINGS; i++)
11976 if (tz_strings[i])
11977 putenv (tz_strings[i]);
11979 for (t = 0; t <= time_t_max - delta; t += delta)
11980 if (! mktime_test (t))
11981 return 1;
11982 if (! (mktime_test ((time_t) 1)
11983 && mktime_test ((time_t) (60 * 60))
11984 && mktime_test ((time_t) (60 * 60 * 24))))
11985 return 1;
11987 for (j = 1; 0 < j; j *= 2)
11988 if (! bigtime_test (j))
11989 return 1;
11990 if (! bigtime_test (j - 1))
11991 return 1;
11993 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11995 _ACEOF
11996 rm -f conftest$ac_exeext
11997 if { (ac_try="$ac_link"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_working_mktime=yes
12017 else
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ( exit $ac_status )
12023 ac_cv_func_working_mktime=no
12025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12031 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12032 if test $ac_cv_func_working_mktime = no; then
12033 case " $LIBOBJS " in
12034 *" mktime.$ac_objext "* ) ;;
12035 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12037 esac
12043 for ac_header in stdlib.h unistd.h
12045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12055 else
12056 # Is the header compilable?
12057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 #include <$ac_header>
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 ac_header_compiler=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_header_compiler=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6; }
12097 # Is the header present?
12098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <$ac_header>
12107 _ACEOF
12108 if { (ac_try="$ac_cpp conftest.$ac_ext"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } >/dev/null && {
12121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 }; then
12124 ac_header_preproc=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_preproc=no
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12136 # So? What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138 yes:no: )
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12145 no:yes:* )
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12160 esac
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166 eval "$as_ac_Header=\$ac_header_preproc"
12168 ac_res=`eval echo '${'$as_ac_Header'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12176 _ACEOF
12180 done
12183 for ac_func in getpagesize
12185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12212 #undef $ac_func
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char $ac_func ();
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12225 choke me
12226 #endif
12229 main ()
12231 return $ac_func ();
12233 return 0;
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest$ac_exeext &&
12253 $as_test_x conftest$ac_exeext; then
12254 eval "$as_ac_var=yes"
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 eval "$as_ac_var=no"
12262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12263 conftest$ac_exeext conftest.$ac_ext
12265 ac_res=`eval echo '${'$as_ac_var'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269 cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 _ACEOF
12274 done
12276 { echo "$as_me:$LINENO: checking for working mmap" >&5
12277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 if test "$cross_compiling" = yes; then
12282 ac_cv_func_mmap_fixed_mapped=no
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 /* malloc might have been renamed as rpl_malloc. */
12292 #undef malloc
12294 /* Thanks to Mike Haertel and Jim Avera for this test.
12295 Here is a matrix of mmap possibilities:
12296 mmap private not fixed
12297 mmap private fixed at somewhere currently unmapped
12298 mmap private fixed at somewhere already mapped
12299 mmap shared not fixed
12300 mmap shared fixed at somewhere currently unmapped
12301 mmap shared fixed at somewhere already mapped
12302 For private mappings, we should verify that changes cannot be read()
12303 back from the file, nor mmap's back from the file at a different
12304 address. (There have been systems where private was not correctly
12305 implemented like the infamous i386 svr4.0, and systems where the
12306 VM page cache was not coherent with the file system buffer cache
12307 like early versions of FreeBSD and possibly contemporary NetBSD.)
12308 For shared mappings, we should conversely verify that changes get
12309 propagated back to all the places they're supposed to be.
12311 Grep wants private fixed already mapped.
12312 The main things grep needs to know about mmap are:
12313 * does it exist and is it safe to write into the mmap'd area
12314 * how to use it (BSD variants) */
12316 #include <fcntl.h>
12317 #include <sys/mman.h>
12319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12320 char *malloc ();
12321 #endif
12323 /* This mess was copied from the GNU getpagesize.h. */
12324 #ifndef HAVE_GETPAGESIZE
12325 /* Assume that all systems that can run configure have sys/param.h. */
12326 # ifndef HAVE_SYS_PARAM_H
12327 # define HAVE_SYS_PARAM_H 1
12328 # endif
12330 # ifdef _SC_PAGESIZE
12331 # define getpagesize() sysconf(_SC_PAGESIZE)
12332 # else /* no _SC_PAGESIZE */
12333 # ifdef HAVE_SYS_PARAM_H
12334 # include <sys/param.h>
12335 # ifdef EXEC_PAGESIZE
12336 # define getpagesize() EXEC_PAGESIZE
12337 # else /* no EXEC_PAGESIZE */
12338 # ifdef NBPG
12339 # define getpagesize() NBPG * CLSIZE
12340 # ifndef CLSIZE
12341 # define CLSIZE 1
12342 # endif /* no CLSIZE */
12343 # else /* no NBPG */
12344 # ifdef NBPC
12345 # define getpagesize() NBPC
12346 # else /* no NBPC */
12347 # ifdef PAGESIZE
12348 # define getpagesize() PAGESIZE
12349 # endif /* PAGESIZE */
12350 # endif /* no NBPC */
12351 # endif /* no NBPG */
12352 # endif /* no EXEC_PAGESIZE */
12353 # else /* no HAVE_SYS_PARAM_H */
12354 # define getpagesize() 8192 /* punt totally */
12355 # endif /* no HAVE_SYS_PARAM_H */
12356 # endif /* no _SC_PAGESIZE */
12358 #endif /* no HAVE_GETPAGESIZE */
12361 main ()
12363 char *data, *data2, *data3;
12364 int i, pagesize;
12365 int fd;
12367 pagesize = getpagesize ();
12369 /* First, make a file with some known garbage in it. */
12370 data = (char *) malloc (pagesize);
12371 if (!data)
12372 return 1;
12373 for (i = 0; i < pagesize; ++i)
12374 *(data + i) = rand ();
12375 umask (0);
12376 fd = creat ("conftest.mmap", 0600);
12377 if (fd < 0)
12378 return 1;
12379 if (write (fd, data, pagesize) != pagesize)
12380 return 1;
12381 close (fd);
12383 /* Next, try to mmap the file at a fixed address which already has
12384 something else allocated at it. If we can, also make sure that
12385 we see the same garbage. */
12386 fd = open ("conftest.mmap", O_RDWR);
12387 if (fd < 0)
12388 return 1;
12389 data2 = (char *) malloc (2 * pagesize);
12390 if (!data2)
12391 return 1;
12392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12395 return 1;
12396 for (i = 0; i < pagesize; ++i)
12397 if (*(data + i) != *(data2 + i))
12398 return 1;
12400 /* Finally, make sure that changes to the mapped area do not
12401 percolate back to the file as seen by read(). (This is a bug on
12402 some variants of i386 svr4.0.) */
12403 for (i = 0; i < pagesize; ++i)
12404 *(data2 + i) = *(data2 + i) + 1;
12405 data3 = (char *) malloc (pagesize);
12406 if (!data3)
12407 return 1;
12408 if (read (fd, data3, pagesize) != pagesize)
12409 return 1;
12410 for (i = 0; i < pagesize; ++i)
12411 if (*(data + i) != *(data3 + i))
12412 return 1;
12413 close (fd);
12414 return 0;
12416 _ACEOF
12417 rm -f conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_mmap_fixed_mapped=yes
12438 else
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_mmap_fixed_mapped=no
12446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_MMAP 1
12457 _ACEOF
12460 rm -f conftest.mmap
12464 for ac_header in sys/select.h sys/socket.h
12466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_res=`eval echo '${'$as_ac_Header'}'`
12474 { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12476 else
12477 # Is the header compilable?
12478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 #include <$ac_header>
12488 _ACEOF
12489 rm -f conftest.$ac_objext
12490 if { (ac_try="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.$ac_objext; then
12506 ac_header_compiler=yes
12507 else
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_compiler=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6; }
12518 # Is the header present?
12519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <$ac_header>
12528 _ACEOF
12529 if { (ac_try="$ac_cpp conftest.$ac_ext"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev/null && {
12542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 }; then
12545 ac_header_preproc=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_header_preproc=no
12553 rm -f conftest.err conftest.$ac_ext
12554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12555 echo "${ECHO_T}$ac_header_preproc" >&6; }
12557 # So? What about this header?
12558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12559 yes:no: )
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12564 ac_header_preproc=yes
12566 no:yes:* )
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12581 esac
12582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 eval "$as_ac_Header=\$ac_header_preproc"
12589 ac_res=`eval echo '${'$as_ac_Header'}'`
12590 { echo "$as_me:$LINENO: result: $ac_res" >&5
12591 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12597 _ACEOF
12601 done
12603 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12604 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12605 if test "${ac_cv_func_select_args+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12609 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12610 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 $ac_includes_default
12618 #ifdef HAVE_SYS_SELECT_H
12619 # include <sys/select.h>
12620 #endif
12621 #ifdef HAVE_SYS_SOCKET_H
12622 # include <sys/socket.h>
12623 #endif
12626 main ()
12628 extern int select ($ac_arg1,
12629 $ac_arg234, $ac_arg234, $ac_arg234,
12630 $ac_arg5);
12632 return 0;
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (ac_try="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12652 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 done
12662 done
12663 done
12664 # Provide a safe default value.
12665 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12668 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12669 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12670 ac_save_IFS=$IFS; IFS=','
12671 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12672 IFS=$ac_save_IFS
12673 shift
12675 cat >>confdefs.h <<_ACEOF
12676 #define SELECT_TYPE_ARG1 $1
12677 _ACEOF
12680 cat >>confdefs.h <<_ACEOF
12681 #define SELECT_TYPE_ARG234 ($2)
12682 _ACEOF
12685 cat >>confdefs.h <<_ACEOF
12686 #define SELECT_TYPE_ARG5 ($3)
12687 _ACEOF
12689 rm -f conftest*
12691 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12693 if test "$ac_cv_prog_cc_c89" != no; then
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12697 cat >>confdefs.h <<\_ACEOF
12698 #define PROTOTYPES 1
12699 _ACEOF
12702 cat >>confdefs.h <<\_ACEOF
12703 #define __PROTOTYPES 1
12704 _ACEOF
12706 else
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12712 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12713 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_cv_func_setvbuf_reversed=no
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <stdio.h>
12724 # ifdef PROTOTYPES
12725 int (setvbuf) (FILE *, int, char *, size_t);
12726 # endif
12728 main ()
12730 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12732 return 0;
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <stdio.h>
12760 # ifdef PROTOTYPES
12761 int (setvbuf) (FILE *, int, char *, size_t);
12762 # endif
12764 main ()
12766 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest$ac_exeext &&
12788 $as_test_x conftest$ac_exeext; then
12789 # It compiles and links either way, so it must not be declared
12790 # with a prototype and most likely this is a K&R C compiler.
12791 # Try running it.
12792 if test "$cross_compiling" = yes; then
12793 : # Assume setvbuf is not reversed when cross-compiling.
12794 else
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12803 main ()
12805 /* This call has the arguments reversed.
12806 A reversed system may check and see that the address of buf
12807 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12808 char buf;
12809 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12810 return 1;
12811 putchar ('\r');
12812 return 0; /* Non-reversed systems SEGV here. */
12814 return 0;
12816 _ACEOF
12817 rm -f conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_func_setvbuf_reversed=yes
12838 else
12839 echo "$as_me: program exited with status $ac_status" >&5
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12848 ac_cv_func_setvbuf_reversed=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12869 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12870 if test $ac_cv_func_setvbuf_reversed = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define SETVBUF_REVERSED 1
12874 _ACEOF
12878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12880 if test "${ac_cv_type_signal+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <sys/types.h>
12890 #include <signal.h>
12893 main ()
12895 return *(signal (0, 0)) (0) == 1;
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.$ac_objext; then
12917 ac_cv_type_signal=int
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_cv_type_signal=void
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12930 cat >>confdefs.h <<_ACEOF
12931 #define RETSIGTYPE $ac_cv_type_signal
12932 _ACEOF
12935 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12936 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12937 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 rm -f conftest.sym conftest.file
12941 echo >conftest.file
12942 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12943 if test "$cross_compiling" = yes; then
12944 ac_cv_func_lstat_dereferences_slashed_symlink=no
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12954 main ()
12956 struct stat sbuf;
12957 /* Linux will dereference the symlink and fail.
12958 That is better in the sense that it means we will not
12959 have to compile and use the lstat wrapper. */
12960 return lstat ("conftest.sym/", &sbuf) == 0;
12962 return 0;
12964 _ACEOF
12965 rm -f conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12986 else
12987 echo "$as_me: program exited with status $ac_status" >&5
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ( exit $ac_status )
12992 ac_cv_func_lstat_dereferences_slashed_symlink=no
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12998 else
12999 # If the `ln -s' command failed, then we probably don't even
13000 # have an lstat function.
13001 ac_cv_func_lstat_dereferences_slashed_symlink=no
13003 rm -f conftest.sym conftest.file
13006 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13007 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13009 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13011 cat >>confdefs.h <<_ACEOF
13012 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13013 _ACEOF
13016 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13017 case " $LIBOBJS " in
13018 *" lstat.$ac_objext "* ) ;;
13019 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13021 esac
13025 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13026 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13027 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 if test "$cross_compiling" = yes; then
13031 ac_cv_func_stat_empty_string_bug=yes
13032 else
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13041 main ()
13043 struct stat sbuf;
13044 return stat ("", &sbuf) == 0;
13046 return 0;
13048 _ACEOF
13049 rm -f conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_func_stat_empty_string_bug=no
13070 else
13071 echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ( exit $ac_status )
13076 ac_cv_func_stat_empty_string_bug=yes
13078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13084 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13085 if test $ac_cv_func_stat_empty_string_bug = yes; then
13086 case " $LIBOBJS " in
13087 *" stat.$ac_objext "* ) ;;
13088 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13090 esac
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_STAT_EMPTY_STRING_BUG 1
13095 _ACEOF
13099 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13100 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13101 if test "${ac_cv_func_strcoll_works+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 if test "$cross_compiling" = yes; then
13105 ac_cv_func_strcoll_works=no
13106 else
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13115 main ()
13117 return (strcoll ("abc", "def") >= 0 ||
13118 strcoll ("ABC", "DEF") >= 0 ||
13119 strcoll ("123", "456") >= 0)
13121 return 0;
13123 _ACEOF
13124 rm -f conftest$ac_exeext
13125 if { (ac_try="$ac_link"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_link") 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_strcoll_works=yes
13145 else
13146 echo "$as_me: program exited with status $ac_status" >&5
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ( exit $ac_status )
13151 ac_cv_func_strcoll_works=no
13153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13159 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13160 if test $ac_cv_func_strcoll_works = yes; then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_STRCOLL 1
13164 _ACEOF
13169 for ac_func in strftime
13171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13185 #define $ac_func innocuous_$ac_func
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func (); below.
13189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 <limits.h> exists even on freestanding compilers. */
13192 #ifdef __STDC__
13193 # include <limits.h>
13194 #else
13195 # include <assert.h>
13196 #endif
13198 #undef $ac_func
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char $ac_func ();
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined __stub_$ac_func || defined __stub___$ac_func
13211 choke me
13212 #endif
13215 main ()
13217 return $ac_func ();
13219 return 0;
13221 _ACEOF
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (ac_try="$ac_link"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext &&
13239 $as_test_x conftest$ac_exeext; then
13240 eval "$as_ac_var=yes"
13241 else
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 eval "$as_ac_var=no"
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 ac_res=`eval echo '${'$as_ac_var'}'`
13252 { echo "$as_me:$LINENO: result: $ac_res" >&5
13253 echo "${ECHO_T}$ac_res" >&6; }
13254 if test `eval echo '${'$as_ac_var'}'` = yes; then
13255 cat >>confdefs.h <<_ACEOF
13256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13257 _ACEOF
13259 else
13260 # strftime is in -lintl on SCO UNIX.
13261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lintl $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13275 /* Override any GCC internal prototype to avoid an error.
13276 Use char because int might match the return type of a GCC
13277 builtin and then its argument prototype would still apply. */
13278 #ifdef __cplusplus
13279 extern "C"
13280 #endif
13281 char strftime ();
13283 main ()
13285 return strftime ();
13287 return 0;
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest$ac_exeext &&
13307 $as_test_x conftest$ac_exeext; then
13308 ac_cv_lib_intl_strftime=yes
13309 else
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_cv_lib_intl_strftime=no
13316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13322 if test $ac_cv_lib_intl_strftime = yes; then
13323 cat >>confdefs.h <<\_ACEOF
13324 #define HAVE_STRFTIME 1
13325 _ACEOF
13327 LIBS="-lintl $LIBS"
13331 done
13333 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13334 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13335 if test "${ac_cv_func_strnlen_working+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 if test "$cross_compiling" = yes; then
13339 ac_cv_func_strnlen_working=no
13340 else
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13349 main ()
13352 #define S "foobar"
13353 #define S_LEN (sizeof S - 1)
13355 /* At least one implementation is buggy: that of AIX 4.3 would
13356 give strnlen (S, 1) == 3. */
13358 int i;
13359 for (i = 0; i < S_LEN + 1; ++i)
13361 int expected = i <= S_LEN ? i : S_LEN;
13362 if (strnlen (S, i) != expected)
13363 return 1;
13365 return 0;
13368 return 0;
13370 _ACEOF
13371 rm -f conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_strnlen_working=yes
13392 else
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_strnlen_working=no
13400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13407 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13408 *" strnlen.$ac_objext "* ) ;;
13409 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13411 esac
13414 { echo "$as_me:$LINENO: checking for working strtod" >&5
13415 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13416 if test "${ac_cv_func_strtod+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 if test "$cross_compiling" = yes; then
13420 ac_cv_func_strtod=no
13421 else
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13429 $ac_includes_default
13430 #ifndef strtod
13431 double strtod ();
13432 #endif
13434 main()
13437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13438 char *string = " +69";
13439 char *term;
13440 double value;
13441 value = strtod (string, &term);
13442 if (value != 69 || term != (string + 4))
13443 return 1;
13447 /* Under Solaris 2.4, strtod returns the wrong value for the
13448 terminating character under some conditions. */
13449 char *string = "NaN";
13450 char *term;
13451 strtod (string, &term);
13452 if (term != string && *(term - 1) == 0)
13453 return 1;
13455 return 0;
13458 _ACEOF
13459 rm -f conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_func_strtod=yes
13480 else
13481 echo "$as_me: program exited with status $ac_status" >&5
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ( exit $ac_status )
13486 ac_cv_func_strtod=no
13488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13494 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13495 if test $ac_cv_func_strtod = no; then
13496 case " $LIBOBJS " in
13497 *" strtod.$ac_objext "* ) ;;
13498 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13500 esac
13502 { echo "$as_me:$LINENO: checking for pow" >&5
13503 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13504 if test "${ac_cv_func_pow+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13515 #define pow innocuous_pow
13517 /* System header to define __stub macros and hopefully few prototypes,
13518 which can conflict with char pow (); below.
13519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520 <limits.h> exists even on freestanding compilers. */
13522 #ifdef __STDC__
13523 # include <limits.h>
13524 #else
13525 # include <assert.h>
13526 #endif
13528 #undef pow
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char pow ();
13537 /* The GNU C library defines this for functions which it implements
13538 to always fail with ENOSYS. Some functions are actually named
13539 something starting with __ and the normal name is an alias. */
13540 #if defined __stub_pow || defined __stub___pow
13541 choke me
13542 #endif
13545 main ()
13547 return pow ();
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (ac_try="$ac_link"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest$ac_exeext &&
13569 $as_test_x conftest$ac_exeext; then
13570 ac_cv_func_pow=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_cv_func_pow=no
13578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13579 conftest$ac_exeext conftest.$ac_ext
13581 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13582 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13584 if test $ac_cv_func_pow = no; then
13585 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13586 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_m_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-lm $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 char pow ();
13607 main ()
13609 return pow ();
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest$ac_exeext &&
13631 $as_test_x conftest$ac_exeext; then
13632 ac_cv_lib_m_pow=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_cv_lib_m_pow=no
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13642 LIBS=$ac_check_lib_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13645 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13646 if test $ac_cv_lib_m_pow = yes; then
13647 POW_LIB=-lm
13648 else
13649 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13650 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13665 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13666 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13667 if test "${ac_cv_func_utime_null+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 rm -f conftest.data; >conftest.data
13671 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13672 if test "$cross_compiling" = yes; then
13673 ac_cv_func_utime_null=no
13674 else
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13682 #ifdef HAVE_UTIME_H
13683 # include <utime.h>
13684 #endif
13686 main ()
13688 struct stat s, t;
13689 return ! (stat ("conftest.data", &s) == 0
13690 && utime ("conftest.data", 0) == 0
13691 && stat ("conftest.data", &t) == 0
13692 && t.st_mtime >= s.st_mtime
13693 && t.st_mtime - s.st_mtime < 120);
13695 return 0;
13697 _ACEOF
13698 rm -f conftest$ac_exeext
13699 if { (ac_try="$ac_link"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_link") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_func_utime_null=yes
13719 else
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_func_utime_null=no
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13733 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13734 if test $ac_cv_func_utime_null = yes; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_UTIME_NULL 1
13738 _ACEOF
13741 rm -f conftest.data
13744 for ac_func in vprintf
13746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13760 #define $ac_func innocuous_$ac_func
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func (); below.
13764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13765 <limits.h> exists even on freestanding compilers. */
13767 #ifdef __STDC__
13768 # include <limits.h>
13769 #else
13770 # include <assert.h>
13771 #endif
13773 #undef $ac_func
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char $ac_func ();
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined __stub_$ac_func || defined __stub___$ac_func
13786 choke me
13787 #endif
13790 main ()
13792 return $ac_func ();
13794 return 0;
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 eval "$as_ac_var=yes"
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 eval "$as_ac_var=no"
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_var'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_var'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13832 _ACEOF
13834 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13835 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13836 if test "${ac_cv_func__doprnt+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13847 #define _doprnt innocuous__doprnt
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char _doprnt (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13854 #ifdef __STDC__
13855 # include <limits.h>
13856 #else
13857 # include <assert.h>
13858 #endif
13860 #undef _doprnt
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char _doprnt ();
13869 /* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872 #if defined __stub__doprnt || defined __stub____doprnt
13873 choke me
13874 #endif
13877 main ()
13879 return _doprnt ();
13881 return 0;
13883 _ACEOF
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext &&
13901 $as_test_x conftest$ac_exeext; then
13902 ac_cv_func__doprnt=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_func__doprnt=no
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13914 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13915 if test $ac_cv_func__doprnt = yes; then
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_DOPRNT 1
13919 _ACEOF
13924 done
13974 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
13976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13990 #define $ac_func innocuous_$ac_func
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13997 #ifdef __STDC__
13998 # include <limits.h>
13999 #else
14000 # include <assert.h>
14001 #endif
14003 #undef $ac_func
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 char $ac_func ();
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined __stub_$ac_func || defined __stub___$ac_func
14016 choke me
14017 #endif
14020 main ()
14022 return $ac_func ();
14024 return 0;
14026 _ACEOF
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (ac_try="$ac_link"
14029 case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext &&
14044 $as_test_x conftest$ac_exeext; then
14045 eval "$as_ac_var=yes"
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 eval "$as_ac_var=no"
14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14054 conftest$ac_exeext conftest.$ac_ext
14056 ac_res=`eval echo '${'$as_ac_var'}'`
14057 { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14062 _ACEOF
14065 done
14068 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14069 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h. */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14078 main ()
14080 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14082 return 0;
14084 _ACEOF
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_link") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext &&
14102 $as_test_x conftest$ac_exeext; then
14103 { echo "$as_me:$LINENO: result: yes" >&5
14104 echo "${ECHO_T}yes" >&6; }
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_GCC_ATOMICS 1
14108 _ACEOF
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 { echo "$as_me:$LINENO: result: no" >&5
14115 echo "${ECHO_T}no" >&6; }
14119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120 conftest$ac_exeext conftest.$ac_ext
14123 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14124 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14125 cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h. */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 static int __attribute__((pure)) test(void) {}
14133 main ()
14137 return 0;
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest.$ac_objext; then
14157 { echo "$as_me:$LINENO: result: yes" >&5
14158 echo "${ECHO_T}yes" >&6; }
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_ATTRIBUTE_pure 1
14162 _ACEOF
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14176 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h. */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 static int __attribute__((malloc)) test(void) {}
14185 main ()
14189 return 0;
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.$ac_objext; then
14209 { echo "$as_me:$LINENO: result: yes" >&5
14210 echo "${ECHO_T}yes" >&6; }
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_ATTRIBUTE_malloc 1
14214 _ACEOF
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 { echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6; }
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14228 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 static int __attribute__((const)) test(void) {}
14237 main ()
14241 return 0;
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 { echo "$as_me:$LINENO: result: yes" >&5
14262 echo "${ECHO_T}yes" >&6; }
14264 cat >>confdefs.h <<_ACEOF
14265 #define HAVE_ATTRIBUTE_const 1
14266 _ACEOF
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 { echo "$as_me:$LINENO: result: no" >&5
14273 echo "${ECHO_T}no" >&6; }
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14280 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 static int __attribute__((unused)) test(void) {}
14289 main ()
14293 return 0;
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest.$ac_objext; then
14313 { echo "$as_me:$LINENO: result: yes" >&5
14314 echo "${ECHO_T}yes" >&6; }
14316 cat >>confdefs.h <<_ACEOF
14317 #define HAVE_ATTRIBUTE_unused 1
14318 _ACEOF
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 { echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6; }
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14332 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 static int __attribute__((always_inline)) test(void) {}
14341 main ()
14345 return 0;
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (ac_try="$ac_compile"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest.$ac_objext; then
14365 { echo "$as_me:$LINENO: result: yes" >&5
14366 echo "${ECHO_T}yes" >&6; }
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_ATTRIBUTE_always_inline 1
14370 _ACEOF
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 { echo "$as_me:$LINENO: result: no" >&5
14377 echo "${ECHO_T}no" >&6; }
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14384 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14385 saved_CFLAGS="${CFLAGS}"
14386 CFLAGS="${CFLAGS} -ffunction-sections"
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. */
14395 main ()
14397 int x = 1;
14399 return 0;
14401 _ACEOF
14402 rm -f conftest.$ac_objext
14403 if { (ac_try="$ac_compile"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_compile") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest.$ac_objext; then
14419 { echo "$as_me:$LINENO: result: yes" >&5
14420 echo "${ECHO_T}yes" >&6; }
14421 saved_LDFLAGS="${LDFLAGS}"
14422 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14423 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14424 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14433 main ()
14435 int x = 1;
14437 return 0;
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest$ac_exeext &&
14457 $as_test_x conftest$ac_exeext; then
14458 { echo "$as_me:$LINENO: result: yes" >&5
14459 echo "${ECHO_T}yes" >&6; }
14460 GC_CFLAGS="-ffunction-sections"
14461 GC_LDFLAGS="-Wl,--gc-sections"
14462 else
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LDFLAGS="${saved_LDFLAGS}"
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 { echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6; }
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 CFLAGS="${saved_CFLAGS}"
14488 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14489 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <resolv.h>
14498 main ()
14500 int foo = res_ninit(NULL);
14502 return 0;
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 { echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6; }
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_RES_NINIT 1
14528 _ACEOF
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 { echo "$as_me:$LINENO: result: no" >&5
14535 echo "${ECHO_T}no" >&6; }
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14543 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 #include <dlfcn.h>
14552 main ()
14554 int foo = RTLD_NOLOAD;
14556 return 0;
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (ac_try="$ac_link"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_link") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest$ac_exeext &&
14576 $as_test_x conftest$ac_exeext; then
14577 { echo "$as_me:$LINENO: result: yes" >&5
14578 echo "${ECHO_T}yes" >&6; }
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_RTLD_NOLOAD 1
14582 _ACEOF
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14597 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h. */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <netinet/in.h>
14606 main ()
14608 int foo = IP_MTU_DISCOVER;
14610 return 0;
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest$ac_exeext &&
14630 $as_test_x conftest$ac_exeext; then
14631 { echo "$as_me:$LINENO: result: yes" >&5
14632 echo "${ECHO_T}yes" >&6; }
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_IP_MTU_DISCOVER 1
14636 _ACEOF
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14648 conftest$ac_exeext conftest.$ac_ext
14650 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14651 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14652 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14653 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14657 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14658 else
14659 # Is the header compilable?
14660 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14661 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14669 #include <libkern/OSAtomic.h>
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (ac_try="$ac_compile"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_compile") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest.$ac_objext; then
14688 ac_header_compiler=yes
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_compiler=no
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14698 echo "${ECHO_T}$ac_header_compiler" >&6; }
14700 # Is the header present?
14701 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14702 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <libkern/OSAtomic.h>
14710 _ACEOF
14711 if { (ac_try="$ac_cpp conftest.$ac_ext"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } >/dev/null && {
14724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 }; then
14727 ac_header_preproc=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_header_preproc=no
14735 rm -f conftest.err conftest.$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14737 echo "${ECHO_T}$ac_header_preproc" >&6; }
14739 # So? What about this header?
14740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14741 yes:no: )
14742 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14743 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14745 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14746 ac_header_preproc=yes
14748 no:yes:* )
14749 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14750 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14752 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14754 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14756 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14758 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14760 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14763 esac
14764 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14765 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14766 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14771 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14772 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14775 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_OSX_ATOMICS 1
14779 _ACEOF
14785 { echo "$as_me:$LINENO: checking for int" >&5
14786 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14787 if test "${ac_cv_type_int+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 typedef int ac__type_new_;
14799 main ()
14801 if ((ac__type_new_ *) 0)
14802 return 0;
14803 if (sizeof (ac__type_new_))
14804 return 0;
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
14826 ac_cv_type_int=yes
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 ac_cv_type_int=no
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14837 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14839 # The cast to long int works around a bug in the HP C Compiler
14840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14842 # This bug is HP SR number 8606223364.
14843 { echo "$as_me:$LINENO: checking size of int" >&5
14844 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14845 if test "${ac_cv_sizeof_int+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 if test "$cross_compiling" = yes; then
14849 # Depending upon the size, compute the lo and hi bounds.
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 $ac_includes_default
14857 typedef int ac__type_sizeof_;
14859 main ()
14861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14862 test_array [0] = 0
14865 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_compile") 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest.$ac_objext; then
14885 ac_lo=0 ac_mid=0
14886 while :; do
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 $ac_includes_default
14894 typedef int ac__type_sizeof_;
14896 main ()
14898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14899 test_array [0] = 0
14902 return 0;
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_hi=$ac_mid; break
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_lo=`expr $ac_mid + 1`
14928 if test $ac_lo -le $ac_mid; then
14929 ac_lo= ac_hi=
14930 break
14932 ac_mid=`expr 2 '*' $ac_mid + 1`
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 done
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 $ac_includes_default
14948 typedef int ac__type_sizeof_;
14950 main ()
14952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14953 test_array [0] = 0
14956 return 0;
14958 _ACEOF
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.$ac_objext; then
14976 ac_hi=-1 ac_mid=-1
14977 while :; do
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 typedef int ac__type_sizeof_;
14987 main ()
14989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14990 test_array [0] = 0
14993 return 0;
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (ac_try="$ac_compile"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_compile") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest.$ac_objext; then
15013 ac_lo=$ac_mid; break
15014 else
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 ac_hi=`expr '(' $ac_mid ')' - 1`
15019 if test $ac_mid -le $ac_hi; then
15020 ac_lo= ac_hi=
15021 break
15023 ac_mid=`expr 2 '*' $ac_mid`
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 done
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_lo= ac_hi=
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 # Binary search between lo and hi bounds.
15040 while test "x$ac_lo" != "x$ac_hi"; do
15041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 $ac_includes_default
15049 typedef int ac__type_sizeof_;
15051 main ()
15053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15054 test_array [0] = 0
15057 return 0;
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_compile") 2>conftest.er1
15068 ac_status=$?
15069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } && {
15074 test -z "$ac_c_werror_flag" ||
15075 test ! -s conftest.err
15076 } && test -s conftest.$ac_objext; then
15077 ac_hi=$ac_mid
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_lo=`expr '(' $ac_mid ')' + 1`
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 done
15087 case $ac_lo in
15088 ?*) ac_cv_sizeof_int=$ac_lo;;
15089 '') if test "$ac_cv_type_int" = yes; then
15090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15091 See \`config.log' for more details." >&5
15092 echo "$as_me: error: cannot compute sizeof (int)
15093 See \`config.log' for more details." >&2;}
15094 { (exit 77); exit 77; }; }
15095 else
15096 ac_cv_sizeof_int=0
15097 fi ;;
15098 esac
15099 else
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 typedef int ac__type_sizeof_;
15108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15110 #include <stdio.h>
15111 #include <stdlib.h>
15113 main ()
15116 FILE *f = fopen ("conftest.val", "w");
15117 if (! f)
15118 return 1;
15119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15121 long int i = longval ();
15122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15123 return 1;
15124 fprintf (f, "%ld\n", i);
15126 else
15128 unsigned long int i = ulongval ();
15129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15130 return 1;
15131 fprintf (f, "%lu\n", i);
15133 return ferror (f) || fclose (f) != 0;
15136 return 0;
15138 _ACEOF
15139 rm -f conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150 { (case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_try") 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_sizeof_int=`cat conftest.val`
15160 else
15161 echo "$as_me: program exited with status $ac_status" >&5
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ( exit $ac_status )
15166 if test "$ac_cv_type_int" = yes; then
15167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15168 See \`config.log' for more details." >&5
15169 echo "$as_me: error: cannot compute sizeof (int)
15170 See \`config.log' for more details." >&2;}
15171 { (exit 77); exit 77; }; }
15172 else
15173 ac_cv_sizeof_int=0
15176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15178 rm -f conftest.val
15180 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15181 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15185 cat >>confdefs.h <<_ACEOF
15186 #define SIZEOF_INT $ac_cv_sizeof_int
15187 _ACEOF
15191 # do the package library checks now
15194 if test "${USE_ALSA}" != "no"; then
15195 pbxlibdir=""
15196 if test "x${ALSA_DIR}" != "x"; then
15197 if test -d ${ALSA_DIR}/lib; then
15198 pbxlibdir="-L${ALSA_DIR}/lib"
15199 else
15200 pbxlibdir="-L${ALSA_DIR}"
15203 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15204 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15205 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208 ac_check_lib_save_LIBS=$LIBS
15209 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15217 /* Override any GCC internal prototype to avoid an error.
15218 Use char because int might match the return type of a GCC
15219 builtin and then its argument prototype would still apply. */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char snd_spcm_init ();
15225 main ()
15227 return snd_spcm_init ();
15229 return 0;
15231 _ACEOF
15232 rm -f conftest.$ac_objext conftest$ac_exeext
15233 if { (ac_try="$ac_link"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237 esac
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_link") 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest$ac_exeext &&
15249 $as_test_x conftest$ac_exeext; then
15250 ac_cv_lib_asound_snd_spcm_init=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_lib_asound_snd_spcm_init=no
15258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15259 conftest$ac_exeext conftest.$ac_ext
15260 LIBS=$ac_check_lib_save_LIBS
15262 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15263 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15264 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15265 AST_ALSA_FOUND=yes
15266 else
15267 AST_ALSA_FOUND=no
15271 if test "${AST_ALSA_FOUND}" = "yes"; then
15272 ALSA_LIB="-lasound -lm -ldl"
15273 ALSA_HEADER_FOUND="1"
15274 if test "x${ALSA_DIR}" != "x"; then
15275 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15276 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15277 if test "xalsa/asoundlib.h" != "x" ; then
15278 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15281 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 ac_res=`eval echo '${'$as_ac_Header'}'`
15286 { echo "$as_me:$LINENO: result: $ac_res" >&5
15287 echo "${ECHO_T}$ac_res" >&6; }
15288 else
15289 # Is the header compilable?
15290 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15291 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15300 _ACEOF
15301 rm -f conftest.$ac_objext
15302 if { (ac_try="$ac_compile"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_compile") 2>conftest.er1
15309 ac_status=$?
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } && {
15315 test -z "$ac_c_werror_flag" ||
15316 test ! -s conftest.err
15317 } && test -s conftest.$ac_objext; then
15318 ac_header_compiler=yes
15319 else
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_compiler=no
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15328 echo "${ECHO_T}$ac_header_compiler" >&6; }
15330 # Is the header present?
15331 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15332 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h. */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15340 _ACEOF
15341 if { (ac_try="$ac_cpp conftest.$ac_ext"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } >/dev/null && {
15354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 }; then
15357 ac_header_preproc=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_preproc=no
15365 rm -f conftest.err conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6; }
15369 # So? What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15371 yes:no: )
15372 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15373 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15375 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15376 ac_header_preproc=yes
15378 no:yes:* )
15379 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15380 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15382 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15384 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15386 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15388 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15390 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15393 esac
15394 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15395 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399 eval "$as_ac_Header=\$ac_header_preproc"
15401 ac_res=`eval echo '${'$as_ac_Header'}'`
15402 { echo "$as_me:$LINENO: result: $ac_res" >&5
15403 echo "${ECHO_T}$ac_res" >&6; }
15406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15407 ALSA_HEADER_FOUND=1
15408 else
15409 ALSA_HEADER_FOUND=0
15414 else
15415 if test "xalsa/asoundlib.h" != "x" ; then
15416 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15417 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15418 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15419 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15423 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15424 else
15425 # Is the header compilable?
15426 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15427 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 $ac_includes_default
15435 #include <alsa/asoundlib.h>
15436 _ACEOF
15437 rm -f conftest.$ac_objext
15438 if { (ac_try="$ac_compile"
15439 case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_compile") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest.$ac_objext; then
15454 ac_header_compiler=yes
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_compiler=no
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15464 echo "${ECHO_T}$ac_header_compiler" >&6; }
15466 # Is the header present?
15467 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15468 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <alsa/asoundlib.h>
15476 _ACEOF
15477 if { (ac_try="$ac_cpp conftest.$ac_ext"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null && {
15490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 }; then
15493 ac_header_preproc=yes
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507 yes:no: )
15508 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15512 ac_header_preproc=yes
15514 no:yes:* )
15515 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15529 esac
15530 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15531 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15532 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15537 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15538 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15541 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15542 ALSA_HEADER_FOUND=1
15543 else
15544 ALSA_HEADER_FOUND=0
15550 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15551 if test ! -z "${ALSA_MANDATORY}" ;
15552 then
15553 { echo "$as_me:$LINENO: ***" >&5
15554 echo "$as_me: ***" >&6;}
15555 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15556 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15557 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
15558 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
15559 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15560 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15561 exit 1
15563 ALSA_LIB=""
15564 ALSA_INCLUDE=""
15565 PBX_ALSA=0
15566 else
15567 PBX_ALSA=1
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_ALSA 1
15571 _ACEOF
15574 elif test ! -z "${ALSA_MANDATORY}";
15575 then
15576 { echo "$as_me:$LINENO: ***" >&5
15577 echo "$as_me: ***" >&6;}
15578 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15579 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15580 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15581 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15582 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15583 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15584 exit 1
15590 if test "${USE_CURSES}" != "no"; then
15591 pbxlibdir=""
15592 if test "x${CURSES_DIR}" != "x"; then
15593 if test -d ${CURSES_DIR}/lib; then
15594 pbxlibdir="-L${CURSES_DIR}/lib"
15595 else
15596 pbxlibdir="-L${CURSES_DIR}"
15599 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15600 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15601 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lcurses ${pbxlibdir} $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 char initscr ();
15621 main ()
15623 return initscr ();
15625 return 0;
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (ac_try="$ac_link"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633 esac
15634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_link") 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest$ac_exeext &&
15645 $as_test_x conftest$ac_exeext; then
15646 ac_cv_lib_curses_initscr=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_curses_initscr=no
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15659 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15660 if test $ac_cv_lib_curses_initscr = yes; then
15661 AST_CURSES_FOUND=yes
15662 else
15663 AST_CURSES_FOUND=no
15667 if test "${AST_CURSES_FOUND}" = "yes"; then
15668 CURSES_LIB="-lcurses "
15669 CURSES_HEADER_FOUND="1"
15670 if test "x${CURSES_DIR}" != "x"; then
15671 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15672 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15673 if test "xcurses.h" != "x" ; then
15674 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15676 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15677 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 ac_res=`eval echo '${'$as_ac_Header'}'`
15682 { echo "$as_me:$LINENO: result: $ac_res" >&5
15683 echo "${ECHO_T}$ac_res" >&6; }
15684 else
15685 # Is the header compilable?
15686 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15687 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h. */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 $ac_includes_default
15695 #include <${CURSES_DIR}/include/curses.h>
15696 _ACEOF
15697 rm -f conftest.$ac_objext
15698 if { (ac_try="$ac_compile"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_compile") 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest.$ac_objext; then
15714 ac_header_compiler=yes
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_compiler=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6; }
15726 # Is the header present?
15727 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15728 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <${CURSES_DIR}/include/curses.h>
15736 _ACEOF
15737 if { (ac_try="$ac_cpp conftest.$ac_ext"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } >/dev/null && {
15750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 }; then
15753 ac_header_preproc=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_header_preproc=no
15761 rm -f conftest.err conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6; }
15765 # So? What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767 yes:no: )
15768 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15772 ac_header_preproc=yes
15774 no:yes:* )
15775 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15789 esac
15790 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15791 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795 eval "$as_ac_Header=\$ac_header_preproc"
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 CURSES_HEADER_FOUND=1
15804 else
15805 CURSES_HEADER_FOUND=0
15810 else
15811 if test "xcurses.h" != "x" ; then
15812 if test "${ac_cv_header_curses_h+set}" = set; then
15813 { echo "$as_me:$LINENO: checking for curses.h" >&5
15814 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15815 if test "${ac_cv_header_curses_h+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15819 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15820 else
15821 # Is the header compilable?
15822 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15823 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h. */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 $ac_includes_default
15831 #include <curses.h>
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_compile") 2>conftest.er1
15841 ac_status=$?
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } && {
15847 test -z "$ac_c_werror_flag" ||
15848 test ! -s conftest.err
15849 } && test -s conftest.$ac_objext; then
15850 ac_header_compiler=yes
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_compiler=no
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15860 echo "${ECHO_T}$ac_header_compiler" >&6; }
15862 # Is the header present?
15863 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15864 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <curses.h>
15872 _ACEOF
15873 if { (ac_try="$ac_cpp conftest.$ac_ext"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } >/dev/null && {
15886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 }; then
15889 ac_header_preproc=yes
15890 else
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_header_preproc=no
15897 rm -f conftest.err conftest.$ac_ext
15898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899 echo "${ECHO_T}$ac_header_preproc" >&6; }
15901 # So? What about this header?
15902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903 yes:no: )
15904 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15905 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
15907 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
15908 ac_header_preproc=yes
15910 no:yes:* )
15911 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15912 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15914 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15916 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15918 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
15920 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15922 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15925 esac
15926 { echo "$as_me:$LINENO: checking for curses.h" >&5
15927 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15928 if test "${ac_cv_header_curses_h+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 ac_cv_header_curses_h=$ac_header_preproc
15933 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15934 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15937 if test $ac_cv_header_curses_h = yes; then
15938 CURSES_HEADER_FOUND=1
15939 else
15940 CURSES_HEADER_FOUND=0
15946 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15947 if test ! -z "${CURSES_MANDATORY}" ;
15948 then
15949 { echo "$as_me:$LINENO: ***" >&5
15950 echo "$as_me: ***" >&6;}
15951 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
15952 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
15953 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
15954 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
15955 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15956 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15957 exit 1
15959 CURSES_LIB=""
15960 CURSES_INCLUDE=""
15961 PBX_CURSES=0
15962 else
15963 PBX_CURSES=1
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_CURSES 1
15967 _ACEOF
15970 elif test ! -z "${CURSES_MANDATORY}";
15971 then
15972 { echo "$as_me:$LINENO: ***" >&5
15973 echo "$as_me: ***" >&6;}
15974 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
15975 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
15976 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15977 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15979 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15980 exit 1
15985 GSM_INTERNAL="yes"
15987 GSM_SYSTEM="yes"
15988 if test "${USE_GSM}" != "no"; then
15989 if test "${GSM_DIR}" = "internal"; then
15990 GSM_SYSTEM="no"
15991 elif test "${GSM_DIR}" != ""; then
15992 GSM_INTERNAL="no"
15994 if test "${GSM_SYSTEM}" = "yes"; then
15995 gsmlibdir=""
15996 if test "x${GSM_DIR}" != "x"; then
15997 if test -d ${GSM_DIR}/lib; then
15998 gsmlibdir="-L${GSM_DIR}/lib"
15999 else
16000 gsmlibdir="-L${GSM_DIR}"
16003 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16004 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16005 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 ac_check_lib_save_LIBS=$LIBS
16009 LIBS="-lgsm ${gsmlibdir} $LIBS"
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 char gsm_create ();
16025 main ()
16027 return gsm_create ();
16029 return 0;
16031 _ACEOF
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest$ac_exeext &&
16049 $as_test_x conftest$ac_exeext; then
16050 ac_cv_lib_gsm_gsm_create=yes
16051 else
16052 echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ac_cv_lib_gsm_gsm_create=no
16058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16059 conftest$ac_exeext conftest.$ac_ext
16060 LIBS=$ac_check_lib_save_LIBS
16062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16063 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16064 if test $ac_cv_lib_gsm_gsm_create = yes; then
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_GSM 1
16068 _ACEOF
16072 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16073 GSM_LIB="-lgsm"
16074 if test "x${GSM_DIR}" != "x"; then
16075 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16076 GSM_INCLUDE="-I${GSM_DIR}/include"
16078 PBX_GSM=1
16079 GSM_INTERNAL="no"
16082 if test "${GSM_INTERNAL}" = "yes"; then
16083 PBX_GSM=1
16088 if test "${USE_IKSEMEL}" != "no"; then
16089 pbxlibdir=""
16090 if test "x${IKSEMEL_DIR}" != "x"; then
16091 if test -d ${IKSEMEL_DIR}/lib; then
16092 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16093 else
16094 pbxlibdir="-L${IKSEMEL_DIR}"
16097 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16098 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16099 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102 ac_check_lib_save_LIBS=$LIBS
16103 LIBS="-liksemel ${pbxlibdir} $LIBS"
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16114 #ifdef __cplusplus
16115 extern "C"
16116 #endif
16117 char iks_start_sasl ();
16119 main ()
16121 return iks_start_sasl ();
16123 return 0;
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16134 ac_status=$?
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16144 ac_cv_lib_iksemel_iks_start_sasl=yes
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_cv_lib_iksemel_iks_start_sasl=no
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16157 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16158 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16159 AST_IKSEMEL_FOUND=yes
16160 else
16161 AST_IKSEMEL_FOUND=no
16165 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16166 IKSEMEL_LIB="-liksemel "
16167 IKSEMEL_HEADER_FOUND="1"
16168 if test "x${IKSEMEL_DIR}" != "x"; then
16169 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16170 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16171 if test "xiksemel.h" != "x" ; then
16172 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16174 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16175 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 ac_res=`eval echo '${'$as_ac_Header'}'`
16180 { echo "$as_me:$LINENO: result: $ac_res" >&5
16181 echo "${ECHO_T}$ac_res" >&6; }
16182 else
16183 # Is the header compilable?
16184 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16185 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 $ac_includes_default
16193 #include <${IKSEMEL_DIR}/include/iksemel.h>
16194 _ACEOF
16195 rm -f conftest.$ac_objext
16196 if { (ac_try="$ac_compile"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_compile") 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest.$ac_objext; then
16212 ac_header_compiler=yes
16213 else
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_header_compiler=no
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16222 echo "${ECHO_T}$ac_header_compiler" >&6; }
16224 # Is the header present?
16225 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16226 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233 #include <${IKSEMEL_DIR}/include/iksemel.h>
16234 _ACEOF
16235 if { (ac_try="$ac_cpp conftest.$ac_ext"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } >/dev/null && {
16248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 }; then
16251 ac_header_preproc=yes
16252 else
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_preproc=no
16259 rm -f conftest.err conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16261 echo "${ECHO_T}$ac_header_preproc" >&6; }
16263 # So? What about this header?
16264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16265 yes:no: )
16266 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16267 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16269 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16270 ac_header_preproc=yes
16272 no:yes:* )
16273 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16274 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16276 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16278 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16280 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16282 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16284 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16287 esac
16288 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16289 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293 eval "$as_ac_Header=\$ac_header_preproc"
16295 ac_res=`eval echo '${'$as_ac_Header'}'`
16296 { echo "$as_me:$LINENO: result: $ac_res" >&5
16297 echo "${ECHO_T}$ac_res" >&6; }
16300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16301 IKSEMEL_HEADER_FOUND=1
16302 else
16303 IKSEMEL_HEADER_FOUND=0
16308 else
16309 if test "xiksemel.h" != "x" ; then
16310 if test "${ac_cv_header_iksemel_h+set}" = set; then
16311 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16312 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16313 if test "${ac_cv_header_iksemel_h+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16317 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16318 else
16319 # Is the header compilable?
16320 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16321 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 $ac_includes_default
16329 #include <iksemel.h>
16330 _ACEOF
16331 rm -f conftest.$ac_objext
16332 if { (ac_try="$ac_compile"
16333 case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_compile") 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
16347 } && test -s conftest.$ac_objext; then
16348 ac_header_compiler=yes
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16358 echo "${ECHO_T}$ac_header_compiler" >&6; }
16360 # Is the header present?
16361 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16362 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <iksemel.h>
16370 _ACEOF
16371 if { (ac_try="$ac_cpp conftest.$ac_ext"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } >/dev/null && {
16384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 }; then
16387 ac_header_preproc=yes
16388 else
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_header_preproc=no
16395 rm -f conftest.err conftest.$ac_ext
16396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16397 echo "${ECHO_T}$ac_header_preproc" >&6; }
16399 # So? What about this header?
16400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16401 yes:no: )
16402 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16403 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16405 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16406 ac_header_preproc=yes
16408 no:yes:* )
16409 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16410 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16412 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16414 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16416 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16418 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16420 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16423 esac
16424 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16425 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16426 if test "${ac_cv_header_iksemel_h+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429 ac_cv_header_iksemel_h=$ac_header_preproc
16431 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16432 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16435 if test $ac_cv_header_iksemel_h = yes; then
16436 IKSEMEL_HEADER_FOUND=1
16437 else
16438 IKSEMEL_HEADER_FOUND=0
16444 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16445 if test ! -z "${IKSEMEL_MANDATORY}" ;
16446 then
16447 { echo "$as_me:$LINENO: ***" >&5
16448 echo "$as_me: ***" >&6;}
16449 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16450 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16451 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
16452 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
16453 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16454 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16455 exit 1
16457 IKSEMEL_LIB=""
16458 IKSEMEL_INCLUDE=""
16459 PBX_IKSEMEL=0
16460 else
16461 PBX_IKSEMEL=1
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_IKSEMEL 1
16465 _ACEOF
16468 elif test ! -z "${IKSEMEL_MANDATORY}";
16469 then
16470 { echo "$as_me:$LINENO: ***" >&5
16471 echo "$as_me: ***" >&6;}
16472 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16473 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16474 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16475 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16476 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16477 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16478 exit 1
16483 if test "${PBX_IKSEMEL}" = 1; then
16485 if test "${USE_GNUTLS}" != "no"; then
16486 pbxlibdir=""
16487 if test "x${GNUTLS_DIR}" != "x"; then
16488 if test -d ${GNUTLS_DIR}/lib; then
16489 pbxlibdir="-L${GNUTLS_DIR}/lib"
16490 else
16491 pbxlibdir="-L${GNUTLS_DIR}"
16494 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16495 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16496 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16511 #ifdef __cplusplus
16512 extern "C"
16513 #endif
16514 char gnutls_bye ();
16516 main ()
16518 return gnutls_bye ();
16520 return 0;
16522 _ACEOF
16523 rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext &&
16540 $as_test_x conftest$ac_exeext; then
16541 ac_cv_lib_gnutls_gnutls_bye=yes
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_gnutls_gnutls_bye=no
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16554 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16555 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16556 AST_GNUTLS_FOUND=yes
16557 else
16558 AST_GNUTLS_FOUND=no
16562 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16563 GNUTLS_LIB="-lgnutls "
16564 GNUTLS_HEADER_FOUND="1"
16565 if test "x${GNUTLS_DIR}" != "x"; then
16566 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16567 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16568 if test "x" != "x" ; then
16569 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16571 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16572 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 ac_res=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16579 else
16580 # Is the header compilable?
16581 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16582 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16583 cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h. */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16589 $ac_includes_default
16590 #include <${GNUTLS_DIR}/include/>
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && {
16606 test -z "$ac_c_werror_flag" ||
16607 test ! -s conftest.err
16608 } && test -s conftest.$ac_objext; then
16609 ac_header_compiler=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_header_compiler=no
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16619 echo "${ECHO_T}$ac_header_compiler" >&6; }
16621 # Is the header present?
16622 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
16623 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <${GNUTLS_DIR}/include/>
16631 _ACEOF
16632 if { (ac_try="$ac_cpp conftest.$ac_ext"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } >/dev/null && {
16645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 }; then
16648 ac_header_preproc=yes
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_header_preproc=no
16656 rm -f conftest.err conftest.$ac_ext
16657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6; }
16660 # So? What about this header?
16661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16662 yes:no: )
16663 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
16664 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
16666 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
16667 ac_header_preproc=yes
16669 no:yes:* )
16670 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
16671 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
16673 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
16675 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
16677 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
16679 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
16681 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
16684 esac
16685 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16686 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690 eval "$as_ac_Header=\$ac_header_preproc"
16692 ac_res=`eval echo '${'$as_ac_Header'}'`
16693 { echo "$as_me:$LINENO: result: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16698 GNUTLS_HEADER_FOUND=1
16699 else
16700 GNUTLS_HEADER_FOUND=0
16705 else
16706 if test "x" != "x" ; then
16707 if test "${ac_cv_header_+set}" = set; then
16708 { echo "$as_me:$LINENO: checking for " >&5
16709 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16710 if test "${ac_cv_header_+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16714 echo "${ECHO_T}$ac_cv_header_" >&6; }
16715 else
16716 # Is the header compilable?
16717 { echo "$as_me:$LINENO: checking usability" >&5
16718 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 $ac_includes_default
16726 #include <>
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.$ac_objext; then
16745 ac_header_compiler=yes
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_header_compiler=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16755 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757 # Is the header present?
16758 { echo "$as_me:$LINENO: checking presence" >&5
16759 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 #include <>
16767 _ACEOF
16768 if { (ac_try="$ac_cpp conftest.$ac_ext"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } >/dev/null && {
16781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 }; then
16784 ac_header_preproc=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16798 yes:no: )
16799 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
16800 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
16802 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16805 no:yes:* )
16806 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
16807 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
16809 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
16811 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
16813 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
16817 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
16820 esac
16821 { echo "$as_me:$LINENO: checking for " >&5
16822 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16823 if test "${ac_cv_header_+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 ac_cv_header_=$ac_header_preproc
16828 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16829 echo "${ECHO_T}$ac_cv_header_" >&6; }
16832 if test $ac_cv_header_ = yes; then
16833 GNUTLS_HEADER_FOUND=1
16834 else
16835 GNUTLS_HEADER_FOUND=0
16841 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
16842 if test ! -z "${GNUTLS_MANDATORY}" ;
16843 then
16844 { echo "$as_me:$LINENO: ***" >&5
16845 echo "$as_me: ***" >&6;}
16846 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
16847 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
16848 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
16849 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
16850 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16851 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16852 exit 1
16854 GNUTLS_LIB=""
16855 GNUTLS_INCLUDE=""
16856 PBX_GNUTLS=0
16857 else
16858 PBX_GNUTLS=1
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_GNUTLS 1
16862 _ACEOF
16865 elif test ! -z "${GNUTLS_MANDATORY}";
16866 then
16867 { echo "$as_me:$LINENO: ***" >&5
16868 echo "$as_me: ***" >&6;}
16869 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
16870 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
16871 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16872 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16873 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16874 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16875 exit 1
16879 if test "${PBX_GNUTLS}" = 1; then
16880 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16884 if test "${USE_IMAP_TK}" != "no"; then
16885 if test "${IMAP_TK_DIR}" = ""; then
16886 IMAP_TK_DIR=`pwd`"/../imap-2004g"
16888 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
16889 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
16890 saved_cppflags="${CPPFLAGS}"
16891 saved_libs="${LIBS}"
16892 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
16893 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
16895 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
16896 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include "c-client.h"
16904 void mm_searched (MAILSTREAM *stream,unsigned long number)
16907 void mm_exists (MAILSTREAM *stream,unsigned long number)
16910 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16913 void mm_flags (MAILSTREAM *stream,unsigned long number)
16916 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16919 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16922 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16925 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16928 void mm_log (char *string,long errflg)
16931 void mm_dlog (char *string)
16934 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16937 void mm_critical (MAILSTREAM *stream)
16940 void mm_nocritical (MAILSTREAM *stream)
16943 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16946 void mm_fatal (char *string)
16950 main ()
16953 MAILSTREAM *foo = mail_open(NULL, "", 0);
16957 return 0;
16959 _ACEOF
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && {
16974 test -z "$ac_c_werror_flag" ||
16975 test ! -s conftest.err
16976 } && test -s conftest$ac_exeext &&
16977 $as_test_x conftest$ac_exeext; then
16978 ac_cv_imap_tk="yes"
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_imap_tk="no"
16987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16988 conftest$ac_exeext conftest.$ac_ext
16989 if test "${ac_cv_imap_tk}" = "yes"; then
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include "c-client.h"
16997 void mm_searched (MAILSTREAM *stream,unsigned long number)
17000 void mm_exists (MAILSTREAM *stream,unsigned long number)
17003 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17006 void mm_flags (MAILSTREAM *stream,unsigned long number)
17009 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17012 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17015 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17018 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17021 void mm_log (char *string,long errflg)
17024 void mm_dlog (char *string)
17027 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17030 void mm_critical (MAILSTREAM *stream)
17033 void mm_nocritical (MAILSTREAM *stream)
17036 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17039 void mm_fatal (char *string)
17043 main ()
17046 long check = mail_expunge_full(NULL, "", 0);
17050 return 0;
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (ac_try="$ac_link"
17055 case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_link") 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
17069 } && test -s conftest$ac_exeext &&
17070 $as_test_x conftest$ac_exeext; then
17071 ac_cv_imap_tk2006="yes"
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_imap_tk2006="no"
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17083 CPPFLAGS="${saved_cppflags}"
17084 LIBS="${saved_libs}"
17085 if test "${ac_cv_imap_tk}" = "yes"; then
17086 { echo "$as_me:$LINENO: result: yes" >&5
17087 echo "${ECHO_T}yes" >&6; }
17088 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17089 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17090 PBX_IMAP_TK=1
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_IMAP_TK 1
17094 _ACEOF
17096 if test "${ac_cv_imap_tk2006}" = "yes"; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_IMAP_TK2006 1
17100 _ACEOF
17103 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17104 { echo "$as_me:$LINENO: result: no" >&5
17105 echo "${ECHO_T}no" >&6; }
17106 { echo "$as_me:$LINENO: ***" >&5
17107 echo "$as_me: ***" >&6;}
17108 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17109 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17110 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17111 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17112 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17113 echo "$as_me: *** including --without-imap." >&6;}
17114 exit 1
17115 else
17116 { echo "$as_me:$LINENO: result: no" >&5
17117 echo "${ECHO_T}no" >&6; }
17121 ac_ext=cpp
17122 ac_cpp='$CXXCPP $CPPFLAGS'
17123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17128 if test "${USE_KDE}" != "no"; then
17129 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17130 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17131 saved_libs="${LIBS}"
17132 saved_cppflags="${CPPFLAGS}"
17133 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17134 if test -d ${KDE_DIR}/lib; then
17135 kdelibdir="${KDE_DIR}/lib"
17136 else
17137 kdelibdir="${KDE_DIR}"
17139 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include "kcrash.h"
17150 main ()
17152 KCrash::defaultCrashHandler(1);
17154 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_cxx_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_kde_crash="yes"
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_kde_crash="no"
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17187 LIBS="${saved_libs}"
17188 CPPFLAGS="${saved_cppflags}"
17190 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17191 { echo "$as_me:$LINENO: result: yes" >&5
17192 echo "${ECHO_T}yes" >&6; }
17193 KDE_LIB="-lkdecore -lkdeui"
17194 if test "${KDE_DIR}" != ""; then
17195 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17196 KDE_INCLUDE="-I${KDE_DIR}/include"
17198 PBX_KDE=1
17200 cat >>confdefs.h <<\_ACEOF
17201 #define HAVE_LIBKDE 1
17202 _ACEOF
17204 elif test ! -z "${KDE_MANDATORY}"; then
17205 { echo "$as_me:$LINENO: result: no" >&5
17206 echo "${ECHO_T}no" >&6; }
17207 { echo "$as_me:$LINENO: ***" >&5
17208 echo "$as_me: ***" >&6;}
17209 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17210 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17211 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17212 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17213 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17214 echo "$as_me: *** including --without-kde." >&6;}
17215 exit 1
17216 else
17217 { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17221 if test "${PBX_KDE}" = 1; then
17222 if test -n "$ac_tool_prefix"; then
17223 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17224 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17227 if test "${ac_cv_path_KDEINIT+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 case $KDEINIT in
17231 [\\/]* | ?:[\\/]*)
17232 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17236 for as_dir in $PATH
17238 IFS=$as_save_IFS
17239 test -z "$as_dir" && as_dir=.
17240 for ac_exec_ext in '' $ac_executable_extensions; do
17241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17242 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17244 break 2
17246 done
17247 done
17248 IFS=$as_save_IFS
17251 esac
17253 KDEINIT=$ac_cv_path_KDEINIT
17254 if test -n "$KDEINIT"; then
17255 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17256 echo "${ECHO_T}$KDEINIT" >&6; }
17257 else
17258 { echo "$as_me:$LINENO: result: no" >&5
17259 echo "${ECHO_T}no" >&6; }
17264 if test -z "$ac_cv_path_KDEINIT"; then
17265 ac_pt_KDEINIT=$KDEINIT
17266 # Extract the first word of "kdeinit", so it can be a program name with args.
17267 set dummy kdeinit; ac_word=$2
17268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17270 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 case $ac_pt_KDEINIT in
17274 [\\/]* | ?:[\\/]*)
17275 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17279 for as_dir in $PATH
17281 IFS=$as_save_IFS
17282 test -z "$as_dir" && as_dir=.
17283 for ac_exec_ext in '' $ac_executable_extensions; do
17284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17285 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17287 break 2
17289 done
17290 done
17291 IFS=$as_save_IFS
17294 esac
17296 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17297 if test -n "$ac_pt_KDEINIT"; then
17298 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17299 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17300 else
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17305 if test "x$ac_pt_KDEINIT" = x; then
17306 KDEINIT="No"
17307 else
17308 case $cross_compiling:$ac_tool_warned in
17309 yes:)
17310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17311 whose name does not start with the host triplet. If you think this
17312 configuration is useful to you, please write to autoconf@gnu.org." >&5
17313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17314 whose name does not start with the host triplet. If you think this
17315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17316 ac_tool_warned=yes ;;
17317 esac
17318 KDEINIT=$ac_pt_KDEINIT
17320 else
17321 KDEINIT="$ac_cv_path_KDEINIT"
17324 if test ! x"${KDEINIT}" = xNo; then
17325 KDEDIR=$(${DIRNAME} ${KDEINIT})
17326 KDEDIR=$(${DIRNAME} ${KDEDIR})
17331 ac_ext=c
17332 ac_cpp='$CPP $CPPFLAGS'
17333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339 if test "${USE_MISDN}" != "no"; then
17340 pbxlibdir=""
17341 if test "x${MISDN_DIR}" != "x"; then
17342 if test -d ${MISDN_DIR}/lib; then
17343 pbxlibdir="-L${MISDN_DIR}/lib"
17344 else
17345 pbxlibdir="-L${MISDN_DIR}"
17348 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17349 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17350 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h. */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char mISDN_open ();
17370 main ()
17372 return mISDN_open ();
17374 return 0;
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 ac_cv_lib_mISDN_mISDN_open=yes
17396 else
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_mISDN_mISDN_open=no
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17408 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17409 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17410 AST_MISDN_FOUND=yes
17411 else
17412 AST_MISDN_FOUND=no
17416 if test "${AST_MISDN_FOUND}" = "yes"; then
17417 MISDN_LIB="-lmISDN "
17418 MISDN_HEADER_FOUND="1"
17419 if test "x${MISDN_DIR}" != "x"; then
17420 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17421 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17422 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17423 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17425 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17426 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 ac_res=`eval echo '${'$as_ac_Header'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433 else
17434 # Is the header compilable?
17435 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17436 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17444 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_compile") 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest.$ac_objext; then
17463 ac_header_compiler=yes
17464 else
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 ac_header_compiler=no
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17473 echo "${ECHO_T}$ac_header_compiler" >&6; }
17475 # Is the header present?
17476 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17477 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17485 _ACEOF
17486 if { (ac_try="$ac_cpp conftest.$ac_ext"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } >/dev/null && {
17499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 }; then
17502 ac_header_preproc=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_header_preproc=no
17510 rm -f conftest.err conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17512 echo "${ECHO_T}$ac_header_preproc" >&6; }
17514 # So? What about this header?
17515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17516 yes:no: )
17517 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17518 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17520 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17521 ac_header_preproc=yes
17523 no:yes:* )
17524 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17525 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17526 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17527 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17529 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17531 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17534 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17535 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17538 esac
17539 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17540 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 eval "$as_ac_Header=\$ac_header_preproc"
17546 ac_res=`eval echo '${'$as_ac_Header'}'`
17547 { echo "$as_me:$LINENO: result: $ac_res" >&5
17548 echo "${ECHO_T}$ac_res" >&6; }
17551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17552 MISDN_HEADER_FOUND=1
17553 else
17554 MISDN_HEADER_FOUND=0
17559 else
17560 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17561 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17562 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17563 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17568 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17569 else
17570 # Is the header compilable?
17571 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17572 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 $ac_includes_default
17580 #include <mISDNuser/mISDNlib.h>
17581 _ACEOF
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_compile") 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest.$ac_objext; then
17599 ac_header_compiler=yes
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_header_compiler=no
17607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17609 echo "${ECHO_T}$ac_header_compiler" >&6; }
17611 # Is the header present?
17612 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17613 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 #include <mISDNuser/mISDNlib.h>
17621 _ACEOF
17622 if { (ac_try="$ac_cpp conftest.$ac_ext"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 }; then
17638 ac_header_preproc=yes
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17648 echo "${ECHO_T}$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17652 yes:no: )
17653 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17654 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17656 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17657 ac_header_preproc=yes
17659 no:yes:* )
17660 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17661 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17662 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17663 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17665 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17667 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17669 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17671 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17674 esac
17675 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17676 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17677 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17682 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17683 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17686 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17687 MISDN_HEADER_FOUND=1
17688 else
17689 MISDN_HEADER_FOUND=0
17695 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17696 if test ! -z "${MISDN_MANDATORY}" ;
17697 then
17698 { echo "$as_me:$LINENO: ***" >&5
17699 echo "$as_me: ***" >&6;}
17700 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17701 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17702 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17703 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17704 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17705 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17706 exit 1
17708 MISDN_LIB=""
17709 MISDN_INCLUDE=""
17710 PBX_MISDN=0
17711 else
17712 PBX_MISDN=1
17714 cat >>confdefs.h <<_ACEOF
17715 #define HAVE_MISDN 1
17716 _ACEOF
17719 elif test ! -z "${MISDN_MANDATORY}";
17720 then
17721 { echo "$as_me:$LINENO: ***" >&5
17722 echo "$as_me: ***" >&6;}
17723 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17724 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17725 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17726 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17727 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17728 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17729 exit 1
17734 if test "${PBX_MISDN}" = 1; then
17736 if test "${USE_ISDNNET}" != "no"; then
17737 pbxlibdir=""
17738 if test "x${ISDNNET_DIR}" != "x"; then
17739 if test -d ${ISDNNET_DIR}/lib; then
17740 pbxlibdir="-L${ISDNNET_DIR}/lib"
17741 else
17742 pbxlibdir="-L${ISDNNET_DIR}"
17745 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17746 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17747 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17762 #ifdef __cplusplus
17763 extern "C"
17764 #endif
17765 char init_manager ();
17767 main ()
17769 return init_manager ();
17771 return 0;
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_link") 2>conftest.er1
17782 ac_status=$?
17783 grep -v '^ *+' conftest.er1 >conftest.err
17784 rm -f conftest.er1
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest$ac_exeext &&
17791 $as_test_x conftest$ac_exeext; then
17792 ac_cv_lib_isdnnet_init_manager=yes
17793 else
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_cv_lib_isdnnet_init_manager=no
17800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17801 conftest$ac_exeext conftest.$ac_ext
17802 LIBS=$ac_check_lib_save_LIBS
17804 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17805 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17806 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17807 AST_ISDNNET_FOUND=yes
17808 else
17809 AST_ISDNNET_FOUND=no
17813 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17814 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
17815 ISDNNET_HEADER_FOUND="1"
17816 if test "x${ISDNNET_DIR}" != "x"; then
17817 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
17818 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
17819 if test "xmISDNuser/isdn_net.h" != "x" ; then
17820 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17822 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17823 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 ac_res=`eval echo '${'$as_ac_Header'}'`
17828 { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 else
17831 # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17833 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h. */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 $ac_includes_default
17841 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_header_compiler=yes
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_header_compiler=no
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17874 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17882 _ACEOF
17883 if { (ac_try="$ac_cpp conftest.$ac_ext"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } >/dev/null && {
17896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 }; then
17899 ac_header_preproc=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_header_preproc=no
17907 rm -f conftest.err conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17911 # So? What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17913 yes:no: )
17914 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17915 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
17917 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
17918 ac_header_preproc=yes
17920 no:yes:* )
17921 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17922 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17924 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17926 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17928 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17932 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17935 esac
17936 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17937 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 eval "$as_ac_Header=\$ac_header_preproc"
17943 ac_res=`eval echo '${'$as_ac_Header'}'`
17944 { echo "$as_me:$LINENO: result: $ac_res" >&5
17945 echo "${ECHO_T}$ac_res" >&6; }
17948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17949 ISDNNET_HEADER_FOUND=1
17950 else
17951 ISDNNET_HEADER_FOUND=0
17956 else
17957 if test "xmISDNuser/isdn_net.h" != "x" ; then
17958 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17959 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17960 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17961 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17965 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17966 else
17967 # Is the header compilable?
17968 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
17969 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17977 #include <mISDNuser/isdn_net.h>
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest.$ac_objext; then
17996 ac_header_compiler=yes
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_header_compiler=no
18004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18006 echo "${ECHO_T}$ac_header_compiler" >&6; }
18008 # Is the header present?
18009 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18010 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <mISDNuser/isdn_net.h>
18018 _ACEOF
18019 if { (ac_try="$ac_cpp conftest.$ac_ext"
18020 case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023 esac
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18026 ac_status=$?
18027 grep -v '^ *+' conftest.er1 >conftest.err
18028 rm -f conftest.er1
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } >/dev/null && {
18032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18033 test ! -s conftest.err
18034 }; then
18035 ac_header_preproc=yes
18036 else
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 ac_header_preproc=no
18043 rm -f conftest.err conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18045 echo "${ECHO_T}$ac_header_preproc" >&6; }
18047 # So? What about this header?
18048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18049 yes:no: )
18050 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18051 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18053 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18054 ac_header_preproc=yes
18056 no:yes:* )
18057 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18058 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18060 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18062 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18064 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18066 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18068 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18071 esac
18072 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18073 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18074 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18079 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18080 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18083 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18084 ISDNNET_HEADER_FOUND=1
18085 else
18086 ISDNNET_HEADER_FOUND=0
18092 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18093 if test ! -z "${ISDNNET_MANDATORY}" ;
18094 then
18095 { echo "$as_me:$LINENO: ***" >&5
18096 echo "$as_me: ***" >&6;}
18097 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18098 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18099 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18100 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18101 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18102 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18103 exit 1
18105 ISDNNET_LIB=""
18106 ISDNNET_INCLUDE=""
18107 PBX_ISDNNET=0
18108 else
18109 PBX_ISDNNET=1
18111 cat >>confdefs.h <<_ACEOF
18112 #define HAVE_ISDNNET 1
18113 _ACEOF
18116 elif test ! -z "${ISDNNET_MANDATORY}";
18117 then
18118 { echo "$as_me:$LINENO: ***" >&5
18119 echo "$as_me: ***" >&6;}
18120 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18121 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18122 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18123 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18124 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18125 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18126 exit 1
18131 if test "${USE_SUPPSERV}" != "no"; then
18132 pbxlibdir=""
18133 if test "x${SUPPSERV_DIR}" != "x"; then
18134 if test -d ${SUPPSERV_DIR}/lib; then
18135 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18136 else
18137 pbxlibdir="-L${SUPPSERV_DIR}"
18140 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18141 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18142 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 else
18145 ac_check_lib_save_LIBS=$LIBS
18146 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18157 #ifdef __cplusplus
18158 extern "C"
18159 #endif
18160 char encodeFac ();
18162 main ()
18164 return encodeFac ();
18166 return 0;
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_link") 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } && {
18183 test -z "$ac_c_werror_flag" ||
18184 test ! -s conftest.err
18185 } && test -s conftest$ac_exeext &&
18186 $as_test_x conftest$ac_exeext; then
18187 ac_cv_lib_suppserv_encodeFac=yes
18188 else
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_lib_suppserv_encodeFac=no
18195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18196 conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18200 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18201 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18202 AST_SUPPSERV_FOUND=yes
18203 else
18204 AST_SUPPSERV_FOUND=no
18208 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18209 SUPPSERV_LIB="-lsuppserv "
18210 SUPPSERV_HEADER_FOUND="1"
18211 if test "x${SUPPSERV_DIR}" != "x"; then
18212 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18213 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18214 if test "xmISDNuser/suppserv.h" != "x" ; then
18215 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18217 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18218 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18222 ac_res=`eval echo '${'$as_ac_Header'}'`
18223 { echo "$as_me:$LINENO: result: $ac_res" >&5
18224 echo "${ECHO_T}$ac_res" >&6; }
18225 else
18226 # Is the header compilable?
18227 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18228 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18229 cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h. */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18235 $ac_includes_default
18236 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18237 _ACEOF
18238 rm -f conftest.$ac_objext
18239 if { (ac_try="$ac_compile"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_compile") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest.$ac_objext; then
18255 ac_header_compiler=yes
18256 else
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_header_compiler=no
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18265 echo "${ECHO_T}$ac_header_compiler" >&6; }
18267 # Is the header present?
18268 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18269 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18277 _ACEOF
18278 if { (ac_try="$ac_cpp conftest.$ac_ext"
18279 case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev/null && {
18291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18292 test ! -s conftest.err
18293 }; then
18294 ac_header_preproc=yes
18295 else
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_header_preproc=no
18302 rm -f conftest.err conftest.$ac_ext
18303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18304 echo "${ECHO_T}$ac_header_preproc" >&6; }
18306 # So? What about this header?
18307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18308 yes:no: )
18309 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18310 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18311 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18312 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18313 ac_header_preproc=yes
18315 no:yes:* )
18316 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18317 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18319 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18321 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18323 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18325 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18327 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18330 esac
18331 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18332 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 eval "$as_ac_Header=\$ac_header_preproc"
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18344 SUPPSERV_HEADER_FOUND=1
18345 else
18346 SUPPSERV_HEADER_FOUND=0
18351 else
18352 if test "xmISDNuser/suppserv.h" != "x" ; then
18353 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18354 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18355 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18356 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18360 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18361 else
18362 # Is the header compilable?
18363 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18364 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 $ac_includes_default
18372 #include <mISDNuser/suppserv.h>
18373 _ACEOF
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.$ac_objext; then
18391 ac_header_compiler=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_header_compiler=no
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18401 echo "${ECHO_T}$ac_header_compiler" >&6; }
18403 # Is the header present?
18404 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18405 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #include <mISDNuser/suppserv.h>
18413 _ACEOF
18414 if { (ac_try="$ac_cpp conftest.$ac_ext"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } >/dev/null && {
18427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18429 }; then
18430 ac_header_preproc=yes
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_header_preproc=no
18438 rm -f conftest.err conftest.$ac_ext
18439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18440 echo "${ECHO_T}$ac_header_preproc" >&6; }
18442 # So? What about this header?
18443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18444 yes:no: )
18445 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18446 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18448 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18449 ac_header_preproc=yes
18451 no:yes:* )
18452 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18453 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18455 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18457 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18459 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18461 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18463 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18466 esac
18467 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18468 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18469 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 else
18472 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18474 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18475 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18478 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18479 SUPPSERV_HEADER_FOUND=1
18480 else
18481 SUPPSERV_HEADER_FOUND=0
18487 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18488 if test ! -z "${SUPPSERV_MANDATORY}" ;
18489 then
18490 { echo "$as_me:$LINENO: ***" >&5
18491 echo "$as_me: ***" >&6;}
18492 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18493 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18494 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18495 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18497 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18498 exit 1
18500 SUPPSERV_LIB=""
18501 SUPPSERV_INCLUDE=""
18502 PBX_SUPPSERV=0
18503 else
18504 PBX_SUPPSERV=1
18506 cat >>confdefs.h <<_ACEOF
18507 #define HAVE_SUPPSERV 1
18508 _ACEOF
18511 elif test ! -z "${SUPPSERV_MANDATORY}";
18512 then
18513 { echo "$as_me:$LINENO: ***" >&5
18514 echo "$as_me: ***" >&6;}
18515 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18516 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18517 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18518 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18519 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18520 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18521 exit 1
18528 if test "${USE_NBS}" != "no"; then
18529 pbxlibdir=""
18530 if test "x${NBS_DIR}" != "x"; then
18531 if test -d ${NBS_DIR}/lib; then
18532 pbxlibdir="-L${NBS_DIR}/lib"
18533 else
18534 pbxlibdir="-L${NBS_DIR}"
18537 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18538 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18539 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lnbs ${pbxlibdir} $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18551 /* Override any GCC internal prototype to avoid an error.
18552 Use char because int might match the return type of a GCC
18553 builtin and then its argument prototype would still apply. */
18554 #ifdef __cplusplus
18555 extern "C"
18556 #endif
18557 char nbs_connect ();
18559 main ()
18561 return nbs_connect ();
18563 return 0;
18565 _ACEOF
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (ac_try="$ac_link"
18568 case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_link") 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext &&
18583 $as_test_x conftest$ac_exeext; then
18584 ac_cv_lib_nbs_nbs_connect=yes
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 ac_cv_lib_nbs_nbs_connect=no
18592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18593 conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18596 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18597 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18598 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18599 AST_NBS_FOUND=yes
18600 else
18601 AST_NBS_FOUND=no
18605 if test "${AST_NBS_FOUND}" = "yes"; then
18606 NBS_LIB="-lnbs "
18607 NBS_HEADER_FOUND="1"
18608 if test "x${NBS_DIR}" != "x"; then
18609 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
18610 NBS_INCLUDE="-I${NBS_DIR}/include"
18611 if test "xnbs.h" != "x" ; then
18612 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18614 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18615 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_res=`eval echo '${'$as_ac_Header'}'`
18620 { echo "$as_me:$LINENO: result: $ac_res" >&5
18621 echo "${ECHO_T}$ac_res" >&6; }
18622 else
18623 # Is the header compilable?
18624 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18625 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 $ac_includes_default
18633 #include <${NBS_DIR}/include/nbs.h>
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18643 ac_status=$?
18644 grep -v '^ *+' conftest.er1 >conftest.err
18645 rm -f conftest.er1
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18652 ac_header_compiler=yes
18653 else
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_header_compiler=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18662 echo "${ECHO_T}$ac_header_compiler" >&6; }
18664 # Is the header present?
18665 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18666 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <${NBS_DIR}/include/nbs.h>
18674 _ACEOF
18675 if { (ac_try="$ac_cpp conftest.$ac_ext"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } >/dev/null && {
18688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 }; then
18691 ac_header_preproc=yes
18692 else
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_header_preproc=no
18699 rm -f conftest.err conftest.$ac_ext
18700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18701 echo "${ECHO_T}$ac_header_preproc" >&6; }
18703 # So? What about this header?
18704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18705 yes:no: )
18706 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18707 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18708 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18709 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18710 ac_header_preproc=yes
18712 no:yes:* )
18713 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18714 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18716 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18718 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18720 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18722 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18724 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18727 esac
18728 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18729 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733 eval "$as_ac_Header=\$ac_header_preproc"
18735 ac_res=`eval echo '${'$as_ac_Header'}'`
18736 { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18741 NBS_HEADER_FOUND=1
18742 else
18743 NBS_HEADER_FOUND=0
18748 else
18749 if test "xnbs.h" != "x" ; then
18750 if test "${ac_cv_header_nbs_h+set}" = set; then
18751 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18752 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18753 if test "${ac_cv_header_nbs_h+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18757 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18758 else
18759 # Is the header compilable?
18760 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18761 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 $ac_includes_default
18769 #include <nbs.h>
18770 _ACEOF
18771 rm -f conftest.$ac_objext
18772 if { (ac_try="$ac_compile"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_compile") 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest.$ac_objext; then
18788 ac_header_compiler=yes
18789 else
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_header_compiler=no
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18798 echo "${ECHO_T}$ac_header_compiler" >&6; }
18800 # Is the header present?
18801 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18802 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 #include <nbs.h>
18810 _ACEOF
18811 if { (ac_try="$ac_cpp conftest.$ac_ext"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } >/dev/null && {
18824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18825 test ! -s conftest.err
18826 }; then
18827 ac_header_preproc=yes
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 ac_header_preproc=no
18835 rm -f conftest.err conftest.$ac_ext
18836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18837 echo "${ECHO_T}$ac_header_preproc" >&6; }
18839 # So? What about this header?
18840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18841 yes:no: )
18842 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18843 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18845 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18846 ac_header_preproc=yes
18848 no:yes:* )
18849 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18850 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18851 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18852 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18853 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18854 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18855 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18856 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18858 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18859 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18860 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18863 esac
18864 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18865 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18866 if test "${ac_cv_header_nbs_h+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 ac_cv_header_nbs_h=$ac_header_preproc
18871 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18872 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18875 if test $ac_cv_header_nbs_h = yes; then
18876 NBS_HEADER_FOUND=1
18877 else
18878 NBS_HEADER_FOUND=0
18884 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18885 if test ! -z "${NBS_MANDATORY}" ;
18886 then
18887 { echo "$as_me:$LINENO: ***" >&5
18888 echo "$as_me: ***" >&6;}
18889 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
18890 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
18891 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
18892 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
18893 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18894 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18895 exit 1
18897 NBS_LIB=""
18898 NBS_INCLUDE=""
18899 PBX_NBS=0
18900 else
18901 PBX_NBS=1
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_NBS 1
18905 _ACEOF
18908 elif test ! -z "${NBS_MANDATORY}";
18909 then
18910 { echo "$as_me:$LINENO: ***" >&5
18911 echo "$as_me: ***" >&6;}
18912 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
18913 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
18914 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18915 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18916 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18917 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18918 exit 1
18924 if test "${USE_NCURSES}" != "no"; then
18925 pbxlibdir=""
18926 if test "x${NCURSES_DIR}" != "x"; then
18927 if test -d ${NCURSES_DIR}/lib; then
18928 pbxlibdir="-L${NCURSES_DIR}/lib"
18929 else
18930 pbxlibdir="-L${NCURSES_DIR}"
18933 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
18934 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
18935 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938 ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-lncurses ${pbxlibdir} $LIBS"
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h. */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18950 #ifdef __cplusplus
18951 extern "C"
18952 #endif
18953 char initscr ();
18955 main ()
18957 return initscr ();
18959 return 0;
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext &&
18979 $as_test_x conftest$ac_exeext; then
18980 ac_cv_lib_ncurses_initscr=yes
18981 else
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18985 ac_cv_lib_ncurses_initscr=no
18988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18989 conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18992 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
18993 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
18994 if test $ac_cv_lib_ncurses_initscr = yes; then
18995 AST_NCURSES_FOUND=yes
18996 else
18997 AST_NCURSES_FOUND=no
19001 if test "${AST_NCURSES_FOUND}" = "yes"; then
19002 NCURSES_LIB="-lncurses "
19003 NCURSES_HEADER_FOUND="1"
19004 if test "x${NCURSES_DIR}" != "x"; then
19005 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19006 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19007 if test "xcurses.h" != "x" ; then
19008 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19010 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19011 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 ac_res=`eval echo '${'$as_ac_Header'}'`
19016 { echo "$as_me:$LINENO: result: $ac_res" >&5
19017 echo "${ECHO_T}$ac_res" >&6; }
19018 else
19019 # Is the header compilable?
19020 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19021 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h. */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 $ac_includes_default
19029 #include <${NCURSES_DIR}/include/curses.h>
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (ac_try="$ac_compile"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_compile") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest.$ac_objext; then
19048 ac_header_compiler=yes
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_header_compiler=no
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19058 echo "${ECHO_T}$ac_header_compiler" >&6; }
19060 # Is the header present?
19061 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19062 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h. */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 #include <${NCURSES_DIR}/include/curses.h>
19070 _ACEOF
19071 if { (ac_try="$ac_cpp conftest.$ac_ext"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } >/dev/null && {
19084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 }; then
19087 ac_header_preproc=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_header_preproc=no
19095 rm -f conftest.err conftest.$ac_ext
19096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19097 echo "${ECHO_T}$ac_header_preproc" >&6; }
19099 # So? What about this header?
19100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19101 yes:no: )
19102 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19103 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19105 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19106 ac_header_preproc=yes
19108 no:yes:* )
19109 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19110 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19112 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19114 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19116 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19118 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19120 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19123 esac
19124 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19125 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129 eval "$as_ac_Header=\$ac_header_preproc"
19131 ac_res=`eval echo '${'$as_ac_Header'}'`
19132 { echo "$as_me:$LINENO: result: $ac_res" >&5
19133 echo "${ECHO_T}$ac_res" >&6; }
19136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19137 NCURSES_HEADER_FOUND=1
19138 else
19139 NCURSES_HEADER_FOUND=0
19144 else
19145 if test "xcurses.h" != "x" ; then
19146 if test "${ac_cv_header_curses_h+set}" = set; then
19147 { echo "$as_me:$LINENO: checking for curses.h" >&5
19148 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19149 if test "${ac_cv_header_curses_h+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19153 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19154 else
19155 # Is the header compilable?
19156 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19157 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 $ac_includes_default
19165 #include <curses.h>
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
19184 ac_header_compiler=yes
19185 else
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_header_compiler=no
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19194 echo "${ECHO_T}$ac_header_compiler" >&6; }
19196 # Is the header present?
19197 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19198 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 #include <curses.h>
19206 _ACEOF
19207 if { (ac_try="$ac_cpp conftest.$ac_ext"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } >/dev/null && {
19220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 }; then
19223 ac_header_preproc=yes
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_header_preproc=no
19231 rm -f conftest.err conftest.$ac_ext
19232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19233 echo "${ECHO_T}$ac_header_preproc" >&6; }
19235 # So? What about this header?
19236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19237 yes:no: )
19238 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19239 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19240 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19241 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19242 ac_header_preproc=yes
19244 no:yes:* )
19245 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19246 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19247 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19248 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19250 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19252 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19254 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19256 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19259 esac
19260 { echo "$as_me:$LINENO: checking for curses.h" >&5
19261 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19262 if test "${ac_cv_header_curses_h+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265 ac_cv_header_curses_h=$ac_header_preproc
19267 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19268 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19271 if test $ac_cv_header_curses_h = yes; then
19272 NCURSES_HEADER_FOUND=1
19273 else
19274 NCURSES_HEADER_FOUND=0
19280 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19281 if test ! -z "${NCURSES_MANDATORY}" ;
19282 then
19283 { echo "$as_me:$LINENO: ***" >&5
19284 echo "$as_me: ***" >&6;}
19285 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19286 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19287 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19288 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19289 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19290 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19291 exit 1
19293 NCURSES_LIB=""
19294 NCURSES_INCLUDE=""
19295 PBX_NCURSES=0
19296 else
19297 PBX_NCURSES=1
19299 cat >>confdefs.h <<_ACEOF
19300 #define HAVE_NCURSES 1
19301 _ACEOF
19304 elif test ! -z "${NCURSES_MANDATORY}";
19305 then
19306 { echo "$as_me:$LINENO: ***" >&5
19307 echo "$as_me: ***" >&6;}
19308 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19309 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19310 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19311 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19312 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19313 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19314 exit 1
19319 NETSNMP_CONFIG=No
19320 if test "${USE_NETSNMP}" != "no"; then
19321 if test "x${NETSNMP_DIR}" != "x"; then
19322 if test -n "$ac_tool_prefix"; then
19323 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19324 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19327 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330 case $NETSNMP_CONFIG in
19331 [\\/]* | ?:[\\/]*)
19332 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19336 for as_dir in ${NETSNMP_DIR}/bin
19338 IFS=$as_save_IFS
19339 test -z "$as_dir" && as_dir=.
19340 for ac_exec_ext in '' $ac_executable_extensions; do
19341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19342 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19344 break 2
19346 done
19347 done
19348 IFS=$as_save_IFS
19351 esac
19353 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19354 if test -n "$NETSNMP_CONFIG"; then
19355 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19356 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19357 else
19358 { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19364 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19365 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19366 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19367 set dummy net-snmp-config; ac_word=$2
19368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19370 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373 case $ac_pt_NETSNMP_CONFIG in
19374 [\\/]* | ?:[\\/]*)
19375 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19379 for as_dir in ${NETSNMP_DIR}/bin
19381 IFS=$as_save_IFS
19382 test -z "$as_dir" && as_dir=.
19383 for ac_exec_ext in '' $ac_executable_extensions; do
19384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19385 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19387 break 2
19389 done
19390 done
19391 IFS=$as_save_IFS
19394 esac
19396 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19397 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19398 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19399 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19400 else
19401 { echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6; }
19405 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19406 NETSNMP_CONFIG="No"
19407 else
19408 case $cross_compiling:$ac_tool_warned in
19409 yes:)
19410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19411 whose name does not start with the host triplet. If you think this
19412 configuration is useful to you, please write to autoconf@gnu.org." >&5
19413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19414 whose name does not start with the host triplet. If you think this
19415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19416 ac_tool_warned=yes ;;
19417 esac
19418 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19420 else
19421 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19424 if test x"${NETSNMP_CONFIG}" = xNo; then
19425 { echo "$as_me:$LINENO: ***" >&5
19426 echo "$as_me: ***" >&6;}
19427 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19428 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19429 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19430 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19431 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19432 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19433 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19434 echo "$as_me: *** including --without-netsnmp" >&6;}
19435 exit 1
19437 else
19438 if test -n "$ac_tool_prefix"; then
19439 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19440 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19443 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 case $NETSNMP_CONFIG in
19447 [\\/]* | ?:[\\/]*)
19448 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19454 IFS=$as_save_IFS
19455 test -z "$as_dir" && as_dir=.
19456 for ac_exec_ext in '' $ac_executable_extensions; do
19457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19458 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19460 break 2
19462 done
19463 done
19464 IFS=$as_save_IFS
19467 esac
19469 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19470 if test -n "$NETSNMP_CONFIG"; then
19471 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19472 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19473 else
19474 { echo "$as_me:$LINENO: result: no" >&5
19475 echo "${ECHO_T}no" >&6; }
19480 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19481 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19482 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19483 set dummy net-snmp-config; ac_word=$2
19484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19486 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 case $ac_pt_NETSNMP_CONFIG in
19490 [\\/]* | ?:[\\/]*)
19491 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19495 for as_dir in $PATH
19497 IFS=$as_save_IFS
19498 test -z "$as_dir" && as_dir=.
19499 for ac_exec_ext in '' $ac_executable_extensions; do
19500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19501 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19503 break 2
19505 done
19506 done
19507 IFS=$as_save_IFS
19510 esac
19512 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19513 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19514 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19515 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19516 else
19517 { echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6; }
19521 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19522 NETSNMP_CONFIG="No"
19523 else
19524 case $cross_compiling:$ac_tool_warned in
19525 yes:)
19526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19527 whose name does not start with the host triplet. If you think this
19528 configuration is useful to you, please write to autoconf@gnu.org." >&5
19529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19530 whose name does not start with the host triplet. If you think this
19531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19532 ac_tool_warned=yes ;;
19533 esac
19534 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19536 else
19537 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19542 if test x"${NETSNMP_CONFIG}" != xNo; then
19543 NETSNMP_libs=`net-snmp-config --agent-libs`
19545 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19546 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19547 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 char snmp_register_callback ();
19567 main ()
19569 return snmp_register_callback ();
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579 esac
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19582 ac_status=$?
19583 grep -v '^ *+' conftest.er1 >conftest.err
19584 rm -f conftest.er1
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest$ac_exeext &&
19591 $as_test_x conftest$ac_exeext; then
19592 ac_cv_lib_netsnmp_snmp_register_callback=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_lib_netsnmp_snmp_register_callback=no
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601 conftest$ac_exeext conftest.$ac_ext
19602 LIBS=$ac_check_lib_save_LIBS
19604 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19605 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19606 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19608 cat >>confdefs.h <<_ACEOF
19609 #define HAVE_NETSNMP 1
19610 _ACEOF
19615 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19616 NETSNMP_LIB="${NETSNMP_libs}"
19617 PBX_NETSNMP=1
19618 elif test ! -z "${NETSNMP_MANDATORY}";
19619 then
19620 { echo "$as_me:$LINENO: ***" >&5
19621 echo "$as_me: ***" >&6;}
19622 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19623 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19624 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19625 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19626 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19627 echo "$as_me: *** including --without-netsnmp" >&6;}
19628 exit 1
19630 elif test ! -z "${NETSNMP_MANDATORY}";
19631 then
19632 { echo "$as_me:$LINENO: ***" >&5
19633 echo "$as_me: ***" >&6;}
19634 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19635 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19636 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19637 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19638 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19639 echo "$as_me: *** including --without-netsnmp" >&6;}
19640 exit 1
19644 if test "${USE_NEWT}" != "no"; then
19645 pbxlibdir=""
19646 if test "x${NEWT_DIR}" != "x"; then
19647 if test -d ${NEWT_DIR}/lib; then
19648 pbxlibdir="-L${NEWT_DIR}/lib"
19649 else
19650 pbxlibdir="-L${NEWT_DIR}"
19653 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19654 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lnewt ${pbxlibdir} $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char newtBell ();
19675 main ()
19677 return newtBell ();
19679 return 0;
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 ac_cv_lib_newt_newtBell=yes
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_lib_newt_newtBell=no
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19713 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19714 if test $ac_cv_lib_newt_newtBell = yes; then
19715 AST_NEWT_FOUND=yes
19716 else
19717 AST_NEWT_FOUND=no
19721 if test "${AST_NEWT_FOUND}" = "yes"; then
19722 NEWT_LIB="-lnewt "
19723 NEWT_HEADER_FOUND="1"
19724 if test "x${NEWT_DIR}" != "x"; then
19725 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19726 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19727 if test "xnewt.h" != "x" ; then
19728 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
19729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19730 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19731 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 ac_res=`eval echo '${'$as_ac_Header'}'`
19736 { echo "$as_me:$LINENO: result: $ac_res" >&5
19737 echo "${ECHO_T}$ac_res" >&6; }
19738 else
19739 # Is the header compilable?
19740 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19741 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 $ac_includes_default
19749 #include <${NEWT_DIR}/include/newt.h>
19750 _ACEOF
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest.$ac_objext; then
19768 ac_header_compiler=yes
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_header_compiler=no
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19778 echo "${ECHO_T}$ac_header_compiler" >&6; }
19780 # Is the header present?
19781 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19782 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 #include <${NEWT_DIR}/include/newt.h>
19790 _ACEOF
19791 if { (ac_try="$ac_cpp conftest.$ac_ext"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } >/dev/null && {
19804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 }; then
19807 ac_header_preproc=yes
19808 else
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_header_preproc=no
19815 rm -f conftest.err conftest.$ac_ext
19816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19817 echo "${ECHO_T}$ac_header_preproc" >&6; }
19819 # So? What about this header?
19820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19821 yes:no: )
19822 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19823 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19825 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19826 ac_header_preproc=yes
19828 no:yes:* )
19829 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19830 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19832 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19834 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19836 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19838 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19840 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19843 esac
19844 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19845 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 eval "$as_ac_Header=\$ac_header_preproc"
19851 ac_res=`eval echo '${'$as_ac_Header'}'`
19852 { echo "$as_me:$LINENO: result: $ac_res" >&5
19853 echo "${ECHO_T}$ac_res" >&6; }
19856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19857 NEWT_HEADER_FOUND=1
19858 else
19859 NEWT_HEADER_FOUND=0
19864 else
19865 if test "xnewt.h" != "x" ; then
19866 if test "${ac_cv_header_newt_h+set}" = set; then
19867 { echo "$as_me:$LINENO: checking for newt.h" >&5
19868 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19869 if test "${ac_cv_header_newt_h+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19873 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19874 else
19875 # Is the header compilable?
19876 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19877 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19878 cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h. */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 $ac_includes_default
19885 #include <newt.h>
19886 _ACEOF
19887 rm -f conftest.$ac_objext
19888 if { (ac_try="$ac_compile"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_compile") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest.$ac_objext; then
19904 ac_header_compiler=yes
19905 else
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_header_compiler=no
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19914 echo "${ECHO_T}$ac_header_compiler" >&6; }
19916 # Is the header present?
19917 { echo "$as_me:$LINENO: checking newt.h presence" >&5
19918 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <newt.h>
19926 _ACEOF
19927 if { (ac_try="$ac_cpp conftest.$ac_ext"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } >/dev/null && {
19940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 }; then
19943 ac_header_preproc=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_preproc=no
19951 rm -f conftest.err conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19953 echo "${ECHO_T}$ac_header_preproc" >&6; }
19955 # So? What about this header?
19956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19957 yes:no: )
19958 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19959 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
19961 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
19962 ac_header_preproc=yes
19964 no:yes:* )
19965 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
19966 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
19968 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
19970 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
19972 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
19974 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
19976 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
19979 esac
19980 { echo "$as_me:$LINENO: checking for newt.h" >&5
19981 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19982 if test "${ac_cv_header_newt_h+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 ac_cv_header_newt_h=$ac_header_preproc
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19991 if test $ac_cv_header_newt_h = yes; then
19992 NEWT_HEADER_FOUND=1
19993 else
19994 NEWT_HEADER_FOUND=0
20000 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20001 if test ! -z "${NEWT_MANDATORY}" ;
20002 then
20003 { echo "$as_me:$LINENO: ***" >&5
20004 echo "$as_me: ***" >&6;}
20005 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20006 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20007 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20008 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20009 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20010 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20011 exit 1
20013 NEWT_LIB=""
20014 NEWT_INCLUDE=""
20015 PBX_NEWT=0
20016 else
20017 PBX_NEWT=1
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_NEWT 1
20021 _ACEOF
20024 elif test ! -z "${NEWT_MANDATORY}";
20025 then
20026 { echo "$as_me:$LINENO: ***" >&5
20027 echo "$as_me: ***" >&6;}
20028 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20029 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20030 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20031 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20032 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20033 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20034 exit 1
20040 if test "${USE_UNIXODBC}" != "no"; then
20041 pbxlibdir=""
20042 if test "x${UNIXODBC_DIR}" != "x"; then
20043 if test -d ${UNIXODBC_DIR}/lib; then
20044 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20045 else
20046 pbxlibdir="-L${UNIXODBC_DIR}"
20049 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20050 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20051 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char SQLConnect ();
20071 main ()
20073 return SQLConnect ();
20075 return 0;
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20086 ac_status=$?
20087 grep -v '^ *+' conftest.er1 >conftest.err
20088 rm -f conftest.er1
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest$ac_exeext &&
20095 $as_test_x conftest$ac_exeext; then
20096 ac_cv_lib_odbc_SQLConnect=yes
20097 else
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_lib_odbc_SQLConnect=no
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20109 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20110 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20111 AST_UNIXODBC_FOUND=yes
20112 else
20113 AST_UNIXODBC_FOUND=no
20117 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20118 UNIXODBC_LIB="-lodbc -lltdl"
20119 UNIXODBC_HEADER_FOUND="1"
20120 if test "x${UNIXODBC_DIR}" != "x"; then
20121 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20122 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20123 if test "xsql.h" != "x" ; then
20124 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20126 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20127 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 ac_res=`eval echo '${'$as_ac_Header'}'`
20132 { echo "$as_me:$LINENO: result: $ac_res" >&5
20133 echo "${ECHO_T}$ac_res" >&6; }
20134 else
20135 # Is the header compilable?
20136 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20137 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h. */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 #include <${UNIXODBC_DIR}/include/sql.h>
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (ac_try="$ac_compile"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_compile") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest.$ac_objext; then
20164 ac_header_compiler=yes
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_header_compiler=no
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20174 echo "${ECHO_T}$ac_header_compiler" >&6; }
20176 # Is the header present?
20177 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20178 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <${UNIXODBC_DIR}/include/sql.h>
20186 _ACEOF
20187 if { (ac_try="$ac_cpp conftest.$ac_ext"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null && {
20200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 }; then
20203 ac_header_preproc=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_header_preproc=no
20211 rm -f conftest.err conftest.$ac_ext
20212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20213 echo "${ECHO_T}$ac_header_preproc" >&6; }
20215 # So? What about this header?
20216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20217 yes:no: )
20218 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20219 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20221 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20222 ac_header_preproc=yes
20224 no:yes:* )
20225 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20226 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20228 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20230 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20232 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20234 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20236 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20239 esac
20240 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20241 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245 eval "$as_ac_Header=\$ac_header_preproc"
20247 ac_res=`eval echo '${'$as_ac_Header'}'`
20248 { echo "$as_me:$LINENO: result: $ac_res" >&5
20249 echo "${ECHO_T}$ac_res" >&6; }
20252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20253 UNIXODBC_HEADER_FOUND=1
20254 else
20255 UNIXODBC_HEADER_FOUND=0
20260 else
20261 if test "xsql.h" != "x" ; then
20262 if test "${ac_cv_header_sql_h+set}" = set; then
20263 { echo "$as_me:$LINENO: checking for sql.h" >&5
20264 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_sql_h+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20269 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20270 else
20271 # Is the header compilable?
20272 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20273 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <sql.h>
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_compile") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
20300 ac_header_compiler=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_header_compiler=no
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20310 echo "${ECHO_T}$ac_header_compiler" >&6; }
20312 # Is the header present?
20313 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20314 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <sql.h>
20322 _ACEOF
20323 if { (ac_try="$ac_cpp conftest.$ac_ext"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } >/dev/null && {
20336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 }; then
20339 ac_header_preproc=yes
20340 else
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_preproc=no
20347 rm -f conftest.err conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20351 # So? What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 yes:no: )
20354 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
20360 no:yes:* )
20361 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20375 esac
20376 { echo "$as_me:$LINENO: checking for sql.h" >&5
20377 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20378 if test "${ac_cv_header_sql_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 ac_cv_header_sql_h=$ac_header_preproc
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20387 if test $ac_cv_header_sql_h = yes; then
20388 UNIXODBC_HEADER_FOUND=1
20389 else
20390 UNIXODBC_HEADER_FOUND=0
20396 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20397 if test ! -z "${UNIXODBC_MANDATORY}" ;
20398 then
20399 { echo "$as_me:$LINENO: ***" >&5
20400 echo "$as_me: ***" >&6;}
20401 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20402 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20403 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20404 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20405 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20406 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20407 exit 1
20409 UNIXODBC_LIB=""
20410 UNIXODBC_INCLUDE=""
20411 PBX_UNIXODBC=0
20412 else
20413 PBX_UNIXODBC=1
20415 cat >>confdefs.h <<_ACEOF
20416 #define HAVE_UNIXODBC 1
20417 _ACEOF
20420 elif test ! -z "${UNIXODBC_MANDATORY}";
20421 then
20422 { echo "$as_me:$LINENO: ***" >&5
20423 echo "$as_me: ***" >&6;}
20424 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20425 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20426 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20427 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20428 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20429 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20430 exit 1
20436 if test "${USE_OGG}" != "no"; then
20437 pbxlibdir=""
20438 if test "x${OGG_DIR}" != "x"; then
20439 if test -d ${OGG_DIR}/lib; then
20440 pbxlibdir="-L${OGG_DIR}/lib"
20441 else
20442 pbxlibdir="-L${OGG_DIR}"
20445 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20446 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20447 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450 ac_check_lib_save_LIBS=$LIBS
20451 LIBS="-logg ${pbxlibdir} $LIBS"
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20459 /* Override any GCC internal prototype to avoid an error.
20460 Use char because int might match the return type of a GCC
20461 builtin and then its argument prototype would still apply. */
20462 #ifdef __cplusplus
20463 extern "C"
20464 #endif
20465 char ogg_sync_init ();
20467 main ()
20469 return ogg_sync_init ();
20471 return 0;
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext &&
20491 $as_test_x conftest$ac_exeext; then
20492 ac_cv_lib_ogg_ogg_sync_init=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_lib_ogg_ogg_sync_init=no
20500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501 conftest$ac_exeext conftest.$ac_ext
20502 LIBS=$ac_check_lib_save_LIBS
20504 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20505 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20506 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20507 AST_OGG_FOUND=yes
20508 else
20509 AST_OGG_FOUND=no
20513 if test "${AST_OGG_FOUND}" = "yes"; then
20514 OGG_LIB="-logg "
20515 OGG_HEADER_FOUND="1"
20516 if test "x${OGG_DIR}" != "x"; then
20517 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20518 OGG_INCLUDE="-I${OGG_DIR}/include"
20519 if test "x" != "x" ; then
20520 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20523 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530 else
20531 # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20533 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 #include <${OGG_DIR}/include/>
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_header_compiler=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_header_compiler=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6; }
20572 # Is the header present?
20573 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20574 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <${OGG_DIR}/include/>
20582 _ACEOF
20583 if { (ac_try="$ac_cpp conftest.$ac_ext"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } >/dev/null && {
20596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 }; then
20599 ac_header_preproc=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_header_preproc=no
20607 rm -f conftest.err conftest.$ac_ext
20608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20609 echo "${ECHO_T}$ac_header_preproc" >&6; }
20611 # So? What about this header?
20612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20613 yes:no: )
20614 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20615 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20617 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20618 ac_header_preproc=yes
20620 no:yes:* )
20621 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20622 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20624 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20626 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20628 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20630 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20632 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20635 esac
20636 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20637 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 eval "$as_ac_Header=\$ac_header_preproc"
20643 ac_res=`eval echo '${'$as_ac_Header'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20649 OGG_HEADER_FOUND=1
20650 else
20651 OGG_HEADER_FOUND=0
20656 else
20657 if test "x" != "x" ; then
20658 if test "${ac_cv_header_+set}" = set; then
20659 { echo "$as_me:$LINENO: checking for " >&5
20660 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20661 if test "${ac_cv_header_+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20665 echo "${ECHO_T}$ac_cv_header_" >&6; }
20666 else
20667 # Is the header compilable?
20668 { echo "$as_me:$LINENO: checking usability" >&5
20669 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 #include <>
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_compile") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest.$ac_objext; then
20696 ac_header_compiler=yes
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ac_header_compiler=no
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20706 echo "${ECHO_T}$ac_header_compiler" >&6; }
20708 # Is the header present?
20709 { echo "$as_me:$LINENO: checking presence" >&5
20710 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h. */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 #include <>
20718 _ACEOF
20719 if { (ac_try="$ac_cpp conftest.$ac_ext"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } >/dev/null && {
20732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 }; then
20735 ac_header_preproc=yes
20736 else
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_header_preproc=no
20743 rm -f conftest.err conftest.$ac_ext
20744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20745 echo "${ECHO_T}$ac_header_preproc" >&6; }
20747 # So? What about this header?
20748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20749 yes:no: )
20750 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20751 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20753 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20754 ac_header_preproc=yes
20756 no:yes:* )
20757 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20758 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20760 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20762 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20764 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20766 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20768 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20771 esac
20772 { echo "$as_me:$LINENO: checking for " >&5
20773 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20774 if test "${ac_cv_header_+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 ac_cv_header_=$ac_header_preproc
20779 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20780 echo "${ECHO_T}$ac_cv_header_" >&6; }
20783 if test $ac_cv_header_ = yes; then
20784 OGG_HEADER_FOUND=1
20785 else
20786 OGG_HEADER_FOUND=0
20792 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20793 if test ! -z "${OGG_MANDATORY}" ;
20794 then
20795 { echo "$as_me:$LINENO: ***" >&5
20796 echo "$as_me: ***" >&6;}
20797 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20798 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20799 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20800 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20801 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20802 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20803 exit 1
20805 OGG_LIB=""
20806 OGG_INCLUDE=""
20807 PBX_OGG=0
20808 else
20809 PBX_OGG=1
20811 cat >>confdefs.h <<_ACEOF
20812 #define HAVE_OGG 1
20813 _ACEOF
20816 elif test ! -z "${OGG_MANDATORY}";
20817 then
20818 { echo "$as_me:$LINENO: ***" >&5
20819 echo "$as_me: ***" >&6;}
20820 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20821 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20822 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20823 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20824 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20825 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20826 exit 1
20832 if test "${USE_OSPTK}" != "no"; then
20833 pbxlibdir=""
20834 if test "x${OSPTK_DIR}" != "x"; then
20835 if test -d ${OSPTK_DIR}/lib; then
20836 pbxlibdir="-L${OSPTK_DIR}/lib"
20837 else
20838 pbxlibdir="-L${OSPTK_DIR}"
20841 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20842 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20843 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846 ac_check_lib_save_LIBS=$LIBS
20847 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* Override any GCC internal prototype to avoid an error.
20856 Use char because int might match the return type of a GCC
20857 builtin and then its argument prototype would still apply. */
20858 #ifdef __cplusplus
20859 extern "C"
20860 #endif
20861 char OSPPCryptoDecrypt ();
20863 main ()
20865 return OSPPCryptoDecrypt ();
20867 return 0;
20869 _ACEOF
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (ac_try="$ac_link"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_link") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest$ac_exeext &&
20887 $as_test_x conftest$ac_exeext; then
20888 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
20896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20897 conftest$ac_exeext conftest.$ac_ext
20898 LIBS=$ac_check_lib_save_LIBS
20900 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
20901 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
20902 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
20903 AST_OSPTK_FOUND=yes
20904 else
20905 AST_OSPTK_FOUND=no
20909 if test "${AST_OSPTK_FOUND}" = "yes"; then
20910 OSPTK_LIB="-losptk -lcrypto -lssl"
20911 OSPTK_HEADER_FOUND="1"
20912 if test "x${OSPTK_DIR}" != "x"; then
20913 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
20914 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
20915 if test "xosp/osp.h" != "x" ; then
20916 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
20917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20919 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 ac_res=`eval echo '${'$as_ac_Header'}'`
20924 { echo "$as_me:$LINENO: result: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20926 else
20927 # Is the header compilable?
20928 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
20929 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
20930 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 $ac_includes_default
20937 #include <${OSPTK_DIR}/include/osp/osp.h>
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20947 ac_status=$?
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20956 ac_header_compiler=yes
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_header_compiler=no
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20966 echo "${ECHO_T}$ac_header_compiler" >&6; }
20968 # Is the header present?
20969 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
20970 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <${OSPTK_DIR}/include/osp/osp.h>
20978 _ACEOF
20979 if { (ac_try="$ac_cpp conftest.$ac_ext"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } >/dev/null && {
20992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 }; then
20995 ac_header_preproc=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_header_preproc=no
21003 rm -f conftest.err conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21005 echo "${ECHO_T}$ac_header_preproc" >&6; }
21007 # So? What about this header?
21008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21009 yes:no: )
21010 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21011 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21013 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21014 ac_header_preproc=yes
21016 no:yes:* )
21017 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21018 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21020 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21022 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21024 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21026 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21028 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21031 esac
21032 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21033 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 eval "$as_ac_Header=\$ac_header_preproc"
21039 ac_res=`eval echo '${'$as_ac_Header'}'`
21040 { echo "$as_me:$LINENO: result: $ac_res" >&5
21041 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21045 OSPTK_HEADER_FOUND=1
21046 else
21047 OSPTK_HEADER_FOUND=0
21052 else
21053 if test "xosp/osp.h" != "x" ; then
21054 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21055 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21056 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21061 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21062 else
21063 # Is the header compilable?
21064 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21065 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 #include <osp/osp.h>
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_header_compiler=yes
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_header_compiler=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21106 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h. */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <osp/osp.h>
21114 _ACEOF
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev/null && {
21128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 }; then
21131 ac_header_preproc=yes
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_header_preproc=no
21139 rm -f conftest.err conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143 # So? What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21145 yes:no: )
21146 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21150 ac_header_preproc=yes
21152 no:yes:* )
21153 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21167 esac
21168 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21169 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21170 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 ac_cv_header_osp_osp_h=$ac_header_preproc
21175 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21176 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21179 if test $ac_cv_header_osp_osp_h = yes; then
21180 OSPTK_HEADER_FOUND=1
21181 else
21182 OSPTK_HEADER_FOUND=0
21188 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21189 if test ! -z "${OSPTK_MANDATORY}" ;
21190 then
21191 { echo "$as_me:$LINENO: ***" >&5
21192 echo "$as_me: ***" >&6;}
21193 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21194 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21195 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21196 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21197 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21198 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21199 exit 1
21201 OSPTK_LIB=""
21202 OSPTK_INCLUDE=""
21203 PBX_OSPTK=0
21204 else
21205 PBX_OSPTK=1
21207 cat >>confdefs.h <<_ACEOF
21208 #define HAVE_OSPTK 1
21209 _ACEOF
21212 elif test ! -z "${OSPTK_MANDATORY}";
21213 then
21214 { echo "$as_me:$LINENO: ***" >&5
21215 echo "$as_me: ***" >&6;}
21216 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21217 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21218 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21219 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21220 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21221 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21222 exit 1
21227 PBX_OSS=0
21228 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21229 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21230 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21231 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21235 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21236 else
21237 # Is the header compilable?
21238 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21239 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 #include <linux/soundcard.h>
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21257 ac_status=$?
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_header_compiler=yes
21267 else
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 ac_header_compiler=no
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276 echo "${ECHO_T}$ac_header_compiler" >&6; }
21278 # Is the header present?
21279 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21280 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h. */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <linux/soundcard.h>
21288 _ACEOF
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } >/dev/null && {
21302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 }; then
21305 ac_header_preproc=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_preproc=no
21313 rm -f conftest.err conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315 echo "${ECHO_T}$ac_header_preproc" >&6; }
21317 # So? What about this header?
21318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21319 yes:no: )
21320 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21321 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21323 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21324 ac_header_preproc=yes
21326 no:yes:* )
21327 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21328 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21330 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21332 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21334 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21336 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21338 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21341 esac
21342 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21343 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21344 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 ac_cv_header_linux_soundcard_h=$ac_header_preproc
21349 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21350 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21353 if test $ac_cv_header_linux_soundcard_h = yes; then
21355 PBX_OSS=1
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_OSS 1
21359 _ACEOF
21365 if test "$PBX_OSS" = "0"; then
21366 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21367 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21368 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21374 else
21375 # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21377 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21385 #include <sys/soundcard.h>
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.$ac_objext; then
21404 ac_header_compiler=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_header_compiler=no
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21418 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h. */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <sys/soundcard.h>
21426 _ACEOF
21427 if { (ac_try="$ac_cpp conftest.$ac_ext"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } >/dev/null && {
21440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 }; then
21443 ac_header_preproc=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_header_preproc=no
21451 rm -f conftest.err conftest.$ac_ext
21452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21453 echo "${ECHO_T}$ac_header_preproc" >&6; }
21455 # So? What about this header?
21456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21457 yes:no: )
21458 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21459 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21461 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21462 ac_header_preproc=yes
21464 no:yes:* )
21465 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21466 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21468 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21470 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21472 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21474 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21476 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21479 esac
21480 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21481 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21482 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 ac_cv_header_sys_soundcard_h=$ac_header_preproc
21487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21491 if test $ac_cv_header_sys_soundcard_h = yes; then
21493 PBX_OSS=1
21495 cat >>confdefs.h <<_ACEOF
21496 #define HAVE_OSS 1
21497 _ACEOF
21504 if test "$PBX_OSS" = "0"; then
21506 if test "${USE_OSS}" != "no"; then
21507 pbxlibdir=""
21508 if test "x${OSS_DIR}" != "x"; then
21509 if test -d ${OSS_DIR}/lib; then
21510 pbxlibdir="-L${OSS_DIR}/lib"
21511 else
21512 pbxlibdir="-L${OSS_DIR}"
21515 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21516 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21517 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520 ac_check_lib_save_LIBS=$LIBS
21521 LIBS="-lossaudio ${pbxlibdir} $LIBS"
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21532 #ifdef __cplusplus
21533 extern "C"
21534 #endif
21535 char oss_ioctl_mixer ();
21537 main ()
21539 return oss_ioctl_mixer ();
21541 return 0;
21543 _ACEOF
21544 rm -f conftest.$ac_objext conftest$ac_exeext
21545 if { (ac_try="$ac_link"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_link") 2>conftest.er1
21552 ac_status=$?
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest$ac_exeext &&
21561 $as_test_x conftest$ac_exeext; then
21562 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21563 else
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571 conftest$ac_exeext conftest.$ac_ext
21572 LIBS=$ac_check_lib_save_LIBS
21574 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21575 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21576 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21577 AST_OSS_FOUND=yes
21578 else
21579 AST_OSS_FOUND=no
21583 if test "${AST_OSS_FOUND}" = "yes"; then
21584 OSS_LIB="-lossaudio "
21585 OSS_HEADER_FOUND="1"
21586 if test "x${OSS_DIR}" != "x"; then
21587 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21588 OSS_INCLUDE="-I${OSS_DIR}/include"
21589 if test "xsoundcard.h" != "x" ; then
21590 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
21591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21592 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21593 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 ac_res=`eval echo '${'$as_ac_Header'}'`
21598 { echo "$as_me:$LINENO: result: $ac_res" >&5
21599 echo "${ECHO_T}$ac_res" >&6; }
21600 else
21601 # Is the header compilable?
21602 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21603 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 $ac_includes_default
21611 #include <${OSS_DIR}/include/soundcard.h>
21612 _ACEOF
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.$ac_objext; then
21630 ac_header_compiler=yes
21631 else
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_header_compiler=no
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 echo "${ECHO_T}$ac_header_compiler" >&6; }
21642 # Is the header present?
21643 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21644 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <${OSS_DIR}/include/soundcard.h>
21652 _ACEOF
21653 if { (ac_try="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } >/dev/null && {
21666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 }; then
21669 ac_header_preproc=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_preproc=no
21677 rm -f conftest.err conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 echo "${ECHO_T}$ac_header_preproc" >&6; }
21681 # So? What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683 yes:no: )
21684 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21685 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21687 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21688 ac_header_preproc=yes
21690 no:yes:* )
21691 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21692 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21694 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21696 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21698 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21700 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21702 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21705 esac
21706 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21707 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711 eval "$as_ac_Header=\$ac_header_preproc"
21713 ac_res=`eval echo '${'$as_ac_Header'}'`
21714 { echo "$as_me:$LINENO: result: $ac_res" >&5
21715 echo "${ECHO_T}$ac_res" >&6; }
21718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21719 OSS_HEADER_FOUND=1
21720 else
21721 OSS_HEADER_FOUND=0
21726 else
21727 if test "xsoundcard.h" != "x" ; then
21728 if test "${ac_cv_header_soundcard_h+set}" = set; then
21729 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21730 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21731 if test "${ac_cv_header_soundcard_h+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21735 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21736 else
21737 # Is the header compilable?
21738 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21739 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21747 #include <soundcard.h>
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest.$ac_objext; then
21766 ac_header_compiler=yes
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ac_header_compiler=no
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21776 echo "${ECHO_T}$ac_header_compiler" >&6; }
21778 # Is the header present?
21779 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21780 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21781 cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h. */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21787 #include <soundcard.h>
21788 _ACEOF
21789 if { (ac_try="$ac_cpp conftest.$ac_ext"
21790 case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } >/dev/null && {
21802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 }; then
21805 ac_header_preproc=yes
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_header_preproc=no
21813 rm -f conftest.err conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21815 echo "${ECHO_T}$ac_header_preproc" >&6; }
21817 # So? What about this header?
21818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21819 yes:no: )
21820 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21821 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21823 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21824 ac_header_preproc=yes
21826 no:yes:* )
21827 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21832 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21834 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21836 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21838 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21841 esac
21842 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21843 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21844 if test "${ac_cv_header_soundcard_h+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847 ac_cv_header_soundcard_h=$ac_header_preproc
21849 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21850 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21853 if test $ac_cv_header_soundcard_h = yes; then
21854 OSS_HEADER_FOUND=1
21855 else
21856 OSS_HEADER_FOUND=0
21862 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21863 if test ! -z "${OSS_MANDATORY}" ;
21864 then
21865 { echo "$as_me:$LINENO: ***" >&5
21866 echo "$as_me: ***" >&6;}
21867 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21868 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21869 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21870 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21871 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21872 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21873 exit 1
21875 OSS_LIB=""
21876 OSS_INCLUDE=""
21877 PBX_OSS=0
21878 else
21879 PBX_OSS=1
21881 cat >>confdefs.h <<_ACEOF
21882 #define HAVE_OSS 1
21883 _ACEOF
21886 elif test ! -z "${OSS_MANDATORY}";
21887 then
21888 { echo "$as_me:$LINENO: ***" >&5
21889 echo "$as_me: ***" >&6;}
21890 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
21891 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
21892 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21893 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21894 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21895 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21896 exit 1
21902 PG_CONFIG=No
21903 if test "${USE_PGSQL}" != "no"; then
21904 if test "x${PGSQL_DIR}" != "x"; then
21905 if test -n "$ac_tool_prefix"; then
21906 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21907 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21910 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913 case $PG_CONFIG in
21914 [\\/]* | ?:[\\/]*)
21915 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in ${PGSQL_DIR}/bin
21921 IFS=$as_save_IFS
21922 test -z "$as_dir" && as_dir=.
21923 for ac_exec_ext in '' $ac_executable_extensions; do
21924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21925 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21927 break 2
21929 done
21930 done
21931 IFS=$as_save_IFS
21934 esac
21936 PG_CONFIG=$ac_cv_path_PG_CONFIG
21937 if test -n "$PG_CONFIG"; then
21938 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21939 echo "${ECHO_T}$PG_CONFIG" >&6; }
21940 else
21941 { echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6; }
21947 if test -z "$ac_cv_path_PG_CONFIG"; then
21948 ac_pt_PG_CONFIG=$PG_CONFIG
21949 # Extract the first word of "pg_config", so it can be a program name with args.
21950 set dummy pg_config; ac_word=$2
21951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21953 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956 case $ac_pt_PG_CONFIG in
21957 [\\/]* | ?:[\\/]*)
21958 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21962 for as_dir in ${PGSQL_DIR}/bin
21964 IFS=$as_save_IFS
21965 test -z "$as_dir" && as_dir=.
21966 for ac_exec_ext in '' $ac_executable_extensions; do
21967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21968 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21970 break 2
21972 done
21973 done
21974 IFS=$as_save_IFS
21977 esac
21979 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21980 if test -n "$ac_pt_PG_CONFIG"; then
21981 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21982 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21983 else
21984 { echo "$as_me:$LINENO: result: no" >&5
21985 echo "${ECHO_T}no" >&6; }
21988 if test "x$ac_pt_PG_CONFIG" = x; then
21989 PG_CONFIG="No"
21990 else
21991 case $cross_compiling:$ac_tool_warned in
21992 yes:)
21993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21994 whose name does not start with the host triplet. If you think this
21995 configuration is useful to you, please write to autoconf@gnu.org." >&5
21996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21997 whose name does not start with the host triplet. If you think this
21998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21999 ac_tool_warned=yes ;;
22000 esac
22001 PG_CONFIG=$ac_pt_PG_CONFIG
22003 else
22004 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22007 if test x"${PG_CONFIG}" = xNo; then
22008 { echo "$as_me:$LINENO: ***" >&5
22009 echo "$as_me: ***" >&6;}
22010 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22011 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22012 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22013 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22014 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22015 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22016 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22017 echo "$as_me: *** including --without-postgres" >&6;}
22018 exit 1
22020 else
22021 if test -n "$ac_tool_prefix"; then
22022 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22023 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22026 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029 case $PG_CONFIG in
22030 [\\/]* | ?:[\\/]*)
22031 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035 for as_dir in $PATH
22037 IFS=$as_save_IFS
22038 test -z "$as_dir" && as_dir=.
22039 for ac_exec_ext in '' $ac_executable_extensions; do
22040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22041 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22043 break 2
22045 done
22046 done
22047 IFS=$as_save_IFS
22050 esac
22052 PG_CONFIG=$ac_cv_path_PG_CONFIG
22053 if test -n "$PG_CONFIG"; then
22054 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22055 echo "${ECHO_T}$PG_CONFIG" >&6; }
22056 else
22057 { echo "$as_me:$LINENO: result: no" >&5
22058 echo "${ECHO_T}no" >&6; }
22063 if test -z "$ac_cv_path_PG_CONFIG"; then
22064 ac_pt_PG_CONFIG=$PG_CONFIG
22065 # Extract the first word of "pg_config", so it can be a program name with args.
22066 set dummy pg_config; ac_word=$2
22067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22069 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22071 else
22072 case $ac_pt_PG_CONFIG in
22073 [\\/]* | ?:[\\/]*)
22074 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22078 for as_dir in $PATH
22080 IFS=$as_save_IFS
22081 test -z "$as_dir" && as_dir=.
22082 for ac_exec_ext in '' $ac_executable_extensions; do
22083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22084 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22086 break 2
22088 done
22089 done
22090 IFS=$as_save_IFS
22093 esac
22095 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22096 if test -n "$ac_pt_PG_CONFIG"; then
22097 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22098 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22099 else
22100 { echo "$as_me:$LINENO: result: no" >&5
22101 echo "${ECHO_T}no" >&6; }
22104 if test "x$ac_pt_PG_CONFIG" = x; then
22105 PG_CONFIG="No"
22106 else
22107 case $cross_compiling:$ac_tool_warned in
22108 yes:)
22109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22110 whose name does not start with the host triplet. If you think this
22111 configuration is useful to you, please write to autoconf@gnu.org." >&5
22112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22113 whose name does not start with the host triplet. If you think this
22114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22115 ac_tool_warned=yes ;;
22116 esac
22117 PG_CONFIG=$ac_pt_PG_CONFIG
22119 else
22120 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22125 if test "${PG_CONFIG}" != No; then
22126 PGSQL_libdir=`pg_config --libdir`
22127 PGSQL_includedir=`pg_config --includedir`
22129 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22130 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22131 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22143 /* Override any GCC internal prototype to avoid an error.
22144 Use char because int might match the return type of a GCC
22145 builtin and then its argument prototype would still apply. */
22146 #ifdef __cplusplus
22147 extern "C"
22148 #endif
22149 char PQexec ();
22151 main ()
22153 return PQexec ();
22155 return 0;
22157 _ACEOF
22158 rm -f conftest.$ac_objext conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_link") 2>conftest.er1
22166 ac_status=$?
22167 grep -v '^ *+' conftest.er1 >conftest.err
22168 rm -f conftest.er1
22169 cat conftest.err >&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } && {
22172 test -z "$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 } && test -s conftest$ac_exeext &&
22175 $as_test_x conftest$ac_exeext; then
22176 ac_cv_lib_pq_PQexec=yes
22177 else
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ac_cv_lib_pq_PQexec=no
22184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22185 conftest$ac_exeext conftest.$ac_ext
22186 LIBS=$ac_check_lib_save_LIBS
22188 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22189 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22190 if test $ac_cv_lib_pq_PQexec = yes; then
22192 cat >>confdefs.h <<_ACEOF
22193 #define HAVE_PGSQL 1
22194 _ACEOF
22199 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22200 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22201 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22202 PBX_PGSQL=1
22203 elif test ! -z "${PGSQL_MANDATORY}";
22204 then
22205 { echo "$as_me:$LINENO: ***" >&5
22206 echo "$as_me: ***" >&6;}
22207 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22208 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22209 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22210 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22211 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22212 echo "$as_me: *** including --without-postgres" >&6;}
22213 exit 1
22215 elif test ! -z "${PGSQL_MANDATORY}";
22216 then
22217 { echo "$as_me:$LINENO: ***" >&5
22218 echo "$as_me: ***" >&6;}
22219 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22220 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22221 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22222 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22223 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22224 echo "$as_me: *** including --without-postgres" >&6;}
22225 exit 1
22229 if test "${USE_POPT}" != "no"; then
22230 pbxlibdir=""
22231 if test "x${POPT_DIR}" != "x"; then
22232 if test -d ${POPT_DIR}/lib; then
22233 pbxlibdir="-L${POPT_DIR}/lib"
22234 else
22235 pbxlibdir="-L${POPT_DIR}"
22238 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22239 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22240 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 ac_check_lib_save_LIBS=$LIBS
22244 LIBS="-lpopt ${pbxlibdir} $LIBS"
22245 cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h. */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 /* Override any GCC internal prototype to avoid an error.
22253 Use char because int might match the return type of a GCC
22254 builtin and then its argument prototype would still apply. */
22255 #ifdef __cplusplus
22256 extern "C"
22257 #endif
22258 char poptStrerror ();
22260 main ()
22262 return poptStrerror ();
22264 return 0;
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_link") 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest$ac_exeext &&
22284 $as_test_x conftest$ac_exeext; then
22285 ac_cv_lib_popt_poptStrerror=yes
22286 else
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_lib_popt_poptStrerror=no
22293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22294 conftest$ac_exeext conftest.$ac_ext
22295 LIBS=$ac_check_lib_save_LIBS
22297 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22298 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22299 if test $ac_cv_lib_popt_poptStrerror = yes; then
22300 AST_POPT_FOUND=yes
22301 else
22302 AST_POPT_FOUND=no
22306 if test "${AST_POPT_FOUND}" = "yes"; then
22307 POPT_LIB="-lpopt "
22308 POPT_HEADER_FOUND="1"
22309 if test "x${POPT_DIR}" != "x"; then
22310 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22311 POPT_INCLUDE="-I${POPT_DIR}/include"
22312 if test "xpopt.h" != "x" ; then
22313 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
22314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22315 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22316 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22323 else
22324 # Is the header compilable?
22325 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22326 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22327 cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h. */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 $ac_includes_default
22334 #include <${POPT_DIR}/include/popt.h>
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_header_compiler=yes
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_header_compiler=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22363 echo "${ECHO_T}$ac_header_compiler" >&6; }
22365 # Is the header present?
22366 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22367 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <${POPT_DIR}/include/popt.h>
22375 _ACEOF
22376 if { (ac_try="$ac_cpp conftest.$ac_ext"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22380 esac
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } >/dev/null && {
22389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 }; then
22392 ac_header_preproc=yes
22393 else
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_header_preproc=no
22400 rm -f conftest.err conftest.$ac_ext
22401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22402 echo "${ECHO_T}$ac_header_preproc" >&6; }
22404 # So? What about this header?
22405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22406 yes:no: )
22407 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22408 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22409 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22410 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22411 ac_header_preproc=yes
22413 no:yes:* )
22414 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22415 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22416 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22417 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22419 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22420 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22421 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22423 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22425 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22428 esac
22429 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22430 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434 eval "$as_ac_Header=\$ac_header_preproc"
22436 ac_res=`eval echo '${'$as_ac_Header'}'`
22437 { echo "$as_me:$LINENO: result: $ac_res" >&5
22438 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22442 POPT_HEADER_FOUND=1
22443 else
22444 POPT_HEADER_FOUND=0
22449 else
22450 if test "xpopt.h" != "x" ; then
22451 if test "${ac_cv_header_popt_h+set}" = set; then
22452 { echo "$as_me:$LINENO: checking for popt.h" >&5
22453 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22454 if test "${ac_cv_header_popt_h+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22458 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22459 else
22460 # Is the header compilable?
22461 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22462 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 $ac_includes_default
22470 #include <popt.h>
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.$ac_objext; then
22489 ac_header_compiler=yes
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_header_compiler=no
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22499 echo "${ECHO_T}$ac_header_compiler" >&6; }
22501 # Is the header present?
22502 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22503 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <popt.h>
22511 _ACEOF
22512 if { (ac_try="$ac_cpp conftest.$ac_ext"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } >/dev/null && {
22525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 }; then
22528 ac_header_preproc=yes
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_header_preproc=no
22536 rm -f conftest.err conftest.$ac_ext
22537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22538 echo "${ECHO_T}$ac_header_preproc" >&6; }
22540 # So? What about this header?
22541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22542 yes:no: )
22543 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22544 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22545 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22546 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22547 ac_header_preproc=yes
22549 no:yes:* )
22550 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22551 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22553 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22555 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22556 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22557 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22558 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22559 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22560 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22561 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22564 esac
22565 { echo "$as_me:$LINENO: checking for popt.h" >&5
22566 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22567 if test "${ac_cv_header_popt_h+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570 ac_cv_header_popt_h=$ac_header_preproc
22572 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22573 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22576 if test $ac_cv_header_popt_h = yes; then
22577 POPT_HEADER_FOUND=1
22578 else
22579 POPT_HEADER_FOUND=0
22585 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22586 if test ! -z "${POPT_MANDATORY}" ;
22587 then
22588 { echo "$as_me:$LINENO: ***" >&5
22589 echo "$as_me: ***" >&6;}
22590 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22591 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22592 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22593 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22594 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22595 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22596 exit 1
22598 POPT_LIB=""
22599 POPT_INCLUDE=""
22600 PBX_POPT=0
22601 else
22602 PBX_POPT=1
22604 cat >>confdefs.h <<_ACEOF
22605 #define HAVE_POPT 1
22606 _ACEOF
22609 elif test ! -z "${POPT_MANDATORY}";
22610 then
22611 { echo "$as_me:$LINENO: ***" >&5
22612 echo "$as_me: ***" >&6;}
22613 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22614 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22615 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22616 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22617 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22618 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22619 exit 1
22625 if test "${USE_PRI}" != "no"; then
22626 pbxlibdir=""
22627 if test "x${PRI_DIR}" != "x"; then
22628 if test -d ${PRI_DIR}/lib; then
22629 pbxlibdir="-L${PRI_DIR}/lib"
22630 else
22631 pbxlibdir="-L${PRI_DIR}"
22634 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22635 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22636 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639 ac_check_lib_save_LIBS=$LIBS
22640 LIBS="-lpri ${pbxlibdir} $LIBS"
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22648 /* Override any GCC internal prototype to avoid an error.
22649 Use char because int might match the return type of a GCC
22650 builtin and then its argument prototype would still apply. */
22651 #ifdef __cplusplus
22652 extern "C"
22653 #endif
22654 char pri_call ();
22656 main ()
22658 return pri_call ();
22660 return 0;
22662 _ACEOF
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (ac_try="$ac_link"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22668 esac
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_link") 2>conftest.er1
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest$ac_exeext &&
22680 $as_test_x conftest$ac_exeext; then
22681 ac_cv_lib_pri_pri_call=yes
22682 else
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22686 ac_cv_lib_pri_pri_call=no
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22690 conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22693 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22694 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22695 if test $ac_cv_lib_pri_pri_call = yes; then
22696 AST_PRI_FOUND=yes
22697 else
22698 AST_PRI_FOUND=no
22702 if test "${AST_PRI_FOUND}" = "yes"; then
22703 PRI_LIB="-lpri "
22704 PRI_HEADER_FOUND="1"
22705 if test "x${PRI_DIR}" != "x"; then
22706 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
22707 PRI_INCLUDE="-I${PRI_DIR}/include"
22708 if test "xlibpri.h" != "x" ; then
22709 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22711 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22712 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 ac_res=`eval echo '${'$as_ac_Header'}'`
22717 { echo "$as_me:$LINENO: result: $ac_res" >&5
22718 echo "${ECHO_T}$ac_res" >&6; }
22719 else
22720 # Is the header compilable?
22721 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22722 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 #include <${PRI_DIR}/include/libpri.h>
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (ac_try="$ac_compile"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_compile") 2>conftest.er1
22740 ac_status=$?
22741 grep -v '^ *+' conftest.er1 >conftest.err
22742 rm -f conftest.er1
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && {
22746 test -z "$ac_c_werror_flag" ||
22747 test ! -s conftest.err
22748 } && test -s conftest.$ac_objext; then
22749 ac_header_compiler=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 ac_header_compiler=no
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22759 echo "${ECHO_T}$ac_header_compiler" >&6; }
22761 # Is the header present?
22762 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22763 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 #include <${PRI_DIR}/include/libpri.h>
22771 _ACEOF
22772 if { (ac_try="$ac_cpp conftest.$ac_ext"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } >/dev/null && {
22785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 }; then
22788 ac_header_preproc=yes
22789 else
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ac_header_preproc=no
22796 rm -f conftest.err conftest.$ac_ext
22797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22798 echo "${ECHO_T}$ac_header_preproc" >&6; }
22800 # So? What about this header?
22801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22802 yes:no: )
22803 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22804 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22806 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22807 ac_header_preproc=yes
22809 no:yes:* )
22810 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22811 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22812 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22813 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22815 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22817 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22819 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22821 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22824 esac
22825 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22826 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830 eval "$as_ac_Header=\$ac_header_preproc"
22832 ac_res=`eval echo '${'$as_ac_Header'}'`
22833 { echo "$as_me:$LINENO: result: $ac_res" >&5
22834 echo "${ECHO_T}$ac_res" >&6; }
22837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22838 PRI_HEADER_FOUND=1
22839 else
22840 PRI_HEADER_FOUND=0
22845 else
22846 if test "xlibpri.h" != "x" ; then
22847 if test "${ac_cv_header_libpri_h+set}" = set; then
22848 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22849 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22850 if test "${ac_cv_header_libpri_h+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22854 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22855 else
22856 # Is the header compilable?
22857 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22858 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22859 cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h. */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 $ac_includes_default
22866 #include <libpri.h>
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
22876 ac_status=$?
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
22885 ac_header_compiler=yes
22886 else
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ac_header_compiler=no
22893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22895 echo "${ECHO_T}$ac_header_compiler" >&6; }
22897 # Is the header present?
22898 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
22899 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h. */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 #include <libpri.h>
22907 _ACEOF
22908 if { (ac_try="$ac_cpp conftest.$ac_ext"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22915 ac_status=$?
22916 grep -v '^ *+' conftest.er1 >conftest.err
22917 rm -f conftest.er1
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } >/dev/null && {
22921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 }; then
22924 ac_header_preproc=yes
22925 else
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 ac_header_preproc=no
22932 rm -f conftest.err conftest.$ac_ext
22933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22934 echo "${ECHO_T}$ac_header_preproc" >&6; }
22936 # So? What about this header?
22937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22938 yes:no: )
22939 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22940 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22941 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
22942 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
22943 ac_header_preproc=yes
22945 no:yes:* )
22946 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
22947 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
22948 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
22949 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
22951 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
22952 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22953 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22954 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
22955 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
22956 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
22957 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
22960 esac
22961 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22962 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22963 if test "${ac_cv_header_libpri_h+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966 ac_cv_header_libpri_h=$ac_header_preproc
22968 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22969 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22972 if test $ac_cv_header_libpri_h = yes; then
22973 PRI_HEADER_FOUND=1
22974 else
22975 PRI_HEADER_FOUND=0
22981 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
22982 if test ! -z "${PRI_MANDATORY}" ;
22983 then
22984 { echo "$as_me:$LINENO: ***" >&5
22985 echo "$as_me: ***" >&6;}
22986 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
22987 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
22988 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
22989 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
22990 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22991 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
22992 exit 1
22994 PRI_LIB=""
22995 PRI_INCLUDE=""
22996 PBX_PRI=0
22997 else
22998 PBX_PRI=1
23000 cat >>confdefs.h <<_ACEOF
23001 #define HAVE_PRI 1
23002 _ACEOF
23005 elif test ! -z "${PRI_MANDATORY}";
23006 then
23007 { echo "$as_me:$LINENO: ***" >&5
23008 echo "$as_me: ***" >&6;}
23009 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23010 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23011 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23012 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23013 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23014 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23015 exit 1
23020 if test "${USE_PWLIB}" != "no"; then
23021 if test ! -z "${PWLIB_DIR}"; then
23022 PWLIBDIR="${PWLIB_DIR}"
23025 PWLIB_INCDIR=
23026 PWLIB_LIBDIR=
23027 if test "${PWLIBDIR:-unset}" != "unset" ; then
23028 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23029 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23030 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23031 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034 test "$cross_compiling" = yes &&
23035 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23036 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23037 { (exit 1); exit 1; }; }
23038 if test -r "${PWLIBDIR}/version.h"; then
23039 eval "$as_ac_File=yes"
23040 else
23041 eval "$as_ac_File=no"
23044 ac_res=`eval echo '${'$as_ac_File'}'`
23045 { echo "$as_me:$LINENO: result: $ac_res" >&5
23046 echo "${ECHO_T}$ac_res" >&6; }
23047 if test `eval echo '${'$as_ac_File'}'` = yes; then
23048 HAS_PWLIB=1
23052 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23053 if test "${OPENH323DIR:-unset}" != "unset"; then
23054 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23055 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23056 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23057 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060 test "$cross_compiling" = yes &&
23061 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23062 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23063 { (exit 1); exit 1; }; }
23064 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23065 eval "$as_ac_File=yes"
23066 else
23067 eval "$as_ac_File=no"
23070 ac_res=`eval echo '${'$as_ac_File'}'`
23071 { echo "$as_me:$LINENO: result: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23073 if test `eval echo '${'$as_ac_File'}'` = yes; then
23074 HAS_PWLIB=1
23078 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23079 PWLIBDIR="${OPENH323DIR}/../pwlib"
23080 else
23081 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23082 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23083 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23084 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087 test "$cross_compiling" = yes &&
23088 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23089 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23090 { (exit 1); exit 1; }; }
23091 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23092 eval "$as_ac_File=yes"
23093 else
23094 eval "$as_ac_File=no"
23097 ac_res=`eval echo '${'$as_ac_File'}'`
23098 { echo "$as_me:$LINENO: result: $ac_res" >&5
23099 echo "${ECHO_T}$ac_res" >&6; }
23100 if test `eval echo '${'$as_ac_File'}'` = yes; then
23101 HAS_PWLIB=1
23104 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23105 PWLIBDIR="${HOME}/pwlib"
23106 else
23107 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23108 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23109 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112 test "$cross_compiling" = yes &&
23113 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23114 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23115 { (exit 1); exit 1; }; }
23116 if test -r "/usr/local/include/ptlib.h"; then
23117 ac_cv_file__usr_local_include_ptlib_h=yes
23118 else
23119 ac_cv_file__usr_local_include_ptlib_h=no
23122 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23123 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23124 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23125 HAS_PWLIB=1
23128 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23129 # Extract the first word of "ptlib-config", so it can be a program name with args.
23130 set dummy ptlib-config; ac_word=$2
23131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23133 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136 case $PTLIB_CONFIG in
23137 [\\/]* | ?:[\\/]*)
23138 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23142 for as_dir in /usr/local/bin
23144 IFS=$as_save_IFS
23145 test -z "$as_dir" && as_dir=.
23146 for ac_exec_ext in '' $ac_executable_extensions; do
23147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23148 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23150 break 2
23152 done
23153 done
23154 IFS=$as_save_IFS
23157 esac
23159 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23160 if test -n "$PTLIB_CONFIG"; then
23161 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23162 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23163 else
23164 { echo "$as_me:$LINENO: result: no" >&5
23165 echo "${ECHO_T}no" >&6; }
23169 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23170 # Extract the first word of "ptlib-config", so it can be a program name with args.
23171 set dummy ptlib-config; ac_word=$2
23172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23174 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177 case $PTLIB_CONFIG in
23178 [\\/]* | ?:[\\/]*)
23179 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23183 for as_dir in /usr/local/share/pwlib/make
23185 IFS=$as_save_IFS
23186 test -z "$as_dir" && as_dir=.
23187 for ac_exec_ext in '' $ac_executable_extensions; do
23188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23189 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23191 break 2
23193 done
23194 done
23195 IFS=$as_save_IFS
23198 esac
23200 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23201 if test -n "$PTLIB_CONFIG"; then
23202 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23203 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23204 else
23205 { echo "$as_me:$LINENO: result: no" >&5
23206 echo "${ECHO_T}no" >&6; }
23211 PWLIB_INCDIR="/usr/local/include"
23212 PWLIB_LIBDIR="/usr/local/lib"
23213 else
23214 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23215 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23216 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219 test "$cross_compiling" = yes &&
23220 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23221 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23222 { (exit 1); exit 1; }; }
23223 if test -r "/usr/include/ptlib.h"; then
23224 ac_cv_file__usr_include_ptlib_h=yes
23225 else
23226 ac_cv_file__usr_include_ptlib_h=no
23229 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23230 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23231 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23232 HAS_PWLIB=1
23235 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23236 # Extract the first word of "ptlib-config", so it can be a program name with args.
23237 set dummy ptlib-config; ac_word=$2
23238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23240 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243 case $PTLIB_CONFIG in
23244 [\\/]* | ?:[\\/]*)
23245 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23249 for as_dir in /usr/share/pwlib/make
23251 IFS=$as_save_IFS
23252 test -z "$as_dir" && as_dir=.
23253 for ac_exec_ext in '' $ac_executable_extensions; do
23254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23255 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23257 break 2
23259 done
23260 done
23261 IFS=$as_save_IFS
23264 esac
23266 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23267 if test -n "$PTLIB_CONFIG"; then
23268 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23269 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23270 else
23271 { echo "$as_me:$LINENO: result: no" >&5
23272 echo "${ECHO_T}no" >&6; }
23276 PWLIB_INCDIR="/usr/include"
23277 PWLIB_LIBDIR="/usr/lib"
23284 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23285 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23286 # exit
23289 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23290 if test "${PWLIBDIR:-unset}" = "unset" ; then
23291 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23292 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23293 else
23294 echo "Cannot find ptlib-config - please install and try again"
23295 exit
23299 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23300 PWLIBDIR="/usr/share/pwlib"
23301 PWLIB_INCDIR="/usr/include"
23302 PWLIB_LIBDIR="/usr/lib"
23304 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23305 PWLIBDIR="/usr/local/share/pwlib"
23306 PWLIB_INCDIR="/usr/local/include"
23307 PWLIB_LIBDIR="/usr/local/lib"
23310 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23311 PWLIB_INCDIR="${PWLIBDIR}/include"
23313 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23314 PWLIB_LIBDIR="${PWLIBDIR}/lib"
23323 if test "${HAS_PWLIB:-unset}" != "unset"; then
23324 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23325 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23326 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23327 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23328 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23329 let PWLIB_REQ=1*10000+9*100+2
23331 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23332 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23333 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23334 { echo "$as_me:$LINENO: result: no" >&5
23335 echo "${ECHO_T}no" >&6; }
23336 unset HAS_PWLIB
23337 else
23338 { echo "$as_me:$LINENO: result: yes" >&5
23339 echo "${ECHO_T}yes" >&6; }
23344 if test "${HAS_PWLIB:-unset}" != "unset"; then
23346 PWLIB_OSTYPE=
23347 case "$host_os" in
23348 linux*) PWLIB_OSTYPE=linux ;
23350 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
23352 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
23353 ENDLDLIBS="-lossaudio" ;
23355 netbsd* ) PWLIB_OSTYPE=NetBSD ;
23356 ENDLDLIBS="-lossaudio" ;
23358 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
23360 darwin* ) PWLIB_OSTYPE=Darwin ;
23362 beos*) PWLIB_OSTYPE=beos ;
23363 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
23365 cygwin*) PWLIB_OSTYPE=cygwin ;
23367 mingw*) PWLIB_OSTYPE=mingw ;
23368 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
23369 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23371 * ) PWLIB_OSTYPE="$host_os" ;
23372 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23373 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23375 esac
23377 PWLIB_MACHTYPE=
23378 case "$host_cpu" in
23379 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
23382 x86_64) PWLIB_MACHTYPE=x86_64 ;
23383 P_64BIT=1 ;
23384 LIB64=1 ;
23387 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
23388 P_64BIT=1 ;
23391 sparc ) PWLIB_MACHTYPE=sparc ;
23394 powerpc ) PWLIB_MACHTYPE=ppc ;
23397 ppc ) PWLIB_MACHTYPE=ppc ;
23400 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
23401 P_64BIT=1 ;
23402 LIB64=1 ;
23405 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
23406 P_64BIT=1 ;
23407 LIB64=1 ;
23410 ia64) PWLIB_MACHTYPE=ia64 ;
23411 P_64BIT=1 ;
23414 s390x) PWLIB_MACHTYPE=s390x ;
23415 P_64BIT=1 ;
23416 LIB64=1 ;
23419 s390) PWLIB_MACHTYPE=s390 ;
23422 * ) PWLIB_MACHTYPE="$host_cpu";
23423 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23424 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23425 esac
23427 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23432 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
23435 if test "${HAS_PWLIB:-unset}" != "unset"; then
23436 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23437 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23439 saved_cppflags="${CPPFLAGS}"
23440 saved_libs="${LIBS}"
23441 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23442 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
23444 ac_ext=cpp
23445 ac_cpp='$CXXCPP $CPPFLAGS'
23446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 #include "ptlib.h"
23459 main ()
23461 BOOL q = PTime::IsDaylightSavings();
23463 return 0;
23465 _ACEOF
23466 rm -f conftest.$ac_objext conftest$ac_exeext
23467 if { (ac_try="$ac_link"
23468 case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23471 esac
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_link") 2>conftest.er1
23474 ac_status=$?
23475 grep -v '^ *+' conftest.er1 >conftest.err
23476 rm -f conftest.er1
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && {
23480 test -z "$ac_cxx_werror_flag" ||
23481 test ! -s conftest.err
23482 } && test -s conftest$ac_exeext &&
23483 $as_test_x conftest$ac_exeext; then
23484 { echo "$as_me:$LINENO: result: yes" >&5
23485 echo "${ECHO_T}yes" >&6; }
23486 ac_cv_lib_PWLIB="yes"
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 { echo "$as_me:$LINENO: result: no" >&5
23493 echo "${ECHO_T}no" >&6; }
23494 ac_cv_lib_PWLIB="no"
23499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500 conftest$ac_exeext conftest.$ac_ext
23502 ac_ext=c
23503 ac_cpp='$CPP $CPPFLAGS'
23504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23509 LIBS="${saved_libs}"
23510 CPPFLAGS="${saved_cppflags}"
23512 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23513 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23514 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23515 else
23516 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23518 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23519 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23521 PBX_PWLIB=1
23523 cat >>confdefs.h <<\_ACEOF
23524 #define HAVE_PWLIB 1
23525 _ACEOF
23533 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23534 { echo "$as_me:$LINENO: ***" >&5
23535 echo "$as_me: ***" >&6;}
23536 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23537 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23538 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23539 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23540 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23541 echo "$as_me: *** including --without-pwlib" >&6;}
23542 exit 1
23545 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23546 if test ! -z "${OPENH323_DIR}"; then
23547 OPENH323DIR="${OPENH323_DIR}"
23550 OPENH323_INCDIR=
23551 OPENH323_LIBDIR=
23552 if test "${OPENH323DIR:-unset}" != "unset" ; then
23553 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
23554 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23555 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23556 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559 test "$cross_compiling" = yes &&
23560 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23562 { (exit 1); exit 1; }; }
23563 if test -r "${OPENH323DIR}/version.h"; then
23564 eval "$as_ac_File=yes"
23565 else
23566 eval "$as_ac_File=no"
23569 ac_res=`eval echo '${'$as_ac_File'}'`
23570 { echo "$as_me:$LINENO: result: $ac_res" >&5
23571 echo "${ECHO_T}$ac_res" >&6; }
23572 if test `eval echo '${'$as_ac_File'}'` = yes; then
23573 HAS_OPENH323=1
23577 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23578 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
23579 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23580 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23581 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 else
23584 test "$cross_compiling" = yes &&
23585 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23586 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23587 { (exit 1); exit 1; }; }
23588 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23589 eval "$as_ac_File=yes"
23590 else
23591 eval "$as_ac_File=no"
23594 ac_res=`eval echo '${'$as_ac_File'}'`
23595 { echo "$as_me:$LINENO: result: $ac_res" >&5
23596 echo "${ECHO_T}$ac_res" >&6; }
23597 if test `eval echo '${'$as_ac_File'}'` = yes; then
23598 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23601 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23602 OPENH323DIR="${PWLIBDIR}/../openh323"
23603 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
23604 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23605 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23606 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609 test "$cross_compiling" = yes &&
23610 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23611 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23612 { (exit 1); exit 1; }; }
23613 if test -r "${OPENH323DIR}/include/h323.h"; then
23614 eval "$as_ac_File=yes"
23615 else
23616 eval "$as_ac_File=no"
23619 ac_res=`eval echo '${'$as_ac_File'}'`
23620 { echo "$as_me:$LINENO: result: $ac_res" >&5
23621 echo "${ECHO_T}$ac_res" >&6; }
23622 if test `eval echo '${'$as_ac_File'}'` = yes; then
23624 else
23625 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23628 else
23629 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
23630 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23631 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23632 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635 test "$cross_compiling" = yes &&
23636 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23637 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23638 { (exit 1); exit 1; }; }
23639 if test -r "${HOME}/openh323/include/h323.h"; then
23640 eval "$as_ac_File=yes"
23641 else
23642 eval "$as_ac_File=no"
23645 ac_res=`eval echo '${'$as_ac_File'}'`
23646 { echo "$as_me:$LINENO: result: $ac_res" >&5
23647 echo "${ECHO_T}$ac_res" >&6; }
23648 if test `eval echo '${'$as_ac_File'}'` = yes; then
23649 HAS_OPENH323=1
23652 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23653 OPENH323DIR="${HOME}/openh323"
23654 else
23655 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23656 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23657 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 else
23660 test "$cross_compiling" = yes &&
23661 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23662 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23663 { (exit 1); exit 1; }; }
23664 if test -r "/usr/local/include/openh323/h323.h"; then
23665 ac_cv_file__usr_local_include_openh323_h323_h=yes
23666 else
23667 ac_cv_file__usr_local_include_openh323_h323_h=no
23670 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23671 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23672 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23673 HAS_OPENH323=1
23676 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23677 OPENH323DIR="/usr/local/share/openh323"
23678 OPENH323_INCDIR="/usr/local/include/openh323"
23679 OPENH323_LIBDIR="/usr/local/lib"
23680 else
23681 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23682 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23683 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686 test "$cross_compiling" = yes &&
23687 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23688 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23689 { (exit 1); exit 1; }; }
23690 if test -r "/usr/include/openh323/h323.h"; then
23691 ac_cv_file__usr_include_openh323_h323_h=yes
23692 else
23693 ac_cv_file__usr_include_openh323_h323_h=no
23696 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23697 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23698 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23699 HAS_OPENH323=1
23702 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23703 OPENH323DIR="/usr/share/openh323"
23704 OPENH323_INCDIR="/usr/include/openh323"
23705 OPENH323_LIBDIR="/usr/lib"
23712 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23713 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23714 OPENH323_INCDIR="${OPENH323DIR}/include"
23716 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23717 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23726 if test "${HAS_OPENH323:-unset}" != "unset"; then
23727 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23728 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
23729 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
23730 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
23731 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23732 let OPENH323_REQ=1*10000+17*100+3
23734 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23735 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23736 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23737 { echo "$as_me:$LINENO: result: no" >&5
23738 echo "${ECHO_T}no" >&6; }
23739 unset HAS_OPENH323
23740 else
23741 { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23747 if test "${HAS_OPENH323:-unset}" != "unset"; then
23748 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23749 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23750 OPENH323_SUFFIX=
23751 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
23752 libfile=
23753 if test -n "$files"; then
23754 for f in $files; do
23755 if test -f $f -a ! -L $f; then
23756 libfile=`basename $f`
23757 break;
23759 done
23761 if test "${libfile:-unset}" != "unset"; then
23762 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23764 case "${OPENH323_SUFFIX}" in
23766 OPENH323_BUILD="notrace";;
23768 OPENH323_BUILD="opt";;
23770 OPENH323_BUILD="debug";;
23772 OPENH323_BUILD="notrace";;
23773 esac
23774 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23775 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23781 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23783 if test "${HAS_OPENH323:-unset}" != "unset"; then
23784 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23785 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23787 saved_cppflags="${CPPFLAGS}"
23788 saved_libs="${LIBS}"
23789 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23790 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23792 ac_ext=cpp
23793 ac_cpp='$CXXCPP $CPPFLAGS'
23794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 #include "ptlib.h"
23806 #include "h323.h"
23807 #include "h323ep.h"
23809 main ()
23811 H323EndPoint ep = H323EndPoint();
23813 return 0;
23815 _ACEOF
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (ac_try="$ac_link"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_link") 2>conftest.er1
23824 ac_status=$?
23825 grep -v '^ *+' conftest.er1 >conftest.err
23826 rm -f conftest.er1
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } && {
23830 test -z "$ac_cxx_werror_flag" ||
23831 test ! -s conftest.err
23832 } && test -s conftest$ac_exeext &&
23833 $as_test_x conftest$ac_exeext; then
23834 { echo "$as_me:$LINENO: result: yes" >&5
23835 echo "${ECHO_T}yes" >&6; }
23836 ac_cv_lib_OPENH323="yes"
23838 else
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 { echo "$as_me:$LINENO: result: no" >&5
23843 echo "${ECHO_T}no" >&6; }
23844 ac_cv_lib_OPENH323="no"
23849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850 conftest$ac_exeext conftest.$ac_ext
23852 ac_ext=c
23853 ac_cpp='$CPP $CPPFLAGS'
23854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23859 LIBS="${saved_libs}"
23860 CPPFLAGS="${saved_cppflags}"
23862 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23863 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23864 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23865 else
23866 OPENH323_LIB="-l${PLATFORM_OPENH323}"
23868 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23869 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
23871 PBX_OPENH323=1
23873 cat >>confdefs.h <<\_ACEOF
23874 #define HAVE_OPENH323 1
23875 _ACEOF
23881 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23882 { echo "$as_me:$LINENO: ***" >&5
23883 echo "$as_me: ***" >&6;}
23884 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23885 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23886 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23887 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23888 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23889 echo "$as_me: *** including --without-h323" >&6;}
23890 exit 1
23894 ac_ext=cpp
23895 ac_cpp='$CXXCPP $CPPFLAGS'
23896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23901 if test "${USE_QT}" != "no"; then
23902 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
23903 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
23904 saved_libs="${LIBS}"
23905 saved_cppflags="${CPPFLAGS}"
23906 if test "x${QT_DIR}" != "x"; then
23907 LIBS="${LIBS} -L${QT_DIR}/lib"
23908 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23910 LIBS="${LIBS} -lqt"
23911 qtlib="qt"
23912 cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h. */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h. */
23919 #include <qt3/qdatetime.h>
23921 main ()
23923 QDate date();
23925 return 0;
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_cxx_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ac_cv_lib_qt_qt_date="yes"
23948 else
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_cv_lib_qt_qt_date="no"
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23957 LIBS="${saved_libs}"
23958 CPPFLAGS="${saved_cppflags}"
23960 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
23961 saved_libs="${LIBS}"
23962 saved_cppflags="${CPPFLAGS}"
23963 if test "x${QT_DIR}" != "x"; then
23964 LIBS="${LIBS} -L${QT_DIR}/lib"
23965 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23967 LIBS="${LIBS} -lqt-mt"
23968 qtlib="qt-mt"
23969 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 #include <qt3/qdatetime.h>
23978 main ()
23980 QDate date();
23982 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (ac_try="$ac_link"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23991 esac
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_link") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_cxx_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest$ac_exeext &&
24003 $as_test_x conftest$ac_exeext; then
24004 ac_cv_lib_qt_qt_date="yes"
24005 else
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_lib_qt_qt_date="no"
24012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24013 conftest$ac_exeext conftest.$ac_ext
24014 LIBS="${saved_libs}"
24015 CPPFLAGS="${saved_cppflags}"
24018 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24019 { echo "$as_me:$LINENO: result: yes" >&5
24020 echo "${ECHO_T}yes" >&6; }
24021 else
24022 { echo "$as_me:$LINENO: result: no" >&5
24023 echo "${ECHO_T}no" >&6; }
24026 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24027 QT_LIB="-l${qtlib}"
24028 if test "${QT_DIR}" != ""; then
24029 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24030 QT_INCLUDE="-I${QT_DIR}/include"
24032 PBX_QT=1
24034 cat >>confdefs.h <<\_ACEOF
24035 #define HAVE_QT 1
24036 _ACEOF
24038 if test -n "$ac_tool_prefix"; then
24039 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24040 set dummy ${ac_tool_prefix}moc; ac_word=$2
24041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24043 if test "${ac_cv_path_QTMOC+set}" = set; then
24044 echo $ECHO_N "(cached) $ECHO_C" >&6
24045 else
24046 case $QTMOC in
24047 [\\/]* | ?:[\\/]*)
24048 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24052 for as_dir in $PATH
24054 IFS=$as_save_IFS
24055 test -z "$as_dir" && as_dir=.
24056 for ac_exec_ext in '' $ac_executable_extensions; do
24057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24058 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24060 break 2
24062 done
24063 done
24064 IFS=$as_save_IFS
24067 esac
24069 QTMOC=$ac_cv_path_QTMOC
24070 if test -n "$QTMOC"; then
24071 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24072 echo "${ECHO_T}$QTMOC" >&6; }
24073 else
24074 { echo "$as_me:$LINENO: result: no" >&5
24075 echo "${ECHO_T}no" >&6; }
24080 if test -z "$ac_cv_path_QTMOC"; then
24081 ac_pt_QTMOC=$QTMOC
24082 # Extract the first word of "moc", so it can be a program name with args.
24083 set dummy moc; ac_word=$2
24084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24086 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089 case $ac_pt_QTMOC in
24090 [\\/]* | ?:[\\/]*)
24091 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24095 for as_dir in $PATH
24097 IFS=$as_save_IFS
24098 test -z "$as_dir" && as_dir=.
24099 for ac_exec_ext in '' $ac_executable_extensions; do
24100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24101 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24103 break 2
24105 done
24106 done
24107 IFS=$as_save_IFS
24110 esac
24112 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24113 if test -n "$ac_pt_QTMOC"; then
24114 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24115 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24116 else
24117 { echo "$as_me:$LINENO: result: no" >&5
24118 echo "${ECHO_T}no" >&6; }
24121 if test "x$ac_pt_QTMOC" = x; then
24122 QTMOC="No"
24123 else
24124 case $cross_compiling:$ac_tool_warned in
24125 yes:)
24126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24127 whose name does not start with the host triplet. If you think this
24128 configuration is useful to you, please write to autoconf@gnu.org." >&5
24129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24130 whose name does not start with the host triplet. If you think this
24131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24132 ac_tool_warned=yes ;;
24133 esac
24134 QTMOC=$ac_pt_QTMOC
24136 else
24137 QTMOC="$ac_cv_path_QTMOC"
24140 elif test ! -z "${QT_MANDATORY}";
24141 then
24142 { echo "$as_me:$LINENO: ***" >&5
24143 echo "$as_me: ***" >&6;}
24144 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24145 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24146 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24147 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24148 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24149 echo "$as_me: *** including --without-qt." >&6;}
24150 exit 1
24154 ac_ext=c
24155 ac_cpp='$CPP $CPPFLAGS'
24156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24162 if test "${USE_RADIUS}" != "no"; then
24163 pbxlibdir=""
24164 if test "x${RADIUS_DIR}" != "x"; then
24165 if test -d ${RADIUS_DIR}/lib; then
24166 pbxlibdir="-L${RADIUS_DIR}/lib"
24167 else
24168 pbxlibdir="-L${RADIUS_DIR}"
24171 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24172 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24173 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176 ac_check_lib_save_LIBS=$LIBS
24177 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24178 cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h. */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24185 /* Override any GCC internal prototype to avoid an error.
24186 Use char because int might match the return type of a GCC
24187 builtin and then its argument prototype would still apply. */
24188 #ifdef __cplusplus
24189 extern "C"
24190 #endif
24191 char rc_read_config ();
24193 main ()
24195 return rc_read_config ();
24197 return 0;
24199 _ACEOF
24200 rm -f conftest.$ac_objext conftest$ac_exeext
24201 if { (ac_try="$ac_link"
24202 case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24205 esac
24206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207 (eval "$ac_link") 2>conftest.er1
24208 ac_status=$?
24209 grep -v '^ *+' conftest.er1 >conftest.err
24210 rm -f conftest.er1
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest$ac_exeext &&
24217 $as_test_x conftest$ac_exeext; then
24218 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24219 else
24220 echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24223 ac_cv_lib_radiusclient_ng_rc_read_config=no
24226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24227 conftest$ac_exeext conftest.$ac_ext
24228 LIBS=$ac_check_lib_save_LIBS
24230 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24231 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24232 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24233 AST_RADIUS_FOUND=yes
24234 else
24235 AST_RADIUS_FOUND=no
24239 if test "${AST_RADIUS_FOUND}" = "yes"; then
24240 RADIUS_LIB="-lradiusclient-ng "
24241 RADIUS_HEADER_FOUND="1"
24242 if test "x${RADIUS_DIR}" != "x"; then
24243 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24244 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24245 if test "xradiusclient-ng.h" != "x" ; then
24246 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24248 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24249 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24251 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 ac_res=`eval echo '${'$as_ac_Header'}'`
24254 { echo "$as_me:$LINENO: result: $ac_res" >&5
24255 echo "${ECHO_T}$ac_res" >&6; }
24256 else
24257 # Is the header compilable?
24258 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24259 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 $ac_includes_default
24267 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24268 _ACEOF
24269 rm -f conftest.$ac_objext
24270 if { (ac_try="$ac_compile"
24271 case "(($ac_try" in
24272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24273 *) ac_try_echo=$ac_try;;
24274 esac
24275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24276 (eval "$ac_compile") 2>conftest.er1
24277 ac_status=$?
24278 grep -v '^ *+' conftest.er1 >conftest.err
24279 rm -f conftest.er1
24280 cat conftest.err >&5
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } && {
24283 test -z "$ac_c_werror_flag" ||
24284 test ! -s conftest.err
24285 } && test -s conftest.$ac_objext; then
24286 ac_header_compiler=yes
24287 else
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24291 ac_header_compiler=no
24294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24296 echo "${ECHO_T}$ac_header_compiler" >&6; }
24298 # Is the header present?
24299 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24300 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24301 cat >conftest.$ac_ext <<_ACEOF
24302 /* confdefs.h. */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24308 _ACEOF
24309 if { (ac_try="$ac_cpp conftest.$ac_ext"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24316 ac_status=$?
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } >/dev/null && {
24322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24323 test ! -s conftest.err
24324 }; then
24325 ac_header_preproc=yes
24326 else
24327 echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24330 ac_header_preproc=no
24333 rm -f conftest.err conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24335 echo "${ECHO_T}$ac_header_preproc" >&6; }
24337 # So? What about this header?
24338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24339 yes:no: )
24340 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24341 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24342 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24343 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24344 ac_header_preproc=yes
24346 no:yes:* )
24347 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24348 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24349 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24350 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24351 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24352 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24353 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24354 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24355 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24356 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24358 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24361 esac
24362 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24363 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367 eval "$as_ac_Header=\$ac_header_preproc"
24369 ac_res=`eval echo '${'$as_ac_Header'}'`
24370 { echo "$as_me:$LINENO: result: $ac_res" >&5
24371 echo "${ECHO_T}$ac_res" >&6; }
24374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24375 RADIUS_HEADER_FOUND=1
24376 else
24377 RADIUS_HEADER_FOUND=0
24382 else
24383 if test "xradiusclient-ng.h" != "x" ; then
24384 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24385 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24386 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24391 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24392 else
24393 # Is the header compilable?
24394 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24395 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24396 cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h. */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 $ac_includes_default
24403 #include <radiusclient-ng.h>
24404 _ACEOF
24405 rm -f conftest.$ac_objext
24406 if { (ac_try="$ac_compile"
24407 case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_compile") 2>conftest.er1
24413 ac_status=$?
24414 grep -v '^ *+' conftest.er1 >conftest.err
24415 rm -f conftest.er1
24416 cat conftest.err >&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } && {
24419 test -z "$ac_c_werror_flag" ||
24420 test ! -s conftest.err
24421 } && test -s conftest.$ac_objext; then
24422 ac_header_compiler=yes
24423 else
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24427 ac_header_compiler=no
24430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24432 echo "${ECHO_T}$ac_header_compiler" >&6; }
24434 # Is the header present?
24435 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24436 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h. */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 #include <radiusclient-ng.h>
24444 _ACEOF
24445 if { (ac_try="$ac_cpp conftest.$ac_ext"
24446 case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24449 esac
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24452 ac_status=$?
24453 grep -v '^ *+' conftest.er1 >conftest.err
24454 rm -f conftest.er1
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } >/dev/null && {
24458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24459 test ! -s conftest.err
24460 }; then
24461 ac_header_preproc=yes
24462 else
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ac_header_preproc=no
24469 rm -f conftest.err conftest.$ac_ext
24470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24471 echo "${ECHO_T}$ac_header_preproc" >&6; }
24473 # So? What about this header?
24474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24475 yes:no: )
24476 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24477 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24478 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24479 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24480 ac_header_preproc=yes
24482 no:yes:* )
24483 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24484 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24485 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24486 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24487 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24488 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24489 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24490 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24491 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24492 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24493 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24494 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24497 esac
24498 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24499 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24500 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24501 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 else
24503 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24505 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24506 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24509 if test $ac_cv_header_radiusclient_ng_h = yes; then
24510 RADIUS_HEADER_FOUND=1
24511 else
24512 RADIUS_HEADER_FOUND=0
24518 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24519 if test ! -z "${RADIUS_MANDATORY}" ;
24520 then
24521 { echo "$as_me:$LINENO: ***" >&5
24522 echo "$as_me: ***" >&6;}
24523 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24524 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24525 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24526 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24527 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24528 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24529 exit 1
24531 RADIUS_LIB=""
24532 RADIUS_INCLUDE=""
24533 PBX_RADIUS=0
24534 else
24535 PBX_RADIUS=1
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_RADIUS 1
24539 _ACEOF
24542 elif test ! -z "${RADIUS_MANDATORY}";
24543 then
24544 { echo "$as_me:$LINENO: ***" >&5
24545 echo "$as_me: ***" >&6;}
24546 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24547 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24548 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24549 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24550 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24551 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24552 exit 1
24558 if test "${USE_SPEEX}" != "no"; then
24559 pbxlibdir=""
24560 if test "x${SPEEX_DIR}" != "x"; then
24561 if test -d ${SPEEX_DIR}/lib; then
24562 pbxlibdir="-L${SPEEX_DIR}/lib"
24563 else
24564 pbxlibdir="-L${SPEEX_DIR}"
24567 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24568 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24569 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24571 else
24572 ac_check_lib_save_LIBS=$LIBS
24573 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24574 cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h. */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24581 /* Override any GCC internal prototype to avoid an error.
24582 Use char because int might match the return type of a GCC
24583 builtin and then its argument prototype would still apply. */
24584 #ifdef __cplusplus
24585 extern "C"
24586 #endif
24587 char speex_encode ();
24589 main ()
24591 return speex_encode ();
24593 return 0;
24595 _ACEOF
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (ac_try="$ac_link"
24598 case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601 esac
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_link") 2>conftest.er1
24604 ac_status=$?
24605 grep -v '^ *+' conftest.er1 >conftest.err
24606 rm -f conftest.er1
24607 cat conftest.err >&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } && {
24610 test -z "$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24612 } && test -s conftest$ac_exeext &&
24613 $as_test_x conftest$ac_exeext; then
24614 ac_cv_lib_speex_speex_encode=yes
24615 else
24616 echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24619 ac_cv_lib_speex_speex_encode=no
24622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24623 conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24626 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24627 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24628 if test $ac_cv_lib_speex_speex_encode = yes; then
24629 AST_SPEEX_FOUND=yes
24630 else
24631 AST_SPEEX_FOUND=no
24635 if test "${AST_SPEEX_FOUND}" = "yes"; then
24636 SPEEX_LIB="-lspeex -lm"
24637 SPEEX_HEADER_FOUND="1"
24638 if test "x${SPEEX_DIR}" != "x"; then
24639 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
24640 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
24641 if test "xspeex/speex.h" != "x" ; then
24642 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24644 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24645 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 ac_res=`eval echo '${'$as_ac_Header'}'`
24650 { echo "$as_me:$LINENO: result: $ac_res" >&5
24651 echo "${ECHO_T}$ac_res" >&6; }
24652 else
24653 # Is the header compilable?
24654 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24655 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24656 cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h. */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24663 #include <${SPEEX_DIR}/include/speex/speex.h>
24664 _ACEOF
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24673 ac_status=$?
24674 grep -v '^ *+' conftest.er1 >conftest.err
24675 rm -f conftest.er1
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest.$ac_objext; then
24682 ac_header_compiler=yes
24683 else
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ac_header_compiler=no
24690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24692 echo "${ECHO_T}$ac_header_compiler" >&6; }
24694 # Is the header present?
24695 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24696 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24697 cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h. */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 #include <${SPEEX_DIR}/include/speex/speex.h>
24704 _ACEOF
24705 if { (ac_try="$ac_cpp conftest.$ac_ext"
24706 case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } >/dev/null && {
24718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 }; then
24721 ac_header_preproc=yes
24722 else
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_header_preproc=no
24729 rm -f conftest.err conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24731 echo "${ECHO_T}$ac_header_preproc" >&6; }
24733 # So? What about this header?
24734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24735 yes:no: )
24736 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24737 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24738 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24739 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24740 ac_header_preproc=yes
24742 no:yes:* )
24743 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24744 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24746 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24748 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24750 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24752 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24754 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24757 esac
24758 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24759 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763 eval "$as_ac_Header=\$ac_header_preproc"
24765 ac_res=`eval echo '${'$as_ac_Header'}'`
24766 { echo "$as_me:$LINENO: result: $ac_res" >&5
24767 echo "${ECHO_T}$ac_res" >&6; }
24770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24771 SPEEX_HEADER_FOUND=1
24772 else
24773 SPEEX_HEADER_FOUND=0
24778 else
24779 if test "xspeex/speex.h" != "x" ; then
24780 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24781 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24782 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24783 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24787 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24788 else
24789 # Is the header compilable?
24790 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24791 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h. */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 $ac_includes_default
24799 #include <speex/speex.h>
24800 _ACEOF
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24809 ac_status=$?
24810 grep -v '^ *+' conftest.er1 >conftest.err
24811 rm -f conftest.er1
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24818 ac_header_compiler=yes
24819 else
24820 echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ac_header_compiler=no
24826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 echo "${ECHO_T}$ac_header_compiler" >&6; }
24830 # Is the header present?
24831 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24832 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24833 cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h. */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <speex/speex.h>
24840 _ACEOF
24841 if { (ac_try="$ac_cpp conftest.$ac_ext"
24842 case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24845 esac
24846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24848 ac_status=$?
24849 grep -v '^ *+' conftest.er1 >conftest.err
24850 rm -f conftest.er1
24851 cat conftest.err >&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } >/dev/null && {
24854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24855 test ! -s conftest.err
24856 }; then
24857 ac_header_preproc=yes
24858 else
24859 echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24862 ac_header_preproc=no
24865 rm -f conftest.err conftest.$ac_ext
24866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24867 echo "${ECHO_T}$ac_header_preproc" >&6; }
24869 # So? What about this header?
24870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24871 yes:no: )
24872 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24873 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24875 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24876 ac_header_preproc=yes
24878 no:yes:* )
24879 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24880 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24882 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24884 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24885 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24886 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24887 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24888 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24889 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
24890 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
24893 esac
24894 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24895 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24896 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899 ac_cv_header_speex_speex_h=$ac_header_preproc
24901 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24902 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24905 if test $ac_cv_header_speex_speex_h = yes; then
24906 SPEEX_HEADER_FOUND=1
24907 else
24908 SPEEX_HEADER_FOUND=0
24914 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
24915 if test ! -z "${SPEEX_MANDATORY}" ;
24916 then
24917 { echo "$as_me:$LINENO: ***" >&5
24918 echo "$as_me: ***" >&6;}
24919 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
24920 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
24921 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
24922 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
24923 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24924 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24925 exit 1
24927 SPEEX_LIB=""
24928 SPEEX_INCLUDE=""
24929 PBX_SPEEX=0
24930 else
24931 PBX_SPEEX=1
24933 cat >>confdefs.h <<_ACEOF
24934 #define HAVE_SPEEX 1
24935 _ACEOF
24938 elif test ! -z "${SPEEX_MANDATORY}";
24939 then
24940 { echo "$as_me:$LINENO: ***" >&5
24941 echo "$as_me: ***" >&6;}
24942 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
24943 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
24944 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24945 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24946 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24947 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24948 exit 1
24954 if test "${USE_SQLITE}" != "no"; then
24955 pbxlibdir=""
24956 if test "x${SQLITE_DIR}" != "x"; then
24957 if test -d ${SQLITE_DIR}/lib; then
24958 pbxlibdir="-L${SQLITE_DIR}/lib"
24959 else
24960 pbxlibdir="-L${SQLITE_DIR}"
24963 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
24964 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
24965 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
24966 echo $ECHO_N "(cached) $ECHO_C" >&6
24967 else
24968 ac_check_lib_save_LIBS=$LIBS
24969 LIBS="-lsqlite ${pbxlibdir} $LIBS"
24970 cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h. */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24977 /* Override any GCC internal prototype to avoid an error.
24978 Use char because int might match the return type of a GCC
24979 builtin and then its argument prototype would still apply. */
24980 #ifdef __cplusplus
24981 extern "C"
24982 #endif
24983 char sqlite_exec ();
24985 main ()
24987 return sqlite_exec ();
24989 return 0;
24991 _ACEOF
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (ac_try="$ac_link"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest$ac_exeext &&
25009 $as_test_x conftest$ac_exeext; then
25010 ac_cv_lib_sqlite_sqlite_exec=yes
25011 else
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_cv_lib_sqlite_sqlite_exec=no
25018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25019 conftest$ac_exeext conftest.$ac_ext
25020 LIBS=$ac_check_lib_save_LIBS
25022 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25023 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25024 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25025 AST_SQLITE_FOUND=yes
25026 else
25027 AST_SQLITE_FOUND=no
25031 if test "${AST_SQLITE_FOUND}" = "yes"; then
25032 SQLITE_LIB="-lsqlite "
25033 SQLITE_HEADER_FOUND="1"
25034 if test "x${SQLITE_DIR}" != "x"; then
25035 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25036 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25037 if test "xsqlite.h" != "x" ; then
25038 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25040 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25041 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25043 echo $ECHO_N "(cached) $ECHO_C" >&6
25045 ac_res=`eval echo '${'$as_ac_Header'}'`
25046 { echo "$as_me:$LINENO: result: $ac_res" >&5
25047 echo "${ECHO_T}$ac_res" >&6; }
25048 else
25049 # Is the header compilable?
25050 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25051 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 $ac_includes_default
25059 #include <${SQLITE_DIR}/include/sqlite.h>
25060 _ACEOF
25061 rm -f conftest.$ac_objext
25062 if { (ac_try="$ac_compile"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_compile") 2>conftest.er1
25069 ac_status=$?
25070 grep -v '^ *+' conftest.er1 >conftest.err
25071 rm -f conftest.er1
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && {
25075 test -z "$ac_c_werror_flag" ||
25076 test ! -s conftest.err
25077 } && test -s conftest.$ac_objext; then
25078 ac_header_compiler=yes
25079 else
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 ac_header_compiler=no
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25088 echo "${ECHO_T}$ac_header_compiler" >&6; }
25090 # Is the header present?
25091 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25092 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h. */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 #include <${SQLITE_DIR}/include/sqlite.h>
25100 _ACEOF
25101 if { (ac_try="$ac_cpp conftest.$ac_ext"
25102 case "(($ac_try" in
25103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25105 esac
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25108 ac_status=$?
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } >/dev/null && {
25114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 }; then
25117 ac_header_preproc=yes
25118 else
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 ac_header_preproc=no
25125 rm -f conftest.err conftest.$ac_ext
25126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25127 echo "${ECHO_T}$ac_header_preproc" >&6; }
25129 # So? What about this header?
25130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25131 yes:no: )
25132 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25133 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25134 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25135 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25136 ac_header_preproc=yes
25138 no:yes:* )
25139 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25140 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25141 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25142 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25143 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25144 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25145 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25146 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25147 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25148 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25149 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25150 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25153 esac
25154 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25155 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 else
25159 eval "$as_ac_Header=\$ac_header_preproc"
25161 ac_res=`eval echo '${'$as_ac_Header'}'`
25162 { echo "$as_me:$LINENO: result: $ac_res" >&5
25163 echo "${ECHO_T}$ac_res" >&6; }
25166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25167 SQLITE_HEADER_FOUND=1
25168 else
25169 SQLITE_HEADER_FOUND=0
25174 else
25175 if test "xsqlite.h" != "x" ; then
25176 if test "${ac_cv_header_sqlite_h+set}" = set; then
25177 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25178 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25179 if test "${ac_cv_header_sqlite_h+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25183 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25184 else
25185 # Is the header compilable?
25186 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25187 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25188 cat >conftest.$ac_ext <<_ACEOF
25189 /* confdefs.h. */
25190 _ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 $ac_includes_default
25195 #include <sqlite.h>
25196 _ACEOF
25197 rm -f conftest.$ac_objext
25198 if { (ac_try="$ac_compile"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25205 ac_status=$?
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest.$ac_objext; then
25214 ac_header_compiler=yes
25215 else
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 ac_header_compiler=no
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25224 echo "${ECHO_T}$ac_header_compiler" >&6; }
25226 # Is the header present?
25227 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25228 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25229 cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h. */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <sqlite.h>
25236 _ACEOF
25237 if { (ac_try="$ac_cpp conftest.$ac_ext"
25238 case "(($ac_try" in
25239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25241 esac
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25244 ac_status=$?
25245 grep -v '^ *+' conftest.er1 >conftest.err
25246 rm -f conftest.er1
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } >/dev/null && {
25250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25251 test ! -s conftest.err
25252 }; then
25253 ac_header_preproc=yes
25254 else
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ac_header_preproc=no
25261 rm -f conftest.err conftest.$ac_ext
25262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25263 echo "${ECHO_T}$ac_header_preproc" >&6; }
25265 # So? What about this header?
25266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25267 yes:no: )
25268 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25269 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25271 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25272 ac_header_preproc=yes
25274 no:yes:* )
25275 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25276 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25278 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25280 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25282 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25284 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25285 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25286 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25289 esac
25290 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25291 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25292 if test "${ac_cv_header_sqlite_h+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295 ac_cv_header_sqlite_h=$ac_header_preproc
25297 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25298 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25301 if test $ac_cv_header_sqlite_h = yes; then
25302 SQLITE_HEADER_FOUND=1
25303 else
25304 SQLITE_HEADER_FOUND=0
25310 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25311 if test ! -z "${SQLITE_MANDATORY}" ;
25312 then
25313 { echo "$as_me:$LINENO: ***" >&5
25314 echo "$as_me: ***" >&6;}
25315 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25316 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25317 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25318 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25319 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25320 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25321 exit 1
25323 SQLITE_LIB=""
25324 SQLITE_INCLUDE=""
25325 PBX_SQLITE=0
25326 else
25327 PBX_SQLITE=1
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_SQLITE 1
25331 _ACEOF
25334 elif test ! -z "${SQLITE_MANDATORY}";
25335 then
25336 { echo "$as_me:$LINENO: ***" >&5
25337 echo "$as_me: ***" >&6;}
25338 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25339 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25340 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25341 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25342 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25343 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25344 exit 1
25350 if test "${USE_OPENSSL}" != "no"; then
25351 pbxlibdir=""
25352 if test "x${OPENSSL_DIR}" != "x"; then
25353 if test -d ${OPENSSL_DIR}/lib; then
25354 pbxlibdir="-L${OPENSSL_DIR}/lib"
25355 else
25356 pbxlibdir="-L${OPENSSL_DIR}"
25359 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25360 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25361 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25363 else
25364 ac_check_lib_save_LIBS=$LIBS
25365 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25366 cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h. */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25373 /* Override any GCC internal prototype to avoid an error.
25374 Use char because int might match the return type of a GCC
25375 builtin and then its argument prototype would still apply. */
25376 #ifdef __cplusplus
25377 extern "C"
25378 #endif
25379 char ssl2_connect ();
25381 main ()
25383 return ssl2_connect ();
25385 return 0;
25387 _ACEOF
25388 rm -f conftest.$ac_objext conftest$ac_exeext
25389 if { (ac_try="$ac_link"
25390 case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25393 esac
25394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25395 (eval "$ac_link") 2>conftest.er1
25396 ac_status=$?
25397 grep -v '^ *+' conftest.er1 >conftest.err
25398 rm -f conftest.er1
25399 cat conftest.err >&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } && {
25402 test -z "$ac_c_werror_flag" ||
25403 test ! -s conftest.err
25404 } && test -s conftest$ac_exeext &&
25405 $as_test_x conftest$ac_exeext; then
25406 ac_cv_lib_ssl_ssl2_connect=yes
25407 else
25408 echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25411 ac_cv_lib_ssl_ssl2_connect=no
25414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25415 conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25418 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25419 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25420 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25421 AST_OPENSSL_FOUND=yes
25422 else
25423 AST_OPENSSL_FOUND=no
25427 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25428 OPENSSL_LIB="-lssl -lcrypto"
25429 OPENSSL_HEADER_FOUND="1"
25430 if test "x${OPENSSL_DIR}" != "x"; then
25431 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
25432 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
25433 if test "xopenssl/ssl.h" != "x" ; then
25434 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25436 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25437 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 ac_res=`eval echo '${'$as_ac_Header'}'`
25442 { echo "$as_me:$LINENO: result: $ac_res" >&5
25443 echo "${ECHO_T}$ac_res" >&6; }
25444 else
25445 # Is the header compilable?
25446 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25447 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25456 _ACEOF
25457 rm -f conftest.$ac_objext
25458 if { (ac_try="$ac_compile"
25459 case "(($ac_try" in
25460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25461 *) ac_try_echo=$ac_try;;
25462 esac
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464 (eval "$ac_compile") 2>conftest.er1
25465 ac_status=$?
25466 grep -v '^ *+' conftest.er1 >conftest.err
25467 rm -f conftest.er1
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && {
25471 test -z "$ac_c_werror_flag" ||
25472 test ! -s conftest.err
25473 } && test -s conftest.$ac_objext; then
25474 ac_header_compiler=yes
25475 else
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_header_compiler=no
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25484 echo "${ECHO_T}$ac_header_compiler" >&6; }
25486 # Is the header present?
25487 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25488 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25489 cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h. */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25496 _ACEOF
25497 if { (ac_try="$ac_cpp conftest.$ac_ext"
25498 case "(($ac_try" in
25499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25501 esac
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25504 ac_status=$?
25505 grep -v '^ *+' conftest.er1 >conftest.err
25506 rm -f conftest.er1
25507 cat conftest.err >&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } >/dev/null && {
25510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 }; then
25513 ac_header_preproc=yes
25514 else
25515 echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25518 ac_header_preproc=no
25521 rm -f conftest.err conftest.$ac_ext
25522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25523 echo "${ECHO_T}$ac_header_preproc" >&6; }
25525 # So? What about this header?
25526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25527 yes:no: )
25528 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25529 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25531 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25532 ac_header_preproc=yes
25534 no:yes:* )
25535 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25536 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25537 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25538 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25539 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25540 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25541 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25542 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25544 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25546 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25549 esac
25550 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25551 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555 eval "$as_ac_Header=\$ac_header_preproc"
25557 ac_res=`eval echo '${'$as_ac_Header'}'`
25558 { echo "$as_me:$LINENO: result: $ac_res" >&5
25559 echo "${ECHO_T}$ac_res" >&6; }
25562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25563 OPENSSL_HEADER_FOUND=1
25564 else
25565 OPENSSL_HEADER_FOUND=0
25570 else
25571 if test "xopenssl/ssl.h" != "x" ; then
25572 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25573 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25574 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25575 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25579 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25580 else
25581 # Is the header compilable?
25582 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25583 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25584 cat >conftest.$ac_ext <<_ACEOF
25585 /* confdefs.h. */
25586 _ACEOF
25587 cat confdefs.h >>conftest.$ac_ext
25588 cat >>conftest.$ac_ext <<_ACEOF
25589 /* end confdefs.h. */
25590 $ac_includes_default
25591 #include <openssl/ssl.h>
25592 _ACEOF
25593 rm -f conftest.$ac_objext
25594 if { (ac_try="$ac_compile"
25595 case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25598 esac
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600 (eval "$ac_compile") 2>conftest.er1
25601 ac_status=$?
25602 grep -v '^ *+' conftest.er1 >conftest.err
25603 rm -f conftest.er1
25604 cat conftest.err >&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); } && {
25607 test -z "$ac_c_werror_flag" ||
25608 test ! -s conftest.err
25609 } && test -s conftest.$ac_objext; then
25610 ac_header_compiler=yes
25611 else
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 ac_header_compiler=no
25618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25620 echo "${ECHO_T}$ac_header_compiler" >&6; }
25622 # Is the header present?
25623 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25624 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 #include <openssl/ssl.h>
25632 _ACEOF
25633 if { (ac_try="$ac_cpp conftest.$ac_ext"
25634 case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25637 esac
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25640 ac_status=$?
25641 grep -v '^ *+' conftest.er1 >conftest.err
25642 rm -f conftest.er1
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } >/dev/null && {
25646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25648 }; then
25649 ac_header_preproc=yes
25650 else
25651 echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 ac_header_preproc=no
25657 rm -f conftest.err conftest.$ac_ext
25658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25659 echo "${ECHO_T}$ac_header_preproc" >&6; }
25661 # So? What about this header?
25662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25663 yes:no: )
25664 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25665 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25667 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25668 ac_header_preproc=yes
25670 no:yes:* )
25671 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25672 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25673 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25674 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25675 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25676 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25678 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25679 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25680 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25682 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25685 esac
25686 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25687 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25688 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691 ac_cv_header_openssl_ssl_h=$ac_header_preproc
25693 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25694 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25697 if test $ac_cv_header_openssl_ssl_h = yes; then
25698 OPENSSL_HEADER_FOUND=1
25699 else
25700 OPENSSL_HEADER_FOUND=0
25706 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25707 if test ! -z "${OPENSSL_MANDATORY}" ;
25708 then
25709 { echo "$as_me:$LINENO: ***" >&5
25710 echo "$as_me: ***" >&6;}
25711 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25712 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25713 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25714 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25715 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25716 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25717 exit 1
25719 OPENSSL_LIB=""
25720 OPENSSL_INCLUDE=""
25721 PBX_OPENSSL=0
25722 else
25723 PBX_OPENSSL=1
25725 cat >>confdefs.h <<_ACEOF
25726 #define HAVE_OPENSSL 1
25727 _ACEOF
25730 elif test ! -z "${OPENSSL_MANDATORY}";
25731 then
25732 { echo "$as_me:$LINENO: ***" >&5
25733 echo "$as_me: ***" >&6;}
25734 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25735 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25736 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25737 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25738 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25739 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25740 exit 1
25746 if test "${USE_FREETDS}" != "no"; then
25747 pbxlibdir=""
25748 if test "x${FREETDS_DIR}" != "x"; then
25749 if test -d ${FREETDS_DIR}/lib; then
25750 pbxlibdir="-L${FREETDS_DIR}/lib"
25751 else
25752 pbxlibdir="-L${FREETDS_DIR}"
25755 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25756 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25757 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25758 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 else
25760 ac_check_lib_save_LIBS=$LIBS
25761 LIBS="-ltds ${pbxlibdir} $LIBS"
25762 cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h. */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25769 /* Override any GCC internal prototype to avoid an error.
25770 Use char because int might match the return type of a GCC
25771 builtin and then its argument prototype would still apply. */
25772 #ifdef __cplusplus
25773 extern "C"
25774 #endif
25775 char tds_version ();
25777 main ()
25779 return tds_version ();
25781 return 0;
25783 _ACEOF
25784 rm -f conftest.$ac_objext conftest$ac_exeext
25785 if { (ac_try="$ac_link"
25786 case "(($ac_try" in
25787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25788 *) ac_try_echo=$ac_try;;
25789 esac
25790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25791 (eval "$ac_link") 2>conftest.er1
25792 ac_status=$?
25793 grep -v '^ *+' conftest.er1 >conftest.err
25794 rm -f conftest.er1
25795 cat conftest.err >&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); } && {
25798 test -z "$ac_c_werror_flag" ||
25799 test ! -s conftest.err
25800 } && test -s conftest$ac_exeext &&
25801 $as_test_x conftest$ac_exeext; then
25802 ac_cv_lib_tds_tds_version=yes
25803 else
25804 echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25807 ac_cv_lib_tds_tds_version=no
25810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25811 conftest$ac_exeext conftest.$ac_ext
25812 LIBS=$ac_check_lib_save_LIBS
25814 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25815 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25816 if test $ac_cv_lib_tds_tds_version = yes; then
25817 AST_FREETDS_FOUND=yes
25818 else
25819 AST_FREETDS_FOUND=no
25823 if test "${AST_FREETDS_FOUND}" = "yes"; then
25824 FREETDS_LIB="-ltds "
25825 FREETDS_HEADER_FOUND="1"
25826 if test "x${FREETDS_DIR}" != "x"; then
25827 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25828 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25829 if test "xtds.h" != "x" ; then
25830 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
25831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25832 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25833 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 ac_res=`eval echo '${'$as_ac_Header'}'`
25838 { echo "$as_me:$LINENO: result: $ac_res" >&5
25839 echo "${ECHO_T}$ac_res" >&6; }
25840 else
25841 # Is the header compilable?
25842 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25843 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h. */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25851 #include <${FREETDS_DIR}/include/tds.h>
25852 _ACEOF
25853 rm -f conftest.$ac_objext
25854 if { (ac_try="$ac_compile"
25855 case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_compile") 2>conftest.er1
25861 ac_status=$?
25862 grep -v '^ *+' conftest.er1 >conftest.err
25863 rm -f conftest.er1
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && {
25867 test -z "$ac_c_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest.$ac_objext; then
25870 ac_header_compiler=yes
25871 else
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25875 ac_header_compiler=no
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25880 echo "${ECHO_T}$ac_header_compiler" >&6; }
25882 # Is the header present?
25883 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25884 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25885 cat >conftest.$ac_ext <<_ACEOF
25886 /* confdefs.h. */
25887 _ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 #include <${FREETDS_DIR}/include/tds.h>
25892 _ACEOF
25893 if { (ac_try="$ac_cpp conftest.$ac_ext"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25897 esac
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } >/dev/null && {
25906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25907 test ! -s conftest.err
25908 }; then
25909 ac_header_preproc=yes
25910 else
25911 echo "$as_me: failed program was:" >&5
25912 sed 's/^/| /' conftest.$ac_ext >&5
25914 ac_header_preproc=no
25917 rm -f conftest.err conftest.$ac_ext
25918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25919 echo "${ECHO_T}$ac_header_preproc" >&6; }
25921 # So? What about this header?
25922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25923 yes:no: )
25924 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25925 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25926 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
25927 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
25928 ac_header_preproc=yes
25930 no:yes:* )
25931 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
25932 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
25933 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
25934 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
25936 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
25938 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
25940 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
25942 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
25945 esac
25946 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25947 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 else
25951 eval "$as_ac_Header=\$ac_header_preproc"
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954 { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25959 FREETDS_HEADER_FOUND=1
25960 else
25961 FREETDS_HEADER_FOUND=0
25966 else
25967 if test "xtds.h" != "x" ; then
25968 if test "${ac_cv_header_tds_h+set}" = set; then
25969 { echo "$as_me:$LINENO: checking for tds.h" >&5
25970 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25971 if test "${ac_cv_header_tds_h+set}" = set; then
25972 echo $ECHO_N "(cached) $ECHO_C" >&6
25974 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25975 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25976 else
25977 # Is the header compilable?
25978 { echo "$as_me:$LINENO: checking tds.h usability" >&5
25979 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
25980 cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h. */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25986 $ac_includes_default
25987 #include <tds.h>
25988 _ACEOF
25989 rm -f conftest.$ac_objext
25990 if { (ac_try="$ac_compile"
25991 case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_compile") 2>conftest.er1
25997 ac_status=$?
25998 grep -v '^ *+' conftest.er1 >conftest.err
25999 rm -f conftest.er1
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest.$ac_objext; then
26006 ac_header_compiler=yes
26007 else
26008 echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26011 ac_header_compiler=no
26014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26016 echo "${ECHO_T}$ac_header_compiler" >&6; }
26018 # Is the header present?
26019 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26020 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26021 cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h. */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 #include <tds.h>
26028 _ACEOF
26029 if { (ac_try="$ac_cpp conftest.$ac_ext"
26030 case "(($ac_try" in
26031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032 *) ac_try_echo=$ac_try;;
26033 esac
26034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26036 ac_status=$?
26037 grep -v '^ *+' conftest.er1 >conftest.err
26038 rm -f conftest.er1
26039 cat conftest.err >&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } >/dev/null && {
26042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26044 }; then
26045 ac_header_preproc=yes
26046 else
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_header_preproc=no
26053 rm -f conftest.err conftest.$ac_ext
26054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26055 echo "${ECHO_T}$ac_header_preproc" >&6; }
26057 # So? What about this header?
26058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26059 yes:no: )
26060 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26061 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26063 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26064 ac_header_preproc=yes
26066 no:yes:* )
26067 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26068 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26069 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26070 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26071 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26072 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26074 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26076 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26078 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26081 esac
26082 { echo "$as_me:$LINENO: checking for tds.h" >&5
26083 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26084 if test "${ac_cv_header_tds_h+set}" = set; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 else
26087 ac_cv_header_tds_h=$ac_header_preproc
26089 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26090 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26093 if test $ac_cv_header_tds_h = yes; then
26094 FREETDS_HEADER_FOUND=1
26095 else
26096 FREETDS_HEADER_FOUND=0
26102 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26103 if test ! -z "${FREETDS_MANDATORY}" ;
26104 then
26105 { echo "$as_me:$LINENO: ***" >&5
26106 echo "$as_me: ***" >&6;}
26107 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26108 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26109 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26110 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26111 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26112 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26113 exit 1
26115 FREETDS_LIB=""
26116 FREETDS_INCLUDE=""
26117 PBX_FREETDS=0
26118 else
26119 PBX_FREETDS=1
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_FREETDS 1
26123 _ACEOF
26126 elif test ! -z "${FREETDS_MANDATORY}";
26127 then
26128 { echo "$as_me:$LINENO: ***" >&5
26129 echo "$as_me: ***" >&6;}
26130 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26131 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26132 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26133 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26134 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26135 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26136 exit 1
26140 if test "${PBX_FREETDS}" != "0";
26141 then
26142 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26143 *0.64*)
26144 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26146 *0.63*)
26147 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26149 *0.62*)
26150 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26153 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26155 esac
26159 if test "${USE_TERMCAP}" != "no"; then
26160 pbxlibdir=""
26161 if test "x${TERMCAP_DIR}" != "x"; then
26162 if test -d ${TERMCAP_DIR}/lib; then
26163 pbxlibdir="-L${TERMCAP_DIR}/lib"
26164 else
26165 pbxlibdir="-L${TERMCAP_DIR}"
26168 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26169 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26170 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173 ac_check_lib_save_LIBS=$LIBS
26174 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26175 cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h. */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26182 /* Override any GCC internal prototype to avoid an error.
26183 Use char because int might match the return type of a GCC
26184 builtin and then its argument prototype would still apply. */
26185 #ifdef __cplusplus
26186 extern "C"
26187 #endif
26188 char tgetent ();
26190 main ()
26192 return tgetent ();
26194 return 0;
26196 _ACEOF
26197 rm -f conftest.$ac_objext conftest$ac_exeext
26198 if { (ac_try="$ac_link"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_link") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest$ac_exeext &&
26214 $as_test_x conftest$ac_exeext; then
26215 ac_cv_lib_termcap_tgetent=yes
26216 else
26217 echo "$as_me: failed program was:" >&5
26218 sed 's/^/| /' conftest.$ac_ext >&5
26220 ac_cv_lib_termcap_tgetent=no
26223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26224 conftest$ac_exeext conftest.$ac_ext
26225 LIBS=$ac_check_lib_save_LIBS
26227 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26228 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26229 if test $ac_cv_lib_termcap_tgetent = yes; then
26230 AST_TERMCAP_FOUND=yes
26231 else
26232 AST_TERMCAP_FOUND=no
26236 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26237 TERMCAP_LIB="-ltermcap "
26238 TERMCAP_HEADER_FOUND="1"
26239 if test "x${TERMCAP_DIR}" != "x"; then
26240 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26241 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26242 if test "x" != "x" ; then
26243 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26246 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26250 ac_res=`eval echo '${'$as_ac_Header'}'`
26251 { echo "$as_me:$LINENO: result: $ac_res" >&5
26252 echo "${ECHO_T}$ac_res" >&6; }
26253 else
26254 # Is the header compilable?
26255 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26256 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26257 cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h. */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 $ac_includes_default
26264 #include <${TERMCAP_DIR}/include/>
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271 esac
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_compile") 2>conftest.er1
26274 ac_status=$?
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && {
26280 test -z "$ac_c_werror_flag" ||
26281 test ! -s conftest.err
26282 } && test -s conftest.$ac_objext; then
26283 ac_header_compiler=yes
26284 else
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26288 ac_header_compiler=no
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26293 echo "${ECHO_T}$ac_header_compiler" >&6; }
26295 # Is the header present?
26296 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26297 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26298 cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h. */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26304 #include <${TERMCAP_DIR}/include/>
26305 _ACEOF
26306 if { (ac_try="$ac_cpp conftest.$ac_ext"
26307 case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } >/dev/null && {
26319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 }; then
26322 ac_header_preproc=yes
26323 else
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_header_preproc=no
26330 rm -f conftest.err conftest.$ac_ext
26331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26332 echo "${ECHO_T}$ac_header_preproc" >&6; }
26334 # So? What about this header?
26335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26336 yes:no: )
26337 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26338 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26340 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26341 ac_header_preproc=yes
26343 no:yes:* )
26344 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26345 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26347 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26349 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26351 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26353 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26355 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26358 esac
26359 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26360 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364 eval "$as_ac_Header=\$ac_header_preproc"
26366 ac_res=`eval echo '${'$as_ac_Header'}'`
26367 { echo "$as_me:$LINENO: result: $ac_res" >&5
26368 echo "${ECHO_T}$ac_res" >&6; }
26371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26372 TERMCAP_HEADER_FOUND=1
26373 else
26374 TERMCAP_HEADER_FOUND=0
26379 else
26380 if test "x" != "x" ; then
26381 if test "${ac_cv_header_+set}" = set; then
26382 { echo "$as_me:$LINENO: checking for " >&5
26383 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26384 if test "${ac_cv_header_+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26387 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26388 echo "${ECHO_T}$ac_cv_header_" >&6; }
26389 else
26390 # Is the header compilable?
26391 { echo "$as_me:$LINENO: checking usability" >&5
26392 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h. */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 $ac_includes_default
26400 #include <>
26401 _ACEOF
26402 rm -f conftest.$ac_objext
26403 if { (ac_try="$ac_compile"
26404 case "(($ac_try" in
26405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26406 *) ac_try_echo=$ac_try;;
26407 esac
26408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26409 (eval "$ac_compile") 2>conftest.er1
26410 ac_status=$?
26411 grep -v '^ *+' conftest.er1 >conftest.err
26412 rm -f conftest.er1
26413 cat conftest.err >&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } && {
26416 test -z "$ac_c_werror_flag" ||
26417 test ! -s conftest.err
26418 } && test -s conftest.$ac_objext; then
26419 ac_header_compiler=yes
26420 else
26421 echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26424 ac_header_compiler=no
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26429 echo "${ECHO_T}$ac_header_compiler" >&6; }
26431 # Is the header present?
26432 { echo "$as_me:$LINENO: checking presence" >&5
26433 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26434 cat >conftest.$ac_ext <<_ACEOF
26435 /* confdefs.h. */
26436 _ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26440 #include <>
26441 _ACEOF
26442 if { (ac_try="$ac_cpp conftest.$ac_ext"
26443 case "(($ac_try" in
26444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445 *) ac_try_echo=$ac_try;;
26446 esac
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26449 ac_status=$?
26450 grep -v '^ *+' conftest.er1 >conftest.err
26451 rm -f conftest.er1
26452 cat conftest.err >&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } >/dev/null && {
26455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26456 test ! -s conftest.err
26457 }; then
26458 ac_header_preproc=yes
26459 else
26460 echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26463 ac_header_preproc=no
26466 rm -f conftest.err conftest.$ac_ext
26467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26468 echo "${ECHO_T}$ac_header_preproc" >&6; }
26470 # So? What about this header?
26471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26472 yes:no: )
26473 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26474 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26475 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26476 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26477 ac_header_preproc=yes
26479 no:yes:* )
26480 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26481 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26483 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26484 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26485 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26486 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26487 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26488 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26489 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26490 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26491 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26494 esac
26495 { echo "$as_me:$LINENO: checking for " >&5
26496 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26497 if test "${ac_cv_header_+set}" = set; then
26498 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 else
26500 ac_cv_header_=$ac_header_preproc
26502 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26503 echo "${ECHO_T}$ac_cv_header_" >&6; }
26506 if test $ac_cv_header_ = yes; then
26507 TERMCAP_HEADER_FOUND=1
26508 else
26509 TERMCAP_HEADER_FOUND=0
26515 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26516 if test ! -z "${TERMCAP_MANDATORY}" ;
26517 then
26518 { echo "$as_me:$LINENO: ***" >&5
26519 echo "$as_me: ***" >&6;}
26520 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26521 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26522 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26523 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26524 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26525 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26526 exit 1
26528 TERMCAP_LIB=""
26529 TERMCAP_INCLUDE=""
26530 PBX_TERMCAP=0
26531 else
26532 PBX_TERMCAP=1
26534 cat >>confdefs.h <<_ACEOF
26535 #define HAVE_TERMCAP 1
26536 _ACEOF
26539 elif test ! -z "${TERMCAP_MANDATORY}";
26540 then
26541 { echo "$as_me:$LINENO: ***" >&5
26542 echo "$as_me: ***" >&6;}
26543 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26544 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26545 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26546 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26547 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26548 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26549 exit 1
26555 if test "${USE_TINFO}" != "no"; then
26556 pbxlibdir=""
26557 if test "x${TINFO_DIR}" != "x"; then
26558 if test -d ${TINFO_DIR}/lib; then
26559 pbxlibdir="-L${TINFO_DIR}/lib"
26560 else
26561 pbxlibdir="-L${TINFO_DIR}"
26564 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26565 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26566 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26568 else
26569 ac_check_lib_save_LIBS=$LIBS
26570 LIBS="-ltinfo ${pbxlibdir} $LIBS"
26571 cat >conftest.$ac_ext <<_ACEOF
26572 /* confdefs.h. */
26573 _ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h. */
26578 /* Override any GCC internal prototype to avoid an error.
26579 Use char because int might match the return type of a GCC
26580 builtin and then its argument prototype would still apply. */
26581 #ifdef __cplusplus
26582 extern "C"
26583 #endif
26584 char tgetent ();
26586 main ()
26588 return tgetent ();
26590 return 0;
26592 _ACEOF
26593 rm -f conftest.$ac_objext conftest$ac_exeext
26594 if { (ac_try="$ac_link"
26595 case "(($ac_try" in
26596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26597 *) ac_try_echo=$ac_try;;
26598 esac
26599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26600 (eval "$ac_link") 2>conftest.er1
26601 ac_status=$?
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } && {
26607 test -z "$ac_c_werror_flag" ||
26608 test ! -s conftest.err
26609 } && test -s conftest$ac_exeext &&
26610 $as_test_x conftest$ac_exeext; then
26611 ac_cv_lib_tinfo_tgetent=yes
26612 else
26613 echo "$as_me: failed program was:" >&5
26614 sed 's/^/| /' conftest.$ac_ext >&5
26616 ac_cv_lib_tinfo_tgetent=no
26619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26620 conftest$ac_exeext conftest.$ac_ext
26621 LIBS=$ac_check_lib_save_LIBS
26623 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26624 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26625 if test $ac_cv_lib_tinfo_tgetent = yes; then
26626 AST_TINFO_FOUND=yes
26627 else
26628 AST_TINFO_FOUND=no
26632 if test "${AST_TINFO_FOUND}" = "yes"; then
26633 TINFO_LIB="-ltinfo "
26634 TINFO_HEADER_FOUND="1"
26635 if test "x${TINFO_DIR}" != "x"; then
26636 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26637 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26638 if test "x" != "x" ; then
26639 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
26640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26641 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26642 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 ac_res=`eval echo '${'$as_ac_Header'}'`
26647 { echo "$as_me:$LINENO: result: $ac_res" >&5
26648 echo "${ECHO_T}$ac_res" >&6; }
26649 else
26650 # Is the header compilable?
26651 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26652 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26653 cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h. */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26659 $ac_includes_default
26660 #include <${TINFO_DIR}/include/>
26661 _ACEOF
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666 *) ac_try_echo=$ac_try;;
26667 esac
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669 (eval "$ac_compile") 2>conftest.er1
26670 ac_status=$?
26671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } && {
26676 test -z "$ac_c_werror_flag" ||
26677 test ! -s conftest.err
26678 } && test -s conftest.$ac_objext; then
26679 ac_header_compiler=yes
26680 else
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 ac_header_compiler=no
26687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26689 echo "${ECHO_T}$ac_header_compiler" >&6; }
26691 # Is the header present?
26692 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26693 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26694 cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h. */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 #include <${TINFO_DIR}/include/>
26701 _ACEOF
26702 if { (ac_try="$ac_cpp conftest.$ac_ext"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26709 ac_status=$?
26710 grep -v '^ *+' conftest.er1 >conftest.err
26711 rm -f conftest.er1
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } >/dev/null && {
26715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26717 }; then
26718 ac_header_preproc=yes
26719 else
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 ac_header_preproc=no
26726 rm -f conftest.err conftest.$ac_ext
26727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26728 echo "${ECHO_T}$ac_header_preproc" >&6; }
26730 # So? What about this header?
26731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26732 yes:no: )
26733 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26734 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26736 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26737 ac_header_preproc=yes
26739 no:yes:* )
26740 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26741 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26743 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26744 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26745 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26746 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26747 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26748 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26749 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26750 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26751 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26754 esac
26755 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26756 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760 eval "$as_ac_Header=\$ac_header_preproc"
26762 ac_res=`eval echo '${'$as_ac_Header'}'`
26763 { echo "$as_me:$LINENO: result: $ac_res" >&5
26764 echo "${ECHO_T}$ac_res" >&6; }
26767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26768 TINFO_HEADER_FOUND=1
26769 else
26770 TINFO_HEADER_FOUND=0
26775 else
26776 if test "x" != "x" ; then
26777 if test "${ac_cv_header_+set}" = set; then
26778 { echo "$as_me:$LINENO: checking for " >&5
26779 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26780 if test "${ac_cv_header_+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26784 echo "${ECHO_T}$ac_cv_header_" >&6; }
26785 else
26786 # Is the header compilable?
26787 { echo "$as_me:$LINENO: checking usability" >&5
26788 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26789 cat >conftest.$ac_ext <<_ACEOF
26790 /* confdefs.h. */
26791 _ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h. */
26795 $ac_includes_default
26796 #include <>
26797 _ACEOF
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802 *) ac_try_echo=$ac_try;;
26803 esac
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805 (eval "$ac_compile") 2>conftest.er1
26806 ac_status=$?
26807 grep -v '^ *+' conftest.er1 >conftest.err
26808 rm -f conftest.er1
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && {
26812 test -z "$ac_c_werror_flag" ||
26813 test ! -s conftest.err
26814 } && test -s conftest.$ac_objext; then
26815 ac_header_compiler=yes
26816 else
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 ac_header_compiler=no
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26825 echo "${ECHO_T}$ac_header_compiler" >&6; }
26827 # Is the header present?
26828 { echo "$as_me:$LINENO: checking presence" >&5
26829 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26830 cat >conftest.$ac_ext <<_ACEOF
26831 /* confdefs.h. */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26836 #include <>
26837 _ACEOF
26838 if { (ac_try="$ac_cpp conftest.$ac_ext"
26839 case "(($ac_try" in
26840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841 *) ac_try_echo=$ac_try;;
26842 esac
26843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26845 ac_status=$?
26846 grep -v '^ *+' conftest.er1 >conftest.err
26847 rm -f conftest.er1
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } >/dev/null && {
26851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26852 test ! -s conftest.err
26853 }; then
26854 ac_header_preproc=yes
26855 else
26856 echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26859 ac_header_preproc=no
26862 rm -f conftest.err conftest.$ac_ext
26863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864 echo "${ECHO_T}$ac_header_preproc" >&6; }
26866 # So? What about this header?
26867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26868 yes:no: )
26869 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26870 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26872 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26873 ac_header_preproc=yes
26875 no:yes:* )
26876 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26877 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26879 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26881 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26883 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26884 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26885 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26886 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26887 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26890 esac
26891 { echo "$as_me:$LINENO: checking for " >&5
26892 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26893 if test "${ac_cv_header_+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896 ac_cv_header_=$ac_header_preproc
26898 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26899 echo "${ECHO_T}$ac_cv_header_" >&6; }
26902 if test $ac_cv_header_ = yes; then
26903 TINFO_HEADER_FOUND=1
26904 else
26905 TINFO_HEADER_FOUND=0
26911 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
26912 if test ! -z "${TINFO_MANDATORY}" ;
26913 then
26914 { echo "$as_me:$LINENO: ***" >&5
26915 echo "$as_me: ***" >&6;}
26916 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
26917 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
26918 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
26919 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
26920 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26921 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26922 exit 1
26924 TINFO_LIB=""
26925 TINFO_INCLUDE=""
26926 PBX_TINFO=0
26927 else
26928 PBX_TINFO=1
26930 cat >>confdefs.h <<_ACEOF
26931 #define HAVE_TINFO 1
26932 _ACEOF
26935 elif test ! -z "${TINFO_MANDATORY}";
26936 then
26937 { echo "$as_me:$LINENO: ***" >&5
26938 echo "$as_me: ***" >&6;}
26939 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
26940 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
26941 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26942 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26943 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26944 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26945 exit 1
26950 if test "${host_os}" != "linux-gnu" ; then
26951 tonezone_extra="-lm"
26955 if test "${USE_TONEZONE}" != "no"; then
26956 pbxlibdir=""
26957 if test "x${TONEZONE_DIR}" != "x"; then
26958 if test -d ${TONEZONE_DIR}/lib; then
26959 pbxlibdir="-L${TONEZONE_DIR}/lib"
26960 else
26961 pbxlibdir="-L${TONEZONE_DIR}"
26964 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
26965 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
26966 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969 ac_check_lib_save_LIBS=$LIBS
26970 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h. */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26978 /* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26981 #ifdef __cplusplus
26982 extern "C"
26983 #endif
26984 char tone_zone_find ();
26986 main ()
26988 return tone_zone_find ();
26990 return 0;
26992 _ACEOF
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997 *) ac_try_echo=$ac_try;;
26998 esac
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_link") 2>conftest.er1
27001 ac_status=$?
27002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest$ac_exeext &&
27010 $as_test_x conftest$ac_exeext; then
27011 ac_cv_lib_tonezone_tone_zone_find=yes
27012 else
27013 echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ac_cv_lib_tonezone_tone_zone_find=no
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020 conftest$ac_exeext conftest.$ac_ext
27021 LIBS=$ac_check_lib_save_LIBS
27023 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27024 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27025 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27026 AST_TONEZONE_FOUND=yes
27027 else
27028 AST_TONEZONE_FOUND=no
27032 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27033 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27034 TONEZONE_HEADER_FOUND="1"
27035 if test "x${TONEZONE_DIR}" != "x"; then
27036 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27037 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27038 if test "xzaptel/tonezone.h" != "x" ; then
27039 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27041 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27042 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27044 echo $ECHO_N "(cached) $ECHO_C" >&6
27046 ac_res=`eval echo '${'$as_ac_Header'}'`
27047 { echo "$as_me:$LINENO: result: $ac_res" >&5
27048 echo "${ECHO_T}$ac_res" >&6; }
27049 else
27050 # Is the header compilable?
27051 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27052 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27053 cat >conftest.$ac_ext <<_ACEOF
27054 /* confdefs.h. */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 $ac_includes_default
27060 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27061 _ACEOF
27062 rm -f conftest.$ac_objext
27063 if { (ac_try="$ac_compile"
27064 case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27067 esac
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_compile") 2>conftest.er1
27070 ac_status=$?
27071 grep -v '^ *+' conftest.er1 >conftest.err
27072 rm -f conftest.er1
27073 cat conftest.err >&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } && {
27076 test -z "$ac_c_werror_flag" ||
27077 test ! -s conftest.err
27078 } && test -s conftest.$ac_objext; then
27079 ac_header_compiler=yes
27080 else
27081 echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27084 ac_header_compiler=no
27087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27089 echo "${ECHO_T}$ac_header_compiler" >&6; }
27091 # Is the header present?
27092 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27093 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h. */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27101 _ACEOF
27102 if { (ac_try="$ac_cpp conftest.$ac_ext"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } >/dev/null && {
27115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27116 test ! -s conftest.err
27117 }; then
27118 ac_header_preproc=yes
27119 else
27120 echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27123 ac_header_preproc=no
27126 rm -f conftest.err conftest.$ac_ext
27127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27128 echo "${ECHO_T}$ac_header_preproc" >&6; }
27130 # So? What about this header?
27131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27132 yes:no: )
27133 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27134 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27135 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27136 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27137 ac_header_preproc=yes
27139 no:yes:* )
27140 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27141 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27143 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27145 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27147 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27149 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27151 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27154 esac
27155 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27156 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 else
27160 eval "$as_ac_Header=\$ac_header_preproc"
27162 ac_res=`eval echo '${'$as_ac_Header'}'`
27163 { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27168 TONEZONE_HEADER_FOUND=1
27169 else
27170 TONEZONE_HEADER_FOUND=0
27175 else
27176 if test "xzaptel/tonezone.h" != "x" ; then
27177 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27178 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27179 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27180 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27184 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27185 else
27186 # Is the header compilable?
27187 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27188 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27189 cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h. */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 $ac_includes_default
27196 #include <zaptel/tonezone.h>
27197 _ACEOF
27198 rm -f conftest.$ac_objext
27199 if { (ac_try="$ac_compile"
27200 case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_compile") 2>conftest.er1
27206 ac_status=$?
27207 grep -v '^ *+' conftest.er1 >conftest.err
27208 rm -f conftest.er1
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } && {
27212 test -z "$ac_c_werror_flag" ||
27213 test ! -s conftest.err
27214 } && test -s conftest.$ac_objext; then
27215 ac_header_compiler=yes
27216 else
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 ac_header_compiler=no
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27225 echo "${ECHO_T}$ac_header_compiler" >&6; }
27227 # Is the header present?
27228 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27229 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27230 cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h. */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27236 #include <zaptel/tonezone.h>
27237 _ACEOF
27238 if { (ac_try="$ac_cpp conftest.$ac_ext"
27239 case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27245 ac_status=$?
27246 grep -v '^ *+' conftest.er1 >conftest.err
27247 rm -f conftest.er1
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } >/dev/null && {
27251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27252 test ! -s conftest.err
27253 }; then
27254 ac_header_preproc=yes
27255 else
27256 echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27259 ac_header_preproc=no
27262 rm -f conftest.err conftest.$ac_ext
27263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27264 echo "${ECHO_T}$ac_header_preproc" >&6; }
27266 # So? What about this header?
27267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27268 yes:no: )
27269 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27270 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27272 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27273 ac_header_preproc=yes
27275 no:yes:* )
27276 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27277 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27278 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27279 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27280 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27281 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27283 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27285 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27287 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27290 esac
27291 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27292 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27293 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27298 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27299 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27302 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27303 TONEZONE_HEADER_FOUND=1
27304 else
27305 TONEZONE_HEADER_FOUND=0
27311 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27312 if test ! -z "${TONEZONE_MANDATORY}" ;
27313 then
27314 { echo "$as_me:$LINENO: ***" >&5
27315 echo "$as_me: ***" >&6;}
27316 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27317 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27318 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27319 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27321 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27322 exit 1
27324 TONEZONE_LIB=""
27325 TONEZONE_INCLUDE=""
27326 PBX_TONEZONE=0
27327 else
27328 PBX_TONEZONE=1
27330 cat >>confdefs.h <<_ACEOF
27331 #define HAVE_TONEZONE 1
27332 _ACEOF
27335 elif test ! -z "${TONEZONE_MANDATORY}";
27336 then
27337 { echo "$as_me:$LINENO: ***" >&5
27338 echo "$as_me: ***" >&6;}
27339 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27340 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27341 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27342 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27343 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27344 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27345 exit 1
27351 if test "${USE_VORBIS}" != "no"; then
27352 pbxlibdir=""
27353 if test "x${VORBIS_DIR}" != "x"; then
27354 if test -d ${VORBIS_DIR}/lib; then
27355 pbxlibdir="-L${VORBIS_DIR}/lib"
27356 else
27357 pbxlibdir="-L${VORBIS_DIR}"
27360 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27361 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365 ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h. */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27377 #ifdef __cplusplus
27378 extern "C"
27379 #endif
27380 char vorbis_info_init ();
27382 main ()
27384 return vorbis_info_init ();
27386 return 0;
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (ac_try="$ac_link"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } && {
27403 test -z "$ac_c_werror_flag" ||
27404 test ! -s conftest.err
27405 } && test -s conftest$ac_exeext &&
27406 $as_test_x conftest$ac_exeext; then
27407 ac_cv_lib_vorbis_vorbis_info_init=yes
27408 else
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_cv_lib_vorbis_vorbis_info_init=no
27415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27416 conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27419 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27420 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27421 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27422 AST_VORBIS_FOUND=yes
27423 else
27424 AST_VORBIS_FOUND=no
27428 if test "${AST_VORBIS_FOUND}" = "yes"; then
27429 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27430 VORBIS_HEADER_FOUND="1"
27431 if test "x${VORBIS_DIR}" != "x"; then
27432 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27433 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27434 if test "xvorbis/codec.h" != "x" ; then
27435 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
27436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27437 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27438 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27440 echo $ECHO_N "(cached) $ECHO_C" >&6
27442 ac_res=`eval echo '${'$as_ac_Header'}'`
27443 { echo "$as_me:$LINENO: result: $ac_res" >&5
27444 echo "${ECHO_T}$ac_res" >&6; }
27445 else
27446 # Is the header compilable?
27447 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27448 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27449 cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h. */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27455 $ac_includes_default
27456 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27457 _ACEOF
27458 rm -f conftest.$ac_objext
27459 if { (ac_try="$ac_compile"
27460 case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27463 esac
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_compile") 2>conftest.er1
27466 ac_status=$?
27467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } && {
27472 test -z "$ac_c_werror_flag" ||
27473 test ! -s conftest.err
27474 } && test -s conftest.$ac_objext; then
27475 ac_header_compiler=yes
27476 else
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27480 ac_header_compiler=no
27483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27485 echo "${ECHO_T}$ac_header_compiler" >&6; }
27487 # Is the header present?
27488 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27489 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27490 cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h. */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27497 _ACEOF
27498 if { (ac_try="$ac_cpp conftest.$ac_ext"
27499 case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27505 ac_status=$?
27506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } >/dev/null && {
27511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27512 test ! -s conftest.err
27513 }; then
27514 ac_header_preproc=yes
27515 else
27516 echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27519 ac_header_preproc=no
27522 rm -f conftest.err conftest.$ac_ext
27523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27524 echo "${ECHO_T}$ac_header_preproc" >&6; }
27526 # So? What about this header?
27527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27528 yes:no: )
27529 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27530 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27531 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27532 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27533 ac_header_preproc=yes
27535 no:yes:* )
27536 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27537 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27539 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27541 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27542 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27543 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27544 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27545 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27546 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27547 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27550 esac
27551 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27552 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556 eval "$as_ac_Header=\$ac_header_preproc"
27558 ac_res=`eval echo '${'$as_ac_Header'}'`
27559 { echo "$as_me:$LINENO: result: $ac_res" >&5
27560 echo "${ECHO_T}$ac_res" >&6; }
27563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27564 VORBIS_HEADER_FOUND=1
27565 else
27566 VORBIS_HEADER_FOUND=0
27571 else
27572 if test "xvorbis/codec.h" != "x" ; then
27573 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27574 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27575 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27576 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27579 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27580 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27581 else
27582 # Is the header compilable?
27583 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27584 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27585 cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h. */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 $ac_includes_default
27592 #include <vorbis/codec.h>
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27602 ac_status=$?
27603 grep -v '^ *+' conftest.er1 >conftest.err
27604 rm -f conftest.er1
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.$ac_objext; then
27611 ac_header_compiler=yes
27612 else
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ac_header_compiler=no
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27621 echo "${ECHO_T}$ac_header_compiler" >&6; }
27623 # Is the header present?
27624 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27625 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27626 cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h. */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h. */
27632 #include <vorbis/codec.h>
27633 _ACEOF
27634 if { (ac_try="$ac_cpp conftest.$ac_ext"
27635 case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638 esac
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } >/dev/null && {
27647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27648 test ! -s conftest.err
27649 }; then
27650 ac_header_preproc=yes
27651 else
27652 echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27655 ac_header_preproc=no
27658 rm -f conftest.err conftest.$ac_ext
27659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27660 echo "${ECHO_T}$ac_header_preproc" >&6; }
27662 # So? What about this header?
27663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27664 yes:no: )
27665 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27666 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27668 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27669 ac_header_preproc=yes
27671 no:yes:* )
27672 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27673 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27675 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27677 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27679 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27681 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27683 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27686 esac
27687 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27688 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27689 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27694 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27695 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27698 if test $ac_cv_header_vorbis_codec_h = yes; then
27699 VORBIS_HEADER_FOUND=1
27700 else
27701 VORBIS_HEADER_FOUND=0
27707 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27708 if test ! -z "${VORBIS_MANDATORY}" ;
27709 then
27710 { echo "$as_me:$LINENO: ***" >&5
27711 echo "$as_me: ***" >&6;}
27712 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27713 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27714 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27715 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27716 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27717 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27718 exit 1
27720 VORBIS_LIB=""
27721 VORBIS_INCLUDE=""
27722 PBX_VORBIS=0
27723 else
27724 PBX_VORBIS=1
27726 cat >>confdefs.h <<_ACEOF
27727 #define HAVE_VORBIS 1
27728 _ACEOF
27731 elif test ! -z "${VORBIS_MANDATORY}";
27732 then
27733 { echo "$as_me:$LINENO: ***" >&5
27734 echo "$as_me: ***" >&6;}
27735 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27736 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27737 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27738 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27739 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27740 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27741 exit 1
27746 ac_ext=cpp
27747 ac_cpp='$CXXCPP $CPPFLAGS'
27748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27753 if test "${USE_VPB}" != "no"; then
27754 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27755 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27756 saved_libs="${LIBS}"
27757 saved_cppflags="${CPPFLAGS}"
27758 if test "x${VPB_DIR}" != "x"; then
27759 if test -d ${VPB_DIR}/lib; then
27760 vpblibdir=${VPB_DIR}/lib
27761 else
27762 vpblibdir=${VPB_DIR}
27764 LIBS="${LIBS} -L${vpblibdir}"
27765 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27767 LIBS="${LIBS} -lvpb -lpthread"
27768 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h. */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <vpbapi.h>
27777 main ()
27779 int q = vpb_open(0,0);
27781 return 0;
27784 _ACEOF
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (ac_try="$ac_link"
27787 case "(($ac_try" in
27788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27789 *) ac_try_echo=$ac_try;;
27790 esac
27791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_link") 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } && {
27799 test -z "$ac_cxx_werror_flag" ||
27800 test ! -s conftest.err
27801 } && test -s conftest$ac_exeext &&
27802 $as_test_x conftest$ac_exeext; then
27803 { echo "$as_me:$LINENO: result: yes" >&5
27804 echo "${ECHO_T}yes" >&6; }
27805 ac_cv_lib_vpb_vpb_open="yes"
27807 else
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 { echo "$as_me:$LINENO: result: no" >&5
27812 echo "${ECHO_T}no" >&6; }
27813 ac_cv_lib_vpb_vpb_open="no"
27818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27819 conftest$ac_exeext conftest.$ac_ext
27820 LIBS="${saved_libs}"
27821 CPPFLAGS="${saved_cppflags}"
27822 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27823 VPB_LIB="-lvpb"
27824 if test "${VPB_DIR}" != ""; then
27825 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
27826 VPB_INCLUDE="-I${VPB_DIR}/include"
27828 PBX_VPB=1
27830 cat >>confdefs.h <<\_ACEOF
27831 #define HAVE_VPB 1
27832 _ACEOF
27834 elif test ! -z "${VPB_MANDATORY}"; then
27835 { echo "$as_me:$LINENO: ***" >&5
27836 echo "$as_me: ***" >&6;}
27837 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27838 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27839 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27840 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27841 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27842 echo "$as_me: *** including --without-vpb." >&6;}
27843 exit 1
27847 ac_ext=c
27848 ac_cpp='$CPP $CPPFLAGS'
27849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27855 if test "${USE_ZLIB}" != "no"; then
27856 pbxlibdir=""
27857 if test "x${ZLIB_DIR}" != "x"; then
27858 if test -d ${ZLIB_DIR}/lib; then
27859 pbxlibdir="-L${ZLIB_DIR}/lib"
27860 else
27861 pbxlibdir="-L${ZLIB_DIR}"
27864 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27865 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27866 if test "${ac_cv_lib_z_compress+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27868 else
27869 ac_check_lib_save_LIBS=$LIBS
27870 LIBS="-lz ${pbxlibdir} $LIBS"
27871 cat >conftest.$ac_ext <<_ACEOF
27872 /* confdefs.h. */
27873 _ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h. */
27878 /* Override any GCC internal prototype to avoid an error.
27879 Use char because int might match the return type of a GCC
27880 builtin and then its argument prototype would still apply. */
27881 #ifdef __cplusplus
27882 extern "C"
27883 #endif
27884 char compress ();
27886 main ()
27888 return compress ();
27890 return 0;
27892 _ACEOF
27893 rm -f conftest.$ac_objext conftest$ac_exeext
27894 if { (ac_try="$ac_link"
27895 case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_link") 2>conftest.er1
27901 ac_status=$?
27902 grep -v '^ *+' conftest.er1 >conftest.err
27903 rm -f conftest.er1
27904 cat conftest.err >&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } && {
27907 test -z "$ac_c_werror_flag" ||
27908 test ! -s conftest.err
27909 } && test -s conftest$ac_exeext &&
27910 $as_test_x conftest$ac_exeext; then
27911 ac_cv_lib_z_compress=yes
27912 else
27913 echo "$as_me: failed program was:" >&5
27914 sed 's/^/| /' conftest.$ac_ext >&5
27916 ac_cv_lib_z_compress=no
27919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27920 conftest$ac_exeext conftest.$ac_ext
27921 LIBS=$ac_check_lib_save_LIBS
27923 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
27924 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
27925 if test $ac_cv_lib_z_compress = yes; then
27926 AST_ZLIB_FOUND=yes
27927 else
27928 AST_ZLIB_FOUND=no
27932 if test "${AST_ZLIB_FOUND}" = "yes"; then
27933 ZLIB_LIB="-lz "
27934 ZLIB_HEADER_FOUND="1"
27935 if test "x${ZLIB_DIR}" != "x"; then
27936 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
27937 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
27938 if test "xzlib.h" != "x" ; then
27939 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
27940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27941 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27942 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 ac_res=`eval echo '${'$as_ac_Header'}'`
27947 { echo "$as_me:$LINENO: result: $ac_res" >&5
27948 echo "${ECHO_T}$ac_res" >&6; }
27949 else
27950 # Is the header compilable?
27951 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
27952 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
27953 cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h. */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 $ac_includes_default
27960 #include <${ZLIB_DIR}/include/zlib.h>
27961 _ACEOF
27962 rm -f conftest.$ac_objext
27963 if { (ac_try="$ac_compile"
27964 case "(($ac_try" in
27965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966 *) ac_try_echo=$ac_try;;
27967 esac
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969 (eval "$ac_compile") 2>conftest.er1
27970 ac_status=$?
27971 grep -v '^ *+' conftest.er1 >conftest.err
27972 rm -f conftest.er1
27973 cat conftest.err >&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } && {
27976 test -z "$ac_c_werror_flag" ||
27977 test ! -s conftest.err
27978 } && test -s conftest.$ac_objext; then
27979 ac_header_compiler=yes
27980 else
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27984 ac_header_compiler=no
27987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27989 echo "${ECHO_T}$ac_header_compiler" >&6; }
27991 # Is the header present?
27992 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
27993 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
27994 cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h. */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28000 #include <${ZLIB_DIR}/include/zlib.h>
28001 _ACEOF
28002 if { (ac_try="$ac_cpp conftest.$ac_ext"
28003 case "(($ac_try" in
28004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005 *) ac_try_echo=$ac_try;;
28006 esac
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28009 ac_status=$?
28010 grep -v '^ *+' conftest.er1 >conftest.err
28011 rm -f conftest.er1
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } >/dev/null && {
28015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28016 test ! -s conftest.err
28017 }; then
28018 ac_header_preproc=yes
28019 else
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 ac_header_preproc=no
28026 rm -f conftest.err conftest.$ac_ext
28027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28028 echo "${ECHO_T}$ac_header_preproc" >&6; }
28030 # So? What about this header?
28031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28032 yes:no: )
28033 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28034 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28036 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28037 ac_header_preproc=yes
28039 no:yes:* )
28040 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28041 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28043 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28044 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28045 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28046 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28047 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28048 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28049 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28050 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28051 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28054 esac
28055 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28056 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28059 else
28060 eval "$as_ac_Header=\$ac_header_preproc"
28062 ac_res=`eval echo '${'$as_ac_Header'}'`
28063 { echo "$as_me:$LINENO: result: $ac_res" >&5
28064 echo "${ECHO_T}$ac_res" >&6; }
28067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28068 ZLIB_HEADER_FOUND=1
28069 else
28070 ZLIB_HEADER_FOUND=0
28075 else
28076 if test "xzlib.h" != "x" ; then
28077 if test "${ac_cv_header_zlib_h+set}" = set; then
28078 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28079 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28080 if test "${ac_cv_header_zlib_h+set}" = set; then
28081 echo $ECHO_N "(cached) $ECHO_C" >&6
28083 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28084 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28085 else
28086 # Is the header compilable?
28087 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28088 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28089 cat >conftest.$ac_ext <<_ACEOF
28090 /* confdefs.h. */
28091 _ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28095 $ac_includes_default
28096 #include <zlib.h>
28097 _ACEOF
28098 rm -f conftest.$ac_objext
28099 if { (ac_try="$ac_compile"
28100 case "(($ac_try" in
28101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28102 *) ac_try_echo=$ac_try;;
28103 esac
28104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28105 (eval "$ac_compile") 2>conftest.er1
28106 ac_status=$?
28107 grep -v '^ *+' conftest.er1 >conftest.err
28108 rm -f conftest.er1
28109 cat conftest.err >&5
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } && {
28112 test -z "$ac_c_werror_flag" ||
28113 test ! -s conftest.err
28114 } && test -s conftest.$ac_objext; then
28115 ac_header_compiler=yes
28116 else
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28120 ac_header_compiler=no
28123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28125 echo "${ECHO_T}$ac_header_compiler" >&6; }
28127 # Is the header present?
28128 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28129 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28130 cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h. */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28136 #include <zlib.h>
28137 _ACEOF
28138 if { (ac_try="$ac_cpp conftest.$ac_ext"
28139 case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28142 esac
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28145 ac_status=$?
28146 grep -v '^ *+' conftest.er1 >conftest.err
28147 rm -f conftest.er1
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } >/dev/null && {
28151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28153 }; then
28154 ac_header_preproc=yes
28155 else
28156 echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28159 ac_header_preproc=no
28162 rm -f conftest.err conftest.$ac_ext
28163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28164 echo "${ECHO_T}$ac_header_preproc" >&6; }
28166 # So? What about this header?
28167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28168 yes:no: )
28169 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28170 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28171 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28172 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28173 ac_header_preproc=yes
28175 no:yes:* )
28176 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28177 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28179 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28180 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28181 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28183 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28185 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28186 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28187 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28190 esac
28191 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28192 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28193 if test "${ac_cv_header_zlib_h+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28195 else
28196 ac_cv_header_zlib_h=$ac_header_preproc
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28199 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28202 if test $ac_cv_header_zlib_h = yes; then
28203 ZLIB_HEADER_FOUND=1
28204 else
28205 ZLIB_HEADER_FOUND=0
28211 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28212 if test ! -z "${ZLIB_MANDATORY}" ;
28213 then
28214 { echo "$as_me:$LINENO: ***" >&5
28215 echo "$as_me: ***" >&6;}
28216 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28217 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28218 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28219 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28220 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28221 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28222 exit 1
28224 ZLIB_LIB=""
28225 ZLIB_INCLUDE=""
28226 PBX_ZLIB=0
28227 else
28228 PBX_ZLIB=1
28230 cat >>confdefs.h <<_ACEOF
28231 #define HAVE_ZLIB 1
28232 _ACEOF
28235 elif test ! -z "${ZLIB_MANDATORY}";
28236 then
28237 { echo "$as_me:$LINENO: ***" >&5
28238 echo "$as_me: ***" >&6;}
28239 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28240 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28241 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28242 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28243 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28244 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28245 exit 1
28250 if test "${USE_ZAPTEL}" != "no"; then
28251 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
28252 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
28253 saved_cppflags="${CPPFLAGS}"
28254 if test "x${ZAPTEL_DIR}" != "x"; then
28255 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28257 cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h. */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28264 #include <zaptel/zaptel.h>
28266 main ()
28268 int foo = ZT_TONE_DTMF_BASE;
28270 return 0;
28273 _ACEOF
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278 *) ac_try_echo=$ac_try;;
28279 esac
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281 (eval "$ac_compile") 2>conftest.er1
28282 ac_status=$?
28283 grep -v '^ *+' conftest.er1 >conftest.err
28284 rm -f conftest.er1
28285 cat conftest.err >&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); } && {
28288 test -z "$ac_c_werror_flag" ||
28289 test ! -s conftest.err
28290 } && test -s conftest.$ac_objext; then
28291 { echo "$as_me:$LINENO: result: yes" >&5
28292 echo "${ECHO_T}yes" >&6; }
28293 ac_cv_zaptel_h="yes"
28295 else
28296 echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28299 { echo "$as_me:$LINENO: result: no" >&5
28300 echo "${ECHO_T}no" >&6; }
28301 ac_cv_zaptel_h="no"
28306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307 CPPFLAGS="${saved_cppflags}"
28308 if test "${ac_cv_zaptel_h}" = "yes"; then
28309 if test "${ZAPTEL_DIR}" != ""; then
28310 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
28312 PBX_ZAPTEL=1
28314 cat >>confdefs.h <<\_ACEOF
28315 #define HAVE_ZAPTEL 1
28316 _ACEOF
28318 elif test ! -z "${ZAPTEL_MANDATORY}";
28319 then
28320 { echo "$as_me:$LINENO: ***" >&5
28321 echo "$as_me: ***" >&6;}
28322 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28323 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28324 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28325 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28326 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28327 echo "$as_me: *** including --without-zaptel." >&6;}
28328 exit 1
28332 if test "${USE_ZAPTEL}" != "no"; then
28333 if test "${PBX_ZAPTEL}" != "1"; then
28334 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
28335 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
28336 saved_cppflags="${CPPFLAGS}"
28337 if test "x${ZAPTEL_DIR}" != "x"; then
28338 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28340 cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h. */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 #include <zaptel.h>
28349 main ()
28351 int foo = ZT_DIAL_OP_CANCEL;
28353 return 0;
28356 _ACEOF
28357 rm -f conftest.$ac_objext
28358 if { (ac_try="$ac_compile"
28359 case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_compile") 2>conftest.er1
28365 ac_status=$?
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } && {
28371 test -z "$ac_c_werror_flag" ||
28372 test ! -s conftest.err
28373 } && test -s conftest.$ac_objext; then
28374 { echo "$as_me:$LINENO: result: yes" >&5
28375 echo "${ECHO_T}yes" >&6; }
28376 ac_cv_zaptel_h="yes"
28378 else
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28382 { echo "$as_me:$LINENO: result: no" >&5
28383 echo "${ECHO_T}no" >&6; }
28384 ac_cv_zaptel_h="no"
28389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 CPPFLAGS="${saved_cppflags}"
28391 if test "${ac_cv_zaptel_h}" = "yes"; then
28392 { echo "$as_me:$LINENO: ***" >&5
28393 echo "$as_me: ***" >&6;}
28394 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
28395 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
28396 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
28397 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
28398 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
28399 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
28400 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28401 echo "$as_me: *** including --without-zaptel." >&6;}
28402 exit 1
28407 EDITLINE_LIB=""
28408 if test "x$TERMCAP_LIB" != "x" ; then
28409 EDITLINE_LIB="$TERMCAP_LIB"
28410 elif test "x$TINFO_LIB" != "x" ; then
28411 EDITLINE_LIB="$TINFO_LIB"
28412 elif test "x$CURSES_LIB" != "x" ; then
28413 EDITLINE_LIB="$CURSES_LIB"
28414 elif test "x$NCURSES_LIB" != "x" ; then
28415 EDITLINE_LIB="$NCURSES_LIB"
28416 else
28417 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28418 echo "$as_me: error: *** termcap support not found" >&2;}
28419 { (exit 1); exit 1; }; }
28423 if test "${ac_cv_header_h323_h+set}" = set; then
28424 { echo "$as_me:$LINENO: checking for h323.h" >&5
28425 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28426 if test "${ac_cv_header_h323_h+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28429 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28430 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28431 else
28432 # Is the header compilable?
28433 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28434 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28435 cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h. */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 $ac_includes_default
28442 #include <h323.h>
28443 _ACEOF
28444 rm -f conftest.$ac_objext
28445 if { (ac_try="$ac_compile"
28446 case "(($ac_try" in
28447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28449 esac
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_compile") 2>conftest.er1
28452 ac_status=$?
28453 grep -v '^ *+' conftest.er1 >conftest.err
28454 rm -f conftest.er1
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } && {
28458 test -z "$ac_c_werror_flag" ||
28459 test ! -s conftest.err
28460 } && test -s conftest.$ac_objext; then
28461 ac_header_compiler=yes
28462 else
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28466 ac_header_compiler=no
28469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28471 echo "${ECHO_T}$ac_header_compiler" >&6; }
28473 # Is the header present?
28474 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28475 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28476 cat >conftest.$ac_ext <<_ACEOF
28477 /* confdefs.h. */
28478 _ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h. */
28482 #include <h323.h>
28483 _ACEOF
28484 if { (ac_try="$ac_cpp conftest.$ac_ext"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28491 ac_status=$?
28492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } >/dev/null && {
28497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 }; then
28500 ac_header_preproc=yes
28501 else
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 ac_header_preproc=no
28508 rm -f conftest.err conftest.$ac_ext
28509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28510 echo "${ECHO_T}$ac_header_preproc" >&6; }
28512 # So? What about this header?
28513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28514 yes:no: )
28515 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28516 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28517 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28518 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28519 ac_header_preproc=yes
28521 no:yes:* )
28522 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28523 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28524 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28525 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28526 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28527 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28528 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28529 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28530 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28531 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28532 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28533 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28536 esac
28537 { echo "$as_me:$LINENO: checking for h323.h" >&5
28538 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28539 if test "${ac_cv_header_h323_h+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542 ac_cv_header_h323_h=$ac_header_preproc
28544 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28545 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28548 if test $ac_cv_header_h323_h = yes; then
28549 PBX_H323=1
28550 else
28551 PBX_H323=0
28557 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28558 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 else
28562 cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h. */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 #include <linux/version.h>
28570 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28571 #include <linux/compiler.h>
28572 #endif
28575 #include <linux/ixjuser.h>
28576 _ACEOF
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } && {
28591 test -z "$ac_c_werror_flag" ||
28592 test ! -s conftest.err
28593 } && test -s conftest.$ac_objext; then
28594 ac_cv_header_linux_ixjuser_h=yes
28595 else
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28599 ac_cv_header_linux_ixjuser_h=no
28602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28604 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28605 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28606 if test $ac_cv_header_linux_ixjuser_h = yes; then
28607 PBX_IXJUSER=1
28608 else
28609 PBX_IXJUSER=0
28615 PBX_GTK=0
28616 if test -n "$ac_tool_prefix"; then
28617 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28618 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
28619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28621 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28622 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 else
28624 if test -n "$GTKCONFIG"; then
28625 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
28626 else
28627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28628 for as_dir in $PATH
28630 IFS=$as_save_IFS
28631 test -z "$as_dir" && as_dir=.
28632 for ac_exec_ext in '' $ac_executable_extensions; do
28633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28634 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
28635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28636 break 2
28638 done
28639 done
28640 IFS=$as_save_IFS
28644 GTKCONFIG=$ac_cv_prog_GTKCONFIG
28645 if test -n "$GTKCONFIG"; then
28646 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28647 echo "${ECHO_T}$GTKCONFIG" >&6; }
28648 else
28649 { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28655 if test -z "$ac_cv_prog_GTKCONFIG"; then
28656 ac_ct_GTKCONFIG=$GTKCONFIG
28657 # Extract the first word of "gtk-config", so it can be a program name with args.
28658 set dummy gtk-config; ac_word=$2
28659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28661 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28663 else
28664 if test -n "$ac_ct_GTKCONFIG"; then
28665 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
28666 else
28667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28668 for as_dir in $PATH
28670 IFS=$as_save_IFS
28671 test -z "$as_dir" && as_dir=.
28672 for ac_exec_ext in '' $ac_executable_extensions; do
28673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28674 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
28675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28676 break 2
28678 done
28679 done
28680 IFS=$as_save_IFS
28684 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
28685 if test -n "$ac_ct_GTKCONFIG"; then
28686 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28687 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28688 else
28689 { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28693 if test "x$ac_ct_GTKCONFIG" = x; then
28694 GTKCONFIG="No"
28695 else
28696 case $cross_compiling:$ac_tool_warned in
28697 yes:)
28698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28699 whose name does not start with the host triplet. If you think this
28700 configuration is useful to you, please write to autoconf@gnu.org." >&5
28701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28702 whose name does not start with the host triplet. If you think this
28703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28704 ac_tool_warned=yes ;;
28705 esac
28706 GTKCONFIG=$ac_ct_GTKCONFIG
28708 else
28709 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
28712 if test ! "x${GTKCONFIG}" = xNo; then
28713 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
28714 GTK_LIB=$(${GTKCONFIG} --libs gthread)
28715 PBX_GTK=1
28717 cat >>confdefs.h <<\_ACEOF
28718 #define HAVE_GTK 1
28719 _ACEOF
28726 if test "${USE_CURL}" != "no"; then
28727 if test -n "$ac_tool_prefix"; then
28728 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28729 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
28730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28732 if test "${ac_cv_path_CURL+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28734 else
28735 case $CURL in
28736 [\\/]* | ?:[\\/]*)
28737 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
28740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28741 for as_dir in $PATH
28743 IFS=$as_save_IFS
28744 test -z "$as_dir" && as_dir=.
28745 for ac_exec_ext in '' $ac_executable_extensions; do
28746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28747 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
28748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28749 break 2
28751 done
28752 done
28753 IFS=$as_save_IFS
28756 esac
28758 CURL=$ac_cv_path_CURL
28759 if test -n "$CURL"; then
28760 { echo "$as_me:$LINENO: result: $CURL" >&5
28761 echo "${ECHO_T}$CURL" >&6; }
28762 else
28763 { echo "$as_me:$LINENO: result: no" >&5
28764 echo "${ECHO_T}no" >&6; }
28769 if test -z "$ac_cv_path_CURL"; then
28770 ac_pt_CURL=$CURL
28771 # Extract the first word of "curl-config", so it can be a program name with args.
28772 set dummy curl-config; ac_word=$2
28773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28775 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28776 echo $ECHO_N "(cached) $ECHO_C" >&6
28777 else
28778 case $ac_pt_CURL in
28779 [\\/]* | ?:[\\/]*)
28780 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
28783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28784 for as_dir in $PATH
28786 IFS=$as_save_IFS
28787 test -z "$as_dir" && as_dir=.
28788 for ac_exec_ext in '' $ac_executable_extensions; do
28789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28790 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
28791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28792 break 2
28794 done
28795 done
28796 IFS=$as_save_IFS
28799 esac
28801 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
28802 if test -n "$ac_pt_CURL"; then
28803 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28804 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28805 else
28806 { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28810 if test "x$ac_pt_CURL" = x; then
28811 CURL="No"
28812 else
28813 case $cross_compiling:$ac_tool_warned in
28814 yes:)
28815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28816 whose name does not start with the host triplet. If you think this
28817 configuration is useful to you, please write to autoconf@gnu.org." >&5
28818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28819 whose name does not start with the host triplet. If you think this
28820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28821 ac_tool_warned=yes ;;
28822 esac
28823 CURL=$ac_pt_CURL
28825 else
28826 CURL="$ac_cv_path_CURL"
28829 if test ! x"${CURL}" = xNo; then
28830 # check for version
28831 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
28832 CURL_INCLUDE=$(${CURL} --cflags)
28833 CURL_LIB=$(${CURL} --libs)
28834 PBX_CURL=1
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_CURL 1
28838 _ACEOF
28844 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
28846 cat >confcache <<\_ACEOF
28847 # This file is a shell script that caches the results of configure
28848 # tests run on this system so they can be shared between configure
28849 # scripts and configure runs, see configure's option --config-cache.
28850 # It is not useful on other systems. If it contains results you don't
28851 # want to keep, you may remove or edit it.
28853 # config.status only pays attention to the cache file if you give it
28854 # the --recheck option to rerun configure.
28856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28858 # following values.
28860 _ACEOF
28862 # The following way of writing the cache mishandles newlines in values,
28863 # but we know of no workaround that is simple, portable, and efficient.
28864 # So, we kill variables containing newlines.
28865 # Ultrix sh set writes to stderr and can't be redirected directly,
28866 # and sets the high bit in the cache file unless we assign to the vars.
28868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28869 eval ac_val=\$$ac_var
28870 case $ac_val in #(
28871 *${as_nl}*)
28872 case $ac_var in #(
28873 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28875 esac
28876 case $ac_var in #(
28877 _ | IFS | as_nl) ;; #(
28878 *) $as_unset $ac_var ;;
28879 esac ;;
28880 esac
28881 done
28883 (set) 2>&1 |
28884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28885 *${as_nl}ac_space=\ *)
28886 # `set' does not quote correctly, so add quotes (double-quote
28887 # substitution turns \\\\ into \\, and sed turns \\ into \).
28888 sed -n \
28889 "s/'/'\\\\''/g;
28890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28891 ;; #(
28893 # `set' quotes correctly as required by POSIX, so do not add quotes.
28894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28896 esac |
28897 sort
28899 sed '
28900 /^ac_cv_env_/b end
28901 t clear
28902 :clear
28903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28904 t end
28905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28906 :end' >>confcache
28907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28908 if test -w "$cache_file"; then
28909 test "x$cache_file" != "x/dev/null" &&
28910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28911 echo "$as_me: updating cache $cache_file" >&6;}
28912 cat confcache >$cache_file
28913 else
28914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28918 rm -f confcache
28920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28921 # Let make expand exec_prefix.
28922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28924 DEFS=-DHAVE_CONFIG_H
28926 ac_libobjs=
28927 ac_ltlibobjs=
28928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28929 # 1. Remove the extension, and $U if already installed.
28930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28931 ac_i=`echo "$ac_i" | sed "$ac_script"`
28932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28933 # will be set to the directory where LIBOBJS objects are built.
28934 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28935 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28936 done
28937 LIBOBJS=$ac_libobjs
28939 LTLIBOBJS=$ac_ltlibobjs
28943 : ${CONFIG_STATUS=./config.status}
28944 ac_clean_files_save=$ac_clean_files
28945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28946 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28947 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28948 cat >$CONFIG_STATUS <<_ACEOF
28949 #! $SHELL
28950 # Generated by $as_me.
28951 # Run this file to recreate the current configuration.
28952 # Compiler output produced by configure, useful for debugging
28953 # configure, is in config.log if it exists.
28955 debug=false
28956 ac_cs_recheck=false
28957 ac_cs_silent=false
28958 SHELL=\${CONFIG_SHELL-$SHELL}
28959 _ACEOF
28961 cat >>$CONFIG_STATUS <<\_ACEOF
28962 ## --------------------- ##
28963 ## M4sh Initialization. ##
28964 ## --------------------- ##
28966 # Be more Bourne compatible
28967 DUALCASE=1; export DUALCASE # for MKS sh
28968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28969 emulate sh
28970 NULLCMD=:
28971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28972 # is contrary to our usage. Disable this feature.
28973 alias -g '${1+"$@"}'='"$@"'
28974 setopt NO_GLOB_SUBST
28975 else
28976 case `(set -o) 2>/dev/null` in
28977 *posix*) set -o posix ;;
28978 esac
28985 # PATH needs CR
28986 # Avoid depending upon Character Ranges.
28987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28990 as_cr_digits='0123456789'
28991 as_cr_alnum=$as_cr_Letters$as_cr_digits
28993 # The user is always right.
28994 if test "${PATH_SEPARATOR+set}" != set; then
28995 echo "#! /bin/sh" >conf$$.sh
28996 echo "exit 0" >>conf$$.sh
28997 chmod +x conf$$.sh
28998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28999 PATH_SEPARATOR=';'
29000 else
29001 PATH_SEPARATOR=:
29003 rm -f conf$$.sh
29006 # Support unset when possible.
29007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29008 as_unset=unset
29009 else
29010 as_unset=false
29014 # IFS
29015 # We need space, tab and new line, in precisely that order. Quoting is
29016 # there to prevent editors from complaining about space-tab.
29017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29018 # splitting by setting IFS to empty value.)
29019 as_nl='
29021 IFS=" "" $as_nl"
29023 # Find who we are. Look in the path if we contain no directory separator.
29024 case $0 in
29025 *[\\/]* ) as_myself=$0 ;;
29026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29027 for as_dir in $PATH
29029 IFS=$as_save_IFS
29030 test -z "$as_dir" && as_dir=.
29031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29032 done
29033 IFS=$as_save_IFS
29036 esac
29037 # We did not find ourselves, most probably we were run as `sh COMMAND'
29038 # in which case we are not to be found in the path.
29039 if test "x$as_myself" = x; then
29040 as_myself=$0
29042 if test ! -f "$as_myself"; then
29043 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29044 { (exit 1); exit 1; }
29047 # Work around bugs in pre-3.0 UWIN ksh.
29048 for as_var in ENV MAIL MAILPATH
29049 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29050 done
29051 PS1='$ '
29052 PS2='> '
29053 PS4='+ '
29055 # NLS nuisances.
29056 for as_var in \
29057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29059 LC_TELEPHONE LC_TIME
29061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29062 eval $as_var=C; export $as_var
29063 else
29064 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29066 done
29068 # Required to use basename.
29069 if expr a : '\(a\)' >/dev/null 2>&1 &&
29070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29071 as_expr=expr
29072 else
29073 as_expr=false
29076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29077 as_basename=basename
29078 else
29079 as_basename=false
29083 # Name of the executable.
29084 as_me=`$as_basename -- "$0" ||
29085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29086 X"$0" : 'X\(//\)$' \| \
29087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29088 echo X/"$0" |
29089 sed '/^.*\/\([^/][^/]*\)\/*$/{
29090 s//\1/
29093 /^X\/\(\/\/\)$/{
29094 s//\1/
29097 /^X\/\(\/\).*/{
29098 s//\1/
29101 s/.*/./; q'`
29103 # CDPATH.
29104 $as_unset CDPATH
29108 as_lineno_1=$LINENO
29109 as_lineno_2=$LINENO
29110 test "x$as_lineno_1" != "x$as_lineno_2" &&
29111 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29114 # uniformly replaced by the line number. The first 'sed' inserts a
29115 # line-number line after each line using $LINENO; the second 'sed'
29116 # does the real work. The second script uses 'N' to pair each
29117 # line-number line with the line containing $LINENO, and appends
29118 # trailing '-' during substitution so that $LINENO is not a special
29119 # case at line end.
29120 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29121 # scripts with optimization help from Paolo Bonzini. Blame Lee
29122 # E. McMahon (1931-1989) for sed's syntax. :-)
29123 sed -n '
29125 /[$]LINENO/=
29126 ' <$as_myself |
29127 sed '
29128 s/[$]LINENO.*/&-/
29129 t lineno
29131 :lineno
29133 :loop
29134 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29135 t loop
29136 s/-\n.*//
29137 ' >$as_me.lineno &&
29138 chmod +x "$as_me.lineno" ||
29139 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29140 { (exit 1); exit 1; }; }
29142 # Don't try to exec as it changes $[0], causing all sort of problems
29143 # (the dirname of $[0] is not the place where we might find the
29144 # original and so on. Autoconf is especially sensitive to this).
29145 . "./$as_me.lineno"
29146 # Exit status is that of the last command.
29147 exit
29151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29152 as_dirname=dirname
29153 else
29154 as_dirname=false
29157 ECHO_C= ECHO_N= ECHO_T=
29158 case `echo -n x` in
29159 -n*)
29160 case `echo 'x\c'` in
29161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29162 *) ECHO_C='\c';;
29163 esac;;
29165 ECHO_N='-n';;
29166 esac
29168 if expr a : '\(a\)' >/dev/null 2>&1 &&
29169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29170 as_expr=expr
29171 else
29172 as_expr=false
29175 rm -f conf$$ conf$$.exe conf$$.file
29176 if test -d conf$$.dir; then
29177 rm -f conf$$.dir/conf$$.file
29178 else
29179 rm -f conf$$.dir
29180 mkdir conf$$.dir
29182 echo >conf$$.file
29183 if ln -s conf$$.file conf$$ 2>/dev/null; then
29184 as_ln_s='ln -s'
29185 # ... but there are two gotchas:
29186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29188 # In both cases, we have to default to `cp -p'.
29189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29190 as_ln_s='cp -p'
29191 elif ln conf$$.file conf$$ 2>/dev/null; then
29192 as_ln_s=ln
29193 else
29194 as_ln_s='cp -p'
29196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29197 rmdir conf$$.dir 2>/dev/null
29199 if mkdir -p . 2>/dev/null; then
29200 as_mkdir_p=:
29201 else
29202 test -d ./-p && rmdir ./-p
29203 as_mkdir_p=false
29206 if test -x / >/dev/null 2>&1; then
29207 as_test_x='test -x'
29208 else
29209 if ls -dL / >/dev/null 2>&1; then
29210 as_ls_L_option=L
29211 else
29212 as_ls_L_option=
29214 as_test_x='
29215 eval sh -c '\''
29216 if test -d "$1"; then
29217 test -d "$1/.";
29218 else
29219 case $1 in
29220 -*)set "./$1";;
29221 esac;
29222 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29223 ???[sx]*):;;*)false;;esac;fi
29224 '\'' sh
29227 as_executable_p=$as_test_x
29229 # Sed expression to map a string onto a valid CPP name.
29230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29232 # Sed expression to map a string onto a valid variable name.
29233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29236 exec 6>&1
29238 # Save the log message, to keep $[0] and so on meaningful, and to
29239 # report actual input values of CONFIG_FILES etc. instead of their
29240 # values after options handling.
29241 ac_log="
29242 This file was extended by $as_me, which was
29243 generated by GNU Autoconf 2.61. Invocation command line was
29245 CONFIG_FILES = $CONFIG_FILES
29246 CONFIG_HEADERS = $CONFIG_HEADERS
29247 CONFIG_LINKS = $CONFIG_LINKS
29248 CONFIG_COMMANDS = $CONFIG_COMMANDS
29249 $ $0 $@
29251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29254 _ACEOF
29256 cat >>$CONFIG_STATUS <<_ACEOF
29257 # Files that config.status was made for.
29258 config_files="$ac_config_files"
29259 config_headers="$ac_config_headers"
29261 _ACEOF
29263 cat >>$CONFIG_STATUS <<\_ACEOF
29264 ac_cs_usage="\
29265 \`$as_me' instantiates files from templates according to the
29266 current configuration.
29268 Usage: $0 [OPTIONS] [FILE]...
29270 -h, --help print this help, then exit
29271 -V, --version print version number and configuration settings, then exit
29272 -q, --quiet do not print progress messages
29273 -d, --debug don't remove temporary files
29274 --recheck update $as_me by reconfiguring in the same conditions
29275 --file=FILE[:TEMPLATE]
29276 instantiate the configuration file FILE
29277 --header=FILE[:TEMPLATE]
29278 instantiate the configuration header FILE
29280 Configuration files:
29281 $config_files
29283 Configuration headers:
29284 $config_headers
29286 Report bugs to <bug-autoconf@gnu.org>."
29288 _ACEOF
29289 cat >>$CONFIG_STATUS <<_ACEOF
29290 ac_cs_version="\\
29291 config.status
29292 configured by $0, generated by GNU Autoconf 2.61,
29293 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29295 Copyright (C) 2006 Free Software Foundation, Inc.
29296 This config.status script is free software; the Free Software Foundation
29297 gives unlimited permission to copy, distribute and modify it."
29299 ac_pwd='$ac_pwd'
29300 srcdir='$srcdir'
29301 INSTALL='$INSTALL'
29302 _ACEOF
29304 cat >>$CONFIG_STATUS <<\_ACEOF
29305 # If no file are specified by the user, then we need to provide default
29306 # value. By we need to know if files were specified by the user.
29307 ac_need_defaults=:
29308 while test $# != 0
29310 case $1 in
29311 --*=*)
29312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29313 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29314 ac_shift=:
29317 ac_option=$1
29318 ac_optarg=$2
29319 ac_shift=shift
29321 esac
29323 case $ac_option in
29324 # Handling of the options.
29325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29326 ac_cs_recheck=: ;;
29327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29328 echo "$ac_cs_version"; exit ;;
29329 --debug | --debu | --deb | --de | --d | -d )
29330 debug=: ;;
29331 --file | --fil | --fi | --f )
29332 $ac_shift
29333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29334 ac_need_defaults=false;;
29335 --header | --heade | --head | --hea )
29336 $ac_shift
29337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29338 ac_need_defaults=false;;
29339 --he | --h)
29340 # Conflict between --help and --header
29341 { echo "$as_me: error: ambiguous option: $1
29342 Try \`$0 --help' for more information." >&2
29343 { (exit 1); exit 1; }; };;
29344 --help | --hel | -h )
29345 echo "$ac_cs_usage"; exit ;;
29346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29348 ac_cs_silent=: ;;
29350 # This is an error.
29351 -*) { echo "$as_me: error: unrecognized option: $1
29352 Try \`$0 --help' for more information." >&2
29353 { (exit 1); exit 1; }; } ;;
29355 *) ac_config_targets="$ac_config_targets $1"
29356 ac_need_defaults=false ;;
29358 esac
29359 shift
29360 done
29362 ac_configure_extra_args=
29364 if $ac_cs_silent; then
29365 exec 6>/dev/null
29366 ac_configure_extra_args="$ac_configure_extra_args --silent"
29369 _ACEOF
29370 cat >>$CONFIG_STATUS <<_ACEOF
29371 if \$ac_cs_recheck; then
29372 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29373 CONFIG_SHELL=$SHELL
29374 export CONFIG_SHELL
29375 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29378 _ACEOF
29379 cat >>$CONFIG_STATUS <<\_ACEOF
29380 exec 5>>config.log
29382 echo
29383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29384 ## Running $as_me. ##
29385 _ASBOX
29386 echo "$ac_log"
29387 } >&5
29389 _ACEOF
29390 cat >>$CONFIG_STATUS <<_ACEOF
29391 _ACEOF
29393 cat >>$CONFIG_STATUS <<\_ACEOF
29395 # Handling of arguments.
29396 for ac_config_target in $ac_config_targets
29398 case $ac_config_target in
29399 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29400 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
29401 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
29402 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
29404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29406 { (exit 1); exit 1; }; };;
29407 esac
29408 done
29411 # If the user did not use the arguments to specify the items to instantiate,
29412 # then the envvar interface is used. Set only those that are not.
29413 # We use the long form for the default assignment because of an extremely
29414 # bizarre bug on SunOS 4.1.3.
29415 if $ac_need_defaults; then
29416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29420 # Have a temporary directory for convenience. Make it in the build tree
29421 # simply because there is no reason against having it here, and in addition,
29422 # creating and moving files from /tmp can sometimes cause problems.
29423 # Hook for its removal unless debugging.
29424 # Note that there is a small window in which the directory will not be cleaned:
29425 # after its creation but before its name has been assigned to `$tmp'.
29426 $debug ||
29428 tmp=
29429 trap 'exit_status=$?
29430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29432 trap '{ (exit 1); exit 1; }' 1 2 13 15
29434 # Create a (secure) tmp directory for tmp files.
29437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29438 test -n "$tmp" && test -d "$tmp"
29439 } ||
29441 tmp=./conf$$-$RANDOM
29442 (umask 077 && mkdir "$tmp")
29443 } ||
29445 echo "$me: cannot create a temporary directory in ." >&2
29446 { (exit 1); exit 1; }
29450 # Set up the sed scripts for CONFIG_FILES section.
29453 # No need to generate the scripts if there are no CONFIG_FILES.
29454 # This happens for instance when ./config.status config.h
29455 if test -n "$CONFIG_FILES"; then
29457 _ACEOF
29461 ac_delim='%!_!# '
29462 for ac_last_try in false false false false false :; do
29463 cat >conf$$subs.sed <<_ACEOF
29464 SHELL!$SHELL$ac_delim
29465 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29466 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29467 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29468 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29469 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29470 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29471 exec_prefix!$exec_prefix$ac_delim
29472 prefix!$prefix$ac_delim
29473 program_transform_name!$program_transform_name$ac_delim
29474 bindir!$bindir$ac_delim
29475 sbindir!$sbindir$ac_delim
29476 libexecdir!$libexecdir$ac_delim
29477 datarootdir!$datarootdir$ac_delim
29478 datadir!$datadir$ac_delim
29479 sysconfdir!$sysconfdir$ac_delim
29480 sharedstatedir!$sharedstatedir$ac_delim
29481 localstatedir!$localstatedir$ac_delim
29482 includedir!$includedir$ac_delim
29483 oldincludedir!$oldincludedir$ac_delim
29484 docdir!$docdir$ac_delim
29485 infodir!$infodir$ac_delim
29486 htmldir!$htmldir$ac_delim
29487 dvidir!$dvidir$ac_delim
29488 pdfdir!$pdfdir$ac_delim
29489 psdir!$psdir$ac_delim
29490 libdir!$libdir$ac_delim
29491 localedir!$localedir$ac_delim
29492 mandir!$mandir$ac_delim
29493 DEFS!$DEFS$ac_delim
29494 ECHO_C!$ECHO_C$ac_delim
29495 ECHO_N!$ECHO_N$ac_delim
29496 ECHO_T!$ECHO_T$ac_delim
29497 LIBS!$LIBS$ac_delim
29498 build_alias!$build_alias$ac_delim
29499 host_alias!$host_alias$ac_delim
29500 target_alias!$target_alias$ac_delim
29501 build!$build$ac_delim
29502 build_cpu!$build_cpu$ac_delim
29503 build_vendor!$build_vendor$ac_delim
29504 build_os!$build_os$ac_delim
29505 host!$host$ac_delim
29506 host_cpu!$host_cpu$ac_delim
29507 host_vendor!$host_vendor$ac_delim
29508 host_os!$host_os$ac_delim
29509 CC!$CC$ac_delim
29510 CFLAGS!$CFLAGS$ac_delim
29511 LDFLAGS!$LDFLAGS$ac_delim
29512 CPPFLAGS!$CPPFLAGS$ac_delim
29513 ac_ct_CC!$ac_ct_CC$ac_delim
29514 EXEEXT!$EXEEXT$ac_delim
29515 OBJEXT!$OBJEXT$ac_delim
29516 CPP!$CPP$ac_delim
29517 GREP!$GREP$ac_delim
29518 EGREP!$EGREP$ac_delim
29519 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29520 BUILD_CPU!$BUILD_CPU$ac_delim
29521 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29522 BUILD_OS!$BUILD_OS$ac_delim
29523 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29524 HOST_CPU!$HOST_CPU$ac_delim
29525 HOST_VENDOR!$HOST_VENDOR$ac_delim
29526 HOST_OS!$HOST_OS$ac_delim
29527 OSARCH!$OSARCH$ac_delim
29528 UNAME!$UNAME$ac_delim
29529 PBX_OSREV!$PBX_OSREV$ac_delim
29530 CXX!$CXX$ac_delim
29531 LD!$LD$ac_delim
29532 RANLIB!$RANLIB$ac_delim
29533 AR!$AR$ac_delim
29534 CXXFLAGS!$CXXFLAGS$ac_delim
29535 ac_ct_CXX!$ac_ct_CXX$ac_delim
29536 CXXCPP!$CXXCPP$ac_delim
29537 SED!$SED$ac_delim
29538 AWK!$AWK$ac_delim
29539 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29540 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29541 INSTALL_DATA!$INSTALL_DATA$ac_delim
29542 LN_S!$LN_S$ac_delim
29543 GNU_MAKE!$GNU_MAKE$ac_delim
29544 GNU_LD!$GNU_LD$ac_delim
29545 FIND!$FIND$ac_delim
29546 COMPRESS!$COMPRESS$ac_delim
29547 BASENAME!$BASENAME$ac_delim
29548 ID!$ID$ac_delim
29549 DIRNAME!$DIRNAME$ac_delim
29550 LN!$LN$ac_delim
29551 DOT!$DOT$ac_delim
29552 STRIP!$STRIP$ac_delim
29553 WGET!$WGET$ac_delim
29554 FETCH!$FETCH$ac_delim
29555 DOWNLOAD!$DOWNLOAD$ac_delim
29556 AST_DEVMODE!$AST_DEVMODE$ac_delim
29557 ALSA_LIB!$ALSA_LIB$ac_delim
29558 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29559 PBX_ALSA!$PBX_ALSA$ac_delim
29560 CURL_LIB!$CURL_LIB$ac_delim
29561 _ACEOF
29563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29564 break
29565 elif $ac_last_try; then
29566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29568 { (exit 1); exit 1; }; }
29569 else
29570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29572 done
29574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29575 if test -n "$ac_eof"; then
29576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29577 ac_eof=`expr $ac_eof + 1`
29580 cat >>$CONFIG_STATUS <<_ACEOF
29581 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29583 _ACEOF
29584 sed '
29585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29586 s/^/s,@/; s/!/@,|#_!!_#|/
29589 s/'"$ac_delim"'$/,g/; t
29590 s/$/\\/; p
29591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29592 ' >>$CONFIG_STATUS <conf$$subs.sed
29593 rm -f conf$$subs.sed
29594 cat >>$CONFIG_STATUS <<_ACEOF
29595 CEOF$ac_eof
29596 _ACEOF
29599 ac_delim='%!_!# '
29600 for ac_last_try in false false false false false :; do
29601 cat >conf$$subs.sed <<_ACEOF
29602 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29603 PBX_CURL!$PBX_CURL$ac_delim
29604 CURSES_LIB!$CURSES_LIB$ac_delim
29605 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29606 PBX_CURSES!$PBX_CURSES$ac_delim
29607 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29608 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29609 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29610 GSM_LIB!$GSM_LIB$ac_delim
29611 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29612 PBX_GSM!$PBX_GSM$ac_delim
29613 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29614 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29615 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29616 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29617 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29618 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29619 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29620 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29621 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29622 KDE_LIB!$KDE_LIB$ac_delim
29623 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29624 PBX_KDE!$PBX_KDE$ac_delim
29625 MISDN_LIB!$MISDN_LIB$ac_delim
29626 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29627 PBX_MISDN!$PBX_MISDN$ac_delim
29628 NBS_LIB!$NBS_LIB$ac_delim
29629 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29630 PBX_NBS!$PBX_NBS$ac_delim
29631 NCURSES_LIB!$NCURSES_LIB$ac_delim
29632 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29633 PBX_NCURSES!$PBX_NCURSES$ac_delim
29634 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29635 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29636 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29637 NEWT_LIB!$NEWT_LIB$ac_delim
29638 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29639 PBX_NEWT!$PBX_NEWT$ac_delim
29640 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29641 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29642 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29643 OGG_LIB!$OGG_LIB$ac_delim
29644 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29645 PBX_OGG!$PBX_OGG$ac_delim
29646 OSPTK_LIB!$OSPTK_LIB$ac_delim
29647 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29648 PBX_OSPTK!$PBX_OSPTK$ac_delim
29649 OSS_LIB!$OSS_LIB$ac_delim
29650 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29651 PBX_OSS!$PBX_OSS$ac_delim
29652 POPT_LIB!$POPT_LIB$ac_delim
29653 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29654 PBX_POPT!$PBX_POPT$ac_delim
29655 PGSQL_LIB!$PGSQL_LIB$ac_delim
29656 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29657 PBX_PGSQL!$PBX_PGSQL$ac_delim
29658 PRI_LIB!$PRI_LIB$ac_delim
29659 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29660 PBX_PRI!$PBX_PRI$ac_delim
29661 PWLIB_LIB!$PWLIB_LIB$ac_delim
29662 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29663 PBX_PWLIB!$PBX_PWLIB$ac_delim
29664 OPENH323_LIB!$OPENH323_LIB$ac_delim
29665 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29666 PBX_OPENH323!$PBX_OPENH323$ac_delim
29667 QT_LIB!$QT_LIB$ac_delim
29668 QT_INCLUDE!$QT_INCLUDE$ac_delim
29669 PBX_QT!$PBX_QT$ac_delim
29670 RADIUS_LIB!$RADIUS_LIB$ac_delim
29671 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29672 PBX_RADIUS!$PBX_RADIUS$ac_delim
29673 SPEEX_LIB!$SPEEX_LIB$ac_delim
29674 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29675 PBX_SPEEX!$PBX_SPEEX$ac_delim
29676 SQLITE_LIB!$SQLITE_LIB$ac_delim
29677 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29678 PBX_SQLITE!$PBX_SQLITE$ac_delim
29679 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29680 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29681 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29682 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29683 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29684 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29685 FREETDS_LIB!$FREETDS_LIB$ac_delim
29686 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29687 PBX_FREETDS!$PBX_FREETDS$ac_delim
29688 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29689 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29690 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29691 TINFO_LIB!$TINFO_LIB$ac_delim
29692 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29693 PBX_TINFO!$PBX_TINFO$ac_delim
29694 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29695 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29696 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29697 VORBIS_LIB!$VORBIS_LIB$ac_delim
29698 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29699 _ACEOF
29701 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29702 break
29703 elif $ac_last_try; then
29704 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29705 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29706 { (exit 1); exit 1; }; }
29707 else
29708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29710 done
29712 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29713 if test -n "$ac_eof"; then
29714 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29715 ac_eof=`expr $ac_eof + 1`
29718 cat >>$CONFIG_STATUS <<_ACEOF
29719 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29721 _ACEOF
29722 sed '
29723 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29724 s/^/s,@/; s/!/@,|#_!!_#|/
29727 s/'"$ac_delim"'$/,g/; t
29728 s/$/\\/; p
29729 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29730 ' >>$CONFIG_STATUS <conf$$subs.sed
29731 rm -f conf$$subs.sed
29732 cat >>$CONFIG_STATUS <<_ACEOF
29733 CEOF$ac_eof
29734 _ACEOF
29737 ac_delim='%!_!# '
29738 for ac_last_try in false false false false false :; do
29739 cat >conf$$subs.sed <<_ACEOF
29740 PBX_VORBIS!$PBX_VORBIS$ac_delim
29741 VPB_LIB!$VPB_LIB$ac_delim
29742 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29743 PBX_VPB!$PBX_VPB$ac_delim
29744 ZLIB_LIB!$ZLIB_LIB$ac_delim
29745 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29746 PBX_ZLIB!$PBX_ZLIB$ac_delim
29747 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29748 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29749 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29750 ALLOCA!$ALLOCA$ac_delim
29751 LIBOBJS!$LIBOBJS$ac_delim
29752 POW_LIB!$POW_LIB$ac_delim
29753 GC_CFLAGS!$GC_CFLAGS$ac_delim
29754 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29755 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29756 KDEINIT!$KDEINIT$ac_delim
29757 KDEDIR!$KDEDIR$ac_delim
29758 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29759 PG_CONFIG!$PG_CONFIG$ac_delim
29760 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29761 PWLIBDIR!$PWLIBDIR$ac_delim
29762 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29763 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29764 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29765 OPENH323DIR!$OPENH323DIR$ac_delim
29766 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29767 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29768 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29769 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29770 QTMOC!$QTMOC$ac_delim
29771 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29772 PBX_H323!$PBX_H323$ac_delim
29773 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29774 GTKCONFIG!$GTKCONFIG$ac_delim
29775 PBX_GTK!$PBX_GTK$ac_delim
29776 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29777 GTK_LIB!$GTK_LIB$ac_delim
29778 CURL!$CURL$ac_delim
29779 LTLIBOBJS!$LTLIBOBJS$ac_delim
29780 _ACEOF
29782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
29783 break
29784 elif $ac_last_try; then
29785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29787 { (exit 1); exit 1; }; }
29788 else
29789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29791 done
29793 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29794 if test -n "$ac_eof"; then
29795 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29796 ac_eof=`expr $ac_eof + 1`
29799 cat >>$CONFIG_STATUS <<_ACEOF
29800 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29802 _ACEOF
29803 sed '
29804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29805 s/^/s,@/; s/!/@,|#_!!_#|/
29808 s/'"$ac_delim"'$/,g/; t
29809 s/$/\\/; p
29810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29811 ' >>$CONFIG_STATUS <conf$$subs.sed
29812 rm -f conf$$subs.sed
29813 cat >>$CONFIG_STATUS <<_ACEOF
29814 :end
29815 s/|#_!!_#|//g
29816 CEOF$ac_eof
29817 _ACEOF
29820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29822 # trailing colons and then remove the whole line if VPATH becomes empty
29823 # (actually we leave an empty line to preserve line numbers).
29824 if test "x$srcdir" = x.; then
29825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29826 s/:*\$(srcdir):*/:/
29827 s/:*\${srcdir}:*/:/
29828 s/:*@srcdir@:*/:/
29829 s/^\([^=]*=[ ]*\):*/\1/
29830 s/:*$//
29831 s/^[^=]*=[ ]*$//
29835 cat >>$CONFIG_STATUS <<\_ACEOF
29836 fi # test -n "$CONFIG_FILES"
29839 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29841 case $ac_tag in
29842 :[FHLC]) ac_mode=$ac_tag; continue;;
29843 esac
29844 case $ac_mode$ac_tag in
29845 :[FHL]*:*);;
29846 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29848 { (exit 1); exit 1; }; };;
29849 :[FH]-) ac_tag=-:-;;
29850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29851 esac
29852 ac_save_IFS=$IFS
29853 IFS=:
29854 set x $ac_tag
29855 IFS=$ac_save_IFS
29856 shift
29857 ac_file=$1
29858 shift
29860 case $ac_mode in
29861 :L) ac_source=$1;;
29862 :[FH])
29863 ac_file_inputs=
29864 for ac_f
29866 case $ac_f in
29867 -) ac_f="$tmp/stdin";;
29868 *) # Look for the file first in the build tree, then in the source tree
29869 # (if the path is not absolute). The absolute path cannot be DOS-style,
29870 # because $ac_f cannot contain `:'.
29871 test -f "$ac_f" ||
29872 case $ac_f in
29873 [\\/$]*) false;;
29874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29875 esac ||
29876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29878 { (exit 1); exit 1; }; };;
29879 esac
29880 ac_file_inputs="$ac_file_inputs $ac_f"
29881 done
29883 # Let's still pretend it is `configure' which instantiates (i.e., don't
29884 # use $as_me), people would be surprised to read:
29885 # /* config.h. Generated by config.status. */
29886 configure_input="Generated from "`IFS=:
29887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29888 if test x"$ac_file" != x-; then
29889 configure_input="$ac_file. $configure_input"
29890 { echo "$as_me:$LINENO: creating $ac_file" >&5
29891 echo "$as_me: creating $ac_file" >&6;}
29894 case $ac_tag in
29895 *:-:* | *:-) cat >"$tmp/stdin";;
29896 esac
29898 esac
29900 ac_dir=`$as_dirname -- "$ac_file" ||
29901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29902 X"$ac_file" : 'X\(//\)[^/]' \| \
29903 X"$ac_file" : 'X\(//\)$' \| \
29904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29905 echo X"$ac_file" |
29906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29907 s//\1/
29910 /^X\(\/\/\)[^/].*/{
29911 s//\1/
29914 /^X\(\/\/\)$/{
29915 s//\1/
29918 /^X\(\/\).*/{
29919 s//\1/
29922 s/.*/./; q'`
29923 { as_dir="$ac_dir"
29924 case $as_dir in #(
29925 -*) as_dir=./$as_dir;;
29926 esac
29927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29928 as_dirs=
29929 while :; do
29930 case $as_dir in #(
29931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29932 *) as_qdir=$as_dir;;
29933 esac
29934 as_dirs="'$as_qdir' $as_dirs"
29935 as_dir=`$as_dirname -- "$as_dir" ||
29936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29937 X"$as_dir" : 'X\(//\)[^/]' \| \
29938 X"$as_dir" : 'X\(//\)$' \| \
29939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29940 echo X"$as_dir" |
29941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29942 s//\1/
29945 /^X\(\/\/\)[^/].*/{
29946 s//\1/
29949 /^X\(\/\/\)$/{
29950 s//\1/
29953 /^X\(\/\).*/{
29954 s//\1/
29957 s/.*/./; q'`
29958 test -d "$as_dir" && break
29959 done
29960 test -z "$as_dirs" || eval "mkdir $as_dirs"
29961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29963 { (exit 1); exit 1; }; }; }
29964 ac_builddir=.
29966 case "$ac_dir" in
29967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29970 # A ".." for each directory in $ac_dir_suffix.
29971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29972 case $ac_top_builddir_sub in
29973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29975 esac ;;
29976 esac
29977 ac_abs_top_builddir=$ac_pwd
29978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29979 # for backward compatibility:
29980 ac_top_builddir=$ac_top_build_prefix
29982 case $srcdir in
29983 .) # We are building in place.
29984 ac_srcdir=.
29985 ac_top_srcdir=$ac_top_builddir_sub
29986 ac_abs_top_srcdir=$ac_pwd ;;
29987 [\\/]* | ?:[\\/]* ) # Absolute name.
29988 ac_srcdir=$srcdir$ac_dir_suffix;
29989 ac_top_srcdir=$srcdir
29990 ac_abs_top_srcdir=$srcdir ;;
29991 *) # Relative name.
29992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29993 ac_top_srcdir=$ac_top_build_prefix$srcdir
29994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29995 esac
29996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29999 case $ac_mode in
30002 # CONFIG_FILE
30005 case $INSTALL in
30006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30008 esac
30009 _ACEOF
30011 cat >>$CONFIG_STATUS <<\_ACEOF
30012 # If the template does not know about datarootdir, expand it.
30013 # FIXME: This hack should be removed a few years after 2.60.
30014 ac_datarootdir_hack=; ac_datarootdir_seen=
30016 case `sed -n '/datarootdir/ {
30020 /@datadir@/p
30021 /@docdir@/p
30022 /@infodir@/p
30023 /@localedir@/p
30024 /@mandir@/p
30025 ' $ac_file_inputs` in
30026 *datarootdir*) ac_datarootdir_seen=yes;;
30027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30030 _ACEOF
30031 cat >>$CONFIG_STATUS <<_ACEOF
30032 ac_datarootdir_hack='
30033 s&@datadir@&$datadir&g
30034 s&@docdir@&$docdir&g
30035 s&@infodir@&$infodir&g
30036 s&@localedir@&$localedir&g
30037 s&@mandir@&$mandir&g
30038 s&\\\${datarootdir}&$datarootdir&g' ;;
30039 esac
30040 _ACEOF
30042 # Neutralize VPATH when `$srcdir' = `.'.
30043 # Shell code in configure.ac might set extrasub.
30044 # FIXME: do we really want to maintain this feature?
30045 cat >>$CONFIG_STATUS <<_ACEOF
30046 sed "$ac_vpsub
30047 $extrasub
30048 _ACEOF
30049 cat >>$CONFIG_STATUS <<\_ACEOF
30051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30052 s&@configure_input@&$configure_input&;t t
30053 s&@top_builddir@&$ac_top_builddir_sub&;t t
30054 s&@srcdir@&$ac_srcdir&;t t
30055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30056 s&@top_srcdir@&$ac_top_srcdir&;t t
30057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30058 s&@builddir@&$ac_builddir&;t t
30059 s&@abs_builddir@&$ac_abs_builddir&;t t
30060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30061 s&@INSTALL@&$ac_INSTALL&;t t
30062 $ac_datarootdir_hack
30063 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30068 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30069 which seems to be undefined. Please make sure it is defined." >&5
30070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30071 which seems to be undefined. Please make sure it is defined." >&2;}
30073 rm -f "$tmp/stdin"
30074 case $ac_file in
30075 -) cat "$tmp/out"; rm -f "$tmp/out";;
30076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30077 esac
30081 # CONFIG_HEADER
30083 _ACEOF
30085 # Transform confdefs.h into a sed script `conftest.defines', that
30086 # substitutes the proper values into config.h.in to produce config.h.
30087 rm -f conftest.defines conftest.tail
30088 # First, append a space to every undef/define line, to ease matching.
30089 echo 's/$/ /' >conftest.defines
30090 # Then, protect against being on the right side of a sed subst, or in
30091 # an unquoted here document, in config.status. If some macros were
30092 # called several times there might be several #defines for the same
30093 # symbol, which is useless. But do not sort them, since the last
30094 # AC_DEFINE must be honored.
30095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30096 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30097 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30098 # PARAMS is the parameter list in the macro definition--in most cases, it's
30099 # just an empty string.
30100 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30101 ac_dB='\\)[ (].*,\\1define\\2'
30102 ac_dC=' '
30103 ac_dD=' ,'
30105 uniq confdefs.h |
30106 sed -n '
30107 t rset
30108 :rset
30109 s/^[ ]*#[ ]*define[ ][ ]*//
30110 t ok
30113 s/[\\&,]/\\&/g
30114 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30115 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30116 ' >>conftest.defines
30118 # Remove the space that was appended to ease matching.
30119 # Then replace #undef with comments. This is necessary, for
30120 # example, in the case of _POSIX_SOURCE, which is predefined and required
30121 # on some systems where configure will not decide to define it.
30122 # (The regexp can be short, since the line contains either #define or #undef.)
30123 echo 's/ $//
30124 s,^[ #]*u.*,/* & */,' >>conftest.defines
30126 # Break up conftest.defines:
30127 ac_max_sed_lines=50
30129 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30130 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30131 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30132 # et cetera.
30133 ac_in='$ac_file_inputs'
30134 ac_out='"$tmp/out1"'
30135 ac_nxt='"$tmp/out2"'
30137 while :
30139 # Write a here document:
30140 cat >>$CONFIG_STATUS <<_ACEOF
30141 # First, check the format of the line:
30142 cat >"\$tmp/defines.sed" <<\\CEOF
30143 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30144 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30146 :def
30147 _ACEOF
30148 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30149 echo 'CEOF
30150 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30151 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30152 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30153 grep . conftest.tail >/dev/null || break
30154 rm -f conftest.defines
30155 mv conftest.tail conftest.defines
30156 done
30157 rm -f conftest.defines conftest.tail
30159 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 if test x"$ac_file" != x-; then
30162 echo "/* $configure_input */" >"$tmp/config.h"
30163 cat "$ac_result" >>"$tmp/config.h"
30164 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30165 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30166 echo "$as_me: $ac_file is unchanged" >&6;}
30167 else
30168 rm -f $ac_file
30169 mv "$tmp/config.h" $ac_file
30171 else
30172 echo "/* $configure_input */"
30173 cat "$ac_result"
30175 rm -f "$tmp/out12"
30179 esac
30181 done # for ac_tag
30184 { (exit 0); exit 0; }
30185 _ACEOF
30186 chmod +x $CONFIG_STATUS
30187 ac_clean_files=$ac_clean_files_save
30190 # configure is writing to config.log, and then calls config.status.
30191 # config.status does its own redirection, appending to config.log.
30192 # Unfortunately, on DOS this fails, as config.log is still kept open
30193 # by configure, so config.status won't be able to write to it; its
30194 # output is simply discarded. So we exec the FD to /dev/null,
30195 # effectively closing config.log, so it can be properly (re)opened and
30196 # appended to by config.status. When coming back to configure, we
30197 # need to make the FD available again.
30198 if test "$no_create" != yes; then
30199 ac_cs_success=:
30200 ac_config_status_args=
30201 test "$silent" = yes &&
30202 ac_config_status_args="$ac_config_status_args --quiet"
30203 exec 5>/dev/null
30204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30205 exec 5>>config.log
30206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30207 # would make configure fail if this is the last instruction.
30208 $ac_cs_success || { (exit 1); exit 1; }
30212 if test "x${silent}" != "xyes" ; then
30213 echo
30214 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30215 echo " .\$7\$7.. .7\$\$7:. "
30216 echo " .\$\$:. ,\$7.7 "
30217 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30218 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30219 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30220 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30221 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30222 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30223 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30224 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30225 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30226 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30227 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30228 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30229 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30230 echo " \$\$\$\$\$ \$\$\$ "
30231 echo " \$\$\$\$7. \$\$ (TM) "
30232 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30233 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30234 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30235 echo
30238 { echo "$as_me:$LINENO: Package configured for: " >&5
30239 echo "$as_me: Package configured for: " >&6;}
30240 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30241 echo "$as_me: OS type : $host_os" >&6;}
30242 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30243 echo "$as_me: Host CPU : $host_cpu" >&6;}
30244 if test "${cross_compiling}" = "yes"; then
30245 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30246 echo "$as_me: Cross Compilation = YES" >&6;}