Merged revisions 47677 via svnmerge from
[asterisk-bristuff.git] / configure
bloba4d897edd8b343470da287ec99988951a442aeb7
1 #! /bin/sh
2 # From configure.ac Revision: 47327 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
49 rm -f conf$$.sh
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
67 IFS=" "" $as_nl"
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 done
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
139 /^X\/\(\/\/\)$/{
140 s//\1/
143 /^X\/\(\/\).*/{
144 s//\1/
147 s/.*/./; q'`
149 # CDPATH.
150 $as_unset CDPATH
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
164 as_func_success () {
165 as_func_return 0
167 as_func_failure () {
168 as_func_return 1
170 as_func_ret_success () {
171 return 0
173 as_func_ret_failure () {
174 return 1
177 exitcode=0
178 if as_func_success; then
180 else
181 exitcode=1
182 echo as_func_success failed.
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 else
205 exitcode=1
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
274 (as_func_return () {
275 (exit $1)
277 as_func_success () {
278 as_func_return 0
280 as_func_failure () {
281 as_func_return 1
283 as_func_ret_success () {
284 return 0
286 as_func_ret_failure () {
287 return 1
290 exitcode=0
291 if as_func_success; then
293 else
294 exitcode=1
295 echo as_func_success failed.
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 else
318 exitcode=1
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330 _ASEOF
331 }; then
332 break
337 done
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
364 (exit \$1)
366 as_func_success () {
367 as_func_return 0
369 as_func_failure () {
370 as_func_return 1
372 as_func_ret_success () {
373 return 0
375 as_func_ret_failure () {
376 return 1
379 exitcode=0
380 if as_func_success; then
382 else
383 exitcode=1
384 echo as_func_success failed.
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 else
407 exitcode=1
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
477 ECHO_N='-n';;
478 esac
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
530 rm -f conf$$.file
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
561 PACKAGE_NAME=
562 PACKAGE_TARNAME=
563 PACKAGE_VERSION=
564 PACKAGE_STRING=
565 PACKAGE_BUGREPORT=
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
650 BUILD_PLATFORM
651 BUILD_CPU
652 BUILD_VENDOR
653 BUILD_OS
654 HOST_PLATFORM
655 HOST_CPU
656 HOST_VENDOR
657 HOST_OS
658 OSARCH
659 UNAME
660 PBX_OSREV
664 RANLIB
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CXXFLAGS
673 ac_ct_CXX
675 CXXCPP
677 EGREP
679 INSTALL_PROGRAM
680 INSTALL_SCRIPT
681 INSTALL_DATA
682 LN_S
683 GNU_MAKE
684 GNU_LD
685 GREP
686 FIND
687 COMPRESS
688 BASENAME
690 DIRNAME
693 STRIP
694 AST_DEVMODE
695 ALSA_LIB
696 ALSA_INCLUDE
697 PBX_ALSA
698 CURL_LIB
699 CURL_INCLUDE
700 PBX_CURL
701 CURSES_LIB
702 CURSES_INCLUDE
703 PBX_CURSES
704 GNUTLS_LIB
705 GNUTLS_INCLUDE
706 PBX_GNUTLS
707 GSM_LIB
708 GSM_INCLUDE
709 PBX_GSM
710 IKSEMEL_LIB
711 IKSEMEL_INCLUDE
712 PBX_IKSEMEL
713 IMAP_TK_LIB
714 IMAP_TK_INCLUDE
715 PBX_IMAP_TK
716 ISDNNET_LIB
717 ISDNNET_INCLUDE
718 PBX_ISDNNET
719 KDE_LIB
720 KDE_INCLUDE
721 PBX_KDE
722 MISDN_LIB
723 MISDN_INCLUDE
724 PBX_MISDN
725 NBS_LIB
726 NBS_INCLUDE
727 PBX_NBS
728 NCURSES_LIB
729 NCURSES_INCLUDE
730 PBX_NCURSES
731 NETSNMP_LIB
732 NETSNMP_INCLUDE
733 PBX_NETSNMP
734 NEWT_LIB
735 NEWT_INCLUDE
736 PBX_NEWT
737 UNIXODBC_LIB
738 UNIXODBC_INCLUDE
739 PBX_UNIXODBC
740 OGG_LIB
741 OGG_INCLUDE
742 PBX_OGG
743 OSPTK_LIB
744 OSPTK_INCLUDE
745 PBX_OSPTK
746 OSS_LIB
747 OSS_INCLUDE
748 PBX_OSS
749 POPT_LIB
750 POPT_INCLUDE
751 PBX_POPT
752 PGSQL_LIB
753 PGSQL_INCLUDE
754 PBX_PGSQL
755 PRI_LIB
756 PRI_INCLUDE
757 PBX_PRI
758 PWLIB_LIB
759 PWLIB_INCLUDE
760 PBX_PWLIB
761 OPENH323_LIB
762 OPENH323_INCLUDE
763 PBX_OPENH323
764 QT_LIB
765 QT_INCLUDE
766 PBX_QT
767 RADIUS_LIB
768 RADIUS_INCLUDE
769 PBX_RADIUS
770 SPEEX_LIB
771 SPEEX_INCLUDE
772 PBX_SPEEX
773 SQLITE_LIB
774 SQLITE_INCLUDE
775 PBX_SQLITE
776 SUPPSERV_LIB
777 SUPPSERV_INCLUDE
778 PBX_SUPPSERV
779 OPENSSL_LIB
780 OPENSSL_INCLUDE
781 PBX_OPENSSL
782 FREETDS_LIB
783 FREETDS_INCLUDE
784 PBX_FREETDS
785 TERMCAP_LIB
786 TERMCAP_INCLUDE
787 PBX_TERMCAP
788 TINFO_LIB
789 TINFO_INCLUDE
790 PBX_TINFO
791 TONEZONE_LIB
792 TONEZONE_INCLUDE
793 PBX_TONEZONE
794 VORBIS_LIB
795 VORBIS_INCLUDE
796 PBX_VORBIS
797 VPB_LIB
798 VPB_INCLUDE
799 PBX_VPB
800 ZLIB_LIB
801 ZLIB_INCLUDE
802 PBX_ZLIB
803 ZAPTEL_LIB
804 ZAPTEL_INCLUDE
805 PBX_ZAPTEL
806 ALLOCA
807 LIBOBJS
808 POW_LIB
809 GC_CFLAGS
810 GC_LDFLAGS
811 GSM_INTERNAL
812 KDEINIT
813 KDEDIR
814 NETSNMP_CONFIG
815 PG_CONFIG
816 PTLIB_CONFIG
817 PWLIBDIR
818 PWLIB_INCDIR
819 PWLIB_LIBDIR
820 PWLIB_PLATFORM
821 OPENH323DIR
822 OPENH323_INCDIR
823 OPENH323_LIBDIR
824 OPENH323_SUFFIX
825 OPENH323_BUILD
826 QTMOC
827 EDITLINE_LIB
828 PBX_H323
829 PBX_IXJUSER
830 GTKCONFIG
831 PBX_GTK
832 GTK_INCLUDE
833 GTK_LIB
834 CURL
835 LTLIBOBJS'
836 ac_subst_files=''
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
845 CXXFLAGS
848 CXXCPP'
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
974 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
975 { (exit 1); exit 1; }; }
976 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
977 eval enable_$ac_feature=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1167 -with-* | --with-*)
1168 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid package name: $ac_package" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_package=`echo $ac_package| sed 's/-/_/g'`
1174 eval with_$ac_package=\$ac_optarg ;;
1176 -without-* | --without-*)
1177 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid package name: $ac_package" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_package=`echo $ac_package | sed 's/-/_/g'`
1183 eval with_$ac_package=no ;;
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) { echo "$as_me: error: unrecognized option: $ac_option
1204 Try \`$0 --help' for more information." >&2
1205 { (exit 1); exit 1; }; }
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1213 { (exit 1); exit 1; }; }
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 esac
1226 done
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 { echo "$as_me: error: missing argument to $ac_option" >&2
1231 { (exit 1); exit 1; }; }
1234 # Be sure to have absolute directory names.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1246 { (exit 1); exit 1; }; }
1247 done
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1261 If a cross compiler is detected then cross compile mode will be used." >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 { echo "$as_me: error: Working directory cannot be determined" >&2
1277 { (exit 1); exit 1; }; }
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 { echo "$as_me: error: pwd does not report name of working directory" >&2
1280 { (exit 1); exit 1; }; }
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$0" ||
1288 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$0" : 'X\(//\)[^/]' \| \
1290 X"$0" : 'X\(//\)$' \| \
1291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1292 echo X"$0" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1301 /^X\(\/\/\)$/{
1302 s//\1/
1305 /^X\(\/\).*/{
1306 s//\1/
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1314 else
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1320 { (exit 1); exit 1; }; }
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1325 { (exit 1); exit 1; }; }
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures this package to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1406 cat <<\_ACEOF
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1414 if test -n "$ac_init_help"; then
1416 cat <<\_ACEOF
1418 Optional Features:
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-dev-mode Turn on developer mode
1422 --disable-largefile omit support for large files
1424 Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1429 --with-curl=PATH use cURL files in PATH
1430 --with-curses=PATH use curses files in PATH
1431 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1432 PATH
1433 --with-gsm=PATH use GSM files in PATH , or 'internal'
1434 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1435 --with-imap=PATH use UW IMAP Toolkit files in PATH
1436 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1437 --with-kde=PATH use KDE files in PATH
1438 --with-misdn=PATH use mISDN User Library files in PATH
1439 --with-nbs=PATH use Network Broadcast Sound files in PATH
1440 --with-ncurses=PATH use ncurses files in PATH
1441 --with-netsnmp=PATH use Net-SNMP files in PATH
1442 --with-newt=PATH use newt files in PATH
1443 --with-odbc=PATH use unixODBC files in PATH
1444 --with-ogg=PATH use OGG files in PATH
1445 --with-osptk=PATH use OSP Toolkit files in PATH
1446 --with-oss=PATH use Open Sound System files in PATH
1447 --with-popt=PATH use popt files in PATH
1448 --with-postgres=PATH use PostgreSQL files in PATH
1449 --with-pri=PATH use ISDN PRI files in PATH
1450 --with-pwlib=PATH use PWlib files in PATH
1451 --with-h323=PATH use OpenH323 files in PATH
1452 --with-qt=PATH use Qt files in PATH
1453 --with-radius=PATH use Radius Client files in PATH
1454 --with-speex=PATH use Speex files in PATH
1455 --with-sqlite=PATH use SQLite files in PATH
1456 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1457 --with-ssl=PATH use OpenSSL files in PATH
1458 --with-tds=PATH use FreeTDS files in PATH
1459 --with-termcap=PATH use Termcap files in PATH
1460 --with-tinfo=PATH use Term Info files in PATH
1461 --with-tonezone=PATH use tonezone files in PATH
1462 --with-vorbis=PATH use Vorbis files in PATH
1463 --with-vpb=PATH use Voicetronix API files in PATH
1464 --with-z=PATH use zlib files in PATH
1465 --with-zaptel=PATH use Zaptel files in PATH
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1476 CPP C preprocessor
1477 CXXCPP C++ preprocessor
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 configure
1543 generated by GNU Autoconf 2.60a
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 "Asterisk"
1551 _ACEOF
1552 exit
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by $as_me, which was
1559 generated by GNU Autoconf 2.60a. Invocation command line was
1561 $ $0 $@
1563 _ACEOF
1564 exec 5>>config.log
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 _ASUNAME
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1599 } >&5
1601 cat >&5 <<_ACEOF
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1608 _ACEOF
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1622 for ac_arg
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
1629 *\'*)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 esac
1632 case $ac_pass in
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1638 else
1639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1648 -* ) ac_must_keep_next=true ;;
1649 esac
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1653 esac
1654 done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1667 echo
1669 cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 esac |
1702 sort
1704 echo
1706 cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 esac
1718 echo "$ac_var='\''$ac_val'\''"
1719 done | sort
1720 echo
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1803 shift
1804 for ac_site_file
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1812 done
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1825 else
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 esac
1871 done
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 # cross-compile macros
1905 ac_aux_dir=
1906 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1907 if test -f "$ac_dir/install-sh"; then
1908 ac_aux_dir=$ac_dir
1909 ac_install_sh="$ac_aux_dir/install-sh -c"
1910 break
1911 elif test -f "$ac_dir/install.sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install.sh -c"
1914 break
1915 elif test -f "$ac_dir/shtool"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/shtool install -c"
1918 break
1920 done
1921 if test -z "$ac_aux_dir"; then
1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1923 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1924 { (exit 1); exit 1; }; }
1927 # These three variables are undocumented and unsupported,
1928 # and are intended to be withdrawn in a future Autoconf release.
1929 # They can cause serious problems if a builder's source tree is in a directory
1930 # whose full name contains unusual characters.
1931 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1932 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1933 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1936 # Make sure we can run config.sub.
1937 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1938 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1939 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1940 { (exit 1); exit 1; }; }
1942 { echo "$as_me:$LINENO: checking build system type" >&5
1943 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1944 if test "${ac_cv_build+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 ac_build_alias=$build_alias
1948 test "x$ac_build_alias" = x &&
1949 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1950 test "x$ac_build_alias" = x &&
1951 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1952 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1953 { (exit 1); exit 1; }; }
1954 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1955 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1956 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1957 { (exit 1); exit 1; }; }
1960 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1961 echo "${ECHO_T}$ac_cv_build" >&6; }
1962 case $ac_cv_build in
1963 *-*-*) ;;
1964 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1965 echo "$as_me: error: invalid value of canonical build" >&2;}
1966 { (exit 1); exit 1; }; };;
1967 esac
1968 build=$ac_cv_build
1969 ac_save_IFS=$IFS; IFS='-'
1970 set x $ac_cv_build
1971 shift
1972 build_cpu=$1
1973 build_vendor=$2
1974 shift; shift
1975 # Remember, the first character of IFS is used to create $*,
1976 # except with old shells:
1977 build_os=$*
1978 IFS=$ac_save_IFS
1979 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1982 { echo "$as_me:$LINENO: checking host system type" >&5
1983 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1984 if test "${ac_cv_host+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test "x$host_alias" = x; then
1988 ac_cv_host=$ac_cv_build
1989 else
1990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1991 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1992 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1993 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1998 echo "${ECHO_T}$ac_cv_host" >&6; }
1999 case $ac_cv_host in
2000 *-*-*) ;;
2001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2002 echo "$as_me: error: invalid value of canonical host" >&2;}
2003 { (exit 1); exit 1; }; };;
2004 esac
2005 host=$ac_cv_host
2006 ac_save_IFS=$IFS; IFS='-'
2007 set x $ac_cv_host
2008 shift
2009 host_cpu=$1
2010 host_vendor=$2
2011 shift; shift
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2014 host_os=$*
2015 IFS=$ac_save_IFS
2016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2020 # check existence of the package
2023 # specify output header file
2024 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2030 case "${host_os}" in
2031 freebsd*)
2032 ac_default_prefix=/usr/local
2033 CPPFLAGS=-I/usr/local/include
2034 LDFLAGS=-L/usr/local/lib
2037 ac_default_prefix=/usr
2038 if test ${sysconfdir} = '${prefix}/etc'; then
2039 sysconfdir=/etc
2041 if test ${mandir} = '${prefix}/man'; then
2042 mandir=/usr/share/man
2045 esac
2047 if test ${localstatedir} = '${prefix}/var'; then
2048 localstatedir=/var
2051 BUILD_PLATFORM=${build}
2052 BUILD_CPU=${build_cpu}
2053 BUILD_VENDOR=${build_vendor}
2054 BUILD_OS=${build_os}
2061 HOST_PLATFORM=${host}
2062 HOST_CPU=${host_cpu}
2063 HOST_VENDOR=${host_vendor}
2064 HOST_OS=${host_os}
2071 case "${host_os}" in
2072 freebsd*)
2073 OSARCH=FreeBSD
2075 netbsd*)
2076 OSARCH=NetBSD
2078 openbsd*)
2079 OSARCH=OpenBSD
2081 solaris*)
2082 OSARCH=SunOS
2085 OSARCH=${HOST_OS}
2087 esac
2091 # check for uname
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}uname; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_path_UNAME+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 case $UNAME in
2101 [\\/]* | ?:[\\/]*)
2102 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2116 done
2117 done
2118 IFS=$as_save_IFS
2121 esac
2123 UNAME=$ac_cv_path_UNAME
2124 if test -n "$UNAME"; then
2125 { echo "$as_me:$LINENO: result: $UNAME" >&5
2126 echo "${ECHO_T}$UNAME" >&6; }
2127 else
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2134 if test -z "$ac_cv_path_UNAME"; then
2135 ac_pt_UNAME=$UNAME
2136 # Extract the first word of "uname", so it can be a program name with args.
2137 set dummy uname; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 case $ac_pt_UNAME in
2144 [\\/]* | ?:[\\/]*)
2145 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2161 IFS=$as_save_IFS
2164 esac
2166 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2167 if test -n "$ac_pt_UNAME"; then
2168 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2169 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2175 if test "x$ac_pt_UNAME" = x; then
2176 UNAME="No"
2177 else
2178 case $cross_compiling:$ac_tool_warned in
2179 yes:)
2180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2181 whose name does not start with the host triplet. If you think this
2182 configuration is useful to you, please write to autoconf@gnu.org." >&5
2183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2184 whose name does not start with the host triplet. If you think this
2185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 UNAME=$ac_pt_UNAME
2190 else
2191 UNAME="$ac_cv_path_UNAME"
2194 if test ! x"${UNAME}" = xNo; then
2195 PBX_OSREV=$(${UNAME} -r)
2199 # This needs to be before any macros that use the C compiler
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _GNU_SOURCE 1
2203 _ACEOF
2213 # cross-compile checks
2214 if test "${cross_compiling}" = "yes";
2215 then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2238 done
2239 done
2240 IFS=$as_save_IFS
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 { echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6; }
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2255 if test -z "$ac_cv_prog_CC"; then
2256 ac_ct_CC=$CC
2257 # Extract the first word of "gcc", so it can be a program name with args.
2258 set dummy gcc; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2274 ac_cv_prog_ac_ct_CC="gcc"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2278 done
2279 done
2280 IFS=$as_save_IFS
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6; }
2288 else
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2293 if test "x$ac_ct_CC" = x; then
2294 CC=":"
2295 else
2296 case $cross_compiling:$ac_tool_warned in
2297 yes:)
2298 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&5
2301 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2302 whose name does not start with the host triplet. If you think this
2303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2304 ac_tool_warned=yes ;;
2305 esac
2306 CC=$ac_ct_CC
2308 else
2309 CC="$ac_cv_prog_CC"
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}g++; ac_word=$2
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317 if test "${ac_cv_prog_CXX+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 if test -n "$CXX"; then
2321 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2330 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2334 done
2335 done
2336 IFS=$as_save_IFS
2340 CXX=$ac_cv_prog_CXX
2341 if test -n "$CXX"; then
2342 { echo "$as_me:$LINENO: result: $CXX" >&5
2343 echo "${ECHO_T}$CXX" >&6; }
2344 else
2345 { echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6; }
2351 if test -z "$ac_cv_prog_CXX"; then
2352 ac_ct_CXX=$CXX
2353 # Extract the first word of "g++", so it can be a program name with args.
2354 set dummy g++; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test -n "$ac_ct_CXX"; then
2361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_CXX="g++"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2374 done
2375 done
2376 IFS=$as_save_IFS
2380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2381 if test -n "$ac_ct_CXX"; then
2382 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2383 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2384 else
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2389 if test "x$ac_ct_CXX" = x; then
2390 CXX=":"
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395 whose name does not start with the host triplet. If you think this
2396 configuration is useful to you, please write to autoconf@gnu.org." >&5
2397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet. If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400 ac_tool_warned=yes ;;
2401 esac
2402 CXX=$ac_ct_CXX
2404 else
2405 CXX="$ac_cv_prog_CXX"
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}ld; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_LD+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416 if test -n "$LD"; then
2417 ac_cv_prog_LD="$LD" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_LD="${ac_tool_prefix}ld"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2430 done
2431 done
2432 IFS=$as_save_IFS
2436 LD=$ac_cv_prog_LD
2437 if test -n "$LD"; then
2438 { echo "$as_me:$LINENO: result: $LD" >&5
2439 echo "${ECHO_T}$LD" >&6; }
2440 else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2447 if test -z "$ac_cv_prog_LD"; then
2448 ac_ct_LD=$LD
2449 # Extract the first word of "ld", so it can be a program name with args.
2450 set dummy ld; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 if test -n "$ac_ct_LD"; then
2457 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_LD="ld"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2470 done
2471 done
2472 IFS=$as_save_IFS
2476 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2477 if test -n "$ac_ct_LD"; then
2478 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2479 echo "${ECHO_T}$ac_ct_LD" >&6; }
2480 else
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2485 if test "x$ac_ct_LD" = x; then
2486 LD=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 LD=$ac_ct_LD
2500 else
2501 LD="$ac_cv_prog_LD"
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_RANLIB+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test -n "$RANLIB"; then
2513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 RANLIB=$ac_cv_prog_RANLIB
2533 if test -n "$RANLIB"; then
2534 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2535 echo "${ECHO_T}$RANLIB" >&6; }
2536 else
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2543 if test -z "$ac_cv_prog_RANLIB"; then
2544 ac_ct_RANLIB=$RANLIB
2545 # Extract the first word of "ranlib", so it can be a program name with args.
2546 set dummy ranlib; ac_word=$2
2547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2549 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test -n "$ac_ct_RANLIB"; then
2553 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_ac_ct_RANLIB="ranlib"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2566 done
2567 done
2568 IFS=$as_save_IFS
2572 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2573 if test -n "$ac_ct_RANLIB"; then
2574 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2575 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2576 else
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2581 if test "x$ac_ct_RANLIB" = x; then
2582 RANLIB=":"
2583 else
2584 case $cross_compiling:$ac_tool_warned in
2585 yes:)
2586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet. If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&5
2589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2590 whose name does not start with the host triplet. If you think this
2591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2592 ac_tool_warned=yes ;;
2593 esac
2594 RANLIB=$ac_ct_RANLIB
2596 else
2597 RANLIB="$ac_cv_prog_RANLIB"
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}ar; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_AR+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$AR"; then
2609 ac_cv_prog_AR="$AR" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_AR="${ac_tool_prefix}ar"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 AR=$ac_cv_prog_AR
2629 if test -n "$AR"; then
2630 { echo "$as_me:$LINENO: result: $AR" >&5
2631 echo "${ECHO_T}$AR" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2639 if test -z "$ac_cv_prog_AR"; then
2640 ac_ct_AR=$AR
2641 # Extract the first word of "ar", so it can be a program name with args.
2642 set dummy ar; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_AR"; then
2649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_AR="ar"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2664 IFS=$as_save_IFS
2668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2669 if test -n "$ac_ct_AR"; then
2670 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2671 echo "${ECHO_T}$ac_ct_AR" >&6; }
2672 else
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2677 if test "x$ac_ct_AR" = x; then
2678 AR=":"
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 AR=$ac_ct_AR
2692 else
2693 AR="$ac_cv_prog_AR"
2698 # Checks for programs.
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734 { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2736 else
2737 { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2743 if test -z "$ac_cv_prog_CC"; then
2744 ac_ct_CC=$CC
2745 # Extract the first word of "gcc", so it can be a program name with args.
2746 set dummy gcc; ac_word=$2
2747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 if test -n "$ac_ct_CC"; then
2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_CC="gcc"
2763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2768 IFS=$as_save_IFS
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775 echo "${ECHO_T}$ac_ct_CC" >&6; }
2776 else
2777 { echo "$as_me:$LINENO: result: no" >&5
2778 echo "${ECHO_T}no" >&6; }
2781 if test "x$ac_ct_CC" = x; then
2782 CC=""
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785 yes:)
2786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2787 whose name does not start with the host triplet. If you think this
2788 configuration is useful to you, please write to autoconf@gnu.org." >&5
2789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2790 whose name does not start with the host triplet. If you think this
2791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2792 ac_tool_warned=yes ;;
2793 esac
2794 CC=$ac_ct_CC
2796 else
2797 CC="$ac_cv_prog_CC"
2800 if test -z "$CC"; then
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}cc; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CC="${ac_tool_prefix}cc"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2825 IFS=$as_save_IFS
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 { echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6; }
2833 else
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2841 if test -z "$CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 ac_prog_rejected=no
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2861 ac_prog_rejected=yes
2862 continue
2864 ac_cv_prog_CC="cc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2870 IFS=$as_save_IFS
2872 if test $ac_prog_rejected = yes; then
2873 # We found a bogon in the path, so make sure we never use it.
2874 set dummy $ac_cv_prog_CC
2875 shift
2876 if test $# != 0; then
2877 # We chose a different compiler from the bogus one.
2878 # However, it has the same basename, so the bogon will be chosen
2879 # first if we set CC to just the basename; use the full file name.
2880 shift
2881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { echo "$as_me:$LINENO: result: $CC" >&5
2889 echo "${ECHO_T}$CC" >&6; }
2890 else
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2897 if test -z "$CC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 for ac_prog in cl.exe
2901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { echo "$as_me:$LINENO: result: $CC" >&5
2931 echo "${ECHO_T}$CC" >&6; }
2932 else
2933 { echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6; }
2938 test -n "$CC" && break
2939 done
2941 if test -z "$CC"; then
2942 ac_ct_CC=$CC
2943 for ac_prog in cl.exe
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 if test -n "$ac_ct_CC"; then
2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_ac_ct_CC="$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2966 done
2967 done
2968 IFS=$as_save_IFS
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2975 echo "${ECHO_T}$ac_ct_CC" >&6; }
2976 else
2977 { echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6; }
2982 test -n "$ac_ct_CC" && break
2983 done
2985 if test "x$ac_ct_CC" = x; then
2986 CC=""
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet. If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&5
2993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998 CC=$ac_ct_CC
3005 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: no acceptable C compiler found in \$PATH
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3011 # Provide some information about the compiler.
3012 echo "$as_me:$LINENO: checking for C compiler version" >&5
3013 ac_compiler=`set X $ac_compile; echo $2`
3014 { (ac_try="$ac_compiler --version >&5"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compiler --version >&5") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }
3024 { (ac_try="$ac_compiler -v >&5"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler -v >&5") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (ac_try="$ac_compiler -V >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler -V >&5") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3053 main ()
3057 return 0;
3059 _ACEOF
3060 ac_clean_files_save=$ac_clean_files
3061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3062 # Try to create an executable without -o first, disregard a.out.
3063 # It will help us diagnose broken compilers, and finding out an intuition
3064 # of exeext.
3065 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3066 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069 # List of possible output files, starting from the most likely.
3070 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3071 # only as a last resort. b.out is created by i960 compilers.
3072 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3074 # The IRIX 6 linker writes into existing files which may not be
3075 # executable, retaining their permissions. Remove them first so a
3076 # subsequent execution test works.
3077 ac_rmfiles=
3078 for ac_file in $ac_files
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 esac
3084 done
3085 rm -f $ac_rmfiles
3087 if { (ac_try="$ac_link_default"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_link_default") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; then
3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100 # so that the user can short-circuit this test for compilers unknown to
3101 # Autoconf.
3102 for ac_file in $ac_files ''
3104 test -f "$ac_file" || continue
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3108 [ab].out )
3109 # We found the default executable, but exeext='' is most
3110 # certainly right.
3111 break;;
3112 *.* )
3113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114 then :; else
3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 # We set ac_cv_exeext here because the later test for it is not
3118 # safe: cross compilers may not add the suffix if given an `-o'
3119 # argument, so we may need to know it at that point already.
3120 # Even if this section looks crufty: it has the advantage of
3121 # actually working.
3122 break;;
3124 break;;
3125 esac
3126 done
3127 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129 else
3130 ac_file=''
3133 { echo "$as_me:$LINENO: result: $ac_file" >&5
3134 echo "${ECHO_T}$ac_file" >&6; }
3135 if test -z "$ac_file"; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3140 See \`config.log' for more details." >&5
3141 echo "$as_me: error: C compiler cannot create executables
3142 See \`config.log' for more details." >&2;}
3143 { (exit 77); exit 77; }; }
3146 ac_exeext=$ac_cv_exeext
3148 # Check that the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3151 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3152 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3153 # If not cross compiling, check that we can run a simple program.
3154 if test "$cross_compiling" != yes; then
3155 if { ac_try='./$ac_file'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 cross_compiling=no
3166 else
3167 if test "$cross_compiling" = maybe; then
3168 cross_compiling=yes
3169 else
3170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3180 { echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6; }
3183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3184 ac_clean_files=$ac_clean_files_save
3185 # Check that the compiler produces executables we can run. If not, either
3186 # the compiler is broken, or we cross compile.
3187 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3189 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3190 echo "${ECHO_T}$cross_compiling" >&6; }
3192 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3194 if { (ac_try="$ac_link"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_link") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; then
3204 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3205 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3206 # work properly (i.e., refer to `conftest.exe'), while it won't with
3207 # `rm'.
3208 for ac_file in conftest.exe conftest conftest.*; do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 break;;
3214 * ) break;;
3215 esac
3216 done
3217 else
3218 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details." >&5
3220 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3221 See \`config.log' for more details." >&2;}
3222 { (exit 1); exit 1; }; }
3225 rm -f conftest$ac_cv_exeext
3226 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3227 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3229 rm -f conftest.$ac_ext
3230 EXEEXT=$ac_cv_exeext
3231 ac_exeext=$EXEEXT
3232 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3233 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3234 if test "${ac_cv_objext+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 rm -f conftest.o conftest.obj
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3276 See \`config.log' for more details." >&5
3277 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details." >&2;}
3279 { (exit 1); exit 1; }; }
3282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3285 echo "${ECHO_T}$ac_cv_objext" >&6; }
3286 OBJEXT=$ac_cv_objext
3287 ac_objext=$OBJEXT
3288 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3289 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3290 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3301 main ()
3303 #ifndef __GNUC__
3304 choke me
3305 #endif
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_compiler_gnu=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_compiler_gnu=no
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3359 GCC=`test $ac_compiler_gnu = yes && echo yes`
3360 ac_test_CFLAGS=${CFLAGS+set}
3361 ac_save_CFLAGS=$CFLAGS
3362 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_g+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 ac_save_c_werror_flag=$ac_c_werror_flag
3368 ac_c_werror_flag=yes
3369 ac_cv_prog_cc_g=no
3370 CFLAGS="-g"
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3401 { (case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_try") 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 ac_cv_prog_cc_g=yes
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 CFLAGS=""
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_try") 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_try") 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3481 CFLAGS="-g"
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3490 main ()
3494 return 0;
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3512 { (case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_try") 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_try") 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_prog_cc_g=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3548 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3550 if test "$ac_test_CFLAGS" = set; then
3551 CFLAGS=$ac_save_CFLAGS
3552 elif test $ac_cv_prog_cc_g = yes; then
3553 if test "$GCC" = yes; then
3554 CFLAGS="-g -O2"
3555 else
3556 CFLAGS="-g"
3558 else
3559 if test "$GCC" = yes; then
3560 CFLAGS="-O2"
3561 else
3562 CFLAGS=
3565 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3566 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3567 if test "${ac_cv_prog_cc_c89+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 ac_cv_prog_cc_c89=no
3571 ac_save_CC=$CC
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <stdarg.h>
3579 #include <stdio.h>
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3589 return p[i];
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3622 main ()
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 return 0;
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 CC="$ac_save_CC $ac_arg"
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3648 { (case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_prog_cc_c89=$ac_arg
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3685 { echo "$as_me:$LINENO: result: none needed" >&5
3686 echo "${ECHO_T}none needed" >&6; } ;;
3687 xno)
3688 { echo "$as_me:$LINENO: result: unsupported" >&5
3689 echo "${ECHO_T}unsupported" >&6; } ;;
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 ac_ext=cpp
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3708 if test -z "$CXX"; then
3709 if test -n "$CCC"; then
3710 CXX=$CCC
3711 else
3712 if test -n "$ac_tool_prefix"; then
3713 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3719 if test "${ac_cv_prog_CXX+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$CXX"; then
3723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3738 IFS=$as_save_IFS
3742 CXX=$ac_cv_prog_CXX
3743 if test -n "$CXX"; then
3744 { echo "$as_me:$LINENO: result: $CXX" >&5
3745 echo "${ECHO_T}$CXX" >&6; }
3746 else
3747 { echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6; }
3752 test -n "$CXX" && break
3753 done
3755 if test -z "$CXX"; then
3756 ac_ct_CXX=$CXX
3757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3763 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 if test -n "$ac_ct_CXX"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_ac_ct_CXX="$ac_prog"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3782 IFS=$as_save_IFS
3786 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3787 if test -n "$ac_ct_CXX"; then
3788 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3789 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3790 else
3791 { echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6; }
3796 test -n "$ac_ct_CXX" && break
3797 done
3799 if test "x$ac_ct_CXX" = x; then
3800 CXX="g++"
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3805 whose name does not start with the host triplet. If you think this
3806 configuration is useful to you, please write to autoconf@gnu.org." >&5
3807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3808 whose name does not start with the host triplet. If you think this
3809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3810 ac_tool_warned=yes ;;
3811 esac
3812 CXX=$ac_ct_CXX
3818 # Provide some information about the compiler.
3819 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3820 ac_compiler=`set X $ac_compile; echo $2`
3821 { (ac_try="$ac_compiler --version >&5"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compiler --version >&5") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }
3831 { (ac_try="$ac_compiler -v >&5"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compiler -v >&5") 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }
3841 { (ac_try="$ac_compiler -V >&5"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_compiler -V >&5") 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3852 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3853 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3854 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3865 main ()
3867 #ifndef __GNUC__
3868 choke me
3869 #endif
3872 return 0;
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_compiler_gnu=yes
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_compiler_gnu=no
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3922 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3923 GXX=`test $ac_compiler_gnu = yes && echo yes`
3924 ac_test_CXXFLAGS=${CXXFLAGS+set}
3925 ac_save_CXXFLAGS=$CXXFLAGS
3926 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3927 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3928 if test "${ac_cv_prog_cxx_g+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3932 ac_cxx_werror_flag=yes
3933 ac_cv_prog_cxx_g=no
3934 CXXFLAGS="-g"
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3943 main ()
3947 return 0;
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest.$ac_objext'
3975 { (case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_try") 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_prog_cxx_g=yes
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 CXXFLAGS=""
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3998 main ()
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_try") 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4045 CXXFLAGS="-g"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 rm -f conftest.$ac_objext
4062 if { (ac_try="$ac_compile"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_prog_cxx_g=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4113 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4114 if test "$ac_test_CXXFLAGS" = set; then
4115 CXXFLAGS=$ac_save_CXXFLAGS
4116 elif test $ac_cv_prog_cxx_g = yes; then
4117 if test "$GXX" = yes; then
4118 CXXFLAGS="-g -O2"
4119 else
4120 CXXFLAGS="-g"
4122 else
4123 if test "$GXX" = yes; then
4124 CXXFLAGS="-O2"
4125 else
4126 CXXFLAGS=
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4141 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4142 # On Suns, sometimes $CPP names a directory.
4143 if test -n "$CPP" && test -d "$CPP"; then
4144 CPP=
4146 if test -z "$CPP"; then
4147 if test "${ac_cv_prog_CPP+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 # Double quotes because CPP needs to be expanded
4151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173 Syntax error
4174 _ACEOF
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_c_preproc_warn_flag
4190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 else
4192 ac_cpp_err=
4194 else
4195 ac_cpp_err=yes
4197 if test -z "$ac_cpp_err"; then
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 # Broken: fails on valid input.
4204 continue
4207 rm -f conftest.err conftest.$ac_ext
4209 # OK, works on sane cases. Now check whether nonexistent headers
4210 # can be detected and how.
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <ac_nonexistent.h>
4218 _ACEOF
4219 if { (ac_try="$ac_cpp conftest.$ac_ext"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null; then
4232 if test -s conftest.err; then
4233 ac_cpp_err=$ac_c_preproc_warn_flag
4234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4235 else
4236 ac_cpp_err=
4238 else
4239 ac_cpp_err=yes
4241 if test -z "$ac_cpp_err"; then
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4253 rm -f conftest.err conftest.$ac_ext
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4259 break
4262 done
4263 ac_cv_prog_CPP=$CPP
4266 CPP=$ac_cv_prog_CPP
4267 else
4268 ac_cv_prog_CPP=$CPP
4270 { echo "$as_me:$LINENO: result: $CPP" >&5
4271 echo "${ECHO_T}$CPP" >&6; }
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4292 Syntax error
4293 _ACEOF
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null; then
4307 if test -s conftest.err; then
4308 ac_cpp_err=$ac_c_preproc_warn_flag
4309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4310 else
4311 ac_cpp_err=
4313 else
4314 ac_cpp_err=yes
4316 if test -z "$ac_cpp_err"; then
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 # Broken: fails on valid input.
4323 continue
4326 rm -f conftest.err conftest.$ac_ext
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <ac_nonexistent.h>
4337 _ACEOF
4338 if { (ac_try="$ac_cpp conftest.$ac_ext"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } >/dev/null; then
4351 if test -s conftest.err; then
4352 ac_cpp_err=$ac_c_preproc_warn_flag
4353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4354 else
4355 ac_cpp_err=
4357 else
4358 ac_cpp_err=yes
4360 if test -z "$ac_cpp_err"; then
4361 # Broken: success on invalid input.
4362 continue
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 # Passes both tests.
4368 ac_preproc_ok=:
4369 break
4372 rm -f conftest.err conftest.$ac_ext
4374 done
4375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376 rm -f conftest.err conftest.$ac_ext
4377 if $ac_preproc_ok; then
4379 else
4380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details." >&5
4382 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4383 See \`config.log' for more details." >&2;}
4384 { (exit 1); exit 1; }; }
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 ac_ext=cpp
4394 ac_cpp='$CXXCPP $CPPFLAGS'
4395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4398 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4399 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4400 if test -z "$CXXCPP"; then
4401 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 # Double quotes because CXXCPP needs to be expanded
4405 for CXXCPP in "$CXX -E" "/lib/cpp"
4407 ac_preproc_ok=false
4408 for ac_cxx_preproc_warn_flag in '' yes
4410 # Use a header file that comes with gcc, so configuring glibc
4411 # with a fresh cross-compiler works.
4412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413 # <limits.h> exists even on freestanding compilers.
4414 # On the NeXT, cc -E runs the code through the compiler's parser,
4415 # not just through cpp. "Syntax error" is here to catch this case.
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427 Syntax error
4428 _ACEOF
4429 if { (ac_try="$ac_cpp conftest.$ac_ext"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null; then
4442 if test -s conftest.err; then
4443 ac_cpp_err=$ac_cxx_preproc_warn_flag
4444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4445 else
4446 ac_cpp_err=
4448 else
4449 ac_cpp_err=yes
4451 if test -z "$ac_cpp_err"; then
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 # Broken: fails on valid input.
4458 continue
4461 rm -f conftest.err conftest.$ac_ext
4463 # OK, works on sane cases. Now check whether nonexistent headers
4464 # can be detected and how.
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 #include <ac_nonexistent.h>
4472 _ACEOF
4473 if { (ac_try="$ac_cpp conftest.$ac_ext"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null; then
4486 if test -s conftest.err; then
4487 ac_cpp_err=$ac_cxx_preproc_warn_flag
4488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4489 else
4490 ac_cpp_err=
4492 else
4493 ac_cpp_err=yes
4495 if test -z "$ac_cpp_err"; then
4496 # Broken: success on invalid input.
4497 continue
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4507 rm -f conftest.err conftest.$ac_ext
4509 done
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then
4513 break
4516 done
4517 ac_cv_prog_CXXCPP=$CXXCPP
4520 CXXCPP=$ac_cv_prog_CXXCPP
4521 else
4522 ac_cv_prog_CXXCPP=$CXXCPP
4524 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4525 echo "${ECHO_T}$CXXCPP" >&6; }
4526 ac_preproc_ok=false
4527 for ac_cxx_preproc_warn_flag in '' yes
4529 # Use a header file that comes with gcc, so configuring glibc
4530 # with a fresh cross-compiler works.
4531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 # <limits.h> exists even on freestanding compilers.
4533 # On the NeXT, cc -E runs the code through the compiler's parser,
4534 # not just through cpp. "Syntax error" is here to catch this case.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #ifdef __STDC__
4542 # include <limits.h>
4543 #else
4544 # include <assert.h>
4545 #endif
4546 Syntax error
4547 _ACEOF
4548 if { (ac_try="$ac_cpp conftest.$ac_ext"
4549 case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } >/dev/null; then
4561 if test -s conftest.err; then
4562 ac_cpp_err=$ac_cxx_preproc_warn_flag
4563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4564 else
4565 ac_cpp_err=
4567 else
4568 ac_cpp_err=yes
4570 if test -z "$ac_cpp_err"; then
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 # Broken: fails on valid input.
4577 continue
4580 rm -f conftest.err conftest.$ac_ext
4582 # OK, works on sane cases. Now check whether nonexistent headers
4583 # can be detected and how.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <ac_nonexistent.h>
4591 _ACEOF
4592 if { (ac_try="$ac_cpp conftest.$ac_ext"
4593 case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596 esac
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_cxx_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4608 else
4609 ac_cpp_err=
4611 else
4612 ac_cpp_err=yes
4614 if test -z "$ac_cpp_err"; then
4615 # Broken: success on invalid input.
4616 continue
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 # Passes both tests.
4622 ac_preproc_ok=:
4623 break
4626 rm -f conftest.err conftest.$ac_ext
4628 done
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.err conftest.$ac_ext
4631 if $ac_preproc_ok; then
4633 else
4634 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4635 See \`config.log' for more details." >&5
4636 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4637 See \`config.log' for more details." >&2;}
4638 { (exit 1); exit 1; }; }
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
4648 # the developers regenerating the configure script don't have to install libtool.
4649 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4650 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4651 if test "${ac_cv_path_SED+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4655 for ac_i in 1 2 3 4 5 6 7; do
4656 ac_script="$ac_script$as_nl$ac_script"
4657 done
4658 echo "$ac_script" | sed 99q >conftest.sed
4659 $as_unset ac_script || ac_script=
4660 # Extract the first word of "sed gsed" to use in msg output
4661 if test -z "$SED"; then
4662 set dummy sed gsed; ac_prog_name=$2
4663 if test "${ac_cv_path_SED+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 ac_path_SED_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in sed gsed; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678 # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4680 *GNU*)
4681 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4683 ac_count=0
4684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4685 while :
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 echo '' >> "conftest.nl"
4691 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 ac_count=`expr $ac_count + 1`
4694 if test $ac_count -gt ${ac_path_SED_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_SED="$ac_path_SED"
4697 ac_path_SED_max=$ac_count
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4701 done
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4706 $ac_path_SED_found && break 3
4707 done
4708 done
4710 done
4711 IFS=$as_save_IFS
4716 SED="$ac_cv_path_SED"
4717 if test -z "$SED"; then
4718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4719 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4720 { (exit 1); exit 1; }; }
4723 else
4724 ac_cv_path_SED=$SED
4728 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4729 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
4733 { echo "$as_me:$LINENO: checking for egrep" >&5
4734 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_egrep+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4739 then ac_cv_prog_egrep='grep -E'
4740 else ac_cv_prog_egrep='egrep'
4743 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4744 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
4745 EGREP=$ac_cv_prog_egrep
4749 # Check whether --with-gnu-ld was given.
4750 if test "${with_gnu_ld+set}" = set; then
4751 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4752 else
4753 with_gnu_ld=no
4756 ac_prog=ld
4757 if test "$GCC" = yes; then
4758 # Check if gcc -print-prog-name=ld gives a path.
4759 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4760 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4761 case $host in
4762 *-*-mingw*)
4763 # gcc leaves a trailing carriage return which upsets mingw
4764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4767 esac
4768 case $ac_prog in
4769 # Accept absolute paths.
4770 [\\/]* | ?:[\\/]*)
4771 re_direlt='/[^/][^/]*/\.\./'
4772 # Canonicalize the pathname of ld
4773 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4775 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4776 done
4777 test -z "$LD" && LD="$ac_prog"
4780 # If it fails, then pretend we aren't using GCC.
4781 ac_prog=ld
4784 # If it is relative, then search for the first ld in PATH.
4785 with_gnu_ld=unknown
4787 esac
4788 elif test "$with_gnu_ld" = yes; then
4789 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4790 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4791 else
4792 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4793 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4795 if test "${lt_cv_path_LD+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 if test -z "$LD"; then
4799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH; do
4801 IFS="$lt_save_ifs"
4802 test -z "$ac_dir" && ac_dir=.
4803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4804 lt_cv_path_LD="$ac_dir/$ac_prog"
4805 # Check to see if the program is GNU ld. I'd rather use --version,
4806 # but apparently some variants of GNU ld only accept -v.
4807 # Break only if it was the GNU/non-GNU ld that we prefer.
4808 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4809 *GNU* | *'with BFD'*)
4810 test "$with_gnu_ld" != no && break
4813 test "$with_gnu_ld" != yes && break
4815 esac
4817 done
4818 IFS="$lt_save_ifs"
4819 else
4820 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4824 LD="$lt_cv_path_LD"
4825 if test -n "$LD"; then
4826 { echo "$as_me:$LINENO: result: $LD" >&5
4827 echo "${ECHO_T}$LD" >&6; }
4828 else
4829 { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4834 { (exit 1); exit 1; }; }
4835 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4837 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4841 case `$LD -v 2>&1 </dev/null` in
4842 *GNU* | *'with BFD'*)
4843 lt_cv_prog_gnu_ld=yes
4846 lt_cv_prog_gnu_ld=no
4848 esac
4850 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4851 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4852 with_gnu_ld=$lt_cv_prog_gnu_ld
4855 for ac_prog in gawk mawk nawk awk
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_AWK+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 if test -n "$AWK"; then
4865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_AWK="$ac_prog"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 AWK=$ac_cv_prog_AWK
4885 if test -n "$AWK"; then
4886 { echo "$as_me:$LINENO: result: $AWK" >&5
4887 echo "${ECHO_T}$AWK" >&6; }
4888 else
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 test -n "$AWK" && break
4895 done
4897 # Find a good install program. We prefer a C program (faster),
4898 # so one script is as good as another. But avoid the broken or
4899 # incompatible versions:
4900 # SysV /etc/install, /usr/sbin/install
4901 # SunOS /usr/etc/install
4902 # IRIX /sbin/install
4903 # AIX /bin/install
4904 # AmigaOS /C/install, which installs bootblocks on floppy discs
4905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4908 # OS/2's system install, which has a completely different semantic
4909 # ./install, which can be erroneously created by make from ./install.sh.
4910 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4912 if test -z "$INSTALL"; then
4913 if test "${ac_cv_path_install+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 # Account for people who put trailing slashes in PATH elements.
4922 case $as_dir/ in
4923 ./ | .// | /cC/* | \
4924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4926 /usr/ucb/* ) ;;
4928 # OSF1 and SCO ODT 3.0 have their own names for install.
4929 # Don't use installbsd from OSF since it installs stuff as root
4930 # by default.
4931 for ac_prog in ginstall scoinst install; do
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4934 if test $ac_prog = install &&
4935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4936 # AIX install. It has an incompatible calling convention.
4938 elif test $ac_prog = install &&
4939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4940 # program-specific install script used by HP pwplus--don't use.
4942 else
4943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4944 break 3
4947 done
4948 done
4950 esac
4951 done
4952 IFS=$as_save_IFS
4956 if test "${ac_cv_path_install+set}" = set; then
4957 INSTALL=$ac_cv_path_install
4958 else
4959 # As a last resort, use the slow shell script. Don't cache a
4960 # value for INSTALL within a source directory, because that will
4961 # break other packages using the cache if that directory is
4962 # removed, or if the value is a relative name.
4963 INSTALL=$ac_install_sh
4966 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4967 echo "${ECHO_T}$INSTALL" >&6; }
4969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4970 # It thinks the first close brace ends the variable substitution.
4971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4977 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4978 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4979 LN_S=$as_ln_s
4980 if test "$LN_S" = "ln -s"; then
4981 { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4983 else
4984 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4985 echo "${ECHO_T}no, using $LN_S" >&6; }
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_RANLIB+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 if test -n "$RANLIB"; then
4997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5016 RANLIB=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5019 echo "${ECHO_T}$RANLIB" >&6; }
5020 else
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5027 if test -z "$ac_cv_prog_RANLIB"; then
5028 ac_ct_RANLIB=$RANLIB
5029 # Extract the first word of "ranlib", so it can be a program name with args.
5030 set dummy ranlib; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test -n "$ac_ct_RANLIB"; then
5037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_ac_ct_RANLIB="ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5057 if test -n "$ac_ct_RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5059 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5060 else
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5065 if test "x$ac_ct_RANLIB" = x; then
5066 RANLIB=":"
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5071 whose name does not start with the host triplet. If you think this
5072 configuration is useful to you, please write to autoconf@gnu.org." >&5
5073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet. If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 RANLIB=$ac_ct_RANLIB
5080 else
5081 RANLIB="$ac_cv_prog_RANLIB"
5084 { echo "$as_me:$LINENO: checking for GNU make" >&5
5085 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5086 if test "${GNU_MAKE+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 GNU_MAKE='Not Found' ;
5090 GNU_MAKE_VERSION_MAJOR=0 ;
5091 GNU_MAKE_VERSION_MINOR=0 ;
5092 for a in make gmake gnumake ; do
5093 if test -z "$a" ; then continue ; fi ;
5094 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
5095 GNU_MAKE=$a ;
5096 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
5097 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
5098 break;
5100 done ;
5103 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
5104 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
5105 if test "x$GNU_MAKE" = "xNot Found" ; then
5106 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
5107 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
5108 { (exit 1); exit 1; }; }
5109 exit 1
5114 GNU_LD=0
5115 if test "x$with_gnu_ld" = "xyes" ; then
5116 GNU_LD=1
5120 # Extract the first word of "grep", so it can be a program name with args.
5121 set dummy grep; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_path_GREP+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 case $GREP in
5128 [\\/]* | ?:[\\/]*)
5129 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5147 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
5149 esac
5151 GREP=$ac_cv_path_GREP
5152 if test -n "$GREP"; then
5153 { echo "$as_me:$LINENO: result: $GREP" >&5
5154 echo "${ECHO_T}$GREP" >&6; }
5155 else
5156 { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5161 # Extract the first word of "ar", so it can be a program name with args.
5162 set dummy ar; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_path_AR+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 case $AR in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5188 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
5190 esac
5192 AR=$ac_cv_path_AR
5193 if test -n "$AR"; then
5194 { echo "$as_me:$LINENO: result: $AR" >&5
5195 echo "${ECHO_T}$AR" >&6; }
5196 else
5197 { echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6; }
5202 # Extract the first word of "find", so it can be a program name with args.
5203 set dummy find; ac_word=$2
5204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5206 if test "${ac_cv_path_FIND+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 case $FIND in
5210 [\\/]* | ?:[\\/]*)
5211 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5229 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
5231 esac
5233 FIND=$ac_cv_path_FIND
5234 if test -n "$FIND"; then
5235 { echo "$as_me:$LINENO: result: $FIND" >&5
5236 echo "${ECHO_T}$FIND" >&6; }
5237 else
5238 { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5243 # Extract the first word of "compress", so it can be a program name with args.
5244 set dummy compress; ac_word=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_path_COMPRESS+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 case $COMPRESS in
5251 [\\/]* | ?:[\\/]*)
5252 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5270 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
5272 esac
5274 COMPRESS=$ac_cv_path_COMPRESS
5275 if test -n "$COMPRESS"; then
5276 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5277 echo "${ECHO_T}$COMPRESS" >&6; }
5278 else
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 # Extract the first word of "basename", so it can be a program name with args.
5285 set dummy basename; ac_word=$2
5286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5288 if test "${ac_cv_path_BASENAME+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 case $BASENAME in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5311 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
5313 esac
5315 BASENAME=$ac_cv_path_BASENAME
5316 if test -n "$BASENAME"; then
5317 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5318 echo "${ECHO_T}$BASENAME" >&6; }
5319 else
5320 { echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6; }
5325 # Extract the first word of "id", so it can be a program name with args.
5326 set dummy id; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_ID+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 case $ID in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_ID="$ID" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5352 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
5354 esac
5356 ID=$ac_cv_path_ID
5357 if test -n "$ID"; then
5358 { echo "$as_me:$LINENO: result: $ID" >&5
5359 echo "${ECHO_T}$ID" >&6; }
5360 else
5361 { echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6; }
5366 # Extract the first word of "dirname", so it can be a program name with args.
5367 set dummy dirname; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_path_DIRNAME+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 case $DIRNAME in
5374 [\\/]* | ?:[\\/]*)
5375 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5393 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
5395 esac
5397 DIRNAME=$ac_cv_path_DIRNAME
5398 if test -n "$DIRNAME"; then
5399 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5400 echo "${ECHO_T}$DIRNAME" >&6; }
5401 else
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5407 # Extract the first word of "sh", so it can be a program name with args.
5408 set dummy sh; ac_word=$2
5409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411 if test "${ac_cv_path_SHELL+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 case $SHELL in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5434 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
5436 esac
5438 SHELL=$ac_cv_path_SHELL
5439 if test -n "$SHELL"; then
5440 { echo "$as_me:$LINENO: result: $SHELL" >&5
5441 echo "${ECHO_T}$SHELL" >&6; }
5442 else
5443 { echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6; }
5448 # Extract the first word of "ln", so it can be a program name with args.
5449 set dummy ln; ac_word=$2
5450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5452 if test "${ac_cv_path_LN+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 case $LN in
5456 [\\/]* | ?:[\\/]*)
5457 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5475 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
5477 esac
5479 LN=$ac_cv_path_LN
5480 if test -n "$LN"; then
5481 { echo "$as_me:$LINENO: result: $LN" >&5
5482 echo "${ECHO_T}$LN" >&6; }
5483 else
5484 { echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6; }
5489 # Extract the first word of "dot", so it can be a program name with args.
5490 set dummy dot; ac_word=$2
5491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5493 if test "${ac_cv_path_DOT+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 case $DOT in
5497 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5516 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
5518 esac
5520 DOT=$ac_cv_path_DOT
5521 if test -n "$DOT"; then
5522 { echo "$as_me:$LINENO: result: $DOT" >&5
5523 echo "${ECHO_T}$DOT" >&6; }
5524 else
5525 { echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6; }
5530 # Extract the first word of "strip", so it can be a program name with args.
5531 set dummy strip; ac_word=$2
5532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5534 if test "${ac_cv_path_STRIP+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537 case $STRIP in
5538 [\\/]* | ?:[\\/]*)
5539 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5557 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
5559 esac
5561 STRIP=$ac_cv_path_STRIP
5562 if test -n "$STRIP"; then
5563 { echo "$as_me:$LINENO: result: $STRIP" >&5
5564 echo "${ECHO_T}$STRIP" >&6; }
5565 else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5572 ac_ext=c
5573 ac_cpp='$CPP $CPPFLAGS'
5574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 # Check whether --enable-dev-mode was given.
5580 if test "${enable_dev_mode+set}" = set; then
5581 enableval=$enable_dev_mode; case "${enableval}" in
5582 y|ye|yes) AST_DEVMODE=yes ;;
5583 n|no) AST_DEVMODE=no ;;
5584 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5585 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5586 { (exit 1); exit 1; }; } ;;
5587 esac
5592 # package option names should be in alphabetical order
5593 # by the --with option name, to make things easier for the users :-)
5596 ALSA_DESCRIP="Advanced Linux Sound Architecture"
5597 ALSA_OPTION="asound"
5599 # Check whether --with-asound was given.
5600 if test "${with_asound+set}" = set; then
5601 withval=$with_asound;
5602 case ${withval} in
5603 n|no)
5604 USE_ALSA=no
5606 y|ye|yes)
5607 ALSA_MANDATORY="yes"
5610 ALSA_DIR="${withval}"
5611 ALSA_MANDATORY="yes"
5613 esac
5617 PBX_ALSA=0
5623 CURL_DESCRIP="cURL"
5624 CURL_OPTION="curl"
5626 # Check whether --with-curl was given.
5627 if test "${with_curl+set}" = set; then
5628 withval=$with_curl;
5629 case ${withval} in
5630 n|no)
5631 USE_CURL=no
5633 y|ye|yes)
5634 CURL_MANDATORY="yes"
5637 CURL_DIR="${withval}"
5638 CURL_MANDATORY="yes"
5640 esac
5644 PBX_CURL=0
5650 CURSES_DESCRIP="curses"
5651 CURSES_OPTION="curses"
5653 # Check whether --with-curses was given.
5654 if test "${with_curses+set}" = set; then
5655 withval=$with_curses;
5656 case ${withval} in
5657 n|no)
5658 USE_CURSES=no
5660 y|ye|yes)
5661 CURSES_MANDATORY="yes"
5664 CURSES_DIR="${withval}"
5665 CURSES_MANDATORY="yes"
5667 esac
5671 PBX_CURSES=0
5677 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
5678 GNUTLS_OPTION="gnutls"
5680 # Check whether --with-gnutls was given.
5681 if test "${with_gnutls+set}" = set; then
5682 withval=$with_gnutls;
5683 case ${withval} in
5684 n|no)
5685 USE_GNUTLS=no
5687 y|ye|yes)
5688 GNUTLS_MANDATORY="yes"
5691 GNUTLS_DIR="${withval}"
5692 GNUTLS_MANDATORY="yes"
5694 esac
5698 PBX_GNUTLS=0
5704 GSM_DESCRIP="GSM"
5705 GSM_OPTION="gsm"
5707 # Check whether --with-gsm was given.
5708 if test "${with_gsm+set}" = set; then
5709 withval=$with_gsm;
5710 case ${withval} in
5711 n|no)
5712 USE_GSM=no
5714 y|ye|yes)
5715 GSM_MANDATORY="yes"
5718 GSM_DIR="${withval}"
5719 GSM_MANDATORY="yes"
5721 esac
5725 PBX_GSM=0
5731 IKSEMEL_DESCRIP="Iksemel Jabber Library"
5732 IKSEMEL_OPTION="iksemel"
5734 # Check whether --with-iksemel was given.
5735 if test "${with_iksemel+set}" = set; then
5736 withval=$with_iksemel;
5737 case ${withval} in
5738 n|no)
5739 USE_IKSEMEL=no
5741 y|ye|yes)
5742 IKSEMEL_MANDATORY="yes"
5745 IKSEMEL_DIR="${withval}"
5746 IKSEMEL_MANDATORY="yes"
5748 esac
5752 PBX_IKSEMEL=0
5758 IMAP_TK_DESCRIP="UW IMAP Toolkit"
5759 IMAP_TK_OPTION="imap"
5761 # Check whether --with-imap was given.
5762 if test "${with_imap+set}" = set; then
5763 withval=$with_imap;
5764 case ${withval} in
5765 n|no)
5766 USE_IMAP_TK=no
5768 y|ye|yes)
5769 IMAP_TK_MANDATORY="yes"
5772 IMAP_TK_DIR="${withval}"
5773 IMAP_TK_MANDATORY="yes"
5775 esac
5779 PBX_IMAP_TK=0
5785 ISDNNET_DESCRIP="ISDN4Linux Library"
5786 ISDNNET_OPTION="isdnnet"
5788 # Check whether --with-isdnnet was given.
5789 if test "${with_isdnnet+set}" = set; then
5790 withval=$with_isdnnet;
5791 case ${withval} in
5792 n|no)
5793 USE_ISDNNET=no
5795 y|ye|yes)
5796 ISDNNET_MANDATORY="yes"
5799 ISDNNET_DIR="${withval}"
5800 ISDNNET_MANDATORY="yes"
5802 esac
5806 PBX_ISDNNET=0
5812 KDE_DESCRIP="KDE"
5813 KDE_OPTION="kde"
5815 # Check whether --with-kde was given.
5816 if test "${with_kde+set}" = set; then
5817 withval=$with_kde;
5818 case ${withval} in
5819 n|no)
5820 USE_KDE=no
5822 y|ye|yes)
5823 KDE_MANDATORY="yes"
5826 KDE_DIR="${withval}"
5827 KDE_MANDATORY="yes"
5829 esac
5833 PBX_KDE=0
5839 MISDN_DESCRIP="mISDN User Library"
5840 MISDN_OPTION="misdn"
5842 # Check whether --with-misdn was given.
5843 if test "${with_misdn+set}" = set; then
5844 withval=$with_misdn;
5845 case ${withval} in
5846 n|no)
5847 USE_MISDN=no
5849 y|ye|yes)
5850 MISDN_MANDATORY="yes"
5853 MISDN_DIR="${withval}"
5854 MISDN_MANDATORY="yes"
5856 esac
5860 PBX_MISDN=0
5866 NBS_DESCRIP="Network Broadcast Sound"
5867 NBS_OPTION="nbs"
5869 # Check whether --with-nbs was given.
5870 if test "${with_nbs+set}" = set; then
5871 withval=$with_nbs;
5872 case ${withval} in
5873 n|no)
5874 USE_NBS=no
5876 y|ye|yes)
5877 NBS_MANDATORY="yes"
5880 NBS_DIR="${withval}"
5881 NBS_MANDATORY="yes"
5883 esac
5887 PBX_NBS=0
5893 NCURSES_DESCRIP="ncurses"
5894 NCURSES_OPTION="ncurses"
5896 # Check whether --with-ncurses was given.
5897 if test "${with_ncurses+set}" = set; then
5898 withval=$with_ncurses;
5899 case ${withval} in
5900 n|no)
5901 USE_NCURSES=no
5903 y|ye|yes)
5904 NCURSES_MANDATORY="yes"
5907 NCURSES_DIR="${withval}"
5908 NCURSES_MANDATORY="yes"
5910 esac
5914 PBX_NCURSES=0
5920 NETSNMP_DESCRIP="Net-SNMP"
5921 NETSNMP_OPTION="netsnmp"
5923 # Check whether --with-netsnmp was given.
5924 if test "${with_netsnmp+set}" = set; then
5925 withval=$with_netsnmp;
5926 case ${withval} in
5927 n|no)
5928 USE_NETSNMP=no
5930 y|ye|yes)
5931 NETSNMP_MANDATORY="yes"
5934 NETSNMP_DIR="${withval}"
5935 NETSNMP_MANDATORY="yes"
5937 esac
5941 PBX_NETSNMP=0
5947 NEWT_DESCRIP="newt"
5948 NEWT_OPTION="newt"
5950 # Check whether --with-newt was given.
5951 if test "${with_newt+set}" = set; then
5952 withval=$with_newt;
5953 case ${withval} in
5954 n|no)
5955 USE_NEWT=no
5957 y|ye|yes)
5958 NEWT_MANDATORY="yes"
5961 NEWT_DIR="${withval}"
5962 NEWT_MANDATORY="yes"
5964 esac
5968 PBX_NEWT=0
5974 UNIXODBC_DESCRIP="unixODBC"
5975 UNIXODBC_OPTION="odbc"
5977 # Check whether --with-odbc was given.
5978 if test "${with_odbc+set}" = set; then
5979 withval=$with_odbc;
5980 case ${withval} in
5981 n|no)
5982 USE_UNIXODBC=no
5984 y|ye|yes)
5985 UNIXODBC_MANDATORY="yes"
5988 UNIXODBC_DIR="${withval}"
5989 UNIXODBC_MANDATORY="yes"
5991 esac
5995 PBX_UNIXODBC=0
6001 OGG_DESCRIP="OGG"
6002 OGG_OPTION="ogg"
6004 # Check whether --with-ogg was given.
6005 if test "${with_ogg+set}" = set; then
6006 withval=$with_ogg;
6007 case ${withval} in
6008 n|no)
6009 USE_OGG=no
6011 y|ye|yes)
6012 OGG_MANDATORY="yes"
6015 OGG_DIR="${withval}"
6016 OGG_MANDATORY="yes"
6018 esac
6022 PBX_OGG=0
6028 OSPTK_DESCRIP="OSP Toolkit"
6029 OSPTK_OPTION="osptk"
6031 # Check whether --with-osptk was given.
6032 if test "${with_osptk+set}" = set; then
6033 withval=$with_osptk;
6034 case ${withval} in
6035 n|no)
6036 USE_OSPTK=no
6038 y|ye|yes)
6039 OSPTK_MANDATORY="yes"
6042 OSPTK_DIR="${withval}"
6043 OSPTK_MANDATORY="yes"
6045 esac
6049 PBX_OSPTK=0
6055 OSS_DESCRIP="Open Sound System"
6056 OSS_OPTION="oss"
6058 # Check whether --with-oss was given.
6059 if test "${with_oss+set}" = set; then
6060 withval=$with_oss;
6061 case ${withval} in
6062 n|no)
6063 USE_OSS=no
6065 y|ye|yes)
6066 OSS_MANDATORY="yes"
6069 OSS_DIR="${withval}"
6070 OSS_MANDATORY="yes"
6072 esac
6076 PBX_OSS=0
6082 POPT_DESCRIP="popt"
6083 POPT_OPTION="popt"
6085 # Check whether --with-popt was given.
6086 if test "${with_popt+set}" = set; then
6087 withval=$with_popt;
6088 case ${withval} in
6089 n|no)
6090 USE_POPT=no
6092 y|ye|yes)
6093 POPT_MANDATORY="yes"
6096 POPT_DIR="${withval}"
6097 POPT_MANDATORY="yes"
6099 esac
6103 PBX_POPT=0
6109 PGSQL_DESCRIP="PostgreSQL"
6110 PGSQL_OPTION="postgres"
6112 # Check whether --with-postgres was given.
6113 if test "${with_postgres+set}" = set; then
6114 withval=$with_postgres;
6115 case ${withval} in
6116 n|no)
6117 USE_PGSQL=no
6119 y|ye|yes)
6120 PGSQL_MANDATORY="yes"
6123 PGSQL_DIR="${withval}"
6124 PGSQL_MANDATORY="yes"
6126 esac
6130 PBX_PGSQL=0
6136 PRI_DESCRIP="ISDN PRI"
6137 PRI_OPTION="pri"
6139 # Check whether --with-pri was given.
6140 if test "${with_pri+set}" = set; then
6141 withval=$with_pri;
6142 case ${withval} in
6143 n|no)
6144 USE_PRI=no
6146 y|ye|yes)
6147 PRI_MANDATORY="yes"
6150 PRI_DIR="${withval}"
6151 PRI_MANDATORY="yes"
6153 esac
6157 PBX_PRI=0
6163 PWLIB_DESCRIP="PWlib"
6164 PWLIB_OPTION="pwlib"
6166 # Check whether --with-pwlib was given.
6167 if test "${with_pwlib+set}" = set; then
6168 withval=$with_pwlib;
6169 case ${withval} in
6170 n|no)
6171 USE_PWLIB=no
6173 y|ye|yes)
6174 PWLIB_MANDATORY="yes"
6177 PWLIB_DIR="${withval}"
6178 PWLIB_MANDATORY="yes"
6180 esac
6184 PBX_PWLIB=0
6190 OPENH323_DESCRIP="OpenH323"
6191 OPENH323_OPTION="h323"
6193 # Check whether --with-h323 was given.
6194 if test "${with_h323+set}" = set; then
6195 withval=$with_h323;
6196 case ${withval} in
6197 n|no)
6198 USE_OPENH323=no
6200 y|ye|yes)
6201 OPENH323_MANDATORY="yes"
6204 OPENH323_DIR="${withval}"
6205 OPENH323_MANDATORY="yes"
6207 esac
6211 PBX_OPENH323=0
6217 QT_DESCRIP="Qt"
6218 QT_OPTION="qt"
6220 # Check whether --with-qt was given.
6221 if test "${with_qt+set}" = set; then
6222 withval=$with_qt;
6223 case ${withval} in
6224 n|no)
6225 USE_QT=no
6227 y|ye|yes)
6228 QT_MANDATORY="yes"
6231 QT_DIR="${withval}"
6232 QT_MANDATORY="yes"
6234 esac
6238 PBX_QT=0
6244 RADIUS_DESCRIP="Radius Client"
6245 RADIUS_OPTION="radius"
6247 # Check whether --with-radius was given.
6248 if test "${with_radius+set}" = set; then
6249 withval=$with_radius;
6250 case ${withval} in
6251 n|no)
6252 USE_RADIUS=no
6254 y|ye|yes)
6255 RADIUS_MANDATORY="yes"
6258 RADIUS_DIR="${withval}"
6259 RADIUS_MANDATORY="yes"
6261 esac
6265 PBX_RADIUS=0
6271 SPEEX_DESCRIP="Speex"
6272 SPEEX_OPTION="speex"
6274 # Check whether --with-speex was given.
6275 if test "${with_speex+set}" = set; then
6276 withval=$with_speex;
6277 case ${withval} in
6278 n|no)
6279 USE_SPEEX=no
6281 y|ye|yes)
6282 SPEEX_MANDATORY="yes"
6285 SPEEX_DIR="${withval}"
6286 SPEEX_MANDATORY="yes"
6288 esac
6292 PBX_SPEEX=0
6298 SQLITE_DESCRIP="SQLite"
6299 SQLITE_OPTION="sqlite"
6301 # Check whether --with-sqlite was given.
6302 if test "${with_sqlite+set}" = set; then
6303 withval=$with_sqlite;
6304 case ${withval} in
6305 n|no)
6306 USE_SQLITE=no
6308 y|ye|yes)
6309 SQLITE_MANDATORY="yes"
6312 SQLITE_DIR="${withval}"
6313 SQLITE_MANDATORY="yes"
6315 esac
6319 PBX_SQLITE=0
6325 SUPPSERV_DESCRIP="mISDN Supplemental Services"
6326 SUPPSERV_OPTION="suppserv"
6328 # Check whether --with-suppserv was given.
6329 if test "${with_suppserv+set}" = set; then
6330 withval=$with_suppserv;
6331 case ${withval} in
6332 n|no)
6333 USE_SUPPSERV=no
6335 y|ye|yes)
6336 SUPPSERV_MANDATORY="yes"
6339 SUPPSERV_DIR="${withval}"
6340 SUPPSERV_MANDATORY="yes"
6342 esac
6346 PBX_SUPPSERV=0
6352 OPENSSL_DESCRIP="OpenSSL"
6353 OPENSSL_OPTION="ssl"
6355 # Check whether --with-ssl was given.
6356 if test "${with_ssl+set}" = set; then
6357 withval=$with_ssl;
6358 case ${withval} in
6359 n|no)
6360 USE_OPENSSL=no
6362 y|ye|yes)
6363 OPENSSL_MANDATORY="yes"
6366 OPENSSL_DIR="${withval}"
6367 OPENSSL_MANDATORY="yes"
6369 esac
6373 PBX_OPENSSL=0
6379 FREETDS_DESCRIP="FreeTDS"
6380 FREETDS_OPTION="tds"
6382 # Check whether --with-tds was given.
6383 if test "${with_tds+set}" = set; then
6384 withval=$with_tds;
6385 case ${withval} in
6386 n|no)
6387 USE_FREETDS=no
6389 y|ye|yes)
6390 FREETDS_MANDATORY="yes"
6393 FREETDS_DIR="${withval}"
6394 FREETDS_MANDATORY="yes"
6396 esac
6400 PBX_FREETDS=0
6406 TERMCAP_DESCRIP="Termcap"
6407 TERMCAP_OPTION="termcap"
6409 # Check whether --with-termcap was given.
6410 if test "${with_termcap+set}" = set; then
6411 withval=$with_termcap;
6412 case ${withval} in
6413 n|no)
6414 USE_TERMCAP=no
6416 y|ye|yes)
6417 TERMCAP_MANDATORY="yes"
6420 TERMCAP_DIR="${withval}"
6421 TERMCAP_MANDATORY="yes"
6423 esac
6427 PBX_TERMCAP=0
6433 TINFO_DESCRIP="Term Info"
6434 TINFO_OPTION="tinfo"
6436 # Check whether --with-tinfo was given.
6437 if test "${with_tinfo+set}" = set; then
6438 withval=$with_tinfo;
6439 case ${withval} in
6440 n|no)
6441 USE_TINFO=no
6443 y|ye|yes)
6444 TINFO_MANDATORY="yes"
6447 TINFO_DIR="${withval}"
6448 TINFO_MANDATORY="yes"
6450 esac
6454 PBX_TINFO=0
6460 TONEZONE_DESCRIP="tonezone"
6461 TONEZONE_OPTION="tonezone"
6463 # Check whether --with-tonezone was given.
6464 if test "${with_tonezone+set}" = set; then
6465 withval=$with_tonezone;
6466 case ${withval} in
6467 n|no)
6468 USE_TONEZONE=no
6470 y|ye|yes)
6471 TONEZONE_MANDATORY="yes"
6474 TONEZONE_DIR="${withval}"
6475 TONEZONE_MANDATORY="yes"
6477 esac
6481 PBX_TONEZONE=0
6487 VORBIS_DESCRIP="Vorbis"
6488 VORBIS_OPTION="vorbis"
6490 # Check whether --with-vorbis was given.
6491 if test "${with_vorbis+set}" = set; then
6492 withval=$with_vorbis;
6493 case ${withval} in
6494 n|no)
6495 USE_VORBIS=no
6497 y|ye|yes)
6498 VORBIS_MANDATORY="yes"
6501 VORBIS_DIR="${withval}"
6502 VORBIS_MANDATORY="yes"
6504 esac
6508 PBX_VORBIS=0
6514 VPB_DESCRIP="Voicetronix API"
6515 VPB_OPTION="vpb"
6517 # Check whether --with-vpb was given.
6518 if test "${with_vpb+set}" = set; then
6519 withval=$with_vpb;
6520 case ${withval} in
6521 n|no)
6522 USE_VPB=no
6524 y|ye|yes)
6525 VPB_MANDATORY="yes"
6528 VPB_DIR="${withval}"
6529 VPB_MANDATORY="yes"
6531 esac
6535 PBX_VPB=0
6541 ZLIB_DESCRIP="zlib"
6542 ZLIB_OPTION="z"
6544 # Check whether --with-z was given.
6545 if test "${with_z+set}" = set; then
6546 withval=$with_z;
6547 case ${withval} in
6548 n|no)
6549 USE_ZLIB=no
6551 y|ye|yes)
6552 ZLIB_MANDATORY="yes"
6555 ZLIB_DIR="${withval}"
6556 ZLIB_MANDATORY="yes"
6558 esac
6562 PBX_ZLIB=0
6568 ZAPTEL_DESCRIP="Zaptel"
6569 ZAPTEL_OPTION="zaptel"
6571 # Check whether --with-zaptel was given.
6572 if test "${with_zaptel+set}" = set; then
6573 withval=$with_zaptel;
6574 case ${withval} in
6575 n|no)
6576 USE_ZAPTEL=no
6578 y|ye|yes)
6579 ZAPTEL_MANDATORY="yes"
6582 ZAPTEL_DIR="${withval}"
6583 ZAPTEL_MANDATORY="yes"
6585 esac
6589 PBX_ZAPTEL=0
6595 # check for basic system features and functionality before
6596 # checking for package libraries
6600 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6601 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_GREP+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 # Extract the first word of "grep ggrep" to use in msg output
6606 if test -z "$GREP"; then
6607 set dummy grep ggrep; ac_prog_name=$2
6608 if test "${ac_cv_path_GREP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 ac_path_GREP_found=false
6612 # Loop through the user's path and test for each of PROGNAME-LIST
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_prog in grep ggrep; do
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6621 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6622 # Check for GNU ac_path_GREP and select it if it is found.
6623 # Check for GNU $ac_path_GREP
6624 case `"$ac_path_GREP" --version 2>&1` in
6625 *GNU*)
6626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6628 ac_count=0
6629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6630 while :
6632 cat "conftest.in" "conftest.in" >"conftest.tmp"
6633 mv "conftest.tmp" "conftest.in"
6634 cp "conftest.in" "conftest.nl"
6635 echo 'GREP' >> "conftest.nl"
6636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6638 ac_count=`expr $ac_count + 1`
6639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6640 # Best one so far, save it but keep looking for a better one
6641 ac_cv_path_GREP="$ac_path_GREP"
6642 ac_path_GREP_max=$ac_count
6644 # 10*(2^10) chars as input seems more than enough
6645 test $ac_count -gt 10 && break
6646 done
6647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6648 esac
6651 $ac_path_GREP_found && break 3
6652 done
6653 done
6655 done
6656 IFS=$as_save_IFS
6661 GREP="$ac_cv_path_GREP"
6662 if test -z "$GREP"; then
6663 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6665 { (exit 1); exit 1; }; }
6668 else
6669 ac_cv_path_GREP=$GREP
6674 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6675 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6676 GREP="$ac_cv_path_GREP"
6679 { echo "$as_me:$LINENO: checking for egrep" >&5
6680 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_EGREP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6685 then ac_cv_path_EGREP="$GREP -E"
6686 else
6687 # Extract the first word of "egrep" to use in msg output
6688 if test -z "$EGREP"; then
6689 set dummy egrep; ac_prog_name=$2
6690 if test "${ac_cv_path_EGREP+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 ac_path_EGREP_found=false
6694 # Loop through the user's path and test for each of PROGNAME-LIST
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_prog in egrep; do
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6703 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6704 # Check for GNU ac_path_EGREP and select it if it is found.
6705 # Check for GNU $ac_path_EGREP
6706 case `"$ac_path_EGREP" --version 2>&1` in
6707 *GNU*)
6708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6710 ac_count=0
6711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6712 while :
6714 cat "conftest.in" "conftest.in" >"conftest.tmp"
6715 mv "conftest.tmp" "conftest.in"
6716 cp "conftest.in" "conftest.nl"
6717 echo 'EGREP' >> "conftest.nl"
6718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6720 ac_count=`expr $ac_count + 1`
6721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6722 # Best one so far, save it but keep looking for a better one
6723 ac_cv_path_EGREP="$ac_path_EGREP"
6724 ac_path_EGREP_max=$ac_count
6726 # 10*(2^10) chars as input seems more than enough
6727 test $ac_count -gt 10 && break
6728 done
6729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6730 esac
6733 $ac_path_EGREP_found && break 3
6734 done
6735 done
6737 done
6738 IFS=$as_save_IFS
6743 EGREP="$ac_cv_path_EGREP"
6744 if test -z "$EGREP"; then
6745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6746 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6747 { (exit 1); exit 1; }; }
6750 else
6751 ac_cv_path_EGREP=$EGREP
6757 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6758 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6759 EGREP="$ac_cv_path_EGREP"
6762 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6764 if test "${ac_cv_header_stdc+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <stdlib.h>
6774 #include <stdarg.h>
6775 #include <string.h>
6776 #include <float.h>
6779 main ()
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6801 { (case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_try") 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest.$ac_objext'
6811 { (case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_try") 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_header_stdc=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_cv_header_stdc=no
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 if test $ac_cv_header_stdc = yes; then
6831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <string.h>
6840 _ACEOF
6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "memchr" >/dev/null 2>&1; then
6844 else
6845 ac_cv_header_stdc=no
6847 rm -f conftest*
6851 if test $ac_cv_header_stdc = yes; then
6852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <stdlib.h>
6861 _ACEOF
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 $EGREP "free" >/dev/null 2>&1; then
6865 else
6866 ac_cv_header_stdc=no
6868 rm -f conftest*
6872 if test $ac_cv_header_stdc = yes; then
6873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6874 if test "$cross_compiling" = yes; then
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <ctype.h>
6884 #include <stdlib.h>
6885 #if ((' ' & 0x0FF) == 0x020)
6886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888 #else
6889 # define ISLOWER(c) \
6890 (('a' <= (c) && (c) <= 'i') \
6891 || ('j' <= (c) && (c) <= 'r') \
6892 || ('s' <= (c) && (c) <= 'z'))
6893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894 #endif
6896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 main ()
6900 int i;
6901 for (i = 0; i < 256; i++)
6902 if (XOR (islower (i), ISLOWER (i))
6903 || toupper (i) != TOUPPER (i))
6904 return 2;
6905 return 0;
6907 _ACEOF
6908 rm -f conftest$ac_exeext
6909 if { (ac_try="$ac_link"
6910 case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_link") 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6919 { (case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_try") 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6929 else
6930 echo "$as_me: program exited with status $ac_status" >&5
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 ( exit $ac_status )
6935 ac_cv_header_stdc=no
6937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6943 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6944 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6945 if test $ac_cv_header_stdc = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define STDC_HEADERS 1
6949 _ACEOF
6953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6963 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6964 inttypes.h stdint.h unistd.h
6966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6980 #include <$ac_header>
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6984 case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_compile") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6997 { (case "(($ac_try" in
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7000 esac
7001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7002 (eval "$ac_try") 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_try") 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 eval "$as_ac_Header=yes"
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 eval "$as_ac_Header=no"
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 ac_res=`eval echo '${'$as_ac_Header'}'`
7027 { echo "$as_me:$LINENO: result: $ac_res" >&5
7028 echo "${ECHO_T}$ac_res" >&6; }
7029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7030 cat >>confdefs.h <<_ACEOF
7031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7032 _ACEOF
7036 done
7039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7040 # for constant arguments. Useless!
7041 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7042 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7043 if test "${ac_cv_working_alloca_h+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <alloca.h>
7054 main ()
7056 char *p = (char *) alloca (2 * sizeof (int));
7057 if (p) return 0;
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (ac_try="$ac_link"
7064 case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_link") 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7077 { (case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_try") 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_working_alloca_h=yes
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 ac_cv_working_alloca_h=no
7104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7105 conftest$ac_exeext conftest.$ac_ext
7107 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7108 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7109 if test $ac_cv_working_alloca_h = yes; then
7111 cat >>confdefs.h <<\_ACEOF
7112 #define HAVE_ALLOCA_H 1
7113 _ACEOF
7117 { echo "$as_me:$LINENO: checking for alloca" >&5
7118 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7119 if test "${ac_cv_func_alloca_works+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #ifdef __GNUC__
7129 # define alloca __builtin_alloca
7130 #else
7131 # ifdef _MSC_VER
7132 # include <malloc.h>
7133 # define alloca _alloca
7134 # else
7135 # ifdef HAVE_ALLOCA_H
7136 # include <alloca.h>
7137 # else
7138 # ifdef _AIX
7139 #pragma alloca
7140 # else
7141 # ifndef alloca /* predefined by HP cc +Olibcalls */
7142 char *alloca ();
7143 # endif
7144 # endif
7145 # endif
7146 # endif
7147 #endif
7150 main ()
7152 char *p = (char *) alloca (1);
7153 if (p) return 0;
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext conftest$ac_exeext
7159 if { (ac_try="$ac_link"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_link") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7173 { (case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_try") 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest$ac_exeext'
7183 { (case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_try") 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_func_alloca_works=yes
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 ac_cv_func_alloca_works=no
7200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7201 conftest$ac_exeext conftest.$ac_ext
7203 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7204 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7206 if test $ac_cv_func_alloca_works = yes; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define HAVE_ALLOCA 1
7210 _ACEOF
7212 else
7213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7214 # that cause trouble. Some versions do not even contain alloca or
7215 # contain a buggy version. If you still want to use their alloca,
7216 # use ar to extract alloca.o from them instead of compiling alloca.c.
7218 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7220 cat >>confdefs.h <<\_ACEOF
7221 #define C_ALLOCA 1
7222 _ACEOF
7225 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7226 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7227 if test "${ac_cv_os_cray+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #if defined CRAY && ! defined CRAY2
7237 webecray
7238 #else
7239 wenotbecray
7240 #endif
7242 _ACEOF
7243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7244 $EGREP "webecray" >/dev/null 2>&1; then
7245 ac_cv_os_cray=yes
7246 else
7247 ac_cv_os_cray=no
7249 rm -f conftest*
7252 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7253 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7254 if test $ac_cv_os_cray = yes; then
7255 for ac_func in _getb67 GETB67 getb67; do
7256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7270 #define $ac_func innocuous_$ac_func
7272 /* System header to define __stub macros and hopefully few prototypes,
7273 which can conflict with char $ac_func (); below.
7274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 <limits.h> exists even on freestanding compilers. */
7277 #ifdef __STDC__
7278 # include <limits.h>
7279 #else
7280 # include <assert.h>
7281 #endif
7283 #undef $ac_func
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7288 #ifdef __cplusplus
7289 extern "C"
7290 #endif
7291 char $ac_func ();
7292 /* The GNU C library defines this for functions which it implements
7293 to always fail with ENOSYS. Some functions are actually named
7294 something starting with __ and the normal name is an alias. */
7295 #if defined __stub_$ac_func || defined __stub___$ac_func
7296 choke me
7297 #endif
7300 main ()
7302 return $ac_func ();
7304 return 0;
7306 _ACEOF
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7309 case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_link") 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7322 { (case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_try") 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest$ac_exeext'
7332 { (case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_try") 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 eval "$as_ac_var=yes"
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 eval "$as_ac_var=no"
7349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7350 conftest$ac_exeext conftest.$ac_ext
7352 ac_res=`eval echo '${'$as_ac_var'}'`
7353 { echo "$as_me:$LINENO: result: $ac_res" >&5
7354 echo "${ECHO_T}$ac_res" >&6; }
7355 if test `eval echo '${'$as_ac_var'}'` = yes; then
7357 cat >>confdefs.h <<_ACEOF
7358 #define CRAY_STACKSEG_END $ac_func
7359 _ACEOF
7361 break
7364 done
7367 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7368 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7369 if test "${ac_cv_c_stack_direction+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 if test "$cross_compiling" = yes; then
7373 ac_cv_c_stack_direction=0
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 $ac_includes_default
7383 find_stack_direction ()
7385 static char *addr = 0;
7386 auto char dummy;
7387 if (addr == 0)
7389 addr = &dummy;
7390 return find_stack_direction ();
7392 else
7393 return (&dummy > addr) ? 1 : -1;
7397 main ()
7399 return find_stack_direction () < 0;
7401 _ACEOF
7402 rm -f conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7413 { (case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_try") 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 ac_cv_c_stack_direction=1
7423 else
7424 echo "$as_me: program exited with status $ac_status" >&5
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ( exit $ac_status )
7429 ac_cv_c_stack_direction=-1
7431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7436 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7439 cat >>confdefs.h <<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7441 _ACEOF
7451 ac_header_dirent=no
7452 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7453 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7454 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7455 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 #include <sys/types.h>
7466 #include <$ac_hdr>
7469 main ()
7471 if ((DIR *) 0)
7472 return 0;
7474 return 0;
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7492 { (case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_try") 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_try") 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 eval "$as_ac_Header=yes"
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 eval "$as_ac_Header=no"
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522 { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7527 _ACEOF
7529 ac_header_dirent=$ac_hdr; break
7532 done
7533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7534 if test $ac_header_dirent = dirent.h; then
7535 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7537 if test "${ac_cv_search_opendir+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540 ac_func_search_save_LIBS=$LIBS
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7548 /* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char opendir ();
7556 main ()
7558 return opendir ();
7560 return 0;
7562 _ACEOF
7563 for ac_lib in '' dir; do
7564 if test -z "$ac_lib"; then
7565 ac_res="none required"
7566 else
7567 ac_res=-l$ac_lib
7568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (ac_try="$ac_link"
7572 case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_link") 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7585 { (case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_try") 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest$ac_exeext'
7595 { (case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_try") 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_search_opendir=$ac_res
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613 conftest$ac_exeext
7614 if test "${ac_cv_search_opendir+set}" = set; then
7615 break
7617 done
7618 if test "${ac_cv_search_opendir+set}" = set; then
7620 else
7621 ac_cv_search_opendir=no
7623 rm conftest.$ac_ext
7624 LIBS=$ac_func_search_save_LIBS
7626 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7627 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7628 ac_res=$ac_cv_search_opendir
7629 if test "$ac_res" != no; then
7630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7634 else
7635 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7636 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7637 if test "${ac_cv_search_opendir+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 ac_func_search_save_LIBS=$LIBS
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 char opendir ();
7656 main ()
7658 return opendir ();
7660 return 0;
7662 _ACEOF
7663 for ac_lib in '' x; do
7664 if test -z "$ac_lib"; then
7665 ac_res="none required"
7666 else
7667 ac_res=-l$ac_lib
7668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (ac_try="$ac_link"
7672 case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675 esac
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_link") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688 esac
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_try") 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698 esac
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_try") 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_cv_search_opendir=$ac_res
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7713 conftest$ac_exeext
7714 if test "${ac_cv_search_opendir+set}" = set; then
7715 break
7717 done
7718 if test "${ac_cv_search_opendir+set}" = set; then
7720 else
7721 ac_cv_search_opendir=no
7723 rm conftest.$ac_ext
7724 LIBS=$ac_func_search_save_LIBS
7726 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7727 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7728 ac_res=$ac_cv_search_opendir
7729 if test "$ac_res" != no; then
7730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7738 if test "${ac_cv_header_stdc+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #include <stdlib.h>
7748 #include <stdarg.h>
7749 #include <string.h>
7750 #include <float.h>
7753 main ()
7757 return 0;
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_compile") 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775 { (case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_try") 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_header_stdc=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 ac_cv_header_stdc=no
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <string.h>
7814 _ACEOF
7815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816 $EGREP "memchr" >/dev/null 2>&1; then
7818 else
7819 ac_cv_header_stdc=no
7821 rm -f conftest*
7825 if test $ac_cv_header_stdc = yes; then
7826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 #include <stdlib.h>
7835 _ACEOF
7836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837 $EGREP "free" >/dev/null 2>&1; then
7839 else
7840 ac_cv_header_stdc=no
7842 rm -f conftest*
7846 if test $ac_cv_header_stdc = yes; then
7847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7848 if test "$cross_compiling" = yes; then
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 #include <ctype.h>
7858 #include <stdlib.h>
7859 #if ((' ' & 0x0FF) == 0x020)
7860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7862 #else
7863 # define ISLOWER(c) \
7864 (('a' <= (c) && (c) <= 'i') \
7865 || ('j' <= (c) && (c) <= 'r') \
7866 || ('s' <= (c) && (c) <= 'z'))
7867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7868 #endif
7870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7872 main ()
7874 int i;
7875 for (i = 0; i < 256; i++)
7876 if (XOR (islower (i), ISLOWER (i))
7877 || toupper (i) != TOUPPER (i))
7878 return 2;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7903 else
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ( exit $ac_status )
7909 ac_cv_header_stdc=no
7911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7919 if test $ac_cv_header_stdc = yes; then
7921 cat >>confdefs.h <<\_ACEOF
7922 #define STDC_HEADERS 1
7923 _ACEOF
7927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <sys/types.h>
7939 #include <sys/wait.h>
7940 #ifndef WEXITSTATUS
7941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7942 #endif
7943 #ifndef WIFEXITED
7944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7945 #endif
7948 main ()
7950 int s;
7951 wait (&s);
7952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_header_sys_wait_h=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_header_sys_wait_h=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8003 if test $ac_cv_header_sys_wait_h = yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_SYS_WAIT_H 1
8007 _ACEOF
8034 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
8036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 ac_res=`eval echo '${'$as_ac_Header'}'`
8044 { echo "$as_me:$LINENO: result: $ac_res" >&5
8045 echo "${ECHO_T}$ac_res" >&6; }
8046 else
8047 # Is the header compilable?
8048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8057 #include <$ac_header>
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_header_compiler=yes
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_header_compiler=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8103 echo "${ECHO_T}$ac_header_compiler" >&6; }
8105 # Is the header present?
8106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 #include <$ac_header>
8115 _ACEOF
8116 if { (ac_try="$ac_cpp conftest.$ac_ext"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } >/dev/null; then
8129 if test -s conftest.err; then
8130 ac_cpp_err=$ac_c_preproc_warn_flag
8131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8132 else
8133 ac_cpp_err=
8135 else
8136 ac_cpp_err=yes
8138 if test -z "$ac_cpp_err"; then
8139 ac_header_preproc=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_header_preproc=no
8147 rm -f conftest.err conftest.$ac_ext
8148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8149 echo "${ECHO_T}$ac_header_preproc" >&6; }
8151 # So? What about this header?
8152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8153 yes:no: )
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8158 ac_header_preproc=yes
8160 no:yes:* )
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8175 esac
8176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 eval "$as_ac_Header=\$ac_header_preproc"
8183 ac_res=`eval echo '${'$as_ac_Header'}'`
8184 { echo "$as_me:$LINENO: result: $ac_res" >&5
8185 echo "${ECHO_T}$ac_res" >&6; }
8188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 _ACEOF
8195 done
8198 # Check whether --enable-largefile was given.
8199 if test "${enable_largefile+set}" = set; then
8200 enableval=$enable_largefile;
8203 if test "$enable_largefile" != no; then
8205 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8206 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8207 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 ac_cv_sys_largefile_CC=no
8211 if test "$GCC" != yes; then
8212 ac_save_CC=$CC
8213 while :; do
8214 # IRIX 6.2 and later do not support large files by default,
8215 # so use the C compiler's -n32 option if that helps.
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h. */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 #include <sys/types.h>
8223 /* Check that off_t can represent 2**63 - 1 correctly.
8224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8225 since some C++ compilers masquerading as C compilers
8226 incorrectly reject 9223372036854775807. */
8227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8229 && LARGE_OFF_T % 2147483647 == 1)
8230 ? 1 : -1];
8232 main ()
8236 return 0;
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest.$ac_objext'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 break
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8281 rm -f core conftest.err conftest.$ac_objext
8282 CC="$CC -n32"
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_sys_largefile_CC=' -n32'; break
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f core conftest.err conftest.$ac_objext
8326 break
8327 done
8328 CC=$ac_save_CC
8329 rm -f conftest.$ac_ext
8332 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8333 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8334 if test "$ac_cv_sys_largefile_CC" != no; then
8335 CC=$CC$ac_cv_sys_largefile_CC
8338 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8339 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8340 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 while :; do
8344 ac_cv_sys_file_offset_bits=no
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 #include <sys/types.h>
8352 /* Check that off_t can represent 2**63 - 1 correctly.
8353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8354 since some C++ compilers masquerading as C compilers
8355 incorrectly reject 9223372036854775807. */
8356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8358 && LARGE_OFF_T % 2147483647 == 1)
8359 ? 1 : -1];
8361 main ()
8365 return 0;
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8370 case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8383 { (case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_try") 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 break
8403 else
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 #define _FILE_OFFSET_BITS 64
8418 #include <sys/types.h>
8419 /* Check that off_t can represent 2**63 - 1 correctly.
8420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8421 since some C++ compilers masquerading as C compilers
8422 incorrectly reject 9223372036854775807. */
8423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8425 && LARGE_OFF_T % 2147483647 == 1)
8426 ? 1 : -1];
8428 main ()
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8450 { (case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_try") 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; } &&
8459 { ac_try='test -s conftest.$ac_objext'
8460 { (case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_try") 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_sys_file_offset_bits=64; break
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 break
8479 done
8481 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8482 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8483 if test "$ac_cv_sys_file_offset_bits" != no; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8487 _ACEOF
8490 rm -f conftest*
8491 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8492 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8493 if test "${ac_cv_sys_large_files+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 while :; do
8497 ac_cv_sys_large_files=no
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 /* Check that off_t can represent 2**63 - 1 correctly.
8506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8507 since some C++ compilers masquerading as C compilers
8508 incorrectly reject 9223372036854775807. */
8509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8511 && LARGE_OFF_T % 2147483647 == 1)
8512 ? 1 : -1];
8514 main ()
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_try") 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 break
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 #define _LARGE_FILES 1
8571 #include <sys/types.h>
8572 /* Check that off_t can represent 2**63 - 1 correctly.
8573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8574 since some C++ compilers masquerading as C compilers
8575 incorrectly reject 9223372036854775807. */
8576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8578 && LARGE_OFF_T % 2147483647 == 1)
8579 ? 1 : -1];
8581 main ()
8585 return 0;
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_sys_large_files=1; break
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 break
8632 done
8634 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8635 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8636 if test "$ac_cv_sys_large_files" != no; then
8638 cat >>confdefs.h <<_ACEOF
8639 #define _LARGE_FILES $ac_cv_sys_large_files
8640 _ACEOF
8643 rm -f conftest*
8647 # Checks for typedefs, structures, and compiler characteristics.
8648 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8649 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8650 if test "${ac_cv_header_stdbool_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8660 #include <stdbool.h>
8661 #ifndef bool
8662 "error: bool is not defined"
8663 #endif
8664 #ifndef false
8665 "error: false is not defined"
8666 #endif
8667 #if false
8668 "error: false is not 0"
8669 #endif
8670 #ifndef true
8671 "error: true is not defined"
8672 #endif
8673 #if true != 1
8674 "error: true is not 1"
8675 #endif
8676 #ifndef __bool_true_false_are_defined
8677 "error: __bool_true_false_are_defined is not defined"
8678 #endif
8680 struct s { _Bool s: 1; _Bool t; } s;
8682 char a[true == 1 ? 1 : -1];
8683 char b[false == 0 ? 1 : -1];
8684 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8685 char d[(bool) 0.5 == true ? 1 : -1];
8686 bool e = &s;
8687 char f[(_Bool) 0.0 == false ? 1 : -1];
8688 char g[true];
8689 char h[sizeof (_Bool)];
8690 char i[sizeof s.t];
8691 enum { j = false, k = true, l = false * true, m = true * 256 };
8692 _Bool n[m];
8693 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8694 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8695 # if defined __xlc__ || defined __GNUC__
8696 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8697 reported by James Lemley on 2005-10-05; see
8698 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8699 This test is not quite right, since xlc is allowed to
8700 reject this program, as the initializer for xlcbug is
8701 not one of the forms that C requires support for.
8702 However, doing the test right would require a runtime
8703 test, and that would make cross-compilation harder.
8704 Let us hope that IBM fixes the xlc bug, and also adds
8705 support for this kind of constant expression. In the
8706 meantime, this test will reject xlc, which is OK, since
8707 our stdbool.h substitute should suffice. We also test
8708 this with GCC, where it should work, to detect more
8709 quickly whether someone messes up the test in the
8710 future. */
8711 char digs[] = "0123456789";
8712 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8713 # endif
8714 /* Catch a bug in an HP-UX C compiler. See
8715 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8716 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8718 _Bool q = true;
8719 _Bool *pq = &q;
8722 main ()
8725 *pq |= q;
8726 *pq |= ! q;
8727 /* Refer to every declared value, to avoid compiler optimizations. */
8728 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8729 + !m + !n + !o + !p + !q + !pq);
8732 return 0;
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_header_stdbool_h=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_header_stdbool_h=no
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8780 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8781 { echo "$as_me:$LINENO: checking for _Bool" >&5
8782 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8783 if test "${ac_cv_type__Bool+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 $ac_includes_default
8793 typedef _Bool ac__type_new_;
8795 main ()
8797 if ((ac__type_new_ *) 0)
8798 return 0;
8799 if (sizeof (ac__type_new_))
8800 return 0;
8802 return 0;
8804 _ACEOF
8805 rm -f conftest.$ac_objext
8806 if { (ac_try="$ac_compile"
8807 case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8820 { (case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_try") 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest.$ac_objext'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_type__Bool=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_type__Bool=no
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8850 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8851 if test $ac_cv_type__Bool = yes; then
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE__BOOL 1
8855 _ACEOF
8860 if test $ac_cv_header_stdbool_h = yes; then
8862 cat >>confdefs.h <<\_ACEOF
8863 #define HAVE_STDBOOL_H 1
8864 _ACEOF
8868 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8869 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8870 if test "${ac_cv_c_const+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8881 main ()
8883 /* FIXME: Include the comments suggested by Paul. */
8884 #ifndef __cplusplus
8885 /* Ultrix mips cc rejects this. */
8886 typedef int charset[2];
8887 const charset cs;
8888 /* SunOS 4.1.1 cc rejects this. */
8889 char const *const *pcpcc;
8890 char **ppc;
8891 /* NEC SVR4.0.2 mips cc rejects this. */
8892 struct point {int x, y;};
8893 static struct point const zero = {0,0};
8894 /* AIX XL C 1.02.0.0 rejects this.
8895 It does not let you subtract one const X* pointer from another in
8896 an arm of an if-expression whose if-part is not a constant
8897 expression */
8898 const char *g = "string";
8899 pcpcc = &g + (g ? g-g : 0);
8900 /* HPUX 7.0 cc rejects these. */
8901 ++pcpcc;
8902 ppc = (char**) pcpcc;
8903 pcpcc = (char const *const *) ppc;
8904 { /* SCO 3.2v4 cc rejects this. */
8905 char *t;
8906 char const *s = 0 ? (char *) 0 : (char const *) 0;
8908 *t++ = 0;
8909 if (s) return 0;
8911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8912 int x[] = {25, 17};
8913 const int *foo = &x[0];
8914 ++foo;
8916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8917 typedef const int *iptr;
8918 iptr p = 0;
8919 ++p;
8921 { /* AIX XL C 1.02.0.0 rejects this saying
8922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8923 struct s { int j; const int *ap[3]; };
8924 struct s *b; b->j = 5;
8926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8927 const int foo = 10;
8928 if (!foo) return 0;
8930 return !cs[0] && !zero.x;
8931 #endif
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_c_const=yes
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_c_const=no
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8982 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8983 if test $ac_cv_c_const = no; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define const
8987 _ACEOF
8991 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8992 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8993 if test "${ac_cv_type_uid_t+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 #include <sys/types.h>
9004 _ACEOF
9005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9006 $EGREP "uid_t" >/dev/null 2>&1; then
9007 ac_cv_type_uid_t=yes
9008 else
9009 ac_cv_type_uid_t=no
9011 rm -f conftest*
9014 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9015 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9016 if test $ac_cv_type_uid_t = no; then
9018 cat >>confdefs.h <<\_ACEOF
9019 #define uid_t int
9020 _ACEOF
9023 cat >>confdefs.h <<\_ACEOF
9024 #define gid_t int
9025 _ACEOF
9029 { echo "$as_me:$LINENO: checking for inline" >&5
9030 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9031 if test "${ac_cv_c_inline+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 ac_cv_c_inline=no
9035 for ac_kw in inline __inline__ __inline; do
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 #ifndef __cplusplus
9043 typedef int foo_t;
9044 static $ac_kw foo_t static_foo () {return 0; }
9045 $ac_kw foo_t foo () {return 0; }
9046 #endif
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (ac_try="$ac_compile"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_try") 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_c_inline=$ac_kw
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 test "$ac_cv_c_inline" != no && break
9093 done
9096 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9097 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9100 case $ac_cv_c_inline in
9101 inline | yes) ;;
9103 case $ac_cv_c_inline in
9104 no) ac_val=;;
9105 *) ac_val=$ac_cv_c_inline;;
9106 esac
9107 cat >>confdefs.h <<_ACEOF
9108 #ifndef __cplusplus
9109 #define inline $ac_val
9110 #endif
9111 _ACEOF
9113 esac
9115 { echo "$as_me:$LINENO: checking for mode_t" >&5
9116 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9117 if test "${ac_cv_type_mode_t+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 $ac_includes_default
9127 typedef mode_t ac__type_new_;
9129 main ()
9131 if ((ac__type_new_ *) 0)
9132 return 0;
9133 if (sizeof (ac__type_new_))
9134 return 0;
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext
9140 if { (ac_try="$ac_compile"
9141 case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_compile") 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest.$ac_objext'
9164 { (case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_try") 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_type_mode_t=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_type_mode_t=no
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9184 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9185 if test $ac_cv_type_mode_t = yes; then
9187 else
9189 cat >>confdefs.h <<_ACEOF
9190 #define mode_t int
9191 _ACEOF
9195 { echo "$as_me:$LINENO: checking for off_t" >&5
9196 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9197 if test "${ac_cv_type_off_t+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 typedef off_t ac__type_new_;
9209 main ()
9211 if ((ac__type_new_ *) 0)
9212 return 0;
9213 if (sizeof (ac__type_new_))
9214 return 0;
9216 return 0;
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_compile") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9234 { (case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_try") 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (case "(($ac_try" in
9245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246 *) ac_try_echo=$ac_try;;
9247 esac
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249 (eval "$ac_try") 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 ac_cv_type_off_t=yes
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_cv_type_off_t=no
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9264 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9265 if test $ac_cv_type_off_t = yes; then
9267 else
9269 cat >>confdefs.h <<_ACEOF
9270 #define off_t long int
9271 _ACEOF
9275 { echo "$as_me:$LINENO: checking for pid_t" >&5
9276 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9277 if test "${ac_cv_type_pid_t+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9287 typedef pid_t ac__type_new_;
9289 main ()
9291 if ((ac__type_new_ *) 0)
9292 return 0;
9293 if (sizeof (ac__type_new_))
9294 return 0;
9296 return 0;
9298 _ACEOF
9299 rm -f conftest.$ac_objext
9300 if { (ac_try="$ac_compile"
9301 case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304 esac
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_compile") 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9314 { (case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_try") 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_try") 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_type_pid_t=yes
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_type_pid_t=no
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9344 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9345 if test $ac_cv_type_pid_t = yes; then
9347 else
9349 cat >>confdefs.h <<_ACEOF
9350 #define pid_t int
9351 _ACEOF
9355 { echo "$as_me:$LINENO: checking for size_t" >&5
9356 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9357 if test "${ac_cv_type_size_t+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 $ac_includes_default
9367 typedef size_t ac__type_new_;
9369 main ()
9371 if ((ac__type_new_ *) 0)
9372 return 0;
9373 if (sizeof (ac__type_new_))
9374 return 0;
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9394 { (case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_try") 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest.$ac_objext'
9404 { (case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_try") 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_type_size_t=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_type_size_t=no
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9424 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9425 if test $ac_cv_type_size_t = yes; then
9427 else
9429 cat >>confdefs.h <<_ACEOF
9430 #define size_t unsigned int
9431 _ACEOF
9435 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9436 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
9437 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h. */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 $ac_includes_default
9448 main ()
9450 static struct stat ac_aggr;
9451 if (ac_aggr.st_blksize)
9452 return 0;
9454 return 0;
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (ac_try="$ac_compile"
9459 case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_compile") 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_try") 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest.$ac_objext'
9482 { (case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_try") 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_member_struct_stat_st_blksize=yes
9492 else
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9504 main ()
9506 static struct stat ac_aggr;
9507 if (sizeof ac_aggr.st_blksize)
9508 return 0;
9510 return 0;
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (ac_try="$ac_compile"
9515 case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_try") 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_try") 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_member_struct_stat_st_blksize=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_cv_member_struct_stat_st_blksize=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9561 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9562 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9566 _ACEOF
9571 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9573 if test "${ac_cv_header_time+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 #include <sys/types.h>
9583 #include <sys/time.h>
9584 #include <time.h>
9587 main ()
9589 if ((struct tm *) 0)
9590 return 0;
9592 return 0;
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_header_time=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_cv_header_time=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9640 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9641 if test $ac_cv_header_time = yes; then
9643 cat >>confdefs.h <<\_ACEOF
9644 #define TIME_WITH_SYS_TIME 1
9645 _ACEOF
9649 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9650 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9651 if test "${ac_cv_struct_tm+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <sys/types.h>
9661 #include <time.h>
9664 main ()
9666 struct tm *tp; tp->tm_sec;
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9673 case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_struct_tm=time.h
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_struct_tm=sys/time.h
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9717 if test $ac_cv_struct_tm = sys/time.h; then
9719 cat >>confdefs.h <<\_ACEOF
9720 #define TM_IN_SYS_TIME 1
9721 _ACEOF
9725 { echo "$as_me:$LINENO: checking for working volatile" >&5
9726 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9727 if test "${ac_cv_c_volatile+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9738 main ()
9741 volatile int x;
9742 int * volatile y = (int *) 0;
9743 return !x && !y;
9745 return 0;
9747 _ACEOF
9748 rm -f conftest.$ac_objext
9749 if { (ac_try="$ac_compile"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest.$ac_objext'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_c_volatile=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_cv_c_volatile=no
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9793 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9794 if test $ac_cv_c_volatile = no; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define volatile
9798 _ACEOF
9802 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9803 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9804 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 typedef ptrdiff_t ac__type_new_;
9816 main ()
9818 if ((ac__type_new_ *) 0)
9819 return 0;
9820 if (sizeof (ac__type_new_))
9821 return 0;
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest.$ac_objext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_type_ptrdiff_t=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_cv_type_ptrdiff_t=no
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9871 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9872 if test $ac_cv_type_ptrdiff_t = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define HAVE_PTRDIFF_T 1
9876 _ACEOF
9882 # Checks for library functions.
9884 for ac_header in unistd.h
9886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 ac_res=`eval echo '${'$as_ac_Header'}'`
9894 { echo "$as_me:$LINENO: result: $ac_res" >&5
9895 echo "${ECHO_T}$ac_res" >&6; }
9896 else
9897 # Is the header compilable?
9898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 $ac_includes_default
9907 #include <$ac_header>
9908 _ACEOF
9909 rm -f conftest.$ac_objext
9910 if { (ac_try="$ac_compile"
9911 case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_compile") 2>conftest.er1
9917 ac_status=$?
9918 grep -v '^ *+' conftest.er1 >conftest.err
9919 rm -f conftest.er1
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9924 { (case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_try") 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_try") 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_header_compiler=yes
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_header_compiler=no
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9953 echo "${ECHO_T}$ac_header_compiler" >&6; }
9955 # Is the header present?
9956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 #include <$ac_header>
9965 _ACEOF
9966 if { (ac_try="$ac_cpp conftest.$ac_ext"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } >/dev/null; then
9979 if test -s conftest.err; then
9980 ac_cpp_err=$ac_c_preproc_warn_flag
9981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9982 else
9983 ac_cpp_err=
9985 else
9986 ac_cpp_err=yes
9988 if test -z "$ac_cpp_err"; then
9989 ac_header_preproc=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_preproc=no
9997 rm -f conftest.err conftest.$ac_ext
9998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 echo "${ECHO_T}$ac_header_preproc" >&6; }
10001 # So? What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10003 yes:no: )
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008 ac_header_preproc=yes
10010 no:yes:* )
10011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10025 esac
10026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 eval "$as_ac_Header=\$ac_header_preproc"
10033 ac_res=`eval echo '${'$as_ac_Header'}'`
10034 { echo "$as_me:$LINENO: result: $ac_res" >&5
10035 echo "${ECHO_T}$ac_res" >&6; }
10038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10039 cat >>confdefs.h <<_ACEOF
10040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10041 _ACEOF
10045 done
10047 { echo "$as_me:$LINENO: checking for working chown" >&5
10048 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10049 if test "${ac_cv_func_chown_works+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052 if test "$cross_compiling" = yes; then
10053 ac_cv_func_chown_works=no
10054 else
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 $ac_includes_default
10062 #include <fcntl.h>
10065 main ()
10067 char *f = "conftest.chown";
10068 struct stat before, after;
10070 if (creat (f, 0600) < 0)
10071 return 1;
10072 if (stat (f, &before) < 0)
10073 return 1;
10074 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10075 return 1;
10076 if (stat (f, &after) < 0)
10077 return 1;
10078 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10081 return 0;
10083 _ACEOF
10084 rm -f conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_func_chown_works=yes
10105 else
10106 echo "$as_me: program exited with status $ac_status" >&5
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ( exit $ac_status )
10111 ac_cv_func_chown_works=no
10113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10117 rm -f conftest.chown
10120 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10121 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10122 if test $ac_cv_func_chown_works = yes; then
10124 cat >>confdefs.h <<\_ACEOF
10125 #define HAVE_CHOWN 1
10126 _ACEOF
10130 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10131 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10132 if test "${ac_cv_func_closedir_void+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 if test "$cross_compiling" = yes; then
10136 ac_cv_func_closedir_void=yes
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10145 #include <$ac_header_dirent>
10146 #ifndef __cplusplus
10147 int closedir ();
10148 #endif
10151 main ()
10153 return closedir (opendir (".")) != 0;
10155 return 0;
10157 _ACEOF
10158 rm -f conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10169 { (case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_try") 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_func_closedir_void=no
10179 else
10180 echo "$as_me: program exited with status $ac_status" >&5
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ( exit $ac_status )
10185 ac_cv_func_closedir_void=yes
10187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10192 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10193 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10194 if test $ac_cv_func_closedir_void = yes; then
10196 cat >>confdefs.h <<\_ACEOF
10197 #define CLOSEDIR_VOID 1
10198 _ACEOF
10202 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10203 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10204 if test "${ac_cv_lib_error_at_line+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 $ac_includes_default
10215 main ()
10217 error_at_line (0, 0, "", 0, "");
10219 return 0;
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10237 { (case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_try") 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_cv_lib_error_at_line=yes
10257 else
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ac_cv_lib_error_at_line=no
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265 conftest$ac_exeext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10268 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10269 if test $ac_cv_lib_error_at_line = no; then
10270 case " $LIBOBJS " in
10271 *" error.$ac_objext "* ) ;;
10272 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10274 esac
10279 for ac_header in vfork.h
10281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 ac_res=`eval echo '${'$as_ac_Header'}'`
10289 { echo "$as_me:$LINENO: result: $ac_res" >&5
10290 echo "${ECHO_T}$ac_res" >&6; }
10291 else
10292 # Is the header compilable?
10293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 $ac_includes_default
10302 #include <$ac_header>
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest.$ac_objext'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_header_compiler=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_header_compiler=no
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6; }
10350 # Is the header present?
10351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <$ac_header>
10360 _ACEOF
10361 if { (ac_try="$ac_cpp conftest.$ac_ext"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } >/dev/null; then
10374 if test -s conftest.err; then
10375 ac_cpp_err=$ac_c_preproc_warn_flag
10376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10377 else
10378 ac_cpp_err=
10380 else
10381 ac_cpp_err=yes
10383 if test -z "$ac_cpp_err"; then
10384 ac_header_preproc=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_header_preproc=no
10392 rm -f conftest.err conftest.$ac_ext
10393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10394 echo "${ECHO_T}$ac_header_preproc" >&6; }
10396 # So? What about this header?
10397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10398 yes:no: )
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10403 ac_header_preproc=yes
10405 no:yes:* )
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10420 esac
10421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 eval "$as_ac_Header=\$ac_header_preproc"
10428 ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430 echo "${ECHO_T}$ac_res" >&6; }
10433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10434 cat >>confdefs.h <<_ACEOF
10435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436 _ACEOF
10440 done
10444 for ac_func in fork vfork
10446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10460 #define $ac_func innocuous_$ac_func
10462 /* System header to define __stub macros and hopefully few prototypes,
10463 which can conflict with char $ac_func (); below.
10464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10465 <limits.h> exists even on freestanding compilers. */
10467 #ifdef __STDC__
10468 # include <limits.h>
10469 #else
10470 # include <assert.h>
10471 #endif
10473 #undef $ac_func
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char $ac_func ();
10482 /* The GNU C library defines this for functions which it implements
10483 to always fail with ENOSYS. Some functions are actually named
10484 something starting with __ and the normal name is an alias. */
10485 #if defined __stub_$ac_func || defined __stub___$ac_func
10486 choke me
10487 #endif
10490 main ()
10492 return $ac_func ();
10494 return 0;
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 eval "$as_ac_var=yes"
10532 else
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 eval "$as_ac_var=no"
10539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540 conftest$ac_exeext conftest.$ac_ext
10542 ac_res=`eval echo '${'$as_ac_var'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10545 if test `eval echo '${'$as_ac_var'}'` = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10548 _ACEOF
10551 done
10553 if test "x$ac_cv_func_fork" = xyes; then
10554 { echo "$as_me:$LINENO: checking for working fork" >&5
10555 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10556 if test "${ac_cv_func_fork_works+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 if test "$cross_compiling" = yes; then
10560 ac_cv_func_fork_works=cross
10561 else
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 $ac_includes_default
10570 main ()
10573 /* By Ruediger Kuhlmann. */
10574 return fork () < 0;
10577 return 0;
10579 _ACEOF
10580 rm -f conftest$ac_exeext
10581 if { (ac_try="$ac_link"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_link") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_cv_func_fork_works=yes
10601 else
10602 echo "$as_me: program exited with status $ac_status" >&5
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ( exit $ac_status )
10607 ac_cv_func_fork_works=no
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10614 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10615 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10617 else
10618 ac_cv_func_fork_works=$ac_cv_func_fork
10620 if test "x$ac_cv_func_fork_works" = xcross; then
10621 case $host in
10622 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
10623 # Override, as these systems have only a dummy fork() stub
10624 ac_cv_func_fork_works=no
10627 ac_cv_func_fork_works=yes
10629 esac
10630 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10631 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10633 ac_cv_func_vfork_works=$ac_cv_func_vfork
10634 if test "x$ac_cv_func_vfork" = xyes; then
10635 { echo "$as_me:$LINENO: checking for working vfork" >&5
10636 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10637 if test "${ac_cv_func_vfork_works+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 if test "$cross_compiling" = yes; then
10641 ac_cv_func_vfork_works=cross
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Thanks to Paul Eggert for this test. */
10650 $ac_includes_default
10651 #include <sys/wait.h>
10652 #ifdef HAVE_VFORK_H
10653 # include <vfork.h>
10654 #endif
10655 /* On some sparc systems, changes by the child to local and incoming
10656 argument registers are propagated back to the parent. The compiler
10657 is told about this with #include <vfork.h>, but some compilers
10658 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10659 static variable whose address is put into a register that is
10660 clobbered by the vfork. */
10661 static void
10662 #ifdef __cplusplus
10663 sparc_address_test (int arg)
10664 # else
10665 sparc_address_test (arg) int arg;
10666 #endif
10668 static pid_t child;
10669 if (!child) {
10670 child = vfork ();
10671 if (child < 0) {
10672 perror ("vfork");
10673 _exit(2);
10675 if (!child) {
10676 arg = getpid();
10677 write(-1, "", 0);
10678 _exit (arg);
10684 main ()
10686 pid_t parent = getpid ();
10687 pid_t child;
10689 sparc_address_test (0);
10691 child = vfork ();
10693 if (child == 0) {
10694 /* Here is another test for sparc vfork register problems. This
10695 test uses lots of local variables, at least as many local
10696 variables as main has allocated so far including compiler
10697 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10698 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10699 reuse the register of parent for one of the local variables,
10700 since it will think that parent can't possibly be used any more
10701 in this routine. Assigning to the local variable will thus
10702 munge parent in the parent process. */
10703 pid_t
10704 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10705 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10706 /* Convince the compiler that p..p7 are live; otherwise, it might
10707 use the same hardware register for all 8 local variables. */
10708 if (p != p1 || p != p2 || p != p3 || p != p4
10709 || p != p5 || p != p6 || p != p7)
10710 _exit(1);
10712 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10713 from child file descriptors. If the child closes a descriptor
10714 before it execs or exits, this munges the parent's descriptor
10715 as well. Test for this by closing stdout in the child. */
10716 _exit(close(fileno(stdout)) != 0);
10717 } else {
10718 int status;
10719 struct stat st;
10721 while (wait(&status) != child)
10723 return (
10724 /* Was there some problem with vforking? */
10725 child < 0
10727 /* Did the child fail? (This shouldn't happen.) */
10728 || status
10730 /* Did the vfork/compiler bug occur? */
10731 || parent != getpid()
10733 /* Did the file descriptor bug occur? */
10734 || fstat(fileno(stdout), &st) != 0
10738 _ACEOF
10739 rm -f 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>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10750 { (case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_try") 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_cv_func_vfork_works=yes
10760 else
10761 echo "$as_me: program exited with status $ac_status" >&5
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ( exit $ac_status )
10766 ac_cv_func_vfork_works=no
10768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10773 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10774 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10777 if test "x$ac_cv_func_fork_works" = xcross; then
10778 ac_cv_func_vfork_works=$ac_cv_func_vfork
10779 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10780 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10783 if test "x$ac_cv_func_vfork_works" = xyes; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_WORKING_VFORK 1
10787 _ACEOF
10789 else
10791 cat >>confdefs.h <<\_ACEOF
10792 #define vfork fork
10793 _ACEOF
10796 if test "x$ac_cv_func_fork_works" = xyes; then
10798 cat >>confdefs.h <<\_ACEOF
10799 #define HAVE_WORKING_FORK 1
10800 _ACEOF
10804 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10805 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10806 if test "${ac_cv_sys_largefile_source+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 while :; do
10810 ac_cv_sys_largefile_source=no
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <stdio.h>
10819 main ()
10821 return !fseeko;
10823 return 0;
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (ac_try="$ac_compile"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_compile") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 break
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #define _LARGEFILE_SOURCE 1
10876 #include <stdio.h>
10878 main ()
10880 return !fseeko;
10882 return 0;
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_compile") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_sys_largefile_source=1; break
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 break
10929 done
10931 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10932 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10933 if test "$ac_cv_sys_largefile_source" != no; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10937 _ACEOF
10940 rm -f conftest*
10942 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10943 # in glibc 2.1.3, but that breaks too many other things.
10944 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10945 { echo "$as_me:$LINENO: checking for fseeko" >&5
10946 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
10947 if test "${ac_cv_func_fseeko+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <stdio.h>
10958 main ()
10960 return fseeko && fseeko (stdin, 0, 0);
10962 return 0;
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_link") 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest$ac_exeext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_func_fseeko=yes
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_cv_func_fseeko=no
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11010 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11011 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
11012 if test $ac_cv_func_fseeko = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_FSEEKO 1
11016 _ACEOF
11020 if test $ac_cv_c_compiler_gnu = yes; then
11021 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11022 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11023 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 ac_pattern="Autoconf.*'x'"
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <sgtty.h>
11034 Autoconf TIOCGETP
11035 _ACEOF
11036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11037 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11038 ac_cv_prog_gcc_traditional=yes
11039 else
11040 ac_cv_prog_gcc_traditional=no
11042 rm -f conftest*
11045 if test $ac_cv_prog_gcc_traditional = no; then
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 #include <termio.h>
11053 Autoconf TCGETA
11054 _ACEOF
11055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11056 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11057 ac_cv_prog_gcc_traditional=yes
11059 rm -f conftest*
11063 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11064 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11065 if test $ac_cv_prog_gcc_traditional = yes; then
11066 CC="$CC -traditional"
11070 # XXX: these are commented out until we determine whether it matters if our malloc()
11071 # acts exactly like glibc's or not
11072 # AC_FUNC_MALLOC
11073 # AC_FUNC_REALLOC
11074 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11075 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11076 if test "${ac_cv_func_memcmp_working+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 if test "$cross_compiling" = yes; then
11080 ac_cv_func_memcmp_working=no
11081 else
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 $ac_includes_default
11090 main ()
11093 /* Some versions of memcmp are not 8-bit clean. */
11094 char c0 = '\100', c1 = '\200', c2 = '\201';
11095 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11096 return 1;
11098 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11099 or more and with at least one buffer not starting on a 4-byte boundary.
11100 William Lewis provided this test program. */
11102 char foo[21];
11103 char bar[21];
11104 int i;
11105 for (i = 0; i < 4; i++)
11107 char *a = foo + i;
11108 char *b = bar + i;
11109 strcpy (a, "--------01111111");
11110 strcpy (b, "--------10000000");
11111 if (memcmp (a, b, 16) >= 0)
11112 return 1;
11114 return 0;
11118 return 0;
11120 _ACEOF
11121 rm -f conftest$ac_exeext
11122 if { (ac_try="$ac_link"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_link") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_func_memcmp_working=yes
11142 else
11143 echo "$as_me: program exited with status $ac_status" >&5
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ( exit $ac_status )
11148 ac_cv_func_memcmp_working=no
11150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11157 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11158 *" memcmp.$ac_objext "* ) ;;
11159 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11161 esac
11167 for ac_header in stdlib.h sys/time.h unistd.h
11169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 else
11180 # Is the header compilable?
11181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 #include <$ac_header>
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11207 { (case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_try") 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220 esac
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_try") 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_header_compiler=yes
11227 else
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_compiler=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 echo "${ECHO_T}$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev/null; then
11262 if test -s conftest.err; then
11263 ac_cpp_err=$ac_c_preproc_warn_flag
11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11265 else
11266 ac_cpp_err=
11268 else
11269 ac_cpp_err=yes
11271 if test -z "$ac_cpp_err"; then
11272 ac_header_preproc=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_preproc=no
11280 rm -f conftest.err conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11282 echo "${ECHO_T}$ac_header_preproc" >&6; }
11284 # So? What about this header?
11285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286 yes:no: )
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11291 ac_header_preproc=yes
11293 no:yes:* )
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11308 esac
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 eval "$as_ac_Header=\$ac_header_preproc"
11316 ac_res=`eval echo '${'$as_ac_Header'}'`
11317 { echo "$as_me:$LINENO: result: $ac_res" >&5
11318 echo "${ECHO_T}$ac_res" >&6; }
11321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11322 cat >>confdefs.h <<_ACEOF
11323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324 _ACEOF
11328 done
11331 for ac_func in alarm
11333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11347 #define $ac_func innocuous_$ac_func
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char $ac_func (); below.
11351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352 <limits.h> exists even on freestanding compilers. */
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11360 #undef $ac_func
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char $ac_func ();
11369 /* The GNU C library defines this for functions which it implements
11370 to always fail with ENOSYS. Some functions are actually named
11371 something starting with __ and the normal name is an alias. */
11372 #if defined __stub_$ac_func || defined __stub___$ac_func
11373 choke me
11374 #endif
11377 main ()
11379 return $ac_func ();
11381 return 0;
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_link") 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest$ac_exeext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 eval "$as_ac_var=yes"
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 eval "$as_ac_var=no"
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11429 ac_res=`eval echo '${'$as_ac_var'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11432 if test `eval echo '${'$as_ac_var'}'` = yes; then
11433 cat >>confdefs.h <<_ACEOF
11434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11435 _ACEOF
11438 done
11440 { echo "$as_me:$LINENO: checking for working mktime" >&5
11441 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11442 if test "${ac_cv_func_working_mktime+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 if test "$cross_compiling" = yes; then
11446 ac_cv_func_working_mktime=no
11447 else
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 /* Test program from Paul Eggert and Tony Leneis. */
11455 #ifdef TIME_WITH_SYS_TIME
11456 # include <sys/time.h>
11457 # include <time.h>
11458 #else
11459 # ifdef HAVE_SYS_TIME_H
11460 # include <sys/time.h>
11461 # else
11462 # include <time.h>
11463 # endif
11464 #endif
11466 #ifdef HAVE_STDLIB_H
11467 # include <stdlib.h>
11468 #endif
11470 #ifdef HAVE_UNISTD_H
11471 # include <unistd.h>
11472 #endif
11474 #ifndef HAVE_ALARM
11475 # define alarm(X) /* empty */
11476 #endif
11478 /* Work around redefinition to rpl_putenv by other config tests. */
11479 #undef putenv
11481 static time_t time_t_max;
11482 static time_t time_t_min;
11484 /* Values we'll use to set the TZ environment variable. */
11485 static char *tz_strings[] = {
11486 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11487 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11489 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11491 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11492 Based on a problem report from Andreas Jaeger. */
11493 static int
11494 spring_forward_gap ()
11496 /* glibc (up to about 1998-10-07) failed this test. */
11497 struct tm tm;
11499 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11500 instead of "TZ=America/Vancouver" in order to detect the bug even
11501 on systems that don't support the Olson extension, or don't have the
11502 full zoneinfo tables installed. */
11503 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11505 tm.tm_year = 98;
11506 tm.tm_mon = 3;
11507 tm.tm_mday = 5;
11508 tm.tm_hour = 2;
11509 tm.tm_min = 0;
11510 tm.tm_sec = 0;
11511 tm.tm_isdst = -1;
11512 return mktime (&tm) != (time_t) -1;
11515 static int
11516 mktime_test1 (now)
11517 time_t now;
11519 struct tm *lt;
11520 return ! (lt = localtime (&now)) || mktime (lt) == now;
11523 static int
11524 mktime_test (now)
11525 time_t now;
11527 return (mktime_test1 (now)
11528 && mktime_test1 ((time_t) (time_t_max - now))
11529 && mktime_test1 ((time_t) (time_t_min + now)));
11532 static int
11533 irix_6_4_bug ()
11535 /* Based on code from Ariel Faigon. */
11536 struct tm tm;
11537 tm.tm_year = 96;
11538 tm.tm_mon = 3;
11539 tm.tm_mday = 0;
11540 tm.tm_hour = 0;
11541 tm.tm_min = 0;
11542 tm.tm_sec = 0;
11543 tm.tm_isdst = -1;
11544 mktime (&tm);
11545 return tm.tm_mon == 2 && tm.tm_mday == 31;
11548 static int
11549 bigtime_test (j)
11550 int j;
11552 struct tm tm;
11553 time_t now;
11554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11555 now = mktime (&tm);
11556 if (now != (time_t) -1)
11558 struct tm *lt = localtime (&now);
11559 if (! (lt
11560 && lt->tm_year == tm.tm_year
11561 && lt->tm_mon == tm.tm_mon
11562 && lt->tm_mday == tm.tm_mday
11563 && lt->tm_hour == tm.tm_hour
11564 && lt->tm_min == tm.tm_min
11565 && lt->tm_sec == tm.tm_sec
11566 && lt->tm_yday == tm.tm_yday
11567 && lt->tm_wday == tm.tm_wday
11568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11570 return 0;
11572 return 1;
11576 main ()
11578 time_t t, delta;
11579 int i, j;
11581 /* This test makes some buggy mktime implementations loop.
11582 Give up after 60 seconds; a mktime slower than that
11583 isn't worth using anyway. */
11584 alarm (60);
11586 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11587 continue;
11588 time_t_max--;
11589 if ((time_t) -1 < 0)
11590 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11591 continue;
11592 delta = time_t_max / 997; /* a suitable prime number */
11593 for (i = 0; i < N_STRINGS; i++)
11595 if (tz_strings[i])
11596 putenv (tz_strings[i]);
11598 for (t = 0; t <= time_t_max - delta; t += delta)
11599 if (! mktime_test (t))
11600 return 1;
11601 if (! (mktime_test ((time_t) 1)
11602 && mktime_test ((time_t) (60 * 60))
11603 && mktime_test ((time_t) (60 * 60 * 24))))
11604 return 1;
11606 for (j = 1; 0 < j; j *= 2)
11607 if (! bigtime_test (j))
11608 return 1;
11609 if (! bigtime_test (j - 1))
11610 return 1;
11612 return ! (irix_6_4_bug () && spring_forward_gap ());
11614 _ACEOF
11615 rm -f conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_func_working_mktime=yes
11636 else
11637 echo "$as_me: program exited with status $ac_status" >&5
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ( exit $ac_status )
11642 ac_cv_func_working_mktime=no
11644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11649 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11650 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
11651 if test $ac_cv_func_working_mktime = no; then
11652 case " $LIBOBJS " in
11653 *" mktime.$ac_objext "* ) ;;
11654 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11656 esac
11662 for ac_header in stdlib.h unistd.h
11664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 ac_res=`eval echo '${'$as_ac_Header'}'`
11672 { echo "$as_me:$LINENO: result: $ac_res" >&5
11673 echo "${ECHO_T}$ac_res" >&6; }
11674 else
11675 # Is the header compilable?
11676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 $ac_includes_default
11685 #include <$ac_header>
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (ac_try="$ac_compile"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_compile") 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_header_compiler=yes
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_header_compiler=no
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 echo "${ECHO_T}$ac_header_compiler" >&6; }
11733 # Is the header present?
11734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h. */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <$ac_header>
11743 _ACEOF
11744 if { (ac_try="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11751 ac_status=$?
11752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } >/dev/null; then
11757 if test -s conftest.err; then
11758 ac_cpp_err=$ac_c_preproc_warn_flag
11759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11760 else
11761 ac_cpp_err=
11763 else
11764 ac_cpp_err=yes
11766 if test -z "$ac_cpp_err"; then
11767 ac_header_preproc=yes
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_header_preproc=no
11775 rm -f conftest.err conftest.$ac_ext
11776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11777 echo "${ECHO_T}$ac_header_preproc" >&6; }
11779 # So? What about this header?
11780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11781 yes:no: )
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11786 ac_header_preproc=yes
11788 no:yes:* )
11789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11803 esac
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 eval "$as_ac_Header=\$ac_header_preproc"
11811 ac_res=`eval echo '${'$as_ac_Header'}'`
11812 { echo "$as_me:$LINENO: result: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819 _ACEOF
11823 done
11826 for ac_func in getpagesize
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11855 #undef $ac_func
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char $ac_func ();
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 choke me
11869 #endif
11872 main ()
11874 return $ac_func ();
11876 return 0;
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 eval "$as_ac_var=no"
11921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11922 conftest$ac_exeext conftest.$ac_ext
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11933 done
11935 { echo "$as_me:$LINENO: checking for working mmap" >&5
11936 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11937 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 if test "$cross_compiling" = yes; then
11941 ac_cv_func_mmap_fixed_mapped=no
11942 else
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11950 /* malloc might have been renamed as rpl_malloc. */
11951 #undef malloc
11953 /* Thanks to Mike Haertel and Jim Avera for this test.
11954 Here is a matrix of mmap possibilities:
11955 mmap private not fixed
11956 mmap private fixed at somewhere currently unmapped
11957 mmap private fixed at somewhere already mapped
11958 mmap shared not fixed
11959 mmap shared fixed at somewhere currently unmapped
11960 mmap shared fixed at somewhere already mapped
11961 For private mappings, we should verify that changes cannot be read()
11962 back from the file, nor mmap's back from the file at a different
11963 address. (There have been systems where private was not correctly
11964 implemented like the infamous i386 svr4.0, and systems where the
11965 VM page cache was not coherent with the file system buffer cache
11966 like early versions of FreeBSD and possibly contemporary NetBSD.)
11967 For shared mappings, we should conversely verify that changes get
11968 propagated back to all the places they're supposed to be.
11970 Grep wants private fixed already mapped.
11971 The main things grep needs to know about mmap are:
11972 * does it exist and is it safe to write into the mmap'd area
11973 * how to use it (BSD variants) */
11975 #include <fcntl.h>
11976 #include <sys/mman.h>
11978 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11979 char *malloc ();
11980 #endif
11982 /* This mess was copied from the GNU getpagesize.h. */
11983 #ifndef HAVE_GETPAGESIZE
11984 /* Assume that all systems that can run configure have sys/param.h. */
11985 # ifndef HAVE_SYS_PARAM_H
11986 # define HAVE_SYS_PARAM_H 1
11987 # endif
11989 # ifdef _SC_PAGESIZE
11990 # define getpagesize() sysconf(_SC_PAGESIZE)
11991 # else /* no _SC_PAGESIZE */
11992 # ifdef HAVE_SYS_PARAM_H
11993 # include <sys/param.h>
11994 # ifdef EXEC_PAGESIZE
11995 # define getpagesize() EXEC_PAGESIZE
11996 # else /* no EXEC_PAGESIZE */
11997 # ifdef NBPG
11998 # define getpagesize() NBPG * CLSIZE
11999 # ifndef CLSIZE
12000 # define CLSIZE 1
12001 # endif /* no CLSIZE */
12002 # else /* no NBPG */
12003 # ifdef NBPC
12004 # define getpagesize() NBPC
12005 # else /* no NBPC */
12006 # ifdef PAGESIZE
12007 # define getpagesize() PAGESIZE
12008 # endif /* PAGESIZE */
12009 # endif /* no NBPC */
12010 # endif /* no NBPG */
12011 # endif /* no EXEC_PAGESIZE */
12012 # else /* no HAVE_SYS_PARAM_H */
12013 # define getpagesize() 8192 /* punt totally */
12014 # endif /* no HAVE_SYS_PARAM_H */
12015 # endif /* no _SC_PAGESIZE */
12017 #endif /* no HAVE_GETPAGESIZE */
12020 main ()
12022 char *data, *data2, *data3;
12023 int i, pagesize;
12024 int fd;
12026 pagesize = getpagesize ();
12028 /* First, make a file with some known garbage in it. */
12029 data = (char *) malloc (pagesize);
12030 if (!data)
12031 return 1;
12032 for (i = 0; i < pagesize; ++i)
12033 *(data + i) = rand ();
12034 umask (0);
12035 fd = creat ("conftest.mmap", 0600);
12036 if (fd < 0)
12037 return 1;
12038 if (write (fd, data, pagesize) != pagesize)
12039 return 1;
12040 close (fd);
12042 /* Next, try to mmap the file at a fixed address which already has
12043 something else allocated at it. If we can, also make sure that
12044 we see the same garbage. */
12045 fd = open ("conftest.mmap", O_RDWR);
12046 if (fd < 0)
12047 return 1;
12048 data2 = (char *) malloc (2 * pagesize);
12049 if (!data2)
12050 return 1;
12051 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12052 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12054 return 1;
12055 for (i = 0; i < pagesize; ++i)
12056 if (*(data + i) != *(data2 + i))
12057 return 1;
12059 /* Finally, make sure that changes to the mapped area do not
12060 percolate back to the file as seen by read(). (This is a bug on
12061 some variants of i386 svr4.0.) */
12062 for (i = 0; i < pagesize; ++i)
12063 *(data2 + i) = *(data2 + i) + 1;
12064 data3 = (char *) malloc (pagesize);
12065 if (!data3)
12066 return 1;
12067 if (read (fd, data3, pagesize) != pagesize)
12068 return 1;
12069 for (i = 0; i < pagesize; ++i)
12070 if (*(data + i) != *(data3 + i))
12071 return 1;
12072 close (fd);
12073 return 0;
12075 _ACEOF
12076 rm -f conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_cv_func_mmap_fixed_mapped=yes
12097 else
12098 echo "$as_me: program exited with status $ac_status" >&5
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 ( exit $ac_status )
12103 ac_cv_func_mmap_fixed_mapped=no
12105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12110 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12111 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_MMAP 1
12116 _ACEOF
12119 rm -f conftest.mmap
12123 for ac_header in sys/select.h sys/socket.h
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 ac_res=`eval echo '${'$as_ac_Header'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 else
12136 # Is the header compilable?
12137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 $ac_includes_default
12146 #include <$ac_header>
12147 _ACEOF
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_header_compiler=yes
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_header_compiler=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192 echo "${ECHO_T}$ac_header_compiler" >&6; }
12194 # Is the header present?
12195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include <$ac_header>
12204 _ACEOF
12205 if { (ac_try="$ac_cpp conftest.$ac_ext"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null; then
12218 if test -s conftest.err; then
12219 ac_cpp_err=$ac_c_preproc_warn_flag
12220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12221 else
12222 ac_cpp_err=
12224 else
12225 ac_cpp_err=yes
12227 if test -z "$ac_cpp_err"; then
12228 ac_header_preproc=yes
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_header_preproc=no
12236 rm -f conftest.err conftest.$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240 # So? What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242 yes:no: )
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247 ac_header_preproc=yes
12249 no:yes:* )
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12264 esac
12265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270 eval "$as_ac_Header=\$ac_header_preproc"
12272 ac_res=`eval echo '${'$as_ac_Header'}'`
12273 { echo "$as_me:$LINENO: result: $ac_res" >&5
12274 echo "${ECHO_T}$ac_res" >&6; }
12277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12278 cat >>confdefs.h <<_ACEOF
12279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12280 _ACEOF
12284 done
12286 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12287 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12288 if test "${ac_cv_func_select_args+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12292 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12293 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h. */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12300 $ac_includes_default
12301 #ifdef HAVE_SYS_SELECT_H
12302 # include <sys/select.h>
12303 #endif
12304 #ifdef HAVE_SYS_SOCKET_H
12305 # include <sys/socket.h>
12306 #endif
12309 main ()
12311 extern int select ($ac_arg1,
12312 $ac_arg234, $ac_arg234, $ac_arg234,
12313 $ac_arg5);
12315 return 0;
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 done
12362 done
12363 done
12364 # Provide a safe default value.
12365 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12368 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12369 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12370 ac_save_IFS=$IFS; IFS=','
12371 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12372 IFS=$ac_save_IFS
12373 shift
12375 cat >>confdefs.h <<_ACEOF
12376 #define SELECT_TYPE_ARG1 $1
12377 _ACEOF
12380 cat >>confdefs.h <<_ACEOF
12381 #define SELECT_TYPE_ARG234 ($2)
12382 _ACEOF
12385 cat >>confdefs.h <<_ACEOF
12386 #define SELECT_TYPE_ARG5 ($3)
12387 _ACEOF
12389 rm -f conftest*
12391 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12392 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12393 if test "$ac_cv_prog_cc_c89" != no; then
12394 { echo "$as_me:$LINENO: result: yes" >&5
12395 echo "${ECHO_T}yes" >&6; }
12397 cat >>confdefs.h <<\_ACEOF
12398 #define PROTOTYPES 1
12399 _ACEOF
12402 cat >>confdefs.h <<\_ACEOF
12403 #define __PROTOTYPES 1
12404 _ACEOF
12406 else
12407 { echo "$as_me:$LINENO: result: no" >&5
12408 echo "${ECHO_T}no" >&6; }
12411 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12412 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12413 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 ac_cv_func_setvbuf_reversed=no
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 #include <stdio.h>
12424 # ifdef PROTOTYPES
12425 int (setvbuf) (FILE *, int, char *, size_t);
12426 # endif
12428 main ()
12430 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12432 return 0;
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 #include <stdio.h>
12476 # ifdef PROTOTYPES
12477 int (setvbuf) (FILE *, int, char *, size_t);
12478 # endif
12480 main ()
12482 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12484 return 0;
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 # It compiles and links either way, so it must not be declared
12522 # with a prototype and most likely this is a K&R C compiler.
12523 # Try running it.
12524 if test "$cross_compiling" = yes; then
12525 : # Assume setvbuf is not reversed when cross-compiling.
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 $ac_includes_default
12535 main ()
12537 /* This call has the arguments reversed.
12538 A reversed system may check and see that the address of buf
12539 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12540 char buf;
12541 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12542 return 1;
12543 putchar ('\r');
12544 return 0; /* Non-reversed systems SEGV here. */
12546 return 0;
12548 _ACEOF
12549 rm -f conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_func_setvbuf_reversed=yes
12570 else
12571 echo "$as_me: program exited with status $ac_status" >&5
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12580 ac_cv_func_setvbuf_reversed=yes
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12589 conftest$ac_exeext conftest.$ac_ext
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598 conftest$ac_exeext conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12601 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12602 if test $ac_cv_func_setvbuf_reversed = yes; then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define SETVBUF_REVERSED 1
12606 _ACEOF
12610 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12611 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12612 if test "${ac_cv_type_signal+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 #include <sys/types.h>
12622 #include <signal.h>
12625 main ()
12627 return *(signal (0, 0)) (0) == 1;
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_compile") 2>conftest.er1
12640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_type_signal=int
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_cv_type_signal=void
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12677 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12679 cat >>confdefs.h <<_ACEOF
12680 #define RETSIGTYPE $ac_cv_type_signal
12681 _ACEOF
12684 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12685 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12686 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 rm -f conftest.sym conftest.file
12690 echo >conftest.file
12691 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12692 if test "$cross_compiling" = yes; then
12693 ac_cv_func_lstat_dereferences_slashed_symlink=no
12694 else
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12703 main ()
12705 struct stat sbuf;
12706 /* Linux will dereference the symlink and fail.
12707 That is better in the sense that it means we will not
12708 have to compile and use the lstat wrapper. */
12709 return lstat ("conftest.sym/", &sbuf) == 0;
12711 return 0;
12713 _ACEOF
12714 rm -f conftest$ac_exeext
12715 if { (ac_try="$ac_link"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_link") 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12735 else
12736 echo "$as_me: program exited with status $ac_status" >&5
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ( exit $ac_status )
12741 ac_cv_func_lstat_dereferences_slashed_symlink=no
12743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12747 else
12748 # If the `ln -s' command failed, then we probably don't even
12749 # have an lstat function.
12750 ac_cv_func_lstat_dereferences_slashed_symlink=no
12752 rm -f conftest.sym conftest.file
12755 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12756 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12758 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12760 cat >>confdefs.h <<_ACEOF
12761 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12762 _ACEOF
12765 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12766 case " $LIBOBJS " in
12767 *" lstat.$ac_objext "* ) ;;
12768 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12770 esac
12774 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12775 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
12776 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 if test "$cross_compiling" = yes; then
12780 ac_cv_func_stat_empty_string_bug=yes
12781 else
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12790 main ()
12792 struct stat sbuf;
12793 return stat ("", &sbuf) == 0;
12795 return 0;
12797 _ACEOF
12798 rm -f conftest$ac_exeext
12799 if { (ac_try="$ac_link"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_link") 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_func_stat_empty_string_bug=no
12819 else
12820 echo "$as_me: program exited with status $ac_status" >&5
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ( exit $ac_status )
12825 ac_cv_func_stat_empty_string_bug=yes
12827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12833 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
12834 if test $ac_cv_func_stat_empty_string_bug = yes; then
12835 case " $LIBOBJS " in
12836 *" stat.$ac_objext "* ) ;;
12837 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12839 esac
12842 cat >>confdefs.h <<_ACEOF
12843 #define HAVE_STAT_EMPTY_STRING_BUG 1
12844 _ACEOF
12848 { echo "$as_me:$LINENO: checking for working strcoll" >&5
12849 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
12850 if test "${ac_cv_func_strcoll_works+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853 if test "$cross_compiling" = yes; then
12854 ac_cv_func_strcoll_works=no
12855 else
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 $ac_includes_default
12864 main ()
12866 return (strcoll ("abc", "def") >= 0 ||
12867 strcoll ("ABC", "DEF") >= 0 ||
12868 strcoll ("123", "456") >= 0)
12870 return 0;
12872 _ACEOF
12873 rm -f conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_link") 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_func_strcoll_works=yes
12894 else
12895 echo "$as_me: program exited with status $ac_status" >&5
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ( exit $ac_status )
12900 ac_cv_func_strcoll_works=no
12902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12908 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
12909 if test $ac_cv_func_strcoll_works = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_STRCOLL 1
12913 _ACEOF
12918 for ac_func in strftime
12920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12934 #define $ac_func innocuous_$ac_func
12936 /* System header to define __stub macros and hopefully few prototypes,
12937 which can conflict with char $ac_func (); below.
12938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12939 <limits.h> exists even on freestanding compilers. */
12941 #ifdef __STDC__
12942 # include <limits.h>
12943 #else
12944 # include <assert.h>
12945 #endif
12947 #undef $ac_func
12949 /* Override any GCC internal prototype to avoid an error.
12950 Use char because int might match the return type of a GCC
12951 builtin and then its argument prototype would still apply. */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 char $ac_func ();
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined __stub_$ac_func || defined __stub___$ac_func
12960 choke me
12961 #endif
12964 main ()
12966 return $ac_func ();
12968 return 0;
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_link") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 eval "$as_ac_var=yes"
13006 else
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 eval "$as_ac_var=no"
13013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13014 conftest$ac_exeext conftest.$ac_ext
13016 ac_res=`eval echo '${'$as_ac_var'}'`
13017 { echo "$as_me:$LINENO: result: $ac_res" >&5
13018 echo "${ECHO_T}$ac_res" >&6; }
13019 if test `eval echo '${'$as_ac_var'}'` = yes; then
13020 cat >>confdefs.h <<_ACEOF
13021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13022 _ACEOF
13024 else
13025 # strftime is in -lintl on SCO UNIX.
13026 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13027 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13028 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031 ac_check_lib_save_LIBS=$LIBS
13032 LIBS="-lintl $LIBS"
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. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char strftime ();
13048 main ()
13050 return strftime ();
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_lib_intl_strftime=yes
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_cv_lib_intl_strftime=no
13097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13101 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13102 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13103 if test $ac_cv_lib_intl_strftime = yes; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_STRFTIME 1
13106 _ACEOF
13108 LIBS="-lintl $LIBS"
13112 done
13114 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13115 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13116 if test "${ac_cv_func_strnlen_working+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 if test "$cross_compiling" = yes; then
13120 ac_cv_func_strnlen_working=no
13121 else
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 $ac_includes_default
13130 main ()
13133 #define S "foobar"
13134 #define S_LEN (sizeof S - 1)
13136 /* At least one implementation is buggy: that of AIX 4.3 would
13137 give strnlen (S, 1) == 3. */
13139 int i;
13140 for (i = 0; i < S_LEN + 1; ++i)
13142 int expected = i <= S_LEN ? i : S_LEN;
13143 if (strnlen (S, i) != expected)
13144 return 1;
13146 return 0;
13149 return 0;
13151 _ACEOF
13152 rm -f conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_func_strnlen_working=yes
13173 else
13174 echo "$as_me: program exited with status $ac_status" >&5
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ( exit $ac_status )
13179 ac_cv_func_strnlen_working=no
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13187 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13188 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13189 *" strnlen.$ac_objext "* ) ;;
13190 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13192 esac
13195 { echo "$as_me:$LINENO: checking for working strtod" >&5
13196 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13197 if test "${ac_cv_func_strtod+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 if test "$cross_compiling" = yes; then
13201 ac_cv_func_strtod=no
13202 else
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13210 $ac_includes_default
13211 #ifndef strtod
13212 double strtod ();
13213 #endif
13215 main()
13218 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13219 char *string = " +69";
13220 char *term;
13221 double value;
13222 value = strtod (string, &term);
13223 if (value != 69 || term != (string + 4))
13224 return 1;
13228 /* Under Solaris 2.4, strtod returns the wrong value for the
13229 terminating character under some conditions. */
13230 char *string = "NaN";
13231 char *term;
13232 strtod (string, &term);
13233 if (term != string && *(term - 1) == 0)
13234 return 1;
13236 return 0;
13239 _ACEOF
13240 rm -f conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_func_strtod=yes
13261 else
13262 echo "$as_me: program exited with status $ac_status" >&5
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ( exit $ac_status )
13267 ac_cv_func_strtod=no
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13275 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13276 if test $ac_cv_func_strtod = no; then
13277 case " $LIBOBJS " in
13278 *" strtod.$ac_objext "* ) ;;
13279 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13281 esac
13283 { echo "$as_me:$LINENO: checking for pow" >&5
13284 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13285 if test "${ac_cv_func_pow+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13296 #define pow innocuous_pow
13298 /* System header to define __stub macros and hopefully few prototypes,
13299 which can conflict with char pow (); below.
13300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13301 <limits.h> exists even on freestanding compilers. */
13303 #ifdef __STDC__
13304 # include <limits.h>
13305 #else
13306 # include <assert.h>
13307 #endif
13309 #undef pow
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 char pow ();
13318 /* The GNU C library defines this for functions which it implements
13319 to always fail with ENOSYS. Some functions are actually named
13320 something starting with __ and the normal name is an alias. */
13321 #if defined __stub_pow || defined __stub___pow
13322 choke me
13323 #endif
13326 main ()
13328 return pow ();
13330 return 0;
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_func_pow=yes
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_func_pow=no
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13378 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13379 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13381 if test $ac_cv_func_pow = no; then
13382 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13383 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13384 if test "${ac_cv_lib_m_pow+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387 ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-lm $LIBS"
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char pow ();
13404 main ()
13406 return pow ();
13408 return 0;
13410 _ACEOF
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_lib_m_pow=yes
13446 else
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_cv_lib_m_pow=no
13453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13454 conftest$ac_exeext conftest.$ac_ext
13455 LIBS=$ac_check_lib_save_LIBS
13457 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13458 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13459 if test $ac_cv_lib_m_pow = yes; then
13460 POW_LIB=-lm
13461 else
13462 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13463 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13470 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13471 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13472 if test "${ac_cv_func_utime_null+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 rm -f conftest.data; >conftest.data
13476 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13477 if test "$cross_compiling" = yes; then
13478 ac_cv_func_utime_null=no
13479 else
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13488 main ()
13490 struct stat s, t;
13491 return ! (stat ("conftest.data", &s) == 0
13492 && utime ("conftest.data", 0) == 0
13493 && stat ("conftest.data", &t) == 0
13494 && t.st_mtime >= s.st_mtime
13495 && t.st_mtime - s.st_mtime < 120);
13497 return 0;
13499 _ACEOF
13500 rm -f conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_link") 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_func_utime_null=yes
13521 else
13522 echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ( exit $ac_status )
13527 ac_cv_func_utime_null=no
13529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13534 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13535 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13536 if test $ac_cv_func_utime_null = yes; then
13538 cat >>confdefs.h <<\_ACEOF
13539 #define HAVE_UTIME_NULL 1
13540 _ACEOF
13543 rm -f conftest.data
13546 for ac_func in vprintf
13548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13562 #define $ac_func innocuous_$ac_func
13564 /* System header to define __stub macros and hopefully few prototypes,
13565 which can conflict with char $ac_func (); below.
13566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13567 <limits.h> exists even on freestanding compilers. */
13569 #ifdef __STDC__
13570 # include <limits.h>
13571 #else
13572 # include <assert.h>
13573 #endif
13575 #undef $ac_func
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char $ac_func ();
13584 /* The GNU C library defines this for functions which it implements
13585 to always fail with ENOSYS. Some functions are actually named
13586 something starting with __ and the normal name is an alias. */
13587 #if defined __stub_$ac_func || defined __stub___$ac_func
13588 choke me
13589 #endif
13592 main ()
13594 return $ac_func ();
13596 return 0;
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest$ac_exeext'
13624 { (case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_try") 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 eval "$as_ac_var=yes"
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 eval "$as_ac_var=no"
13641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13642 conftest$ac_exeext conftest.$ac_ext
13644 ac_res=`eval echo '${'$as_ac_var'}'`
13645 { echo "$as_me:$LINENO: result: $ac_res" >&5
13646 echo "${ECHO_T}$ac_res" >&6; }
13647 if test `eval echo '${'$as_ac_var'}'` = yes; then
13648 cat >>confdefs.h <<_ACEOF
13649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13650 _ACEOF
13652 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13653 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13654 if test "${ac_cv_func__doprnt+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13665 #define _doprnt innocuous__doprnt
13667 /* System header to define __stub macros and hopefully few prototypes,
13668 which can conflict with char _doprnt (); below.
13669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13670 <limits.h> exists even on freestanding compilers. */
13672 #ifdef __STDC__
13673 # include <limits.h>
13674 #else
13675 # include <assert.h>
13676 #endif
13678 #undef _doprnt
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char _doprnt ();
13687 /* The GNU C library defines this for functions which it implements
13688 to always fail with ENOSYS. Some functions are actually named
13689 something starting with __ and the normal name is an alias. */
13690 #if defined __stub__doprnt || defined __stub____doprnt
13691 choke me
13692 #endif
13695 main ()
13697 return _doprnt ();
13699 return 0;
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (ac_try="$ac_link"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_func__doprnt=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_func__doprnt=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13747 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13748 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13749 if test $ac_cv_func__doprnt = yes; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define HAVE_DOPRNT 1
13753 _ACEOF
13758 done
13808 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
13810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13824 #define $ac_func innocuous_$ac_func
13826 /* System header to define __stub macros and hopefully few prototypes,
13827 which can conflict with char $ac_func (); below.
13828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13829 <limits.h> exists even on freestanding compilers. */
13831 #ifdef __STDC__
13832 # include <limits.h>
13833 #else
13834 # include <assert.h>
13835 #endif
13837 #undef $ac_func
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 char $ac_func ();
13846 /* The GNU C library defines this for functions which it implements
13847 to always fail with ENOSYS. Some functions are actually named
13848 something starting with __ and the normal name is an alias. */
13849 #if defined __stub_$ac_func || defined __stub___$ac_func
13850 choke me
13851 #endif
13854 main ()
13856 return $ac_func ();
13858 return 0;
13860 _ACEOF
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 eval "$as_ac_var=yes"
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 eval "$as_ac_var=no"
13903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13904 conftest$ac_exeext conftest.$ac_ext
13906 ac_res=`eval echo '${'$as_ac_var'}'`
13907 { echo "$as_me:$LINENO: result: $ac_res" >&5
13908 echo "${ECHO_T}$ac_res" >&6; }
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910 cat >>confdefs.h <<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13912 _ACEOF
13915 done
13918 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
13919 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13928 main ()
13930 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
13932 return 0;
13934 _ACEOF
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 { echo "$as_me:$LINENO: result: yes" >&5
13970 echo "${ECHO_T}yes" >&6; }
13972 cat >>confdefs.h <<\_ACEOF
13973 #define HAVE_GCC_ATOMICS 1
13974 _ACEOF
13976 else
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 { echo "$as_me:$LINENO: result: no" >&5
13981 echo "${ECHO_T}no" >&6; }
13985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13986 conftest$ac_exeext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
13990 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h. */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 static int __attribute__((pure)) test(void) {}
13999 main ()
14003 return 0;
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_compile") 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 { echo "$as_me:$LINENO: result: yes" >&5
14041 echo "${ECHO_T}yes" >&6; }
14043 cat >>confdefs.h <<_ACEOF
14044 #define HAVE_ATTRIBUTE_pure 1
14045 _ACEOF
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 { echo "$as_me:$LINENO: result: no" >&5
14052 echo "${ECHO_T}no" >&6; }
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14059 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 static int __attribute__((malloc)) test(void) {}
14068 main ()
14072 return 0;
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_compile") 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090 { (case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_try") 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_try") 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 { echo "$as_me:$LINENO: result: yes" >&5
14110 echo "${ECHO_T}yes" >&6; }
14112 cat >>confdefs.h <<_ACEOF
14113 #define HAVE_ATTRIBUTE_malloc 1
14114 _ACEOF
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 { echo "$as_me:$LINENO: result: no" >&5
14121 echo "${ECHO_T}no" >&6; }
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14128 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14129 cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h. */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 static int __attribute__((const)) test(void) {}
14137 main ()
14141 return 0;
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (ac_try="$ac_compile"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149 esac
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_compile") 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_try") 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 { echo "$as_me:$LINENO: result: yes" >&5
14179 echo "${ECHO_T}yes" >&6; }
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_ATTRIBUTE_const 1
14183 _ACEOF
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 { echo "$as_me:$LINENO: result: no" >&5
14190 echo "${ECHO_T}no" >&6; }
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14197 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 static int __attribute__((unused)) test(void) {}
14206 main ()
14210 return 0;
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_compile") 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 { echo "$as_me:$LINENO: result: yes" >&5
14248 echo "${ECHO_T}yes" >&6; }
14250 cat >>confdefs.h <<_ACEOF
14251 #define HAVE_ATTRIBUTE_unused 1
14252 _ACEOF
14254 else
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 { echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6; }
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14266 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 static int __attribute__((always_inline)) test(void) {}
14275 main ()
14279 return 0;
14281 _ACEOF
14282 rm -f conftest.$ac_objext
14283 if { (ac_try="$ac_compile"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_compile") 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 { echo "$as_me:$LINENO: result: yes" >&5
14317 echo "${ECHO_T}yes" >&6; }
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_ATTRIBUTE_always_inline 1
14321 _ACEOF
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 { echo "$as_me:$LINENO: result: no" >&5
14328 echo "${ECHO_T}no" >&6; }
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14335 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14336 saved_CFLAGS="${CFLAGS}"
14337 CFLAGS="${CFLAGS} -ffunction-sections"
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14346 main ()
14348 int x = 1;
14350 return 0;
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 { echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6; }
14389 saved_LDFLAGS="${LDFLAGS}"
14390 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14391 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14392 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14401 main ()
14403 int x = 1;
14405 return 0;
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_link") 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest$ac_exeext'
14433 { (case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_try") 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 { echo "$as_me:$LINENO: result: yes" >&5
14443 echo "${ECHO_T}yes" >&6; }
14444 GC_CFLAGS="-ffunction-sections"
14445 GC_LDFLAGS="-Wl,--gc-sections"
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 { echo "$as_me:$LINENO: result: no" >&5
14451 echo "${ECHO_T}no" >&6; }
14455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14456 conftest$ac_exeext conftest.$ac_ext
14457 LDFLAGS="${saved_LDFLAGS}"
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 { echo "$as_me:$LINENO: result: no" >&5
14463 echo "${ECHO_T}no" >&6; }
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 CFLAGS="${saved_CFLAGS}"
14472 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14473 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <resolv.h>
14482 main ()
14484 int foo = res_ninit(NULL);
14486 return 0;
14488 _ACEOF
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_link") 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 { echo "$as_me:$LINENO: result: yes" >&5
14594 echo "${ECHO_T}yes" >&6; }
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_RTLD_NOLOAD 1
14598 _ACEOF
14600 else
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 { echo "$as_me:$LINENO: result: no" >&5
14605 echo "${ECHO_T}no" >&6; }
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14613 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <netinet/in.h>
14622 main ()
14624 int foo = IP_MTU_DISCOVER;
14626 return 0;
14628 _ACEOF
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_link") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_try") 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 { echo "$as_me:$LINENO: result: yes" >&5
14664 echo "${ECHO_T}yes" >&6; }
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_IP_MTU_DISCOVER 1
14668 _ACEOF
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 { echo "$as_me:$LINENO: result: no" >&5
14675 echo "${ECHO_T}no" >&6; }
14679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14680 conftest$ac_exeext conftest.$ac_ext
14682 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14683 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14684 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14685 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14689 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14690 else
14691 # Is the header compilable?
14692 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14693 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 $ac_includes_default
14701 #include <libkern/OSAtomic.h>
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_compile") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try='test -s conftest.$ac_objext'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_header_compiler=yes
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_header_compiler=no
14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747 echo "${ECHO_T}$ac_header_compiler" >&6; }
14749 # Is the header present?
14750 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14751 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <libkern/OSAtomic.h>
14759 _ACEOF
14760 if { (ac_try="$ac_cpp conftest.$ac_ext"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } >/dev/null; then
14773 if test -s conftest.err; then
14774 ac_cpp_err=$ac_c_preproc_warn_flag
14775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14776 else
14777 ac_cpp_err=
14779 else
14780 ac_cpp_err=yes
14782 if test -z "$ac_cpp_err"; then
14783 ac_header_preproc=yes
14784 else
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_header_preproc=no
14791 rm -f conftest.err conftest.$ac_ext
14792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14793 echo "${ECHO_T}$ac_header_preproc" >&6; }
14795 # So? What about this header?
14796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14797 yes:no: )
14798 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14799 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14801 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14802 ac_header_preproc=yes
14804 no:yes:* )
14805 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14806 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14808 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14810 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14812 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14814 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14816 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14819 esac
14820 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14821 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14822 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14827 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14828 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14831 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_OSX_ATOMICS 1
14835 _ACEOF
14841 { echo "$as_me:$LINENO: checking for int" >&5
14842 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14843 if test "${ac_cv_type_int+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h. */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 $ac_includes_default
14853 typedef int ac__type_new_;
14855 main ()
14857 if ((ac__type_new_ *) 0)
14858 return 0;
14859 if (sizeof (ac__type_new_))
14860 return 0;
14862 return 0;
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_type_int=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_type_int=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14910 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14912 # The cast to long int works around a bug in the HP C Compiler
14913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14915 # This bug is HP SR number 8606223364.
14916 { echo "$as_me:$LINENO: checking size of int" >&5
14917 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14918 if test "${ac_cv_sizeof_int+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 if test "$cross_compiling" = yes; then
14922 # Depending upon the size, compute the lo and hi bounds.
14923 cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h. */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 $ac_includes_default
14930 typedef int ac__type_sizeof_;
14933 main ()
14935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14936 test_array [0] = 0
14939 return 0;
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (ac_try="$ac_compile"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14957 { (case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960 esac
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_try") 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_try") 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_lo=0 ac_mid=0
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_;
14988 main ()
14990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14991 test_array [0] = 0
14994 return 0;
14996 _ACEOF
14997 rm -f conftest.$ac_objext
14998 if { (ac_try="$ac_compile"
14999 case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_compile") 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try='test -s conftest.$ac_objext'
15022 { (case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_try") 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_hi=$ac_mid; break
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_lo=`expr $ac_mid + 1`
15037 if test $ac_lo -le $ac_mid; then
15038 ac_lo= ac_hi=
15039 break
15041 ac_mid=`expr 2 '*' $ac_mid + 1`
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 done
15046 else
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 $ac_includes_default
15057 typedef int ac__type_sizeof_;
15060 main ()
15062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15063 test_array [0] = 0
15066 return 0;
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15084 { (case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_try") 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_try") 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_hi=-1 ac_mid=-1
15104 while :; do
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 $ac_includes_default
15112 typedef int ac__type_sizeof_;
15115 main ()
15117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15118 test_array [0] = 0
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_lo=$ac_mid; break
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_hi=`expr '(' $ac_mid ')' - 1`
15164 if test $ac_mid -le $ac_hi; then
15165 ac_lo= ac_hi=
15166 break
15168 ac_mid=`expr 2 '*' $ac_mid`
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 done
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_lo= ac_hi=
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184 # Binary search between lo and hi bounds.
15185 while test "x$ac_lo" != "x$ac_hi"; do
15186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 $ac_includes_default
15194 typedef int ac__type_sizeof_;
15197 main ()
15199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15200 test_array [0] = 0
15203 return 0;
15205 _ACEOF
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_hi=$ac_mid
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_lo=`expr '(' $ac_mid ')' + 1`
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 done
15250 case $ac_lo in
15251 ?*) ac_cv_sizeof_int=$ac_lo;;
15252 '') if test "$ac_cv_type_int" = yes; then
15253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15254 See \`config.log' for more details." >&5
15255 echo "$as_me: error: cannot compute sizeof (int)
15256 See \`config.log' for more details." >&2;}
15257 { (exit 77); exit 77; }; }
15258 else
15259 ac_cv_sizeof_int=0
15260 fi ;;
15261 esac
15262 else
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 $ac_includes_default
15270 typedef int ac__type_sizeof_;
15272 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15273 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15274 #include <stdio.h>
15275 #include <stdlib.h>
15277 main ()
15280 FILE *f = fopen ("conftest.val", "w");
15281 if (! f)
15282 return 1;
15283 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15285 long int i = longval ();
15286 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15287 return 1;
15288 fprintf (f, "%ld\n", i);
15290 else
15292 unsigned long int i = ulongval ();
15293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15294 return 1;
15295 fprintf (f, "%lu\n", i);
15297 return ferror (f) || fclose (f) != 0;
15300 return 0;
15302 _ACEOF
15303 rm -f conftest$ac_exeext
15304 if { (ac_try="$ac_link"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_link") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317 esac
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 ac_cv_sizeof_int=`cat conftest.val`
15324 else
15325 echo "$as_me: program exited with status $ac_status" >&5
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ( exit $ac_status )
15330 if test "$ac_cv_type_int" = yes; then
15331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15332 See \`config.log' for more details." >&5
15333 echo "$as_me: error: cannot compute sizeof (int)
15334 See \`config.log' for more details." >&2;}
15335 { (exit 77); exit 77; }; }
15336 else
15337 ac_cv_sizeof_int=0
15340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15342 rm -f conftest.val
15344 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15345 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15349 cat >>confdefs.h <<_ACEOF
15350 #define SIZEOF_INT $ac_cv_sizeof_int
15351 _ACEOF
15355 # do the package library checks now
15358 if test "${USE_ALSA}" != "no"; then
15359 pbxlibdir=""
15360 if test "x${ALSA_DIR}" != "x"; then
15361 if test -d ${ALSA_DIR}/lib; then
15362 pbxlibdir="-L${ALSA_DIR}/lib"
15363 else
15364 pbxlibdir="-L${ALSA_DIR}"
15367 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15368 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15369 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char snd_spcm_init ();
15389 main ()
15391 return snd_spcm_init ();
15393 return 0;
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15411 { (case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_try") 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest$ac_exeext'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_cv_lib_asound_snd_spcm_init=yes
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_lib_asound_snd_spcm_init=no
15438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LIBS=$ac_check_lib_save_LIBS
15442 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15443 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15444 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15445 AST_ALSA_FOUND=yes
15446 else
15447 AST_ALSA_FOUND=no
15451 if test "${AST_ALSA_FOUND}" = "yes"; then
15452 ALSA_LIB="-lasound -lm -ldl"
15453 ALSA_HEADER_FOUND="1"
15454 if test "x${ALSA_DIR}" != "x"; then
15455 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15456 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15457 if test "xalsa/asoundlib.h" != "x" ; then
15458 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15461 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 ac_res=`eval echo '${'$as_ac_Header'}'`
15466 { echo "$as_me:$LINENO: result: $ac_res" >&5
15467 echo "${ECHO_T}$ac_res" >&6; }
15468 else
15469 # Is the header compilable?
15470 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15471 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 $ac_includes_default
15479 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15480 _ACEOF
15481 rm -f conftest.$ac_objext
15482 if { (ac_try="$ac_compile"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_compile") 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest.$ac_objext'
15506 { (case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_try") 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_header_compiler=yes
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 ac_header_compiler=no
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15525 echo "${ECHO_T}$ac_header_compiler" >&6; }
15527 # Is the header present?
15528 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15529 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15537 _ACEOF
15538 if { (ac_try="$ac_cpp conftest.$ac_ext"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } >/dev/null; then
15551 if test -s conftest.err; then
15552 ac_cpp_err=$ac_c_preproc_warn_flag
15553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15554 else
15555 ac_cpp_err=
15557 else
15558 ac_cpp_err=yes
15560 if test -z "$ac_cpp_err"; then
15561 ac_header_preproc=yes
15562 else
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_header_preproc=no
15569 rm -f conftest.err conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 echo "${ECHO_T}$ac_header_preproc" >&6; }
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 yes:no: )
15576 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15577 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15579 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc=yes
15582 no:yes:* )
15583 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15584 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15586 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15588 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15590 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15592 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15594 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15597 esac
15598 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15599 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 ALSA_HEADER_FOUND=1
15612 else
15613 ALSA_HEADER_FOUND=0
15618 else
15619 if test "xalsa/asoundlib.h" != "x" ; then
15620 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15621 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15622 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15623 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15627 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15628 else
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15631 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <alsa/asoundlib.h>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_header_compiler=yes
15676 else
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_header_compiler=no
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685 echo "${ECHO_T}$ac_header_compiler" >&6; }
15687 # Is the header present?
15688 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15689 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 #include <alsa/asoundlib.h>
15697 _ACEOF
15698 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15711 if test -s conftest.err; then
15712 ac_cpp_err=$ac_c_preproc_warn_flag
15713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15714 else
15715 ac_cpp_err=
15717 else
15718 ac_cpp_err=yes
15720 if test -z "$ac_cpp_err"; then
15721 ac_header_preproc=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_header_preproc=no
15729 rm -f conftest.err conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6; }
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15735 yes:no: )
15736 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc=yes
15742 no:yes:* )
15743 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15757 esac
15758 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15759 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15760 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15765 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15766 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15769 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15770 ALSA_HEADER_FOUND=1
15771 else
15772 ALSA_HEADER_FOUND=0
15778 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15779 if test ! -z "${ALSA_MANDATORY}" ;
15780 then
15781 { echo "$as_me:$LINENO: ***" >&5
15782 echo "$as_me: ***" >&6;}
15783 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15784 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15785 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support" >&5
15786 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support" >&or re-run configure;}
15787 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15788 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15789 exit 1
15791 ALSA_LIB=""
15792 ALSA_INCLUDE=""
15793 PBX_ALSA=0
15794 else
15795 PBX_ALSA=1
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_ALSA 1
15799 _ACEOF
15802 elif test ! -z "${ALSA_MANDATORY}";
15803 then
15804 { echo "$as_me:$LINENO: ***" >&5
15805 echo "$as_me: ***" >&6;}
15806 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15807 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15808 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
15809 echo "$as_me: *** Either correct the installation" >&or run configure;}
15810 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15811 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15812 exit 1
15818 if test "${USE_CURSES}" != "no"; then
15819 pbxlibdir=""
15820 if test "x${CURSES_DIR}" != "x"; then
15821 if test -d ${CURSES_DIR}/lib; then
15822 pbxlibdir="-L${CURSES_DIR}/lib"
15823 else
15824 pbxlibdir="-L${CURSES_DIR}"
15827 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15828 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15829 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832 ac_check_lib_save_LIBS=$LIBS
15833 LIBS="-lcurses ${pbxlibdir} $LIBS"
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15841 /* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15844 #ifdef __cplusplus
15845 extern "C"
15846 #endif
15847 char initscr ();
15849 main ()
15851 return initscr ();
15853 return 0;
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (ac_try="$ac_link"
15858 case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_link") 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871 { (case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_try") 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_lib_curses_initscr=yes
15891 else
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_cv_lib_curses_initscr=no
15898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15899 conftest$ac_exeext conftest.$ac_ext
15900 LIBS=$ac_check_lib_save_LIBS
15902 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15903 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15904 if test $ac_cv_lib_curses_initscr = yes; then
15905 AST_CURSES_FOUND=yes
15906 else
15907 AST_CURSES_FOUND=no
15911 if test "${AST_CURSES_FOUND}" = "yes"; then
15912 CURSES_LIB="-lcurses "
15913 CURSES_HEADER_FOUND="1"
15914 if test "x${CURSES_DIR}" != "x"; then
15915 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15916 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15917 if test "xcurses.h" != "x" ; then
15918 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15921 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 ac_res=`eval echo '${'$as_ac_Header'}'`
15926 { echo "$as_me:$LINENO: result: $ac_res" >&5
15927 echo "${ECHO_T}$ac_res" >&6; }
15928 else
15929 # Is the header compilable?
15930 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15931 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <${CURSES_DIR}/include/curses.h>
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15956 { (case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_try") 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_header_compiler=yes
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_header_compiler=no
15983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15985 echo "${ECHO_T}$ac_header_compiler" >&6; }
15987 # Is the header present?
15988 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15989 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 #include <${CURSES_DIR}/include/curses.h>
15997 _ACEOF
15998 if { (ac_try="$ac_cpp conftest.$ac_ext"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } >/dev/null; then
16011 if test -s conftest.err; then
16012 ac_cpp_err=$ac_c_preproc_warn_flag
16013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16014 else
16015 ac_cpp_err=
16017 else
16018 ac_cpp_err=yes
16020 if test -z "$ac_cpp_err"; then
16021 ac_header_preproc=yes
16022 else
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_header_preproc=no
16029 rm -f conftest.err conftest.$ac_ext
16030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16031 echo "${ECHO_T}$ac_header_preproc" >&6; }
16033 # So? What about this header?
16034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16035 yes:no: )
16036 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16037 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16039 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16040 ac_header_preproc=yes
16042 no:yes:* )
16043 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16044 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16046 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16048 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16050 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16052 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16054 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16057 esac
16058 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16059 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063 eval "$as_ac_Header=\$ac_header_preproc"
16065 ac_res=`eval echo '${'$as_ac_Header'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 CURSES_HEADER_FOUND=1
16072 else
16073 CURSES_HEADER_FOUND=0
16078 else
16079 if test "xcurses.h" != "x" ; then
16080 if test "${ac_cv_header_curses_h+set}" = set; then
16081 { echo "$as_me:$LINENO: checking for curses.h" >&5
16082 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16083 if test "${ac_cv_header_curses_h+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16087 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16088 else
16089 # Is the header compilable?
16090 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16091 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 $ac_includes_default
16099 #include <curses.h>
16100 _ACEOF
16101 rm -f conftest.$ac_objext
16102 if { (ac_try="$ac_compile"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_compile") 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_try") 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_header_compiler=yes
16136 else
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_compiler=no
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6; }
16147 # Is the header present?
16148 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16149 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <curses.h>
16157 _ACEOF
16158 if { (ac_try="$ac_cpp conftest.$ac_ext"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16174 else
16175 ac_cpp_err=
16177 else
16178 ac_cpp_err=yes
16180 if test -z "$ac_cpp_err"; then
16181 ac_header_preproc=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_header_preproc=no
16189 rm -f conftest.err conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16191 echo "${ECHO_T}$ac_header_preproc" >&6; }
16193 # So? What about this header?
16194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16195 yes:no: )
16196 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16197 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16199 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16200 ac_header_preproc=yes
16202 no:yes:* )
16203 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16204 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16206 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16208 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16209 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16210 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16212 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16214 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16217 esac
16218 { echo "$as_me:$LINENO: checking for curses.h" >&5
16219 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16220 if test "${ac_cv_header_curses_h+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223 ac_cv_header_curses_h=$ac_header_preproc
16225 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16226 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16229 if test $ac_cv_header_curses_h = yes; then
16230 CURSES_HEADER_FOUND=1
16231 else
16232 CURSES_HEADER_FOUND=0
16238 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16239 if test ! -z "${CURSES_MANDATORY}" ;
16240 then
16241 { echo "$as_me:$LINENO: ***" >&5
16242 echo "$as_me: ***" >&6;}
16243 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16244 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16245 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support" >&5
16246 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support" >&or re-run configure;}
16247 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16248 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16249 exit 1
16251 CURSES_LIB=""
16252 CURSES_INCLUDE=""
16253 PBX_CURSES=0
16254 else
16255 PBX_CURSES=1
16257 cat >>confdefs.h <<_ACEOF
16258 #define HAVE_CURSES 1
16259 _ACEOF
16262 elif test ! -z "${CURSES_MANDATORY}";
16263 then
16264 { echo "$as_me:$LINENO: ***" >&5
16265 echo "$as_me: ***" >&6;}
16266 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16267 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16268 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16269 echo "$as_me: *** Either correct the installation" >&or run configure;}
16270 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16271 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16272 exit 1
16277 GSM_INTERNAL="yes"
16279 GSM_SYSTEM="yes"
16280 if test "${USE_GSM}" != "no"; then
16281 if test "${GSM_DIR}" = "internal"; then
16282 GSM_SYSTEM="no"
16283 elif test "${GSM_DIR}" != ""; then
16284 GSM_INTERNAL="no"
16286 if test "${GSM_SYSTEM}" = "yes"; then
16287 gsmlibdir=""
16288 if test "x${GSM_DIR}" != "x"; then
16289 if test -d ${GSM_DIR}/lib; then
16290 gsmlibdir="-L${GSM_DIR}/lib"
16291 else
16292 gsmlibdir="-L${GSM_DIR}"
16295 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16296 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16297 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300 ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-lgsm ${gsmlibdir} $LIBS"
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16309 /* Override any GCC internal prototype to avoid an error.
16310 Use char because int might match the return type of a GCC
16311 builtin and then its argument prototype would still apply. */
16312 #ifdef __cplusplus
16313 extern "C"
16314 #endif
16315 char gsm_create ();
16317 main ()
16319 return gsm_create ();
16321 return 0;
16323 _ACEOF
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_link") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest$ac_exeext'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_lib_gsm_gsm_create=yes
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_lib_gsm_gsm_create=no
16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367 conftest$ac_exeext conftest.$ac_ext
16368 LIBS=$ac_check_lib_save_LIBS
16370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16371 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16372 if test $ac_cv_lib_gsm_gsm_create = yes; then
16374 cat >>confdefs.h <<_ACEOF
16375 #define HAVE_GSM 1
16376 _ACEOF
16380 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16381 GSM_LIB="-lgsm"
16382 if test "x${GSM_DIR}" != "x"; then
16383 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16384 GSM_INCLUDE="-I${GSM_DIR}/include"
16386 PBX_GSM=1
16387 GSM_INTERNAL="no"
16390 if test "${GSM_INTERNAL}" = "yes"; then
16391 PBX_GSM=1
16396 if test "${USE_IKSEMEL}" != "no"; then
16397 pbxlibdir=""
16398 if test "x${IKSEMEL_DIR}" != "x"; then
16399 if test -d ${IKSEMEL_DIR}/lib; then
16400 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16401 else
16402 pbxlibdir="-L${IKSEMEL_DIR}"
16405 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16406 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16407 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410 ac_check_lib_save_LIBS=$LIBS
16411 LIBS="-liksemel ${pbxlibdir} $LIBS"
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16419 /* Override any GCC internal prototype to avoid an error.
16420 Use char because int might match the return type of a GCC
16421 builtin and then its argument prototype would still apply. */
16422 #ifdef __cplusplus
16423 extern "C"
16424 #endif
16425 char iks_start_sasl ();
16427 main ()
16429 return iks_start_sasl ();
16431 return 0;
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (ac_try="$ac_link"
16436 case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_link") 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16449 { (case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_try") 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest$ac_exeext'
16459 { (case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_try") 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 ac_cv_lib_iksemel_iks_start_sasl=yes
16469 else
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16473 ac_cv_lib_iksemel_iks_start_sasl=no
16476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16477 conftest$ac_exeext conftest.$ac_ext
16478 LIBS=$ac_check_lib_save_LIBS
16480 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16481 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16482 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16483 AST_IKSEMEL_FOUND=yes
16484 else
16485 AST_IKSEMEL_FOUND=no
16489 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16490 IKSEMEL_LIB="-liksemel "
16491 IKSEMEL_HEADER_FOUND="1"
16492 if test "x${IKSEMEL_DIR}" != "x"; then
16493 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16494 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16495 if test "xiksemel.h" != "x" ; then
16496 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16499 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504 { echo "$as_me:$LINENO: result: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 else
16507 # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16509 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 $ac_includes_default
16517 #include <${IKSEMEL_DIR}/include/iksemel.h>
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_header_compiler=yes
16554 else
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_compiler=no
16561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16563 echo "${ECHO_T}$ac_header_compiler" >&6; }
16565 # Is the header present?
16566 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16567 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h. */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 #include <${IKSEMEL_DIR}/include/iksemel.h>
16575 _ACEOF
16576 if { (ac_try="$ac_cpp conftest.$ac_ext"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16583 ac_status=$?
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } >/dev/null; then
16589 if test -s conftest.err; then
16590 ac_cpp_err=$ac_c_preproc_warn_flag
16591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16592 else
16593 ac_cpp_err=
16595 else
16596 ac_cpp_err=yes
16598 if test -z "$ac_cpp_err"; then
16599 ac_header_preproc=yes
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_header_preproc=no
16607 rm -f conftest.err conftest.$ac_ext
16608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16609 echo "${ECHO_T}$ac_header_preproc" >&6; }
16611 # So? What about this header?
16612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16613 yes:no: )
16614 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16615 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16617 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16618 ac_header_preproc=yes
16620 no:yes:* )
16621 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16622 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16624 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16626 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16628 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16630 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16632 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16635 esac
16636 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16637 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641 eval "$as_ac_Header=\$ac_header_preproc"
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649 IKSEMEL_HEADER_FOUND=1
16650 else
16651 IKSEMEL_HEADER_FOUND=0
16656 else
16657 if test "xiksemel.h" != "x" ; then
16658 if test "${ac_cv_header_iksemel_h+set}" = set; then
16659 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16660 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16661 if test "${ac_cv_header_iksemel_h+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16665 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16666 else
16667 # Is the header compilable?
16668 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16669 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16677 #include <iksemel.h>
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_header_compiler=yes
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_header_compiler=no
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16723 echo "${ECHO_T}$ac_header_compiler" >&6; }
16725 # Is the header present?
16726 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16727 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 #include <iksemel.h>
16735 _ACEOF
16736 if { (ac_try="$ac_cpp conftest.$ac_ext"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } >/dev/null; then
16749 if test -s conftest.err; then
16750 ac_cpp_err=$ac_c_preproc_warn_flag
16751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16752 else
16753 ac_cpp_err=
16755 else
16756 ac_cpp_err=yes
16758 if test -z "$ac_cpp_err"; then
16759 ac_header_preproc=yes
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_header_preproc=no
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16771 # So? What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773 yes:no: )
16774 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16778 ac_header_preproc=yes
16780 no:yes:* )
16781 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16795 esac
16796 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16797 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16798 if test "${ac_cv_header_iksemel_h+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 ac_cv_header_iksemel_h=$ac_header_preproc
16803 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16804 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16807 if test $ac_cv_header_iksemel_h = yes; then
16808 IKSEMEL_HEADER_FOUND=1
16809 else
16810 IKSEMEL_HEADER_FOUND=0
16816 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16817 if test ! -z "${IKSEMEL_MANDATORY}" ;
16818 then
16819 { echo "$as_me:$LINENO: ***" >&5
16820 echo "$as_me: ***" >&6;}
16821 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16822 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16823 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&5
16824 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&or re-run configure;}
16825 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16826 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16827 exit 1
16829 IKSEMEL_LIB=""
16830 IKSEMEL_INCLUDE=""
16831 PBX_IKSEMEL=0
16832 else
16833 PBX_IKSEMEL=1
16835 cat >>confdefs.h <<_ACEOF
16836 #define HAVE_IKSEMEL 1
16837 _ACEOF
16840 elif test ! -z "${IKSEMEL_MANDATORY}";
16841 then
16842 { echo "$as_me:$LINENO: ***" >&5
16843 echo "$as_me: ***" >&6;}
16844 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16845 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16846 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16847 echo "$as_me: *** Either correct the installation" >&or run configure;}
16848 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16849 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16850 exit 1
16855 if test "${PBX_IKSEMEL}" = 1; then
16857 if test "${USE_GNUTLS}" != "no"; then
16858 pbxlibdir=""
16859 if test "x${GNUTLS_DIR}" != "x"; then
16860 if test -d ${GNUTLS_DIR}/lib; then
16861 pbxlibdir="-L${GNUTLS_DIR}/lib"
16862 else
16863 pbxlibdir="-L${GNUTLS_DIR}"
16866 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16867 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16868 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 ac_check_lib_save_LIBS=$LIBS
16872 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 /* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16883 #ifdef __cplusplus
16884 extern "C"
16885 #endif
16886 char gnutls_bye ();
16888 main ()
16890 return gnutls_bye ();
16892 return 0;
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_lib_gnutls_gnutls_bye=yes
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_cv_lib_gnutls_gnutls_bye=no
16937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16938 conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16942 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16943 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16944 AST_GNUTLS_FOUND=yes
16945 else
16946 AST_GNUTLS_FOUND=no
16950 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16951 GNUTLS_LIB="-lgnutls "
16952 GNUTLS_HEADER_FOUND="1"
16953 if test "x${GNUTLS_DIR}" != "x"; then
16954 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16955 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16956 if test "x" != "x" ; then
16957 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16960 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 ac_res=`eval echo '${'$as_ac_Header'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16967 else
16968 # Is the header compilable?
16969 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16970 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h. */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 #include <${GNUTLS_DIR}/include/>
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_header_compiler=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_compiler=no
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17024 echo "${ECHO_T}$ac_header_compiler" >&6; }
17026 # Is the header present?
17027 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
17028 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
17029 cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h. */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 #include <${GNUTLS_DIR}/include/>
17036 _ACEOF
17037 if { (ac_try="$ac_cpp conftest.$ac_ext"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } >/dev/null; then
17050 if test -s conftest.err; then
17051 ac_cpp_err=$ac_c_preproc_warn_flag
17052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17053 else
17054 ac_cpp_err=
17056 else
17057 ac_cpp_err=yes
17059 if test -z "$ac_cpp_err"; then
17060 ac_header_preproc=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_header_preproc=no
17068 rm -f conftest.err conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070 echo "${ECHO_T}$ac_header_preproc" >&6; }
17072 # So? What about this header?
17073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17074 yes:no: )
17075 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
17076 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
17078 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
17079 ac_header_preproc=yes
17081 no:yes:* )
17082 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
17083 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
17085 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
17087 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
17089 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
17091 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
17093 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
17096 esac
17097 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17098 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17101 else
17102 eval "$as_ac_Header=\$ac_header_preproc"
17104 ac_res=`eval echo '${'$as_ac_Header'}'`
17105 { echo "$as_me:$LINENO: result: $ac_res" >&5
17106 echo "${ECHO_T}$ac_res" >&6; }
17109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17110 GNUTLS_HEADER_FOUND=1
17111 else
17112 GNUTLS_HEADER_FOUND=0
17117 else
17118 if test "x" != "x" ; then
17119 if test "${ac_cv_header_+set}" = set; then
17120 { echo "$as_me:$LINENO: checking for " >&5
17121 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17122 if test "${ac_cv_header_+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17126 echo "${ECHO_T}$ac_cv_header_" >&6; }
17127 else
17128 # Is the header compilable?
17129 { echo "$as_me:$LINENO: checking usability" >&5
17130 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h. */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 $ac_includes_default
17138 #include <>
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (ac_try="$ac_compile"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_compile") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_header_compiler=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_header_compiler=no
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17184 echo "${ECHO_T}$ac_header_compiler" >&6; }
17186 # Is the header present?
17187 { echo "$as_me:$LINENO: checking presence" >&5
17188 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h. */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <>
17196 _ACEOF
17197 if { (ac_try="$ac_cpp conftest.$ac_ext"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } >/dev/null; then
17210 if test -s conftest.err; then
17211 ac_cpp_err=$ac_c_preproc_warn_flag
17212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17213 else
17214 ac_cpp_err=
17216 else
17217 ac_cpp_err=yes
17219 if test -z "$ac_cpp_err"; then
17220 ac_header_preproc=yes
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_header_preproc=no
17228 rm -f conftest.err conftest.$ac_ext
17229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17230 echo "${ECHO_T}$ac_header_preproc" >&6; }
17232 # So? What about this header?
17233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17234 yes:no: )
17235 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
17236 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
17238 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
17239 ac_header_preproc=yes
17241 no:yes:* )
17242 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
17243 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
17244 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
17245 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
17247 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
17249 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
17251 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
17253 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
17256 esac
17257 { echo "$as_me:$LINENO: checking for " >&5
17258 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17259 if test "${ac_cv_header_+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262 ac_cv_header_=$ac_header_preproc
17264 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17265 echo "${ECHO_T}$ac_cv_header_" >&6; }
17268 if test $ac_cv_header_ = yes; then
17269 GNUTLS_HEADER_FOUND=1
17270 else
17271 GNUTLS_HEADER_FOUND=0
17277 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
17278 if test ! -z "${GNUTLS_MANDATORY}" ;
17279 then
17280 { echo "$as_me:$LINENO: ***" >&5
17281 echo "$as_me: ***" >&6;}
17282 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
17283 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
17284 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support" >&5
17285 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support" >&or re-run configure;}
17286 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17287 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17288 exit 1
17290 GNUTLS_LIB=""
17291 GNUTLS_INCLUDE=""
17292 PBX_GNUTLS=0
17293 else
17294 PBX_GNUTLS=1
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_GNUTLS 1
17298 _ACEOF
17301 elif test ! -z "${GNUTLS_MANDATORY}";
17302 then
17303 { echo "$as_me:$LINENO: ***" >&5
17304 echo "$as_me: ***" >&6;}
17305 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
17306 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
17307 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17308 echo "$as_me: *** Either correct the installation" >&or run configure;}
17309 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17310 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17311 exit 1
17315 if test "${PBX_GNUTLS}" = 1; then
17316 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17320 if test "${USE_IMAP_TK}" != "no"; then
17321 if test "${IMAP_TK_DIR}" = ""; then
17322 IMAP_TK_DIR=`pwd`"/../imap-2004g"
17324 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
17325 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17326 saved_cppflags="${CPPFLAGS}"
17327 saved_libs="${LIBS}"
17328 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17329 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17331 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17332 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 #include "c-client.h"
17340 void mm_searched (MAILSTREAM *stream,unsigned long number)
17343 void mm_exists (MAILSTREAM *stream,unsigned long number)
17346 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17349 void mm_flags (MAILSTREAM *stream,unsigned long number)
17352 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17355 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17358 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17361 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17364 void mm_log (char *string,long errflg)
17367 void mm_dlog (char *string)
17370 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17373 void mm_critical (MAILSTREAM *stream)
17376 void mm_nocritical (MAILSTREAM *stream)
17379 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17382 void mm_fatal (char *string)
17386 main ()
17389 MAILSTREAM *foo = mail_open(NULL, "", 0);
17393 return 0;
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (ac_try="$ac_link"
17398 case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_link") 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest$ac_exeext'
17421 { (case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_try") 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
17430 ac_cv_imap_tk="yes"
17431 else
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17435 ac_cv_imap_tk="no"
17439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17440 conftest$ac_exeext conftest.$ac_ext
17441 if test "${ac_cv_imap_tk}" = "yes"; then
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include "c-client.h"
17449 void mm_searched (MAILSTREAM *stream,unsigned long number)
17452 void mm_exists (MAILSTREAM *stream,unsigned long number)
17455 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17458 void mm_flags (MAILSTREAM *stream,unsigned long number)
17461 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17464 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17467 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17470 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17473 void mm_log (char *string,long errflg)
17476 void mm_dlog (char *string)
17479 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17482 void mm_critical (MAILSTREAM *stream)
17485 void mm_nocritical (MAILSTREAM *stream)
17488 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17491 void mm_fatal (char *string)
17495 main ()
17498 long check = mail_expunge_full(NULL, "", 0);
17502 return 0;
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_imap_tk2006="yes"
17540 else
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_imap_tk2006="no"
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext conftest.$ac_ext
17551 CPPFLAGS="${saved_cppflags}"
17552 LIBS="${saved_libs}"
17553 if test "${ac_cv_imap_tk}" = "yes"; then
17554 { echo "$as_me:$LINENO: result: yes" >&5
17555 echo "${ECHO_T}yes" >&6; }
17556 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17557 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17558 PBX_IMAP_TK=1
17560 cat >>confdefs.h <<\_ACEOF
17561 #define HAVE_IMAP_TK 1
17562 _ACEOF
17564 if test "${ac_cv_imap_tk2006}" = "yes"; then
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_IMAP_TK2006 1
17568 _ACEOF
17571 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17572 { echo "$as_me:$LINENO: result: no" >&5
17573 echo "${ECHO_T}no" >&6; }
17574 { echo "$as_me:$LINENO: ***" >&5
17575 echo "$as_me: ***" >&6;}
17576 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17577 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17578 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17579 echo "$as_me: *** Either correct the installation" >&or run configure;}
17580 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17581 echo "$as_me: *** including --without-imap." >&6;}
17582 exit 1
17583 else
17584 { echo "$as_me:$LINENO: result: no" >&5
17585 echo "${ECHO_T}no" >&6; }
17589 ac_ext=cpp
17590 ac_cpp='$CXXCPP $CPPFLAGS'
17591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596 if test "${USE_KDE}" != "no"; then
17597 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17598 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17599 saved_libs="${LIBS}"
17600 saved_cppflags="${CPPFLAGS}"
17601 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17602 if test -d ${KDE_DIR}/lib; then
17603 kdelibdir="${KDE_DIR}/lib"
17604 else
17605 kdelibdir="${KDE_DIR}"
17607 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 #include "kcrash.h"
17618 main ()
17620 KCrash::defaultCrashHandler(1);
17622 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest$ac_exeext'
17651 { (case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_try") 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_lib_kde_crash="yes"
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_cv_lib_kde_crash="no"
17668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669 conftest$ac_exeext conftest.$ac_ext
17671 LIBS="${saved_libs}"
17672 CPPFLAGS="${saved_cppflags}"
17674 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17675 { echo "$as_me:$LINENO: result: yes" >&5
17676 echo "${ECHO_T}yes" >&6; }
17677 KDE_LIB="-lkdecore -lkdeui"
17678 if test "${KDE_DIR}" != ""; then
17679 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17680 KDE_INCLUDE="-I${KDE_DIR}/include"
17682 PBX_KDE=1
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_LIBKDE 1
17686 _ACEOF
17688 elif test ! -z "${KDE_MANDATORY}"; then
17689 { echo "$as_me:$LINENO: result: no" >&5
17690 echo "${ECHO_T}no" >&6; }
17691 { echo "$as_me:$LINENO: ***" >&5
17692 echo "$as_me: ***" >&6;}
17693 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17694 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17695 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17696 echo "$as_me: *** Either correct the installation" >&or run configure;}
17697 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17698 echo "$as_me: *** including --without-kde." >&6;}
17699 exit 1
17700 else
17701 { echo "$as_me:$LINENO: result: no" >&5
17702 echo "${ECHO_T}no" >&6; }
17705 if test "${PBX_KDE}" = 1; then
17706 if test -n "$ac_tool_prefix"; then
17707 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17708 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17711 if test "${ac_cv_path_KDEINIT+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714 case $KDEINIT in
17715 [\\/]* | ?:[\\/]*)
17716 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17720 for as_dir in $PATH
17722 IFS=$as_save_IFS
17723 test -z "$as_dir" && as_dir=.
17724 for ac_exec_ext in '' $ac_executable_extensions; do
17725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17726 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17728 break 2
17730 done
17731 done
17732 IFS=$as_save_IFS
17735 esac
17737 KDEINIT=$ac_cv_path_KDEINIT
17738 if test -n "$KDEINIT"; then
17739 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17740 echo "${ECHO_T}$KDEINIT" >&6; }
17741 else
17742 { echo "$as_me:$LINENO: result: no" >&5
17743 echo "${ECHO_T}no" >&6; }
17748 if test -z "$ac_cv_path_KDEINIT"; then
17749 ac_pt_KDEINIT=$KDEINIT
17750 # Extract the first word of "kdeinit", so it can be a program name with args.
17751 set dummy kdeinit; ac_word=$2
17752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17754 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757 case $ac_pt_KDEINIT in
17758 [\\/]* | ?:[\\/]*)
17759 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17763 for as_dir in $PATH
17765 IFS=$as_save_IFS
17766 test -z "$as_dir" && as_dir=.
17767 for ac_exec_ext in '' $ac_executable_extensions; do
17768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17769 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17771 break 2
17773 done
17774 done
17775 IFS=$as_save_IFS
17778 esac
17780 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17781 if test -n "$ac_pt_KDEINIT"; then
17782 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17783 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17784 else
17785 { echo "$as_me:$LINENO: result: no" >&5
17786 echo "${ECHO_T}no" >&6; }
17789 if test "x$ac_pt_KDEINIT" = x; then
17790 KDEINIT="No"
17791 else
17792 case $cross_compiling:$ac_tool_warned in
17793 yes:)
17794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17795 whose name does not start with the host triplet. If you think this
17796 configuration is useful to you, please write to autoconf@gnu.org." >&5
17797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17798 whose name does not start with the host triplet. If you think this
17799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17800 ac_tool_warned=yes ;;
17801 esac
17802 KDEINIT=$ac_pt_KDEINIT
17804 else
17805 KDEINIT="$ac_cv_path_KDEINIT"
17808 if test ! x"${KDEINIT}" = xNo; then
17809 KDEDIR=$(${DIRNAME} ${KDEINIT})
17810 KDEDIR=$(${DIRNAME} ${KDEDIR})
17815 ac_ext=c
17816 ac_cpp='$CPP $CPPFLAGS'
17817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17823 if test "${USE_MISDN}" != "no"; then
17824 pbxlibdir=""
17825 if test "x${MISDN_DIR}" != "x"; then
17826 if test -d ${MISDN_DIR}/lib; then
17827 pbxlibdir="-L${MISDN_DIR}/lib"
17828 else
17829 pbxlibdir="-L${MISDN_DIR}"
17832 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17833 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17834 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 ac_check_lib_save_LIBS=$LIBS
17838 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char mISDN_open ();
17854 main ()
17856 return mISDN_open ();
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876 { (case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_try") 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_try") 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_cv_lib_mISDN_mISDN_open=yes
17896 else
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ac_cv_lib_mISDN_mISDN_open=no
17903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17904 conftest$ac_exeext conftest.$ac_ext
17905 LIBS=$ac_check_lib_save_LIBS
17907 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17908 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17909 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17910 AST_MISDN_FOUND=yes
17911 else
17912 AST_MISDN_FOUND=no
17916 if test "${AST_MISDN_FOUND}" = "yes"; then
17917 MISDN_LIB="-lmISDN "
17918 MISDN_HEADER_FOUND="1"
17919 if test "x${MISDN_DIR}" != "x"; then
17920 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17921 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17922 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17923 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17925 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17926 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_res=`eval echo '${'$as_ac_Header'}'`
17931 { echo "$as_me:$LINENO: result: $ac_res" >&5
17932 echo "${ECHO_T}$ac_res" >&6; }
17933 else
17934 # Is the header compilable?
17935 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17936 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 $ac_includes_default
17944 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (ac_try="$ac_compile"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_compile") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest.$ac_objext'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_header_compiler=yes
17981 else
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_header_compiler=no
17988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17990 echo "${ECHO_T}$ac_header_compiler" >&6; }
17992 # Is the header present?
17993 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17994 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18002 _ACEOF
18003 if { (ac_try="$ac_cpp conftest.$ac_ext"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } >/dev/null; then
18016 if test -s conftest.err; then
18017 ac_cpp_err=$ac_c_preproc_warn_flag
18018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18019 else
18020 ac_cpp_err=
18022 else
18023 ac_cpp_err=yes
18025 if test -z "$ac_cpp_err"; then
18026 ac_header_preproc=yes
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 ac_header_preproc=no
18034 rm -f conftest.err conftest.$ac_ext
18035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18036 echo "${ECHO_T}$ac_header_preproc" >&6; }
18038 # So? What about this header?
18039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18040 yes:no: )
18041 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18042 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18043 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18044 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18045 ac_header_preproc=yes
18047 no:yes:* )
18048 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18049 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18051 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18053 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18054 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18055 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18056 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18057 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18058 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18059 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18062 esac
18063 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
18064 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068 eval "$as_ac_Header=\$ac_header_preproc"
18070 ac_res=`eval echo '${'$as_ac_Header'}'`
18071 { echo "$as_me:$LINENO: result: $ac_res" >&5
18072 echo "${ECHO_T}$ac_res" >&6; }
18075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18076 MISDN_HEADER_FOUND=1
18077 else
18078 MISDN_HEADER_FOUND=0
18083 else
18084 if test "xmISDNuser/mISDNlib.h" != "x" ; then
18085 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18086 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18087 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18088 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18092 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18093 else
18094 # Is the header compilable?
18095 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
18096 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18104 #include <mISDNuser/mISDNlib.h>
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (ac_try="$ac_compile"
18108 case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_compile") 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124 esac
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134 esac
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_try") 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_header_compiler=yes
18141 else
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_header_compiler=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18150 echo "${ECHO_T}$ac_header_compiler" >&6; }
18152 # Is the header present?
18153 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
18154 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <mISDNuser/mISDNlib.h>
18162 _ACEOF
18163 if { (ac_try="$ac_cpp conftest.$ac_ext"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } >/dev/null; then
18176 if test -s conftest.err; then
18177 ac_cpp_err=$ac_c_preproc_warn_flag
18178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18179 else
18180 ac_cpp_err=
18182 else
18183 ac_cpp_err=yes
18185 if test -z "$ac_cpp_err"; then
18186 ac_header_preproc=yes
18187 else
18188 echo "$as_me: failed program was:" >&5
18189 sed 's/^/| /' conftest.$ac_ext >&5
18191 ac_header_preproc=no
18194 rm -f conftest.err conftest.$ac_ext
18195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18196 echo "${ECHO_T}$ac_header_preproc" >&6; }
18198 # So? What about this header?
18199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18200 yes:no: )
18201 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18202 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18204 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18205 ac_header_preproc=yes
18207 no:yes:* )
18208 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18209 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18211 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18213 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18215 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18217 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18219 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18222 esac
18223 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18224 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18225 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
18230 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18231 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18234 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
18235 MISDN_HEADER_FOUND=1
18236 else
18237 MISDN_HEADER_FOUND=0
18243 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
18244 if test ! -z "${MISDN_MANDATORY}" ;
18245 then
18246 { echo "$as_me:$LINENO: ***" >&5
18247 echo "$as_me: ***" >&6;}
18248 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
18249 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
18250 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support" >&5
18251 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&or re-run configure;}
18252 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18253 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18254 exit 1
18256 MISDN_LIB=""
18257 MISDN_INCLUDE=""
18258 PBX_MISDN=0
18259 else
18260 PBX_MISDN=1
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_MISDN 1
18264 _ACEOF
18267 elif test ! -z "${MISDN_MANDATORY}";
18268 then
18269 { echo "$as_me:$LINENO: ***" >&5
18270 echo "$as_me: ***" >&6;}
18271 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
18272 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
18273 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18274 echo "$as_me: *** Either correct the installation" >&or run configure;}
18275 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18276 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18277 exit 1
18282 if test "${PBX_MISDN}" = 1; then
18284 if test "${USE_ISDNNET}" != "no"; then
18285 pbxlibdir=""
18286 if test "x${ISDNNET_DIR}" != "x"; then
18287 if test -d ${ISDNNET_DIR}/lib; then
18288 pbxlibdir="-L${ISDNNET_DIR}/lib"
18289 else
18290 pbxlibdir="-L${ISDNNET_DIR}"
18293 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
18294 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
18295 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298 ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h. */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char init_manager ();
18315 main ()
18317 return init_manager ();
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18350 esac
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 ac_cv_lib_isdnnet_init_manager=yes
18357 else
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 ac_cv_lib_isdnnet_init_manager=no
18364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18369 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18370 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18371 AST_ISDNNET_FOUND=yes
18372 else
18373 AST_ISDNNET_FOUND=no
18377 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18378 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18379 ISDNNET_HEADER_FOUND="1"
18380 if test "x${ISDNNET_DIR}" != "x"; then
18381 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18382 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
18383 if test "xmISDNuser/isdn_net.h" != "x" ; then
18384 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18386 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18387 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 ac_res=`eval echo '${'$as_ac_Header'}'`
18392 { echo "$as_me:$LINENO: result: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18394 else
18395 # Is the header compilable?
18396 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18397 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 $ac_includes_default
18405 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_compile") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
18421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18422 { (case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_try") 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest.$ac_objext'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_header_compiler=yes
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_compiler=no
18449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18451 echo "${ECHO_T}$ac_header_compiler" >&6; }
18453 # Is the header present?
18454 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18455 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18463 _ACEOF
18464 if { (ac_try="$ac_cpp conftest.$ac_ext"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } >/dev/null; then
18477 if test -s conftest.err; then
18478 ac_cpp_err=$ac_c_preproc_warn_flag
18479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18480 else
18481 ac_cpp_err=
18483 else
18484 ac_cpp_err=yes
18486 if test -z "$ac_cpp_err"; then
18487 ac_header_preproc=yes
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ac_header_preproc=no
18495 rm -f conftest.err conftest.$ac_ext
18496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18497 echo "${ECHO_T}$ac_header_preproc" >&6; }
18499 # So? What about this header?
18500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18501 yes:no: )
18502 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18503 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18505 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18506 ac_header_preproc=yes
18508 no:yes:* )
18509 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18510 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18512 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18514 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18516 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18517 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18518 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18519 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18520 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18523 esac
18524 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18525 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529 eval "$as_ac_Header=\$ac_header_preproc"
18531 ac_res=`eval echo '${'$as_ac_Header'}'`
18532 { echo "$as_me:$LINENO: result: $ac_res" >&5
18533 echo "${ECHO_T}$ac_res" >&6; }
18536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18537 ISDNNET_HEADER_FOUND=1
18538 else
18539 ISDNNET_HEADER_FOUND=0
18544 else
18545 if test "xmISDNuser/isdn_net.h" != "x" ; then
18546 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18547 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18548 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18549 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18553 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18554 else
18555 # Is the header compilable?
18556 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18557 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h. */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 $ac_includes_default
18565 #include <mISDNuser/isdn_net.h>
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (ac_try="$ac_compile"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_compile") 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest.$ac_objext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_header_compiler=yes
18602 else
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_header_compiler=no
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18611 echo "${ECHO_T}$ac_header_compiler" >&6; }
18613 # Is the header present?
18614 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18615 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18616 cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h. */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h. */
18622 #include <mISDNuser/isdn_net.h>
18623 _ACEOF
18624 if { (ac_try="$ac_cpp conftest.$ac_ext"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } >/dev/null; then
18637 if test -s conftest.err; then
18638 ac_cpp_err=$ac_c_preproc_warn_flag
18639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18640 else
18641 ac_cpp_err=
18643 else
18644 ac_cpp_err=yes
18646 if test -z "$ac_cpp_err"; then
18647 ac_header_preproc=yes
18648 else
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_header_preproc=no
18655 rm -f conftest.err conftest.$ac_ext
18656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18657 echo "${ECHO_T}$ac_header_preproc" >&6; }
18659 # So? What about this header?
18660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18661 yes:no: )
18662 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18663 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18664 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18665 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18666 ac_header_preproc=yes
18668 no:yes:* )
18669 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18670 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18672 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18673 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18674 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18675 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18676 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18677 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18678 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18679 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18680 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18683 esac
18684 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18685 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18686 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18691 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18692 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18695 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18696 ISDNNET_HEADER_FOUND=1
18697 else
18698 ISDNNET_HEADER_FOUND=0
18704 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18705 if test ! -z "${ISDNNET_MANDATORY}" ;
18706 then
18707 { echo "$as_me:$LINENO: ***" >&5
18708 echo "$as_me: ***" >&6;}
18709 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18710 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18711 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
18712 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&or re-run configure;}
18713 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18714 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18715 exit 1
18717 ISDNNET_LIB=""
18718 ISDNNET_INCLUDE=""
18719 PBX_ISDNNET=0
18720 else
18721 PBX_ISDNNET=1
18723 cat >>confdefs.h <<_ACEOF
18724 #define HAVE_ISDNNET 1
18725 _ACEOF
18728 elif test ! -z "${ISDNNET_MANDATORY}";
18729 then
18730 { echo "$as_me:$LINENO: ***" >&5
18731 echo "$as_me: ***" >&6;}
18732 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18733 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18734 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18735 echo "$as_me: *** Either correct the installation" >&or run configure;}
18736 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18737 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18738 exit 1
18743 if test "${USE_SUPPSERV}" != "no"; then
18744 pbxlibdir=""
18745 if test "x${SUPPSERV_DIR}" != "x"; then
18746 if test -d ${SUPPSERV_DIR}/lib; then
18747 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18748 else
18749 pbxlibdir="-L${SUPPSERV_DIR}"
18752 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18753 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18754 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757 ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18759 cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h. */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char encodeFac ();
18774 main ()
18776 return encodeFac ();
18778 return 0;
18780 _ACEOF
18781 rm -f conftest.$ac_objext conftest$ac_exeext
18782 if { (ac_try="$ac_link"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_link") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try='test -s conftest$ac_exeext'
18806 { (case "(($ac_try" in
18807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18808 *) ac_try_echo=$ac_try;;
18809 esac
18810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18811 (eval "$ac_try") 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_lib_suppserv_encodeFac=yes
18816 else
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_cv_lib_suppserv_encodeFac=no
18823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18824 conftest$ac_exeext conftest.$ac_ext
18825 LIBS=$ac_check_lib_save_LIBS
18827 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18828 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18829 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18830 AST_SUPPSERV_FOUND=yes
18831 else
18832 AST_SUPPSERV_FOUND=no
18836 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18837 SUPPSERV_LIB="-lsuppserv "
18838 SUPPSERV_HEADER_FOUND="1"
18839 if test "x${SUPPSERV_DIR}" != "x"; then
18840 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18841 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18842 if test "xmISDNuser/suppserv.h" != "x" ; then
18843 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18845 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18846 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18850 ac_res=`eval echo '${'$as_ac_Header'}'`
18851 { echo "$as_me:$LINENO: result: $ac_res" >&5
18852 echo "${ECHO_T}$ac_res" >&6; }
18853 else
18854 # Is the header compilable?
18855 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18856 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h. */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 $ac_includes_default
18864 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_compile") 2>conftest.er1
18874 ac_status=$?
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18881 { (case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_try") 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest.$ac_objext'
18891 { (case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_try") 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_header_compiler=yes
18901 else
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_header_compiler=no
18908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18910 echo "${ECHO_T}$ac_header_compiler" >&6; }
18912 # Is the header present?
18913 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18914 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18922 _ACEOF
18923 if { (ac_try="$ac_cpp conftest.$ac_ext"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18930 ac_status=$?
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } >/dev/null; then
18936 if test -s conftest.err; then
18937 ac_cpp_err=$ac_c_preproc_warn_flag
18938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18939 else
18940 ac_cpp_err=
18942 else
18943 ac_cpp_err=yes
18945 if test -z "$ac_cpp_err"; then
18946 ac_header_preproc=yes
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_header_preproc=no
18954 rm -f conftest.err conftest.$ac_ext
18955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18956 echo "${ECHO_T}$ac_header_preproc" >&6; }
18958 # So? What about this header?
18959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18960 yes:no: )
18961 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18962 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18964 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18965 ac_header_preproc=yes
18967 no:yes:* )
18968 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18969 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18971 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18972 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18973 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18974 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18975 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18976 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18977 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18978 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18979 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18982 esac
18983 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18984 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988 eval "$as_ac_Header=\$ac_header_preproc"
18990 ac_res=`eval echo '${'$as_ac_Header'}'`
18991 { echo "$as_me:$LINENO: result: $ac_res" >&5
18992 echo "${ECHO_T}$ac_res" >&6; }
18995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18996 SUPPSERV_HEADER_FOUND=1
18997 else
18998 SUPPSERV_HEADER_FOUND=0
19003 else
19004 if test "xmISDNuser/suppserv.h" != "x" ; then
19005 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19006 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
19007 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
19008 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
19012 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19013 else
19014 # Is the header compilable?
19015 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
19016 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 $ac_includes_default
19024 #include <mISDNuser/suppserv.h>
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (ac_try="$ac_compile"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_compile") 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19041 { (case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_try") 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_try") 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_header_compiler=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_header_compiler=no
19068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19070 echo "${ECHO_T}$ac_header_compiler" >&6; }
19072 # Is the header present?
19073 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
19074 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h. */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <mISDNuser/suppserv.h>
19082 _ACEOF
19083 if { (ac_try="$ac_cpp conftest.$ac_ext"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } >/dev/null; then
19096 if test -s conftest.err; then
19097 ac_cpp_err=$ac_c_preproc_warn_flag
19098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19099 else
19100 ac_cpp_err=
19102 else
19103 ac_cpp_err=yes
19105 if test -z "$ac_cpp_err"; then
19106 ac_header_preproc=yes
19107 else
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_header_preproc=no
19114 rm -f conftest.err conftest.$ac_ext
19115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19116 echo "${ECHO_T}$ac_header_preproc" >&6; }
19118 # So? What about this header?
19119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 yes:no: )
19121 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19122 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
19124 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
19125 ac_header_preproc=yes
19127 no:yes:* )
19128 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
19129 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
19131 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
19133 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
19134 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
19135 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
19137 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
19139 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
19142 esac
19143 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
19144 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
19145 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
19150 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
19151 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19154 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
19155 SUPPSERV_HEADER_FOUND=1
19156 else
19157 SUPPSERV_HEADER_FOUND=0
19163 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
19164 if test ! -z "${SUPPSERV_MANDATORY}" ;
19165 then
19166 { echo "$as_me:$LINENO: ***" >&5
19167 echo "$as_me: ***" >&6;}
19168 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
19169 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
19170 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
19171 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&or re-run configure;}
19172 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19173 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19174 exit 1
19176 SUPPSERV_LIB=""
19177 SUPPSERV_INCLUDE=""
19178 PBX_SUPPSERV=0
19179 else
19180 PBX_SUPPSERV=1
19182 cat >>confdefs.h <<_ACEOF
19183 #define HAVE_SUPPSERV 1
19184 _ACEOF
19187 elif test ! -z "${SUPPSERV_MANDATORY}";
19188 then
19189 { echo "$as_me:$LINENO: ***" >&5
19190 echo "$as_me: ***" >&6;}
19191 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
19192 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
19193 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19194 echo "$as_me: *** Either correct the installation" >&or run configure;}
19195 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19196 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19197 exit 1
19204 if test "${USE_NBS}" != "no"; then
19205 pbxlibdir=""
19206 if test "x${NBS_DIR}" != "x"; then
19207 if test -d ${NBS_DIR}/lib; then
19208 pbxlibdir="-L${NBS_DIR}/lib"
19209 else
19210 pbxlibdir="-L${NBS_DIR}"
19213 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
19214 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
19215 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218 ac_check_lib_save_LIBS=$LIBS
19219 LIBS="-lnbs ${pbxlibdir} $LIBS"
19220 cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h. */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19227 /* Override any GCC internal prototype to avoid an error.
19228 Use char because int might match the return type of a GCC
19229 builtin and then its argument prototype would still apply. */
19230 #ifdef __cplusplus
19231 extern "C"
19232 #endif
19233 char nbs_connect ();
19235 main ()
19237 return nbs_connect ();
19239 return 0;
19241 _ACEOF
19242 rm -f conftest.$ac_objext conftest$ac_exeext
19243 if { (ac_try="$ac_link"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_link") 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_lib_nbs_nbs_connect=yes
19277 else
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_cv_lib_nbs_nbs_connect=no
19284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
19289 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19290 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19291 AST_NBS_FOUND=yes
19292 else
19293 AST_NBS_FOUND=no
19297 if test "${AST_NBS_FOUND}" = "yes"; then
19298 NBS_LIB="-lnbs "
19299 NBS_HEADER_FOUND="1"
19300 if test "x${NBS_DIR}" != "x"; then
19301 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
19302 NBS_INCLUDE="-I${NBS_DIR}/include"
19303 if test "xnbs.h" != "x" ; then
19304 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
19305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19306 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19307 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 ac_res=`eval echo '${'$as_ac_Header'}'`
19312 { echo "$as_me:$LINENO: result: $ac_res" >&5
19313 echo "${ECHO_T}$ac_res" >&6; }
19314 else
19315 # Is the header compilable?
19316 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
19317 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
19318 cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h. */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19324 $ac_includes_default
19325 #include <${NBS_DIR}/include/nbs.h>
19326 _ACEOF
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_header_compiler=yes
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_header_compiler=no
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19371 echo "${ECHO_T}$ac_header_compiler" >&6; }
19373 # Is the header present?
19374 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19375 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <${NBS_DIR}/include/nbs.h>
19383 _ACEOF
19384 if { (ac_try="$ac_cpp conftest.$ac_ext"
19385 case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19391 ac_status=$?
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } >/dev/null; then
19397 if test -s conftest.err; then
19398 ac_cpp_err=$ac_c_preproc_warn_flag
19399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19400 else
19401 ac_cpp_err=
19403 else
19404 ac_cpp_err=yes
19406 if test -z "$ac_cpp_err"; then
19407 ac_header_preproc=yes
19408 else
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_header_preproc=no
19415 rm -f conftest.err conftest.$ac_ext
19416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19417 echo "${ECHO_T}$ac_header_preproc" >&6; }
19419 # So? What about this header?
19420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19421 yes:no: )
19422 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19423 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19424 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19425 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19426 ac_header_preproc=yes
19428 no:yes:* )
19429 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19430 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19431 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19432 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19434 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19435 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19436 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19438 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19440 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19443 esac
19444 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19445 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449 eval "$as_ac_Header=\$ac_header_preproc"
19451 ac_res=`eval echo '${'$as_ac_Header'}'`
19452 { echo "$as_me:$LINENO: result: $ac_res" >&5
19453 echo "${ECHO_T}$ac_res" >&6; }
19456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19457 NBS_HEADER_FOUND=1
19458 else
19459 NBS_HEADER_FOUND=0
19464 else
19465 if test "xnbs.h" != "x" ; then
19466 if test "${ac_cv_header_nbs_h+set}" = set; then
19467 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19468 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19469 if test "${ac_cv_header_nbs_h+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19473 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19474 else
19475 # Is the header compilable?
19476 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19477 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 $ac_includes_default
19485 #include <nbs.h>
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_header_compiler=yes
19522 else
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_header_compiler=no
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19531 echo "${ECHO_T}$ac_header_compiler" >&6; }
19533 # Is the header present?
19534 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19535 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h. */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19542 #include <nbs.h>
19543 _ACEOF
19544 if { (ac_try="$ac_cpp conftest.$ac_ext"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } >/dev/null; then
19557 if test -s conftest.err; then
19558 ac_cpp_err=$ac_c_preproc_warn_flag
19559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19560 else
19561 ac_cpp_err=
19563 else
19564 ac_cpp_err=yes
19566 if test -z "$ac_cpp_err"; then
19567 ac_header_preproc=yes
19568 else
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_header_preproc=no
19575 rm -f conftest.err conftest.$ac_ext
19576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577 echo "${ECHO_T}$ac_header_preproc" >&6; }
19579 # So? What about this header?
19580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19581 yes:no: )
19582 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19583 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19585 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19586 ac_header_preproc=yes
19588 no:yes:* )
19589 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19590 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19592 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19594 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19596 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19598 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19600 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19603 esac
19604 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19605 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19606 if test "${ac_cv_header_nbs_h+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609 ac_cv_header_nbs_h=$ac_header_preproc
19611 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19612 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19615 if test $ac_cv_header_nbs_h = yes; then
19616 NBS_HEADER_FOUND=1
19617 else
19618 NBS_HEADER_FOUND=0
19624 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19625 if test ! -z "${NBS_MANDATORY}" ;
19626 then
19627 { echo "$as_me:$LINENO: ***" >&5
19628 echo "$as_me: ***" >&6;}
19629 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19630 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19631 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support" >&5
19632 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&or re-run configure;}
19633 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19634 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19635 exit 1
19637 NBS_LIB=""
19638 NBS_INCLUDE=""
19639 PBX_NBS=0
19640 else
19641 PBX_NBS=1
19643 cat >>confdefs.h <<_ACEOF
19644 #define HAVE_NBS 1
19645 _ACEOF
19648 elif test ! -z "${NBS_MANDATORY}";
19649 then
19650 { echo "$as_me:$LINENO: ***" >&5
19651 echo "$as_me: ***" >&6;}
19652 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19653 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19654 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19655 echo "$as_me: *** Either correct the installation" >&or run configure;}
19656 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19657 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19658 exit 1
19664 if test "${USE_NCURSES}" != "no"; then
19665 pbxlibdir=""
19666 if test "x${NCURSES_DIR}" != "x"; then
19667 if test -d ${NCURSES_DIR}/lib; then
19668 pbxlibdir="-L${NCURSES_DIR}/lib"
19669 else
19670 pbxlibdir="-L${NCURSES_DIR}"
19673 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19674 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19675 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678 ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lncurses ${pbxlibdir} $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h. */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19687 /* Override any GCC internal prototype to avoid an error.
19688 Use char because int might match the return type of a GCC
19689 builtin and then its argument prototype would still apply. */
19690 #ifdef __cplusplus
19691 extern "C"
19692 #endif
19693 char initscr ();
19695 main ()
19697 return initscr ();
19699 return 0;
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19710 ac_status=$?
19711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_lib_ncurses_initscr=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_ncurses_initscr=no
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19749 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19750 if test $ac_cv_lib_ncurses_initscr = yes; then
19751 AST_NCURSES_FOUND=yes
19752 else
19753 AST_NCURSES_FOUND=no
19757 if test "${AST_NCURSES_FOUND}" = "yes"; then
19758 NCURSES_LIB="-lncurses "
19759 NCURSES_HEADER_FOUND="1"
19760 if test "x${NCURSES_DIR}" != "x"; then
19761 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19762 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19763 if test "xcurses.h" != "x" ; then
19764 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19766 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19767 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_res=`eval echo '${'$as_ac_Header'}'`
19772 { echo "$as_me:$LINENO: result: $ac_res" >&5
19773 echo "${ECHO_T}$ac_res" >&6; }
19774 else
19775 # Is the header compilable?
19776 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19777 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h. */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 $ac_includes_default
19785 #include <${NCURSES_DIR}/include/curses.h>
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (ac_try="$ac_compile"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_compile") 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_header_compiler=yes
19822 else
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_compiler=no
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19831 echo "${ECHO_T}$ac_header_compiler" >&6; }
19833 # Is the header present?
19834 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19835 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <${NCURSES_DIR}/include/curses.h>
19843 _ACEOF
19844 if { (ac_try="$ac_cpp conftest.$ac_ext"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null; then
19857 if test -s conftest.err; then
19858 ac_cpp_err=$ac_c_preproc_warn_flag
19859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19860 else
19861 ac_cpp_err=
19863 else
19864 ac_cpp_err=yes
19866 if test -z "$ac_cpp_err"; then
19867 ac_header_preproc=yes
19868 else
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_header_preproc=no
19875 rm -f conftest.err conftest.$ac_ext
19876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19877 echo "${ECHO_T}$ac_header_preproc" >&6; }
19879 # So? What about this header?
19880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19881 yes:no: )
19882 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19883 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19885 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19886 ac_header_preproc=yes
19888 no:yes:* )
19889 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19890 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19892 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19894 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19896 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19898 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19900 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19903 esac
19904 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19905 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 else
19909 eval "$as_ac_Header=\$ac_header_preproc"
19911 ac_res=`eval echo '${'$as_ac_Header'}'`
19912 { echo "$as_me:$LINENO: result: $ac_res" >&5
19913 echo "${ECHO_T}$ac_res" >&6; }
19916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19917 NCURSES_HEADER_FOUND=1
19918 else
19919 NCURSES_HEADER_FOUND=0
19924 else
19925 if test "xcurses.h" != "x" ; then
19926 if test "${ac_cv_header_curses_h+set}" = set; then
19927 { echo "$as_me:$LINENO: checking for curses.h" >&5
19928 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19929 if test "${ac_cv_header_curses_h+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19933 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19934 else
19935 # Is the header compilable?
19936 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19937 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 $ac_includes_default
19945 #include <curses.h>
19946 _ACEOF
19947 rm -f conftest.$ac_objext
19948 if { (ac_try="$ac_compile"
19949 case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_compile") 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19981 ac_header_compiler=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_header_compiler=no
19989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19991 echo "${ECHO_T}$ac_header_compiler" >&6; }
19993 # Is the header present?
19994 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19995 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #include <curses.h>
20003 _ACEOF
20004 if { (ac_try="$ac_cpp conftest.$ac_ext"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } >/dev/null; then
20017 if test -s conftest.err; then
20018 ac_cpp_err=$ac_c_preproc_warn_flag
20019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20020 else
20021 ac_cpp_err=
20023 else
20024 ac_cpp_err=yes
20026 if test -z "$ac_cpp_err"; then
20027 ac_header_preproc=yes
20028 else
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_header_preproc=no
20035 rm -f conftest.err conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037 echo "${ECHO_T}$ac_header_preproc" >&6; }
20039 # So? What about this header?
20040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041 yes:no: )
20042 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
20043 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
20045 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
20048 no:yes:* )
20049 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
20050 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
20052 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
20054 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
20056 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
20058 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
20060 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
20063 esac
20064 { echo "$as_me:$LINENO: checking for curses.h" >&5
20065 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
20066 if test "${ac_cv_header_curses_h+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069 ac_cv_header_curses_h=$ac_header_preproc
20071 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
20072 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
20075 if test $ac_cv_header_curses_h = yes; then
20076 NCURSES_HEADER_FOUND=1
20077 else
20078 NCURSES_HEADER_FOUND=0
20084 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
20085 if test ! -z "${NCURSES_MANDATORY}" ;
20086 then
20087 { echo "$as_me:$LINENO: ***" >&5
20088 echo "$as_me: ***" >&6;}
20089 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
20090 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
20091 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
20092 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&or re-run configure;}
20093 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
20094 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
20095 exit 1
20097 NCURSES_LIB=""
20098 NCURSES_INCLUDE=""
20099 PBX_NCURSES=0
20100 else
20101 PBX_NCURSES=1
20103 cat >>confdefs.h <<_ACEOF
20104 #define HAVE_NCURSES 1
20105 _ACEOF
20108 elif test ! -z "${NCURSES_MANDATORY}";
20109 then
20110 { echo "$as_me:$LINENO: ***" >&5
20111 echo "$as_me: ***" >&6;}
20112 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
20113 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
20114 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20115 echo "$as_me: *** Either correct the installation" >&or run configure;}
20116 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
20117 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
20118 exit 1
20123 NETSNMP_CONFIG=No
20124 if test "${USE_NETSNMP}" != "no"; then
20125 if test "x${NETSNMP_DIR}" != "x"; then
20126 if test -n "$ac_tool_prefix"; then
20127 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
20128 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
20129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20131 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 case $NETSNMP_CONFIG in
20135 [\\/]* | ?:[\\/]*)
20136 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
20139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20140 for as_dir in ${NETSNMP_DIR}/bin
20142 IFS=$as_save_IFS
20143 test -z "$as_dir" && as_dir=.
20144 for ac_exec_ext in '' $ac_executable_extensions; do
20145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20146 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20148 break 2
20150 done
20151 done
20152 IFS=$as_save_IFS
20155 esac
20157 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20158 if test -n "$NETSNMP_CONFIG"; then
20159 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20160 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20161 else
20162 { echo "$as_me:$LINENO: result: no" >&5
20163 echo "${ECHO_T}no" >&6; }
20168 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20169 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20170 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20171 set dummy net-snmp-config; ac_word=$2
20172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20174 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 case $ac_pt_NETSNMP_CONFIG in
20178 [\\/]* | ?:[\\/]*)
20179 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20183 for as_dir in ${NETSNMP_DIR}/bin
20185 IFS=$as_save_IFS
20186 test -z "$as_dir" && as_dir=.
20187 for ac_exec_ext in '' $ac_executable_extensions; do
20188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20189 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20191 break 2
20193 done
20194 done
20195 IFS=$as_save_IFS
20198 esac
20200 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20201 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20202 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20203 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20204 else
20205 { echo "$as_me:$LINENO: result: no" >&5
20206 echo "${ECHO_T}no" >&6; }
20209 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20210 NETSNMP_CONFIG="No"
20211 else
20212 case $cross_compiling:$ac_tool_warned in
20213 yes:)
20214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20215 whose name does not start with the host triplet. If you think this
20216 configuration is useful to you, please write to autoconf@gnu.org." >&5
20217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20218 whose name does not start with the host triplet. If you think this
20219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20220 ac_tool_warned=yes ;;
20221 esac
20222 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20224 else
20225 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20228 if test x"${NETSNMP_CONFIG}" = xNo; then
20229 { echo "$as_me:$LINENO: ***" >&5
20230 echo "$as_me: ***" >&6;}
20231 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
20232 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
20233 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
20234 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
20235 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20236 echo "$as_me: *** Either correct the installation" >&or run configure;}
20237 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20238 echo "$as_me: *** including --without-netsnmp" >&6;}
20239 exit 1
20241 else
20242 if test -n "$ac_tool_prefix"; then
20243 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
20244 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
20245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20247 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 case $NETSNMP_CONFIG in
20251 [\\/]* | ?:[\\/]*)
20252 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
20255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20256 for as_dir in $PATH
20258 IFS=$as_save_IFS
20259 test -z "$as_dir" && as_dir=.
20260 for ac_exec_ext in '' $ac_executable_extensions; do
20261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20262 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20264 break 2
20266 done
20267 done
20268 IFS=$as_save_IFS
20271 esac
20273 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20274 if test -n "$NETSNMP_CONFIG"; then
20275 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20276 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20277 else
20278 { echo "$as_me:$LINENO: result: no" >&5
20279 echo "${ECHO_T}no" >&6; }
20284 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20285 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20286 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20287 set dummy net-snmp-config; ac_word=$2
20288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20290 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 case $ac_pt_NETSNMP_CONFIG in
20294 [\\/]* | ?:[\\/]*)
20295 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20299 for as_dir in $PATH
20301 IFS=$as_save_IFS
20302 test -z "$as_dir" && as_dir=.
20303 for ac_exec_ext in '' $ac_executable_extensions; do
20304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20305 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20307 break 2
20309 done
20310 done
20311 IFS=$as_save_IFS
20314 esac
20316 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20317 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20318 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20319 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20320 else
20321 { echo "$as_me:$LINENO: result: no" >&5
20322 echo "${ECHO_T}no" >&6; }
20325 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20326 NETSNMP_CONFIG="No"
20327 else
20328 case $cross_compiling:$ac_tool_warned in
20329 yes:)
20330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20331 whose name does not start with the host triplet. If you think this
20332 configuration is useful to you, please write to autoconf@gnu.org." >&5
20333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20334 whose name does not start with the host triplet. If you think this
20335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20336 ac_tool_warned=yes ;;
20337 esac
20338 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20340 else
20341 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20346 if test x"${NETSNMP_CONFIG}" != xNo; then
20347 NETSNMP_libs=`net-snmp-config --agent-libs`
20349 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20350 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20351 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354 ac_check_lib_save_LIBS=$LIBS
20355 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20363 /* Override any GCC internal prototype to avoid an error.
20364 Use char because int might match the return type of a GCC
20365 builtin and then its argument prototype would still apply. */
20366 #ifdef __cplusplus
20367 extern "C"
20368 #endif
20369 char snmp_register_callback ();
20371 main ()
20373 return snmp_register_callback ();
20375 return 0;
20377 _ACEOF
20378 rm -f conftest.$ac_objext conftest$ac_exeext
20379 if { (ac_try="$ac_link"
20380 case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20383 esac
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_link") 2>conftest.er1
20386 ac_status=$?
20387 grep -v '^ *+' conftest.er1 >conftest.err
20388 rm -f conftest.er1
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest$ac_exeext'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_lib_netsnmp_snmp_register_callback=yes
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_lib_netsnmp_snmp_register_callback=no
20420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20424 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20425 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20426 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_NETSNMP 1
20430 _ACEOF
20435 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20436 NETSNMP_LIB="${NETSNMP_libs}"
20437 PBX_NETSNMP=1
20438 elif test ! -z "${NETSNMP_MANDATORY}";
20439 then
20440 { echo "$as_me:$LINENO: ***" >&5
20441 echo "$as_me: ***" >&6;}
20442 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20443 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20444 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20445 echo "$as_me: *** Either correct the installation" >&or run configure;}
20446 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20447 echo "$as_me: *** including --without-netsnmp" >&6;}
20448 exit 1
20450 elif test ! -z "${NETSNMP_MANDATORY}";
20451 then
20452 { echo "$as_me:$LINENO: ***" >&5
20453 echo "$as_me: ***" >&6;}
20454 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20455 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20456 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20457 echo "$as_me: *** Either correct the installation" >&or run configure;}
20458 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20459 echo "$as_me: *** including --without-netsnmp" >&6;}
20460 exit 1
20464 if test "${USE_NEWT}" != "no"; then
20465 pbxlibdir=""
20466 if test "x${NEWT_DIR}" != "x"; then
20467 if test -d ${NEWT_DIR}/lib; then
20468 pbxlibdir="-L${NEWT_DIR}/lib"
20469 else
20470 pbxlibdir="-L${NEWT_DIR}"
20473 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20474 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20475 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 ac_check_lib_save_LIBS=$LIBS
20479 LIBS="-lnewt ${pbxlibdir} $LIBS"
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20490 #ifdef __cplusplus
20491 extern "C"
20492 #endif
20493 char newtBell ();
20495 main ()
20497 return newtBell ();
20499 return 0;
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_link") 2>conftest.er1
20510 ac_status=$?
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -f conftest.er1
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } &&
20516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20517 { (case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_try") 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest$ac_exeext'
20527 { (case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_try") 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_cv_lib_newt_newtBell=yes
20537 else
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_cv_lib_newt_newtBell=no
20544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20545 conftest$ac_exeext conftest.$ac_ext
20546 LIBS=$ac_check_lib_save_LIBS
20548 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20549 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20550 if test $ac_cv_lib_newt_newtBell = yes; then
20551 AST_NEWT_FOUND=yes
20552 else
20553 AST_NEWT_FOUND=no
20557 if test "${AST_NEWT_FOUND}" = "yes"; then
20558 NEWT_LIB="-lnewt "
20559 NEWT_HEADER_FOUND="1"
20560 if test "x${NEWT_DIR}" != "x"; then
20561 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20562 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20563 if test "xnewt.h" != "x" ; then
20564 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
20565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20566 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20567 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 ac_res=`eval echo '${'$as_ac_Header'}'`
20572 { echo "$as_me:$LINENO: result: $ac_res" >&5
20573 echo "${ECHO_T}$ac_res" >&6; }
20574 else
20575 # Is the header compilable?
20576 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20577 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 $ac_includes_default
20585 #include <${NEWT_DIR}/include/newt.h>
20586 _ACEOF
20587 rm -f conftest.$ac_objext
20588 if { (ac_try="$ac_compile"
20589 case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_compile") 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } &&
20601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20602 { (case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_try") 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest.$ac_objext'
20612 { (case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_try") 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_header_compiler=yes
20622 else
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_header_compiler=no
20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6; }
20633 # Is the header present?
20634 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20635 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 #include <${NEWT_DIR}/include/newt.h>
20643 _ACEOF
20644 if { (ac_try="$ac_cpp conftest.$ac_ext"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } >/dev/null; then
20657 if test -s conftest.err; then
20658 ac_cpp_err=$ac_c_preproc_warn_flag
20659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20660 else
20661 ac_cpp_err=
20663 else
20664 ac_cpp_err=yes
20666 if test -z "$ac_cpp_err"; then
20667 ac_header_preproc=yes
20668 else
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ac_header_preproc=no
20675 rm -f conftest.err conftest.$ac_ext
20676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20677 echo "${ECHO_T}$ac_header_preproc" >&6; }
20679 # So? What about this header?
20680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20681 yes:no: )
20682 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20683 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20685 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20686 ac_header_preproc=yes
20688 no:yes:* )
20689 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20690 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20692 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20694 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20695 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20696 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20698 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20700 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20703 esac
20704 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20705 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709 eval "$as_ac_Header=\$ac_header_preproc"
20711 ac_res=`eval echo '${'$as_ac_Header'}'`
20712 { echo "$as_me:$LINENO: result: $ac_res" >&5
20713 echo "${ECHO_T}$ac_res" >&6; }
20716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20717 NEWT_HEADER_FOUND=1
20718 else
20719 NEWT_HEADER_FOUND=0
20724 else
20725 if test "xnewt.h" != "x" ; then
20726 if test "${ac_cv_header_newt_h+set}" = set; then
20727 { echo "$as_me:$LINENO: checking for newt.h" >&5
20728 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20729 if test "${ac_cv_header_newt_h+set}" = set; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20733 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20734 else
20735 # Is the header compilable?
20736 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20737 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20745 #include <newt.h>
20746 _ACEOF
20747 rm -f conftest.$ac_objext
20748 if { (ac_try="$ac_compile"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_compile") 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
20761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_header_compiler=yes
20782 else
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_header_compiler=no
20789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20791 echo "${ECHO_T}$ac_header_compiler" >&6; }
20793 # Is the header present?
20794 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20795 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20796 cat >conftest.$ac_ext <<_ACEOF
20797 /* confdefs.h. */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 #include <newt.h>
20803 _ACEOF
20804 if { (ac_try="$ac_cpp conftest.$ac_ext"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } >/dev/null; then
20817 if test -s conftest.err; then
20818 ac_cpp_err=$ac_c_preproc_warn_flag
20819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20820 else
20821 ac_cpp_err=
20823 else
20824 ac_cpp_err=yes
20826 if test -z "$ac_cpp_err"; then
20827 ac_header_preproc=yes
20828 else
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 ac_header_preproc=no
20835 rm -f conftest.err conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20837 echo "${ECHO_T}$ac_header_preproc" >&6; }
20839 # So? What about this header?
20840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20841 yes:no: )
20842 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20843 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20845 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20846 ac_header_preproc=yes
20848 no:yes:* )
20849 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20850 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20851 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20852 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20854 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20856 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20858 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20860 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20863 esac
20864 { echo "$as_me:$LINENO: checking for newt.h" >&5
20865 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20866 if test "${ac_cv_header_newt_h+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 ac_cv_header_newt_h=$ac_header_preproc
20871 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20872 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20875 if test $ac_cv_header_newt_h = yes; then
20876 NEWT_HEADER_FOUND=1
20877 else
20878 NEWT_HEADER_FOUND=0
20884 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20885 if test ! -z "${NEWT_MANDATORY}" ;
20886 then
20887 { echo "$as_me:$LINENO: ***" >&5
20888 echo "$as_me: ***" >&6;}
20889 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20890 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20891 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support" >&5
20892 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&or re-run configure;}
20893 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20894 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20895 exit 1
20897 NEWT_LIB=""
20898 NEWT_INCLUDE=""
20899 PBX_NEWT=0
20900 else
20901 PBX_NEWT=1
20903 cat >>confdefs.h <<_ACEOF
20904 #define HAVE_NEWT 1
20905 _ACEOF
20908 elif test ! -z "${NEWT_MANDATORY}";
20909 then
20910 { echo "$as_me:$LINENO: ***" >&5
20911 echo "$as_me: ***" >&6;}
20912 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20913 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20914 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20915 echo "$as_me: *** Either correct the installation" >&or run configure;}
20916 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20917 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20918 exit 1
20924 if test "${USE_UNIXODBC}" != "no"; then
20925 pbxlibdir=""
20926 if test "x${UNIXODBC_DIR}" != "x"; then
20927 if test -d ${UNIXODBC_DIR}/lib; then
20928 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20929 else
20930 pbxlibdir="-L${UNIXODBC_DIR}"
20933 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20934 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20935 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 else
20938 ac_check_lib_save_LIBS=$LIBS
20939 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h. */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20947 /* Override any GCC internal prototype to avoid an error.
20948 Use char because int might match the return type of a GCC
20949 builtin and then its argument prototype would still apply. */
20950 #ifdef __cplusplus
20951 extern "C"
20952 #endif
20953 char SQLConnect ();
20955 main ()
20957 return SQLConnect ();
20959 return 0;
20961 _ACEOF
20962 rm -f conftest.$ac_objext conftest$ac_exeext
20963 if { (ac_try="$ac_link"
20964 case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_link") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20977 { (case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_try") 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try='test -s conftest$ac_exeext'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_try") 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_lib_odbc_SQLConnect=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_cv_lib_odbc_SQLConnect=no
21004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21005 conftest$ac_exeext conftest.$ac_ext
21006 LIBS=$ac_check_lib_save_LIBS
21008 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
21009 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
21010 if test $ac_cv_lib_odbc_SQLConnect = yes; then
21011 AST_UNIXODBC_FOUND=yes
21012 else
21013 AST_UNIXODBC_FOUND=no
21017 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
21018 UNIXODBC_LIB="-lodbc -lltdl"
21019 UNIXODBC_HEADER_FOUND="1"
21020 if test "x${UNIXODBC_DIR}" != "x"; then
21021 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
21022 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
21023 if test "xsql.h" != "x" ; then
21024 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
21025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21026 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
21027 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
21028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 ac_res=`eval echo '${'$as_ac_Header'}'`
21032 { echo "$as_me:$LINENO: result: $ac_res" >&5
21033 echo "${ECHO_T}$ac_res" >&6; }
21034 else
21035 # Is the header compilable?
21036 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
21037 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 $ac_includes_default
21045 #include <${UNIXODBC_DIR}/include/sql.h>
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 ac_header_compiler=yes
21082 else
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 ac_header_compiler=no
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21091 echo "${ECHO_T}$ac_header_compiler" >&6; }
21093 # Is the header present?
21094 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
21095 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 #include <${UNIXODBC_DIR}/include/sql.h>
21103 _ACEOF
21104 if { (ac_try="$ac_cpp conftest.$ac_ext"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21111 ac_status=$?
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } >/dev/null; then
21117 if test -s conftest.err; then
21118 ac_cpp_err=$ac_c_preproc_warn_flag
21119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21120 else
21121 ac_cpp_err=
21123 else
21124 ac_cpp_err=yes
21126 if test -z "$ac_cpp_err"; then
21127 ac_header_preproc=yes
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_header_preproc=no
21135 rm -f conftest.err conftest.$ac_ext
21136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21137 echo "${ECHO_T}$ac_header_preproc" >&6; }
21139 # So? What about this header?
21140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21141 yes:no: )
21142 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
21143 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
21145 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
21146 ac_header_preproc=yes
21148 no:yes:* )
21149 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
21150 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
21152 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
21154 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
21156 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
21158 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
21160 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
21163 esac
21164 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
21165 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
21166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169 eval "$as_ac_Header=\$ac_header_preproc"
21171 ac_res=`eval echo '${'$as_ac_Header'}'`
21172 { echo "$as_me:$LINENO: result: $ac_res" >&5
21173 echo "${ECHO_T}$ac_res" >&6; }
21176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21177 UNIXODBC_HEADER_FOUND=1
21178 else
21179 UNIXODBC_HEADER_FOUND=0
21184 else
21185 if test "xsql.h" != "x" ; then
21186 if test "${ac_cv_header_sql_h+set}" = set; then
21187 { echo "$as_me:$LINENO: checking for sql.h" >&5
21188 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
21189 if test "${ac_cv_header_sql_h+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21193 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21194 else
21195 # Is the header compilable?
21196 { echo "$as_me:$LINENO: checking sql.h usability" >&5
21197 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h. */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 $ac_includes_default
21205 #include <sql.h>
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (ac_try="$ac_compile"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222 { (case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_try") 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest.$ac_objext'
21232 { (case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_try") 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_header_compiler=yes
21242 else
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_header_compiler=no
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21251 echo "${ECHO_T}$ac_header_compiler" >&6; }
21253 # Is the header present?
21254 { echo "$as_me:$LINENO: checking sql.h presence" >&5
21255 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h. */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <sql.h>
21263 _ACEOF
21264 if { (ac_try="$ac_cpp conftest.$ac_ext"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } >/dev/null; then
21277 if test -s conftest.err; then
21278 ac_cpp_err=$ac_c_preproc_warn_flag
21279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21280 else
21281 ac_cpp_err=
21283 else
21284 ac_cpp_err=yes
21286 if test -z "$ac_cpp_err"; then
21287 ac_header_preproc=yes
21288 else
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_header_preproc=no
21295 rm -f conftest.err conftest.$ac_ext
21296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21297 echo "${ECHO_T}$ac_header_preproc" >&6; }
21299 # So? What about this header?
21300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21301 yes:no: )
21302 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
21303 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
21305 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
21306 ac_header_preproc=yes
21308 no:yes:* )
21309 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
21310 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
21312 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
21314 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
21316 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
21318 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
21320 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
21323 esac
21324 { echo "$as_me:$LINENO: checking for sql.h" >&5
21325 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
21326 if test "${ac_cv_header_sql_h+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329 ac_cv_header_sql_h=$ac_header_preproc
21331 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21332 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21335 if test $ac_cv_header_sql_h = yes; then
21336 UNIXODBC_HEADER_FOUND=1
21337 else
21338 UNIXODBC_HEADER_FOUND=0
21344 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
21345 if test ! -z "${UNIXODBC_MANDATORY}" ;
21346 then
21347 { echo "$as_me:$LINENO: ***" >&5
21348 echo "$as_me: ***" >&6;}
21349 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
21350 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
21351 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
21352 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&or re-run configure;}
21353 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21354 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21355 exit 1
21357 UNIXODBC_LIB=""
21358 UNIXODBC_INCLUDE=""
21359 PBX_UNIXODBC=0
21360 else
21361 PBX_UNIXODBC=1
21363 cat >>confdefs.h <<_ACEOF
21364 #define HAVE_UNIXODBC 1
21365 _ACEOF
21368 elif test ! -z "${UNIXODBC_MANDATORY}";
21369 then
21370 { echo "$as_me:$LINENO: ***" >&5
21371 echo "$as_me: ***" >&6;}
21372 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21373 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21374 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21375 echo "$as_me: *** Either correct the installation" >&or run configure;}
21376 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21377 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21378 exit 1
21384 if test "${USE_OGG}" != "no"; then
21385 pbxlibdir=""
21386 if test "x${OGG_DIR}" != "x"; then
21387 if test -d ${OGG_DIR}/lib; then
21388 pbxlibdir="-L${OGG_DIR}/lib"
21389 else
21390 pbxlibdir="-L${OGG_DIR}"
21393 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21394 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21395 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 else
21398 ac_check_lib_save_LIBS=$LIBS
21399 LIBS="-logg ${pbxlibdir} $LIBS"
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h. */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21407 /* Override any GCC internal prototype to avoid an error.
21408 Use char because int might match the return type of a GCC
21409 builtin and then its argument prototype would still apply. */
21410 #ifdef __cplusplus
21411 extern "C"
21412 #endif
21413 char ogg_sync_init ();
21415 main ()
21417 return ogg_sync_init ();
21419 return 0;
21421 _ACEOF
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_link") 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21437 { (case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_try") 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; } &&
21446 { ac_try='test -s conftest$ac_exeext'
21447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_try") 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_cv_lib_ogg_ogg_sync_init=yes
21457 else
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_cv_lib_ogg_ogg_sync_init=no
21464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21465 conftest$ac_exeext conftest.$ac_ext
21466 LIBS=$ac_check_lib_save_LIBS
21468 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21469 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21470 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21471 AST_OGG_FOUND=yes
21472 else
21473 AST_OGG_FOUND=no
21477 if test "${AST_OGG_FOUND}" = "yes"; then
21478 OGG_LIB="-logg "
21479 OGG_HEADER_FOUND="1"
21480 if test "x${OGG_DIR}" != "x"; then
21481 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21482 OGG_INCLUDE="-I${OGG_DIR}/include"
21483 if test "x" != "x" ; then
21484 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21487 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21489 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 ac_res=`eval echo '${'$as_ac_Header'}'`
21492 { echo "$as_me:$LINENO: result: $ac_res" >&5
21493 echo "${ECHO_T}$ac_res" >&6; }
21494 else
21495 # Is the header compilable?
21496 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21497 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h. */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 $ac_includes_default
21505 #include <${OGG_DIR}/include/>
21506 _ACEOF
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_compile") 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21522 { (case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_try") 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; } &&
21531 { ac_try='test -s conftest.$ac_objext'
21532 { (case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21535 esac
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_try") 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_header_compiler=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_compiler=no
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21551 echo "${ECHO_T}$ac_header_compiler" >&6; }
21553 # Is the header present?
21554 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21555 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h. */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 #include <${OGG_DIR}/include/>
21563 _ACEOF
21564 if { (ac_try="$ac_cpp conftest.$ac_ext"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } >/dev/null; then
21577 if test -s conftest.err; then
21578 ac_cpp_err=$ac_c_preproc_warn_flag
21579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21580 else
21581 ac_cpp_err=
21583 else
21584 ac_cpp_err=yes
21586 if test -z "$ac_cpp_err"; then
21587 ac_header_preproc=yes
21588 else
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21601 yes:no: )
21602 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21603 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21605 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21606 ac_header_preproc=yes
21608 no:yes:* )
21609 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21610 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21612 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21614 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21616 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21618 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21620 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21623 esac
21624 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21625 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629 eval "$as_ac_Header=\$ac_header_preproc"
21631 ac_res=`eval echo '${'$as_ac_Header'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21637 OGG_HEADER_FOUND=1
21638 else
21639 OGG_HEADER_FOUND=0
21644 else
21645 if test "x" != "x" ; then
21646 if test "${ac_cv_header_+set}" = set; then
21647 { echo "$as_me:$LINENO: checking for " >&5
21648 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21649 if test "${ac_cv_header_+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21653 echo "${ECHO_T}$ac_cv_header_" >&6; }
21654 else
21655 # Is the header compilable?
21656 { echo "$as_me:$LINENO: checking usability" >&5
21657 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h. */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 $ac_includes_default
21665 #include <>
21666 _ACEOF
21667 rm -f conftest.$ac_objext
21668 if { (ac_try="$ac_compile"
21669 case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21672 esac
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_compile") 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21682 { (case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_try") 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
21692 { (case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_try") 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_header_compiler=yes
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking presence" >&5
21715 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <>
21723 _ACEOF
21724 if { (ac_try="$ac_cpp conftest.$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } >/dev/null; then
21737 if test -s conftest.err; then
21738 ac_cpp_err=$ac_c_preproc_warn_flag
21739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21740 else
21741 ac_cpp_err=
21743 else
21744 ac_cpp_err=yes
21746 if test -z "$ac_cpp_err"; then
21747 ac_header_preproc=yes
21748 else
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ac_header_preproc=no
21755 rm -f conftest.err conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21757 echo "${ECHO_T}$ac_header_preproc" >&6; }
21759 # So? What about this header?
21760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21761 yes:no: )
21762 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21763 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21765 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21766 ac_header_preproc=yes
21768 no:yes:* )
21769 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21770 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21772 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21774 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21776 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21778 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21780 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21783 esac
21784 { echo "$as_me:$LINENO: checking for " >&5
21785 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21786 if test "${ac_cv_header_+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 ac_cv_header_=$ac_header_preproc
21791 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21792 echo "${ECHO_T}$ac_cv_header_" >&6; }
21795 if test $ac_cv_header_ = yes; then
21796 OGG_HEADER_FOUND=1
21797 else
21798 OGG_HEADER_FOUND=0
21804 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21805 if test ! -z "${OGG_MANDATORY}" ;
21806 then
21807 { echo "$as_me:$LINENO: ***" >&5
21808 echo "$as_me: ***" >&6;}
21809 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21810 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21811 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support" >&5
21812 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&or re-run configure;}
21813 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21814 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21815 exit 1
21817 OGG_LIB=""
21818 OGG_INCLUDE=""
21819 PBX_OGG=0
21820 else
21821 PBX_OGG=1
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_OGG 1
21825 _ACEOF
21828 elif test ! -z "${OGG_MANDATORY}";
21829 then
21830 { echo "$as_me:$LINENO: ***" >&5
21831 echo "$as_me: ***" >&6;}
21832 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21833 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21834 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21835 echo "$as_me: *** Either correct the installation" >&or run configure;}
21836 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21837 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21838 exit 1
21844 if test "${USE_OSPTK}" != "no"; then
21845 pbxlibdir=""
21846 if test "x${OSPTK_DIR}" != "x"; then
21847 if test -d ${OSPTK_DIR}/lib; then
21848 pbxlibdir="-L${OSPTK_DIR}/lib"
21849 else
21850 pbxlibdir="-L${OSPTK_DIR}"
21853 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21854 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21855 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char OSPPCryptoDecrypt ();
21875 main ()
21877 return OSPPCryptoDecrypt ();
21879 return 0;
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } &&
21896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21897 { (case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_try") 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest$ac_exeext'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21925 conftest$ac_exeext conftest.$ac_ext
21926 LIBS=$ac_check_lib_save_LIBS
21928 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21929 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21930 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21931 AST_OSPTK_FOUND=yes
21932 else
21933 AST_OSPTK_FOUND=no
21937 if test "${AST_OSPTK_FOUND}" = "yes"; then
21938 OSPTK_LIB="-losptk -lcrypto -lssl"
21939 OSPTK_HEADER_FOUND="1"
21940 if test "x${OSPTK_DIR}" != "x"; then
21941 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21942 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21943 if test "xosp/osp.h" != "x" ; then
21944 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21947 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 ac_res=`eval echo '${'$as_ac_Header'}'`
21952 { echo "$as_me:$LINENO: result: $ac_res" >&5
21953 echo "${ECHO_T}$ac_res" >&6; }
21954 else
21955 # Is the header compilable?
21956 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21957 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 #include <${OSPTK_DIR}/include/osp/osp.h>
21966 _ACEOF
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_compile") 2>conftest.er1
21975 ac_status=$?
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } &&
21981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest.$ac_objext'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_header_compiler=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_header_compiler=no
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22011 echo "${ECHO_T}$ac_header_compiler" >&6; }
22013 # Is the header present?
22014 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
22015 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h. */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 #include <${OSPTK_DIR}/include/osp/osp.h>
22023 _ACEOF
22024 if { (ac_try="$ac_cpp conftest.$ac_ext"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } >/dev/null; then
22037 if test -s conftest.err; then
22038 ac_cpp_err=$ac_c_preproc_warn_flag
22039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22040 else
22041 ac_cpp_err=
22043 else
22044 ac_cpp_err=yes
22046 if test -z "$ac_cpp_err"; then
22047 ac_header_preproc=yes
22048 else
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_header_preproc=no
22055 rm -f conftest.err conftest.$ac_ext
22056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22057 echo "${ECHO_T}$ac_header_preproc" >&6; }
22059 # So? What about this header?
22060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22061 yes:no: )
22062 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
22063 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
22065 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
22066 ac_header_preproc=yes
22068 no:yes:* )
22069 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
22070 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
22072 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
22074 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
22076 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
22078 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
22080 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
22083 esac
22084 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
22085 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
22086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 else
22089 eval "$as_ac_Header=\$ac_header_preproc"
22091 ac_res=`eval echo '${'$as_ac_Header'}'`
22092 { echo "$as_me:$LINENO: result: $ac_res" >&5
22093 echo "${ECHO_T}$ac_res" >&6; }
22096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22097 OSPTK_HEADER_FOUND=1
22098 else
22099 OSPTK_HEADER_FOUND=0
22104 else
22105 if test "xosp/osp.h" != "x" ; then
22106 if test "${ac_cv_header_osp_osp_h+set}" = set; then
22107 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
22108 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_osp_osp_h+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
22113 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
22114 else
22115 # Is the header compilable?
22116 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
22117 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h. */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22125 #include <osp/osp.h>
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142 { (case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_try") 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_try") 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_header_compiler=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_header_compiler=no
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22171 echo "${ECHO_T}$ac_header_compiler" >&6; }
22173 # Is the header present?
22174 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
22175 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 #include <osp/osp.h>
22183 _ACEOF
22184 if { (ac_try="$ac_cpp conftest.$ac_ext"
22185 case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22191 ac_status=$?
22192 grep -v '^ *+' conftest.er1 >conftest.err
22193 rm -f conftest.er1
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } >/dev/null; then
22197 if test -s conftest.err; then
22198 ac_cpp_err=$ac_c_preproc_warn_flag
22199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22200 else
22201 ac_cpp_err=
22203 else
22204 ac_cpp_err=yes
22206 if test -z "$ac_cpp_err"; then
22207 ac_header_preproc=yes
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_header_preproc=no
22215 rm -f conftest.err conftest.$ac_ext
22216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 echo "${ECHO_T}$ac_header_preproc" >&6; }
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 yes:no: )
22222 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
22223 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
22225 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc=yes
22228 no:yes:* )
22229 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
22230 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
22232 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
22234 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
22236 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
22238 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
22240 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
22243 esac
22244 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
22245 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
22246 if test "${ac_cv_header_osp_osp_h+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249 ac_cv_header_osp_osp_h=$ac_header_preproc
22251 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
22252 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
22255 if test $ac_cv_header_osp_osp_h = yes; then
22256 OSPTK_HEADER_FOUND=1
22257 else
22258 OSPTK_HEADER_FOUND=0
22264 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
22265 if test ! -z "${OSPTK_MANDATORY}" ;
22266 then
22267 { echo "$as_me:$LINENO: ***" >&5
22268 echo "$as_me: ***" >&6;}
22269 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
22270 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
22271 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
22272 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&or re-run configure;}
22273 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22274 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22275 exit 1
22277 OSPTK_LIB=""
22278 OSPTK_INCLUDE=""
22279 PBX_OSPTK=0
22280 else
22281 PBX_OSPTK=1
22283 cat >>confdefs.h <<_ACEOF
22284 #define HAVE_OSPTK 1
22285 _ACEOF
22288 elif test ! -z "${OSPTK_MANDATORY}";
22289 then
22290 { echo "$as_me:$LINENO: ***" >&5
22291 echo "$as_me: ***" >&6;}
22292 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
22293 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
22294 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22295 echo "$as_me: *** Either correct the installation" >&or run configure;}
22296 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22297 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22298 exit 1
22303 PBX_OSS=0
22304 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22305 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22306 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22307 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22311 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22312 else
22313 # Is the header compilable?
22314 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22315 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h. */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 $ac_includes_default
22323 #include <linux/soundcard.h>
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (ac_try="$ac_compile"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_compile") 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
22339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22340 { (case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_try") 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; } &&
22349 { ac_try='test -s conftest.$ac_objext'
22350 { (case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_try") 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_header_compiler=yes
22360 else
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_header_compiler=no
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22369 echo "${ECHO_T}$ac_header_compiler" >&6; }
22371 # Is the header present?
22372 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22373 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22374 cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h. */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 #include <linux/soundcard.h>
22381 _ACEOF
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22389 ac_status=$?
22390 grep -v '^ *+' conftest.er1 >conftest.err
22391 rm -f conftest.er1
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } >/dev/null; then
22395 if test -s conftest.err; then
22396 ac_cpp_err=$ac_c_preproc_warn_flag
22397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22398 else
22399 ac_cpp_err=
22401 else
22402 ac_cpp_err=yes
22404 if test -z "$ac_cpp_err"; then
22405 ac_header_preproc=yes
22406 else
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_header_preproc=no
22413 rm -f conftest.err conftest.$ac_ext
22414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22415 echo "${ECHO_T}$ac_header_preproc" >&6; }
22417 # So? What about this header?
22418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22419 yes:no: )
22420 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22421 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22423 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22424 ac_header_preproc=yes
22426 no:yes:* )
22427 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22428 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22429 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22430 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22431 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22432 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22434 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22436 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22438 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22441 esac
22442 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22443 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22444 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22449 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22450 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22453 if test $ac_cv_header_linux_soundcard_h = yes; then
22455 PBX_OSS=1
22457 cat >>confdefs.h <<_ACEOF
22458 #define HAVE_OSS 1
22459 _ACEOF
22465 if test "$PBX_OSS" = "0"; then
22466 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22467 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22468 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22469 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22473 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22474 else
22475 # Is the header compilable?
22476 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22477 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22478 cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h. */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 #include <sys/soundcard.h>
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } &&
22501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22502 { (case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_try") 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; } &&
22511 { ac_try='test -s conftest.$ac_objext'
22512 { (case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_try") 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_header_compiler=yes
22522 else
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ac_header_compiler=no
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22531 echo "${ECHO_T}$ac_header_compiler" >&6; }
22533 # Is the header present?
22534 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22535 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h. */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <sys/soundcard.h>
22543 _ACEOF
22544 if { (ac_try="$ac_cpp conftest.$ac_ext"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } >/dev/null; then
22557 if test -s conftest.err; then
22558 ac_cpp_err=$ac_c_preproc_warn_flag
22559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22560 else
22561 ac_cpp_err=
22563 else
22564 ac_cpp_err=yes
22566 if test -z "$ac_cpp_err"; then
22567 ac_header_preproc=yes
22568 else
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_header_preproc=no
22575 rm -f conftest.err conftest.$ac_ext
22576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22577 echo "${ECHO_T}$ac_header_preproc" >&6; }
22579 # So? What about this header?
22580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22581 yes:no: )
22582 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22583 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22585 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22586 ac_header_preproc=yes
22588 no:yes:* )
22589 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22590 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22591 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22592 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22593 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22594 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22595 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22596 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22597 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22598 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22600 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22603 esac
22604 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22605 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22606 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608 else
22609 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22611 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22612 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22615 if test $ac_cv_header_sys_soundcard_h = yes; then
22617 PBX_OSS=1
22619 cat >>confdefs.h <<_ACEOF
22620 #define HAVE_OSS 1
22621 _ACEOF
22628 if test "$PBX_OSS" = "0"; then
22630 if test "${USE_OSS}" != "no"; then
22631 pbxlibdir=""
22632 if test "x${OSS_DIR}" != "x"; then
22633 if test -d ${OSS_DIR}/lib; then
22634 pbxlibdir="-L${OSS_DIR}/lib"
22635 else
22636 pbxlibdir="-L${OSS_DIR}"
22639 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22640 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22641 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644 ac_check_lib_save_LIBS=$LIBS
22645 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22653 /* Override any GCC internal prototype to avoid an error.
22654 Use char because int might match the return type of a GCC
22655 builtin and then its argument prototype would still apply. */
22656 #ifdef __cplusplus
22657 extern "C"
22658 #endif
22659 char oss_ioctl_mixer ();
22661 main ()
22663 return oss_ioctl_mixer ();
22665 return 0;
22667 _ACEOF
22668 rm -f conftest.$ac_objext conftest$ac_exeext
22669 if { (ac_try="$ac_link"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_link") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22683 { (case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_try") 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest$ac_exeext'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696 esac
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711 conftest$ac_exeext conftest.$ac_ext
22712 LIBS=$ac_check_lib_save_LIBS
22714 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22715 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22716 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22717 AST_OSS_FOUND=yes
22718 else
22719 AST_OSS_FOUND=no
22723 if test "${AST_OSS_FOUND}" = "yes"; then
22724 OSS_LIB="-lossaudio "
22725 OSS_HEADER_FOUND="1"
22726 if test "x${OSS_DIR}" != "x"; then
22727 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22728 OSS_INCLUDE="-I${OSS_DIR}/include"
22729 if test "xsoundcard.h" != "x" ; then
22730 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
22731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22732 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22733 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 ac_res=`eval echo '${'$as_ac_Header'}'`
22738 { echo "$as_me:$LINENO: result: $ac_res" >&5
22739 echo "${ECHO_T}$ac_res" >&6; }
22740 else
22741 # Is the header compilable?
22742 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22743 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22744 cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h. */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 $ac_includes_default
22751 #include <${OSS_DIR}/include/soundcard.h>
22752 _ACEOF
22753 rm -f conftest.$ac_objext
22754 if { (ac_try="$ac_compile"
22755 case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22758 esac
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_compile") 2>conftest.er1
22761 ac_status=$?
22762 grep -v '^ *+' conftest.er1 >conftest.err
22763 rm -f conftest.er1
22764 cat conftest.err >&5
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } &&
22767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22768 { (case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_try") 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; } &&
22777 { ac_try='test -s conftest.$ac_objext'
22778 { (case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_try") 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 ac_header_compiler=yes
22788 else
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 ac_header_compiler=no
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22797 echo "${ECHO_T}$ac_header_compiler" >&6; }
22799 # Is the header present?
22800 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22801 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22802 cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 #include <${OSS_DIR}/include/soundcard.h>
22809 _ACEOF
22810 if { (ac_try="$ac_cpp conftest.$ac_ext"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22817 ac_status=$?
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } >/dev/null; then
22823 if test -s conftest.err; then
22824 ac_cpp_err=$ac_c_preproc_warn_flag
22825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22826 else
22827 ac_cpp_err=
22829 else
22830 ac_cpp_err=yes
22832 if test -z "$ac_cpp_err"; then
22833 ac_header_preproc=yes
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_header_preproc=no
22841 rm -f conftest.err conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22843 echo "${ECHO_T}$ac_header_preproc" >&6; }
22845 # So? What about this header?
22846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22847 yes:no: )
22848 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22849 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22851 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22852 ac_header_preproc=yes
22854 no:yes:* )
22855 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22856 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22858 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22859 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22860 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22862 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22864 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22866 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22869 esac
22870 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22871 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875 eval "$as_ac_Header=\$ac_header_preproc"
22877 ac_res=`eval echo '${'$as_ac_Header'}'`
22878 { echo "$as_me:$LINENO: result: $ac_res" >&5
22879 echo "${ECHO_T}$ac_res" >&6; }
22882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22883 OSS_HEADER_FOUND=1
22884 else
22885 OSS_HEADER_FOUND=0
22890 else
22891 if test "xsoundcard.h" != "x" ; then
22892 if test "${ac_cv_header_soundcard_h+set}" = set; then
22893 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22894 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22895 if test "${ac_cv_header_soundcard_h+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22899 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22900 else
22901 # Is the header compilable?
22902 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22903 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h. */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 #include <soundcard.h>
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
22927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22928 { (case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_try") 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); }; } &&
22937 { ac_try='test -s conftest.$ac_objext'
22938 { (case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943 (eval "$ac_try") 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 ac_header_compiler=yes
22948 else
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_header_compiler=no
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22957 echo "${ECHO_T}$ac_header_compiler" >&6; }
22959 # Is the header present?
22960 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22961 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <soundcard.h>
22969 _ACEOF
22970 if { (ac_try="$ac_cpp conftest.$ac_ext"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } >/dev/null; then
22983 if test -s conftest.err; then
22984 ac_cpp_err=$ac_c_preproc_warn_flag
22985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22986 else
22987 ac_cpp_err=
22989 else
22990 ac_cpp_err=yes
22992 if test -z "$ac_cpp_err"; then
22993 ac_header_preproc=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_preproc=no
23001 rm -f conftest.err conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23003 echo "${ECHO_T}$ac_header_preproc" >&6; }
23005 # So? What about this header?
23006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23007 yes:no: )
23008 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23009 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
23011 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
23012 ac_header_preproc=yes
23014 no:yes:* )
23015 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
23016 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
23017 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
23018 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
23019 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
23020 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
23021 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23022 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23023 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
23024 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
23026 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
23029 esac
23030 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23031 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23032 if test "${ac_cv_header_soundcard_h+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035 ac_cv_header_soundcard_h=$ac_header_preproc
23037 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23038 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23041 if test $ac_cv_header_soundcard_h = yes; then
23042 OSS_HEADER_FOUND=1
23043 else
23044 OSS_HEADER_FOUND=0
23050 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
23051 if test ! -z "${OSS_MANDATORY}" ;
23052 then
23053 { echo "$as_me:$LINENO: ***" >&5
23054 echo "$as_me: ***" >&6;}
23055 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
23056 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
23057 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support" >&5
23058 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&or re-run configure;}
23059 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23060 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23061 exit 1
23063 OSS_LIB=""
23064 OSS_INCLUDE=""
23065 PBX_OSS=0
23066 else
23067 PBX_OSS=1
23069 cat >>confdefs.h <<_ACEOF
23070 #define HAVE_OSS 1
23071 _ACEOF
23074 elif test ! -z "${OSS_MANDATORY}";
23075 then
23076 { echo "$as_me:$LINENO: ***" >&5
23077 echo "$as_me: ***" >&6;}
23078 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23079 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23080 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23081 echo "$as_me: *** Either correct the installation" >&or run configure;}
23082 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23083 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23084 exit 1
23090 PG_CONFIG=No
23091 if test "${USE_PGSQL}" != "no"; then
23092 if test "x${PGSQL_DIR}" != "x"; then
23093 if test -n "$ac_tool_prefix"; then
23094 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23095 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23098 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101 case $PG_CONFIG in
23102 [\\/]* | ?:[\\/]*)
23103 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23107 for as_dir in ${PGSQL_DIR}/bin
23109 IFS=$as_save_IFS
23110 test -z "$as_dir" && as_dir=.
23111 for ac_exec_ext in '' $ac_executable_extensions; do
23112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23113 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23115 break 2
23117 done
23118 done
23119 IFS=$as_save_IFS
23122 esac
23124 PG_CONFIG=$ac_cv_path_PG_CONFIG
23125 if test -n "$PG_CONFIG"; then
23126 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23127 echo "${ECHO_T}$PG_CONFIG" >&6; }
23128 else
23129 { echo "$as_me:$LINENO: result: no" >&5
23130 echo "${ECHO_T}no" >&6; }
23135 if test -z "$ac_cv_path_PG_CONFIG"; then
23136 ac_pt_PG_CONFIG=$PG_CONFIG
23137 # Extract the first word of "pg_config", so it can be a program name with args.
23138 set dummy pg_config; ac_word=$2
23139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23141 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23142 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 else
23144 case $ac_pt_PG_CONFIG in
23145 [\\/]* | ?:[\\/]*)
23146 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23150 for as_dir in ${PGSQL_DIR}/bin
23152 IFS=$as_save_IFS
23153 test -z "$as_dir" && as_dir=.
23154 for ac_exec_ext in '' $ac_executable_extensions; do
23155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23156 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23158 break 2
23160 done
23161 done
23162 IFS=$as_save_IFS
23165 esac
23167 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23168 if test -n "$ac_pt_PG_CONFIG"; then
23169 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23170 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23171 else
23172 { echo "$as_me:$LINENO: result: no" >&5
23173 echo "${ECHO_T}no" >&6; }
23176 if test "x$ac_pt_PG_CONFIG" = x; then
23177 PG_CONFIG="No"
23178 else
23179 case $cross_compiling:$ac_tool_warned in
23180 yes:)
23181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23182 whose name does not start with the host triplet. If you think this
23183 configuration is useful to you, please write to autoconf@gnu.org." >&5
23184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23185 whose name does not start with the host triplet. If you think this
23186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23187 ac_tool_warned=yes ;;
23188 esac
23189 PG_CONFIG=$ac_pt_PG_CONFIG
23191 else
23192 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23195 if test x"${PG_CONFIG}" = xNo; then
23196 { echo "$as_me:$LINENO: ***" >&5
23197 echo "$as_me: ***" >&6;}
23198 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23199 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23200 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23201 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23202 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23203 echo "$as_me: *** Either correct the installation" >&or run configure;}
23204 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23205 echo "$as_me: *** including --without-postgres" >&6;}
23206 exit 1
23208 else
23209 if test -n "$ac_tool_prefix"; then
23210 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23211 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23214 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 else
23217 case $PG_CONFIG in
23218 [\\/]* | ?:[\\/]*)
23219 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23223 for as_dir in $PATH
23225 IFS=$as_save_IFS
23226 test -z "$as_dir" && as_dir=.
23227 for ac_exec_ext in '' $ac_executable_extensions; do
23228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23229 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23231 break 2
23233 done
23234 done
23235 IFS=$as_save_IFS
23238 esac
23240 PG_CONFIG=$ac_cv_path_PG_CONFIG
23241 if test -n "$PG_CONFIG"; then
23242 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23243 echo "${ECHO_T}$PG_CONFIG" >&6; }
23244 else
23245 { echo "$as_me:$LINENO: result: no" >&5
23246 echo "${ECHO_T}no" >&6; }
23251 if test -z "$ac_cv_path_PG_CONFIG"; then
23252 ac_pt_PG_CONFIG=$PG_CONFIG
23253 # Extract the first word of "pg_config", so it can be a program name with args.
23254 set dummy pg_config; ac_word=$2
23255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23257 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23259 else
23260 case $ac_pt_PG_CONFIG in
23261 [\\/]* | ?:[\\/]*)
23262 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23268 IFS=$as_save_IFS
23269 test -z "$as_dir" && as_dir=.
23270 for ac_exec_ext in '' $ac_executable_extensions; do
23271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23272 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23274 break 2
23276 done
23277 done
23278 IFS=$as_save_IFS
23281 esac
23283 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23284 if test -n "$ac_pt_PG_CONFIG"; then
23285 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23286 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23287 else
23288 { echo "$as_me:$LINENO: result: no" >&5
23289 echo "${ECHO_T}no" >&6; }
23292 if test "x$ac_pt_PG_CONFIG" = x; then
23293 PG_CONFIG="No"
23294 else
23295 case $cross_compiling:$ac_tool_warned in
23296 yes:)
23297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23298 whose name does not start with the host triplet. If you think this
23299 configuration is useful to you, please write to autoconf@gnu.org." >&5
23300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23301 whose name does not start with the host triplet. If you think this
23302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23303 ac_tool_warned=yes ;;
23304 esac
23305 PG_CONFIG=$ac_pt_PG_CONFIG
23307 else
23308 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23313 if test "${PG_CONFIG}" != No; then
23314 PGSQL_libdir=`pg_config --libdir`
23315 PGSQL_includedir=`pg_config --includedir`
23317 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23318 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23319 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 ac_check_lib_save_LIBS=$LIBS
23323 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23324 cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h. */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23331 /* Override any GCC internal prototype to avoid an error.
23332 Use char because int might match the return type of a GCC
23333 builtin and then its argument prototype would still apply. */
23334 #ifdef __cplusplus
23335 extern "C"
23336 #endif
23337 char PQexec ();
23339 main ()
23341 return PQexec ();
23343 return 0;
23345 _ACEOF
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23351 esac
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>conftest.er1
23354 ac_status=$?
23355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
23360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23361 { (case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366 (eval "$ac_try") 2>&5
23367 ac_status=$?
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; } &&
23370 { ac_try='test -s conftest$ac_exeext'
23371 { (case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_try") 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; }; then
23380 ac_cv_lib_pq_PQexec=yes
23381 else
23382 echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23385 ac_cv_lib_pq_PQexec=no
23388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23389 conftest$ac_exeext conftest.$ac_ext
23390 LIBS=$ac_check_lib_save_LIBS
23392 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23393 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23394 if test $ac_cv_lib_pq_PQexec = yes; then
23396 cat >>confdefs.h <<_ACEOF
23397 #define HAVE_PGSQL 1
23398 _ACEOF
23403 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23404 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23405 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23406 PBX_PGSQL=1
23407 elif test ! -z "${PGSQL_MANDATORY}";
23408 then
23409 { echo "$as_me:$LINENO: ***" >&5
23410 echo "$as_me: ***" >&6;}
23411 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23412 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23413 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23414 echo "$as_me: *** Either correct the installation" >&or run configure;}
23415 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23416 echo "$as_me: *** including --without-postgres" >&6;}
23417 exit 1
23419 elif test ! -z "${PGSQL_MANDATORY}";
23420 then
23421 { echo "$as_me:$LINENO: ***" >&5
23422 echo "$as_me: ***" >&6;}
23423 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23424 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23425 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23426 echo "$as_me: *** Either correct the installation" >&or run configure;}
23427 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23428 echo "$as_me: *** including --without-postgres" >&6;}
23429 exit 1
23433 if test "${USE_POPT}" != "no"; then
23434 pbxlibdir=""
23435 if test "x${POPT_DIR}" != "x"; then
23436 if test -d ${POPT_DIR}/lib; then
23437 pbxlibdir="-L${POPT_DIR}/lib"
23438 else
23439 pbxlibdir="-L${POPT_DIR}"
23442 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23443 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23444 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447 ac_check_lib_save_LIBS=$LIBS
23448 LIBS="-lpopt ${pbxlibdir} $LIBS"
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23456 /* Override any GCC internal prototype to avoid an error.
23457 Use char because int might match the return type of a GCC
23458 builtin and then its argument prototype would still apply. */
23459 #ifdef __cplusplus
23460 extern "C"
23461 #endif
23462 char poptStrerror ();
23464 main ()
23466 return poptStrerror ();
23468 return 0;
23470 _ACEOF
23471 rm -f conftest.$ac_objext conftest$ac_exeext
23472 if { (ac_try="$ac_link"
23473 case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_link") 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23486 { (case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_try") 2>&5
23492 ac_status=$?
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); }; } &&
23495 { ac_try='test -s conftest$ac_exeext'
23496 { (case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_try") 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_lib_popt_poptStrerror=yes
23506 else
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23510 ac_cv_lib_popt_poptStrerror=no
23513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23514 conftest$ac_exeext conftest.$ac_ext
23515 LIBS=$ac_check_lib_save_LIBS
23517 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23518 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23519 if test $ac_cv_lib_popt_poptStrerror = yes; then
23520 AST_POPT_FOUND=yes
23521 else
23522 AST_POPT_FOUND=no
23526 if test "${AST_POPT_FOUND}" = "yes"; then
23527 POPT_LIB="-lpopt "
23528 POPT_HEADER_FOUND="1"
23529 if test "x${POPT_DIR}" != "x"; then
23530 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23531 POPT_INCLUDE="-I${POPT_DIR}/include"
23532 if test "xpopt.h" != "x" ; then
23533 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
23534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23535 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23536 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 ac_res=`eval echo '${'$as_ac_Header'}'`
23541 { echo "$as_me:$LINENO: result: $ac_res" >&5
23542 echo "${ECHO_T}$ac_res" >&6; }
23543 else
23544 # Is the header compilable?
23545 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23546 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23547 cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h. */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23553 $ac_includes_default
23554 #include <${POPT_DIR}/include/popt.h>
23555 _ACEOF
23556 rm -f conftest.$ac_objext
23557 if { (ac_try="$ac_compile"
23558 case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23561 esac
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_compile") 2>conftest.er1
23564 ac_status=$?
23565 grep -v '^ *+' conftest.er1 >conftest.err
23566 rm -f conftest.er1
23567 cat conftest.err >&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } &&
23570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23571 { (case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_try") 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest.$ac_objext'
23581 { (case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23584 esac
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_try") 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
23590 ac_header_compiler=yes
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_header_compiler=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23600 echo "${ECHO_T}$ac_header_compiler" >&6; }
23602 # Is the header present?
23603 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23604 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 #include <${POPT_DIR}/include/popt.h>
23612 _ACEOF
23613 if { (ac_try="$ac_cpp conftest.$ac_ext"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23620 ac_status=$?
23621 grep -v '^ *+' conftest.er1 >conftest.err
23622 rm -f conftest.er1
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } >/dev/null; then
23626 if test -s conftest.err; then
23627 ac_cpp_err=$ac_c_preproc_warn_flag
23628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23629 else
23630 ac_cpp_err=
23632 else
23633 ac_cpp_err=yes
23635 if test -z "$ac_cpp_err"; then
23636 ac_header_preproc=yes
23637 else
23638 echo "$as_me: failed program was:" >&5
23639 sed 's/^/| /' conftest.$ac_ext >&5
23641 ac_header_preproc=no
23644 rm -f conftest.err conftest.$ac_ext
23645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23646 echo "${ECHO_T}$ac_header_preproc" >&6; }
23648 # So? What about this header?
23649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23650 yes:no: )
23651 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23652 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23653 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23654 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23655 ac_header_preproc=yes
23657 no:yes:* )
23658 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23659 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23660 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23661 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23662 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23663 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23664 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23665 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23666 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23667 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23668 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23669 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23672 esac
23673 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23674 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678 eval "$as_ac_Header=\$ac_header_preproc"
23680 ac_res=`eval echo '${'$as_ac_Header'}'`
23681 { echo "$as_me:$LINENO: result: $ac_res" >&5
23682 echo "${ECHO_T}$ac_res" >&6; }
23685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23686 POPT_HEADER_FOUND=1
23687 else
23688 POPT_HEADER_FOUND=0
23693 else
23694 if test "xpopt.h" != "x" ; then
23695 if test "${ac_cv_header_popt_h+set}" = set; then
23696 { echo "$as_me:$LINENO: checking for popt.h" >&5
23697 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23698 if test "${ac_cv_header_popt_h+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23702 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23703 else
23704 # Is the header compilable?
23705 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23706 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23707 cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h. */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 $ac_includes_default
23714 #include <popt.h>
23715 _ACEOF
23716 rm -f conftest.$ac_objext
23717 if { (ac_try="$ac_compile"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_compile") 2>conftest.er1
23724 ac_status=$?
23725 grep -v '^ *+' conftest.er1 >conftest.err
23726 rm -f conftest.er1
23727 cat conftest.err >&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } &&
23730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23731 { (case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_try") 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest.$ac_objext'
23741 { (case "(($ac_try" in
23742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23743 *) ac_try_echo=$ac_try;;
23744 esac
23745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23746 (eval "$ac_try") 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ac_header_compiler=yes
23751 else
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ac_header_compiler=no
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23760 echo "${ECHO_T}$ac_header_compiler" >&6; }
23762 # Is the header present?
23763 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23764 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23765 cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h. */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 #include <popt.h>
23772 _ACEOF
23773 if { (ac_try="$ac_cpp conftest.$ac_ext"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23780 ac_status=$?
23781 grep -v '^ *+' conftest.er1 >conftest.err
23782 rm -f conftest.er1
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } >/dev/null; then
23786 if test -s conftest.err; then
23787 ac_cpp_err=$ac_c_preproc_warn_flag
23788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23789 else
23790 ac_cpp_err=
23792 else
23793 ac_cpp_err=yes
23795 if test -z "$ac_cpp_err"; then
23796 ac_header_preproc=yes
23797 else
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 ac_header_preproc=no
23804 rm -f conftest.err conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23806 echo "${ECHO_T}$ac_header_preproc" >&6; }
23808 # So? What about this header?
23809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23810 yes:no: )
23811 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23812 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23813 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23814 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23815 ac_header_preproc=yes
23817 no:yes:* )
23818 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23819 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23821 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23822 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23823 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23824 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23825 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23826 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23827 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23829 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23832 esac
23833 { echo "$as_me:$LINENO: checking for popt.h" >&5
23834 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23835 if test "${ac_cv_header_popt_h+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 else
23838 ac_cv_header_popt_h=$ac_header_preproc
23840 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23841 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23844 if test $ac_cv_header_popt_h = yes; then
23845 POPT_HEADER_FOUND=1
23846 else
23847 POPT_HEADER_FOUND=0
23853 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23854 if test ! -z "${POPT_MANDATORY}" ;
23855 then
23856 { echo "$as_me:$LINENO: ***" >&5
23857 echo "$as_me: ***" >&6;}
23858 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23859 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23860 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support" >&5
23861 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&or re-run configure;}
23862 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23863 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23864 exit 1
23866 POPT_LIB=""
23867 POPT_INCLUDE=""
23868 PBX_POPT=0
23869 else
23870 PBX_POPT=1
23872 cat >>confdefs.h <<_ACEOF
23873 #define HAVE_POPT 1
23874 _ACEOF
23877 elif test ! -z "${POPT_MANDATORY}";
23878 then
23879 { echo "$as_me:$LINENO: ***" >&5
23880 echo "$as_me: ***" >&6;}
23881 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23882 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23883 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23884 echo "$as_me: *** Either correct the installation" >&or run configure;}
23885 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23886 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23887 exit 1
23893 if test "${USE_PRI}" != "no"; then
23894 pbxlibdir=""
23895 if test "x${PRI_DIR}" != "x"; then
23896 if test -d ${PRI_DIR}/lib; then
23897 pbxlibdir="-L${PRI_DIR}/lib"
23898 else
23899 pbxlibdir="-L${PRI_DIR}"
23902 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23903 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23904 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 else
23907 ac_check_lib_save_LIBS=$LIBS
23908 LIBS="-lpri ${pbxlibdir} $LIBS"
23909 cat >conftest.$ac_ext <<_ACEOF
23910 /* confdefs.h. */
23911 _ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h. */
23916 /* Override any GCC internal prototype to avoid an error.
23917 Use char because int might match the return type of a GCC
23918 builtin and then its argument prototype would still apply. */
23919 #ifdef __cplusplus
23920 extern "C"
23921 #endif
23922 char pri_call ();
23924 main ()
23926 return pri_call ();
23928 return 0;
23930 _ACEOF
23931 rm -f conftest.$ac_objext conftest$ac_exeext
23932 if { (ac_try="$ac_link"
23933 case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23936 esac
23937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23938 (eval "$ac_link") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } &&
23945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23946 { (case "(($ac_try" in
23947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948 *) ac_try_echo=$ac_try;;
23949 esac
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951 (eval "$ac_try") 2>&5
23952 ac_status=$?
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; } &&
23955 { ac_try='test -s conftest$ac_exeext'
23956 { (case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_try") 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 ac_cv_lib_pri_pri_call=yes
23966 else
23967 echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23970 ac_cv_lib_pri_pri_call=no
23973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23974 conftest$ac_exeext conftest.$ac_ext
23975 LIBS=$ac_check_lib_save_LIBS
23977 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23978 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23979 if test $ac_cv_lib_pri_pri_call = yes; then
23980 AST_PRI_FOUND=yes
23981 else
23982 AST_PRI_FOUND=no
23986 if test "${AST_PRI_FOUND}" = "yes"; then
23987 PRI_LIB="-lpri "
23988 PRI_HEADER_FOUND="1"
23989 if test "x${PRI_DIR}" != "x"; then
23990 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23991 PRI_INCLUDE="-I${PRI_DIR}/include"
23992 if test "xlibpri.h" != "x" ; then
23993 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23995 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23996 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
24000 ac_res=`eval echo '${'$as_ac_Header'}'`
24001 { echo "$as_me:$LINENO: result: $ac_res" >&5
24002 echo "${ECHO_T}$ac_res" >&6; }
24003 else
24004 # Is the header compilable?
24005 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
24006 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
24007 cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h. */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24013 $ac_includes_default
24014 #include <${PRI_DIR}/include/libpri.h>
24015 _ACEOF
24016 rm -f conftest.$ac_objext
24017 if { (ac_try="$ac_compile"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24024 ac_status=$?
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } &&
24030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24031 { (case "(($ac_try" in
24032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033 *) ac_try_echo=$ac_try;;
24034 esac
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036 (eval "$ac_try") 2>&5
24037 ac_status=$?
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; } &&
24040 { ac_try='test -s conftest.$ac_objext'
24041 { (case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044 esac
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_try") 2>&5
24047 ac_status=$?
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 ac_header_compiler=yes
24051 else
24052 echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_header_compiler=no
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24060 echo "${ECHO_T}$ac_header_compiler" >&6; }
24062 # Is the header present?
24063 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
24064 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
24065 cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h. */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24071 #include <${PRI_DIR}/include/libpri.h>
24072 _ACEOF
24073 if { (ac_try="$ac_cpp conftest.$ac_ext"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24080 ac_status=$?
24081 grep -v '^ *+' conftest.er1 >conftest.err
24082 rm -f conftest.er1
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } >/dev/null; then
24086 if test -s conftest.err; then
24087 ac_cpp_err=$ac_c_preproc_warn_flag
24088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24089 else
24090 ac_cpp_err=
24092 else
24093 ac_cpp_err=yes
24095 if test -z "$ac_cpp_err"; then
24096 ac_header_preproc=yes
24097 else
24098 echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ac_header_preproc=no
24104 rm -f conftest.err conftest.$ac_ext
24105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24106 echo "${ECHO_T}$ac_header_preproc" >&6; }
24108 # So? What about this header?
24109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24110 yes:no: )
24111 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24112 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24113 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
24114 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
24115 ac_header_preproc=yes
24117 no:yes:* )
24118 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
24119 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
24120 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
24121 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
24122 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
24123 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24125 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
24127 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
24128 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
24129 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
24132 esac
24133 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24134 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 else
24138 eval "$as_ac_Header=\$ac_header_preproc"
24140 ac_res=`eval echo '${'$as_ac_Header'}'`
24141 { echo "$as_me:$LINENO: result: $ac_res" >&5
24142 echo "${ECHO_T}$ac_res" >&6; }
24145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24146 PRI_HEADER_FOUND=1
24147 else
24148 PRI_HEADER_FOUND=0
24153 else
24154 if test "xlibpri.h" != "x" ; then
24155 if test "${ac_cv_header_libpri_h+set}" = set; then
24156 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24157 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24158 if test "${ac_cv_header_libpri_h+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24162 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24163 else
24164 # Is the header compilable?
24165 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24166 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24167 cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h. */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 $ac_includes_default
24174 #include <libpri.h>
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_compile") 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
24190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24191 { (case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_try") 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest.$ac_objext'
24201 { (case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24204 esac
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206 (eval "$ac_try") 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; }; then
24210 ac_header_compiler=yes
24211 else
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 ac_header_compiler=no
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24220 echo "${ECHO_T}$ac_header_compiler" >&6; }
24222 # Is the header present?
24223 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24224 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24225 cat >conftest.$ac_ext <<_ACEOF
24226 /* confdefs.h. */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24231 #include <libpri.h>
24232 _ACEOF
24233 if { (ac_try="$ac_cpp conftest.$ac_ext"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24240 ac_status=$?
24241 grep -v '^ *+' conftest.er1 >conftest.err
24242 rm -f conftest.er1
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } >/dev/null; then
24246 if test -s conftest.err; then
24247 ac_cpp_err=$ac_c_preproc_warn_flag
24248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24249 else
24250 ac_cpp_err=
24252 else
24253 ac_cpp_err=yes
24255 if test -z "$ac_cpp_err"; then
24256 ac_header_preproc=yes
24257 else
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24261 ac_header_preproc=no
24264 rm -f conftest.err conftest.$ac_ext
24265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24266 echo "${ECHO_T}$ac_header_preproc" >&6; }
24268 # So? What about this header?
24269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24270 yes:no: )
24271 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24272 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24273 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24274 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24275 ac_header_preproc=yes
24277 no:yes:* )
24278 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24279 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24280 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24281 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24282 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24283 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24284 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24285 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24286 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24287 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24288 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24289 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24292 esac
24293 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24294 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24295 if test "${ac_cv_header_libpri_h+set}" = set; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 else
24298 ac_cv_header_libpri_h=$ac_header_preproc
24300 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24301 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24304 if test $ac_cv_header_libpri_h = yes; then
24305 PRI_HEADER_FOUND=1
24306 else
24307 PRI_HEADER_FOUND=0
24313 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24314 if test ! -z "${PRI_MANDATORY}" ;
24315 then
24316 { echo "$as_me:$LINENO: ***" >&5
24317 echo "$as_me: ***" >&6;}
24318 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24319 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24320 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support" >&5
24321 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&or re-run configure;}
24322 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24323 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24324 exit 1
24326 PRI_LIB=""
24327 PRI_INCLUDE=""
24328 PBX_PRI=0
24329 else
24330 PBX_PRI=1
24332 cat >>confdefs.h <<_ACEOF
24333 #define HAVE_PRI 1
24334 _ACEOF
24337 elif test ! -z "${PRI_MANDATORY}";
24338 then
24339 { echo "$as_me:$LINENO: ***" >&5
24340 echo "$as_me: ***" >&6;}
24341 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24342 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24343 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24344 echo "$as_me: *** Either correct the installation" >&or run configure;}
24345 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24346 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24347 exit 1
24352 if test "${USE_PWLIB}" != "no"; then
24353 if test ! -z "${PWLIB_DIR}"; then
24354 PWLIBDIR="${PWLIB_DIR}"
24357 PWLIB_INCDIR=
24358 PWLIB_LIBDIR=
24359 if test "${PWLIBDIR:-unset}" != "unset" ; then
24360 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
24361 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24362 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24363 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366 test "$cross_compiling" = yes &&
24367 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24368 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24369 { (exit 1); exit 1; }; }
24370 if test -r "${PWLIBDIR}/version.h"; then
24371 eval "$as_ac_File=yes"
24372 else
24373 eval "$as_ac_File=no"
24376 ac_res=`eval echo '${'$as_ac_File'}'`
24377 { echo "$as_me:$LINENO: result: $ac_res" >&5
24378 echo "${ECHO_T}$ac_res" >&6; }
24379 if test `eval echo '${'$as_ac_File'}'` = yes; then
24380 HAS_PWLIB=1
24384 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24385 if test "${OPENH323DIR:-unset}" != "unset"; then
24386 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24387 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24388 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24389 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24390 echo $ECHO_N "(cached) $ECHO_C" >&6
24391 else
24392 test "$cross_compiling" = yes &&
24393 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24394 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24395 { (exit 1); exit 1; }; }
24396 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
24397 eval "$as_ac_File=yes"
24398 else
24399 eval "$as_ac_File=no"
24402 ac_res=`eval echo '${'$as_ac_File'}'`
24403 { echo "$as_me:$LINENO: result: $ac_res" >&5
24404 echo "${ECHO_T}$ac_res" >&6; }
24405 if test `eval echo '${'$as_ac_File'}'` = yes; then
24406 HAS_PWLIB=1
24410 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24411 PWLIBDIR="${OPENH323DIR}/../pwlib"
24412 else
24413 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24414 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24415 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24416 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 else
24419 test "$cross_compiling" = yes &&
24420 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24421 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24422 { (exit 1); exit 1; }; }
24423 if test -r "${HOME}/pwlib/include/ptlib.h"; then
24424 eval "$as_ac_File=yes"
24425 else
24426 eval "$as_ac_File=no"
24429 ac_res=`eval echo '${'$as_ac_File'}'`
24430 { echo "$as_me:$LINENO: result: $ac_res" >&5
24431 echo "${ECHO_T}$ac_res" >&6; }
24432 if test `eval echo '${'$as_ac_File'}'` = yes; then
24433 HAS_PWLIB=1
24436 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24437 PWLIBDIR="${HOME}/pwlib"
24438 else
24439 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24440 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24441 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444 test "$cross_compiling" = yes &&
24445 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24446 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24447 { (exit 1); exit 1; }; }
24448 if test -r "/usr/local/include/ptlib.h"; then
24449 ac_cv_file__usr_local_include_ptlib_h=yes
24450 else
24451 ac_cv_file__usr_local_include_ptlib_h=no
24454 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
24455 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
24456 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
24457 HAS_PWLIB=1
24460 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24461 # Extract the first word of "ptlib-config", so it can be a program name with args.
24462 set dummy ptlib-config; ac_word=$2
24463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24465 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24467 else
24468 case $PTLIB_CONFIG in
24469 [\\/]* | ?:[\\/]*)
24470 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24474 for as_dir in /usr/local/bin
24476 IFS=$as_save_IFS
24477 test -z "$as_dir" && as_dir=.
24478 for ac_exec_ext in '' $ac_executable_extensions; do
24479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24480 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24482 break 2
24484 done
24485 done
24486 IFS=$as_save_IFS
24489 esac
24491 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24492 if test -n "$PTLIB_CONFIG"; then
24493 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24494 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24495 else
24496 { echo "$as_me:$LINENO: result: no" >&5
24497 echo "${ECHO_T}no" >&6; }
24501 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
24502 # Extract the first word of "ptlib-config", so it can be a program name with args.
24503 set dummy ptlib-config; ac_word=$2
24504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24506 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 else
24509 case $PTLIB_CONFIG in
24510 [\\/]* | ?:[\\/]*)
24511 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24515 for as_dir in /usr/local/share/pwlib/make
24517 IFS=$as_save_IFS
24518 test -z "$as_dir" && as_dir=.
24519 for ac_exec_ext in '' $ac_executable_extensions; do
24520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24521 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24523 break 2
24525 done
24526 done
24527 IFS=$as_save_IFS
24530 esac
24532 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24533 if test -n "$PTLIB_CONFIG"; then
24534 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24535 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24536 else
24537 { echo "$as_me:$LINENO: result: no" >&5
24538 echo "${ECHO_T}no" >&6; }
24543 PWLIB_INCDIR="/usr/local/include"
24544 PWLIB_LIBDIR="/usr/local/lib"
24545 else
24546 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
24547 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
24548 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551 test "$cross_compiling" = yes &&
24552 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24553 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24554 { (exit 1); exit 1; }; }
24555 if test -r "/usr/include/ptlib.h"; then
24556 ac_cv_file__usr_include_ptlib_h=yes
24557 else
24558 ac_cv_file__usr_include_ptlib_h=no
24561 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
24562 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
24563 if test $ac_cv_file__usr_include_ptlib_h = yes; then
24564 HAS_PWLIB=1
24567 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24568 # Extract the first word of "ptlib-config", so it can be a program name with args.
24569 set dummy ptlib-config; ac_word=$2
24570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24572 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575 case $PTLIB_CONFIG in
24576 [\\/]* | ?:[\\/]*)
24577 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24581 for as_dir in /usr/share/pwlib/make
24583 IFS=$as_save_IFS
24584 test -z "$as_dir" && as_dir=.
24585 for ac_exec_ext in '' $ac_executable_extensions; do
24586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24587 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24589 break 2
24591 done
24592 done
24593 IFS=$as_save_IFS
24596 esac
24598 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24599 if test -n "$PTLIB_CONFIG"; then
24600 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24601 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24602 else
24603 { echo "$as_me:$LINENO: result: no" >&5
24604 echo "${ECHO_T}no" >&6; }
24608 PWLIB_INCDIR="/usr/include"
24609 PWLIB_LIBDIR="/usr/lib"
24616 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
24617 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
24618 # exit
24621 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24622 if test "${PWLIBDIR:-unset}" = "unset" ; then
24623 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
24624 PWLIBDIR=`$PTLIB_CONFIG --prefix`
24625 else
24626 echo "Cannot find ptlib-config - please install and try again"
24627 exit
24631 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
24632 PWLIBDIR="/usr/share/pwlib"
24633 PWLIB_INCDIR="/usr/include"
24634 PWLIB_LIBDIR="/usr/lib"
24636 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
24637 PWLIBDIR="/usr/local/share/pwlib"
24638 PWLIB_INCDIR="/usr/local/include"
24639 PWLIB_LIBDIR="/usr/local/lib"
24642 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
24643 PWLIB_INCDIR="${PWLIBDIR}/include"
24645 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24646 PWLIB_LIBDIR="${PWLIBDIR}/lib"
24655 if test "${HAS_PWLIB:-unset}" != "unset"; then
24656 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24657 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
24658 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
24659 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
24660 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
24661 let PWLIB_REQ=1*10000+9*100+2
24663 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
24664 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24665 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24666 { echo "$as_me:$LINENO: result: no" >&5
24667 echo "${ECHO_T}no" >&6; }
24668 unset HAS_PWLIB
24669 else
24670 { echo "$as_me:$LINENO: result: yes" >&5
24671 echo "${ECHO_T}yes" >&6; }
24676 if test "${HAS_PWLIB:-unset}" != "unset"; then
24678 PWLIB_OSTYPE=
24679 case "$host_os" in
24680 linux*) PWLIB_OSTYPE=linux ;
24682 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
24684 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
24685 ENDLDLIBS="-lossaudio" ;
24687 netbsd* ) PWLIB_OSTYPE=NetBSD ;
24688 ENDLDLIBS="-lossaudio" ;
24690 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
24692 darwin* ) PWLIB_OSTYPE=Darwin ;
24694 beos*) PWLIB_OSTYPE=beos ;
24695 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
24697 cygwin*) PWLIB_OSTYPE=cygwin ;
24699 mingw*) PWLIB_OSTYPE=mingw ;
24700 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
24701 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24703 * ) PWLIB_OSTYPE="$host_os" ;
24704 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24705 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24707 esac
24709 PWLIB_MACHTYPE=
24710 case "$host_cpu" in
24711 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
24714 x86_64) PWLIB_MACHTYPE=x86_64 ;
24715 P_64BIT=1 ;
24716 LIB64=1 ;
24719 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
24720 P_64BIT=1 ;
24723 sparc ) PWLIB_MACHTYPE=sparc ;
24726 powerpc ) PWLIB_MACHTYPE=ppc ;
24729 ppc ) PWLIB_MACHTYPE=ppc ;
24732 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
24733 P_64BIT=1 ;
24734 LIB64=1 ;
24737 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24738 P_64BIT=1 ;
24739 LIB64=1 ;
24742 ia64) PWLIB_MACHTYPE=ia64 ;
24743 P_64BIT=1 ;
24746 s390x) PWLIB_MACHTYPE=s390x ;
24747 P_64BIT=1 ;
24748 LIB64=1 ;
24751 s390) PWLIB_MACHTYPE=s390 ;
24754 * ) PWLIB_MACHTYPE="$host_cpu";
24755 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24756 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24757 esac
24759 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24764 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24767 if test "${HAS_PWLIB:-unset}" != "unset"; then
24768 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24769 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24771 saved_cppflags="${CPPFLAGS}"
24772 saved_libs="${LIBS}"
24773 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24774 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24776 ac_ext=cpp
24777 ac_cpp='$CXXCPP $CPPFLAGS'
24778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24783 cat >conftest.$ac_ext <<_ACEOF
24784 /* confdefs.h. */
24785 _ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 #include "ptlib.h"
24791 main ()
24793 BOOL q = PTime::IsDaylightSavings();
24795 return 0;
24797 _ACEOF
24798 rm -f conftest.$ac_objext conftest$ac_exeext
24799 if { (ac_try="$ac_link"
24800 case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24803 esac
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_link") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } &&
24812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24813 { (case "(($ac_try" in
24814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815 *) ac_try_echo=$ac_try;;
24816 esac
24817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24818 (eval "$ac_try") 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
24823 { (case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_try") 2>&5
24829 ac_status=$?
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); }; }; then
24832 { echo "$as_me:$LINENO: result: yes" >&5
24833 echo "${ECHO_T}yes" >&6; }
24834 ac_cv_lib_PWLIB="yes"
24836 else
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 { echo "$as_me:$LINENO: result: no" >&5
24841 echo "${ECHO_T}no" >&6; }
24842 ac_cv_lib_PWLIB="no"
24847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24848 conftest$ac_exeext conftest.$ac_ext
24850 ac_ext=c
24851 ac_cpp='$CPP $CPPFLAGS'
24852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24857 LIBS="${saved_libs}"
24858 CPPFLAGS="${saved_cppflags}"
24860 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24861 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24862 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24863 else
24864 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24866 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24867 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24869 PBX_PWLIB=1
24871 cat >>confdefs.h <<\_ACEOF
24872 #define HAVE_PWLIB 1
24873 _ACEOF
24881 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24882 { echo "$as_me:$LINENO: ***" >&5
24883 echo "$as_me: ***" >&6;}
24884 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24885 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24886 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24887 echo "$as_me: *** Either correct the installation" >&or run configure;}
24888 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24889 echo "$as_me: *** including --without-pwlib" >&6;}
24890 exit 1
24893 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24894 if test ! -z "${OPENH323_DIR}"; then
24895 OPENH323DIR="${OPENH323_DIR}"
24898 OPENH323_INCDIR=
24899 OPENH323_LIBDIR=
24900 if test "${OPENH323DIR:-unset}" != "unset" ; then
24901 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24902 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24903 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24904 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 else
24907 test "$cross_compiling" = yes &&
24908 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24909 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24910 { (exit 1); exit 1; }; }
24911 if test -r "${OPENH323DIR}/version.h"; then
24912 eval "$as_ac_File=yes"
24913 else
24914 eval "$as_ac_File=no"
24917 ac_res=`eval echo '${'$as_ac_File'}'`
24918 { echo "$as_me:$LINENO: result: $ac_res" >&5
24919 echo "${ECHO_T}$ac_res" >&6; }
24920 if test `eval echo '${'$as_ac_File'}'` = yes; then
24921 HAS_OPENH323=1
24925 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24926 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24927 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24928 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24929 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932 test "$cross_compiling" = yes &&
24933 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24934 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24935 { (exit 1); exit 1; }; }
24936 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24937 eval "$as_ac_File=yes"
24938 else
24939 eval "$as_ac_File=no"
24942 ac_res=`eval echo '${'$as_ac_File'}'`
24943 { echo "$as_me:$LINENO: result: $ac_res" >&5
24944 echo "${ECHO_T}$ac_res" >&6; }
24945 if test `eval echo '${'$as_ac_File'}'` = yes; then
24946 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24949 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24950 OPENH323DIR="${PWLIBDIR}/../openh323"
24951 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24952 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24953 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24954 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957 test "$cross_compiling" = yes &&
24958 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24959 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24960 { (exit 1); exit 1; }; }
24961 if test -r "${OPENH323DIR}/include/h323.h"; then
24962 eval "$as_ac_File=yes"
24963 else
24964 eval "$as_ac_File=no"
24967 ac_res=`eval echo '${'$as_ac_File'}'`
24968 { echo "$as_me:$LINENO: result: $ac_res" >&5
24969 echo "${ECHO_T}$ac_res" >&6; }
24970 if test `eval echo '${'$as_ac_File'}'` = yes; then
24972 else
24973 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24976 else
24977 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24978 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24979 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24980 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24981 echo $ECHO_N "(cached) $ECHO_C" >&6
24982 else
24983 test "$cross_compiling" = yes &&
24984 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24985 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24986 { (exit 1); exit 1; }; }
24987 if test -r "${HOME}/openh323/include/h323.h"; then
24988 eval "$as_ac_File=yes"
24989 else
24990 eval "$as_ac_File=no"
24993 ac_res=`eval echo '${'$as_ac_File'}'`
24994 { echo "$as_me:$LINENO: result: $ac_res" >&5
24995 echo "${ECHO_T}$ac_res" >&6; }
24996 if test `eval echo '${'$as_ac_File'}'` = yes; then
24997 HAS_OPENH323=1
25000 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25001 OPENH323DIR="${HOME}/openh323"
25002 else
25003 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
25004 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
25005 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 else
25008 test "$cross_compiling" = yes &&
25009 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25010 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25011 { (exit 1); exit 1; }; }
25012 if test -r "/usr/local/include/openh323/h323.h"; then
25013 ac_cv_file__usr_local_include_openh323_h323_h=yes
25014 else
25015 ac_cv_file__usr_local_include_openh323_h323_h=no
25018 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
25019 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
25020 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
25021 HAS_OPENH323=1
25024 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25025 OPENH323DIR="/usr/local/share/openh323"
25026 OPENH323_INCDIR="/usr/local/include/openh323"
25027 OPENH323_LIBDIR="/usr/local/lib"
25028 else
25029 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
25030 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
25031 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034 test "$cross_compiling" = yes &&
25035 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25036 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25037 { (exit 1); exit 1; }; }
25038 if test -r "/usr/include/openh323/h323.h"; then
25039 ac_cv_file__usr_include_openh323_h323_h=yes
25040 else
25041 ac_cv_file__usr_include_openh323_h323_h=no
25044 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
25045 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
25046 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
25047 HAS_OPENH323=1
25050 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25051 OPENH323DIR="/usr/share/openh323"
25052 OPENH323_INCDIR="/usr/include/openh323"
25053 OPENH323_LIBDIR="/usr/lib"
25060 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25061 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
25062 OPENH323_INCDIR="${OPENH323DIR}/include"
25064 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
25065 OPENH323_LIBDIR="${OPENH323DIR}/lib"
25074 if test "${HAS_OPENH323:-unset}" != "unset"; then
25075 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25076 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
25077 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
25078 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
25079 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
25080 let OPENH323_REQ=1*10000+17*100+3
25082 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
25083 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25084 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
25085 { echo "$as_me:$LINENO: result: no" >&5
25086 echo "${ECHO_T}no" >&6; }
25087 unset HAS_OPENH323
25088 else
25089 { echo "$as_me:$LINENO: result: yes" >&5
25090 echo "${ECHO_T}yes" >&6; }
25095 if test "${HAS_OPENH323:-unset}" != "unset"; then
25096 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
25097 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
25098 OPENH323_SUFFIX=
25099 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
25100 libfile=
25101 if test -n "$files"; then
25102 for f in $files; do
25103 if test -f $f -a ! -L $f; then
25104 libfile=`basename $f`
25105 break;
25107 done
25109 if test "${libfile:-unset}" != "unset"; then
25110 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
25112 case "${OPENH323_SUFFIX}" in
25114 OPENH323_BUILD="notrace";;
25116 OPENH323_BUILD="opt";;
25118 OPENH323_BUILD="debug";;
25120 OPENH323_BUILD="notrace";;
25121 esac
25122 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
25123 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
25129 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
25131 if test "${HAS_OPENH323:-unset}" != "unset"; then
25132 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
25133 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
25135 saved_cppflags="${CPPFLAGS}"
25136 saved_libs="${LIBS}"
25137 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
25138 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
25140 ac_ext=cpp
25141 ac_cpp='$CXXCPP $CPPFLAGS'
25142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25147 cat >conftest.$ac_ext <<_ACEOF
25148 /* confdefs.h. */
25149 _ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h. */
25153 #include "ptlib.h"
25154 #include "h323.h"
25155 #include "h323ep.h"
25157 main ()
25159 H323EndPoint ep = H323EndPoint();
25161 return 0;
25163 _ACEOF
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (ac_try="$ac_link"
25166 case "(($ac_try" in
25167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168 *) ac_try_echo=$ac_try;;
25169 esac
25170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171 (eval "$ac_link") 2>conftest.er1
25172 ac_status=$?
25173 grep -v '^ *+' conftest.er1 >conftest.err
25174 rm -f conftest.er1
25175 cat conftest.err >&5
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } &&
25178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25179 { (case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25182 esac
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_try") 2>&5
25185 ac_status=$?
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; } &&
25188 { ac_try='test -s conftest$ac_exeext'
25189 { (case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25192 esac
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_try") 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 { echo "$as_me:$LINENO: result: yes" >&5
25199 echo "${ECHO_T}yes" >&6; }
25200 ac_cv_lib_OPENH323="yes"
25202 else
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 { echo "$as_me:$LINENO: result: no" >&5
25207 echo "${ECHO_T}no" >&6; }
25208 ac_cv_lib_OPENH323="no"
25213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25214 conftest$ac_exeext conftest.$ac_ext
25216 ac_ext=c
25217 ac_cpp='$CPP $CPPFLAGS'
25218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25223 LIBS="${saved_libs}"
25224 CPPFLAGS="${saved_cppflags}"
25226 if test "${ac_cv_lib_OPENH323}" = "yes"; then
25227 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
25228 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
25229 else
25230 OPENH323_LIB="-l${PLATFORM_OPENH323}"
25232 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
25233 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
25235 PBX_OPENH323=1
25237 cat >>confdefs.h <<\_ACEOF
25238 #define HAVE_OPENH323 1
25239 _ACEOF
25245 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
25246 { echo "$as_me:$LINENO: ***" >&5
25247 echo "$as_me: ***" >&6;}
25248 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
25249 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
25250 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25251 echo "$as_me: *** Either correct the installation" >&or run configure;}
25252 { echo "$as_me:$LINENO: *** including --without-h323" >&5
25253 echo "$as_me: *** including --without-h323" >&6;}
25254 exit 1
25258 ac_ext=cpp
25259 ac_cpp='$CXXCPP $CPPFLAGS'
25260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25265 if test "${USE_QT}" != "no"; then
25266 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
25267 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
25268 saved_libs="${LIBS}"
25269 saved_cppflags="${CPPFLAGS}"
25270 if test "x${QT_DIR}" != "x"; then
25271 LIBS="${LIBS} -L${QT_DIR}/lib"
25272 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25274 LIBS="${LIBS} -lqt"
25275 qtlib="qt"
25276 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h. */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 #include <qt3/qdatetime.h>
25285 main ()
25287 QDate date();
25289 return 0;
25292 _ACEOF
25293 rm -f conftest.$ac_objext conftest$ac_exeext
25294 if { (ac_try="$ac_link"
25295 case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25298 esac
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_link") 2>conftest.er1
25301 ac_status=$?
25302 grep -v '^ *+' conftest.er1 >conftest.err
25303 rm -f conftest.er1
25304 cat conftest.err >&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } &&
25307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25308 { (case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_try") 2>&5
25314 ac_status=$?
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; } &&
25317 { ac_try='test -s conftest$ac_exeext'
25318 { (case "(($ac_try" in
25319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25320 *) ac_try_echo=$ac_try;;
25321 esac
25322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25323 (eval "$ac_try") 2>&5
25324 ac_status=$?
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; }; then
25327 ac_cv_lib_qt_qt_date="yes"
25328 else
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_cv_lib_qt_qt_date="no"
25335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25336 conftest$ac_exeext conftest.$ac_ext
25337 LIBS="${saved_libs}"
25338 CPPFLAGS="${saved_cppflags}"
25340 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
25341 saved_libs="${LIBS}"
25342 saved_cppflags="${CPPFLAGS}"
25343 if test "x${QT_DIR}" != "x"; then
25344 LIBS="${LIBS} -L${QT_DIR}/lib"
25345 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25347 LIBS="${LIBS} -lqt-mt"
25348 qtlib="qt-mt"
25349 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h. */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 #include <qt3/qdatetime.h>
25358 main ()
25360 QDate date();
25362 return 0;
25365 _ACEOF
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (ac_try="$ac_link"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371 esac
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_link") 2>conftest.er1
25374 ac_status=$?
25375 grep -v '^ *+' conftest.er1 >conftest.err
25376 rm -f conftest.er1
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
25380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25381 { (case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25384 esac
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386 (eval "$ac_try") 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest$ac_exeext'
25391 { (case "(($ac_try" in
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393 *) ac_try_echo=$ac_try;;
25394 esac
25395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25396 (eval "$ac_try") 2>&5
25397 ac_status=$?
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); }; }; then
25400 ac_cv_lib_qt_qt_date="yes"
25401 else
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25405 ac_cv_lib_qt_qt_date="no"
25408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25409 conftest$ac_exeext conftest.$ac_ext
25410 LIBS="${saved_libs}"
25411 CPPFLAGS="${saved_cppflags}"
25414 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25415 { echo "$as_me:$LINENO: result: yes" >&5
25416 echo "${ECHO_T}yes" >&6; }
25417 else
25418 { echo "$as_me:$LINENO: result: no" >&5
25419 echo "${ECHO_T}no" >&6; }
25422 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25423 QT_LIB="-l${qtlib}"
25424 if test "${QT_DIR}" != ""; then
25425 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
25426 QT_INCLUDE="-I${QT_DIR}/include"
25428 PBX_QT=1
25430 cat >>confdefs.h <<\_ACEOF
25431 #define HAVE_QT 1
25432 _ACEOF
25434 if test -n "$ac_tool_prefix"; then
25435 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
25436 set dummy ${ac_tool_prefix}moc; ac_word=$2
25437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25439 if test "${ac_cv_path_QTMOC+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442 case $QTMOC in
25443 [\\/]* | ?:[\\/]*)
25444 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
25447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25448 for as_dir in $PATH
25450 IFS=$as_save_IFS
25451 test -z "$as_dir" && as_dir=.
25452 for ac_exec_ext in '' $ac_executable_extensions; do
25453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25454 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25456 break 2
25458 done
25459 done
25460 IFS=$as_save_IFS
25463 esac
25465 QTMOC=$ac_cv_path_QTMOC
25466 if test -n "$QTMOC"; then
25467 { echo "$as_me:$LINENO: result: $QTMOC" >&5
25468 echo "${ECHO_T}$QTMOC" >&6; }
25469 else
25470 { echo "$as_me:$LINENO: result: no" >&5
25471 echo "${ECHO_T}no" >&6; }
25476 if test -z "$ac_cv_path_QTMOC"; then
25477 ac_pt_QTMOC=$QTMOC
25478 # Extract the first word of "moc", so it can be a program name with args.
25479 set dummy moc; ac_word=$2
25480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25482 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25484 else
25485 case $ac_pt_QTMOC in
25486 [\\/]* | ?:[\\/]*)
25487 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
25490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25491 for as_dir in $PATH
25493 IFS=$as_save_IFS
25494 test -z "$as_dir" && as_dir=.
25495 for ac_exec_ext in '' $ac_executable_extensions; do
25496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25497 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25499 break 2
25501 done
25502 done
25503 IFS=$as_save_IFS
25506 esac
25508 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
25509 if test -n "$ac_pt_QTMOC"; then
25510 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
25511 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
25512 else
25513 { echo "$as_me:$LINENO: result: no" >&5
25514 echo "${ECHO_T}no" >&6; }
25517 if test "x$ac_pt_QTMOC" = x; then
25518 QTMOC="No"
25519 else
25520 case $cross_compiling:$ac_tool_warned in
25521 yes:)
25522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25523 whose name does not start with the host triplet. If you think this
25524 configuration is useful to you, please write to autoconf@gnu.org." >&5
25525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25526 whose name does not start with the host triplet. If you think this
25527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25528 ac_tool_warned=yes ;;
25529 esac
25530 QTMOC=$ac_pt_QTMOC
25532 else
25533 QTMOC="$ac_cv_path_QTMOC"
25536 elif test ! -z "${QT_MANDATORY}";
25537 then
25538 { echo "$as_me:$LINENO: ***" >&5
25539 echo "$as_me: ***" >&6;}
25540 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
25541 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
25542 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25543 echo "$as_me: *** Either correct the installation" >&or run configure;}
25544 { echo "$as_me:$LINENO: *** including --without-qt." >&5
25545 echo "$as_me: *** including --without-qt." >&6;}
25546 exit 1
25550 ac_ext=c
25551 ac_cpp='$CPP $CPPFLAGS'
25552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25558 if test "${USE_RADIUS}" != "no"; then
25559 pbxlibdir=""
25560 if test "x${RADIUS_DIR}" != "x"; then
25561 if test -d ${RADIUS_DIR}/lib; then
25562 pbxlibdir="-L${RADIUS_DIR}/lib"
25563 else
25564 pbxlibdir="-L${RADIUS_DIR}"
25567 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
25568 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
25569 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25571 else
25572 ac_check_lib_save_LIBS=$LIBS
25573 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h. */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25581 /* Override any GCC internal prototype to avoid an error.
25582 Use char because int might match the return type of a GCC
25583 builtin and then its argument prototype would still apply. */
25584 #ifdef __cplusplus
25585 extern "C"
25586 #endif
25587 char rc_read_config ();
25589 main ()
25591 return rc_read_config ();
25593 return 0;
25595 _ACEOF
25596 rm -f conftest.$ac_objext conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_link") 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
25610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25611 { (case "(($ac_try" in
25612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25613 *) ac_try_echo=$ac_try;;
25614 esac
25615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25616 (eval "$ac_try") 2>&5
25617 ac_status=$?
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest$ac_exeext'
25621 { (case "(($ac_try" in
25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25624 esac
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_try") 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; }; then
25630 ac_cv_lib_radiusclient_ng_rc_read_config=yes
25631 else
25632 echo "$as_me: failed program was:" >&5
25633 sed 's/^/| /' conftest.$ac_ext >&5
25635 ac_cv_lib_radiusclient_ng_rc_read_config=no
25638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25639 conftest$ac_exeext conftest.$ac_ext
25640 LIBS=$ac_check_lib_save_LIBS
25642 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
25643 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
25644 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
25645 AST_RADIUS_FOUND=yes
25646 else
25647 AST_RADIUS_FOUND=no
25651 if test "${AST_RADIUS_FOUND}" = "yes"; then
25652 RADIUS_LIB="-lradiusclient-ng "
25653 RADIUS_HEADER_FOUND="1"
25654 if test "x${RADIUS_DIR}" != "x"; then
25655 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
25656 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
25657 if test "xradiusclient-ng.h" != "x" ; then
25658 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
25659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25660 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25661 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25665 ac_res=`eval echo '${'$as_ac_Header'}'`
25666 { echo "$as_me:$LINENO: result: $ac_res" >&5
25667 echo "${ECHO_T}$ac_res" >&6; }
25668 else
25669 # Is the header compilable?
25670 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
25671 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
25672 cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h. */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25678 $ac_includes_default
25679 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25686 esac
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688 (eval "$ac_compile") 2>conftest.er1
25689 ac_status=$?
25690 grep -v '^ *+' conftest.er1 >conftest.err
25691 rm -f conftest.er1
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25696 { (case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$ac_try") 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest.$ac_objext'
25706 { (case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_try") 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
25715 ac_header_compiler=yes
25716 else
25717 echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25720 ac_header_compiler=no
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25725 echo "${ECHO_T}$ac_header_compiler" >&6; }
25727 # Is the header present?
25728 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
25729 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
25730 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h. */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25737 _ACEOF
25738 if { (ac_try="$ac_cpp conftest.$ac_ext"
25739 case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25742 esac
25743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25745 ac_status=$?
25746 grep -v '^ *+' conftest.er1 >conftest.err
25747 rm -f conftest.er1
25748 cat conftest.err >&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } >/dev/null; then
25751 if test -s conftest.err; then
25752 ac_cpp_err=$ac_c_preproc_warn_flag
25753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25754 else
25755 ac_cpp_err=
25757 else
25758 ac_cpp_err=yes
25760 if test -z "$ac_cpp_err"; then
25761 ac_header_preproc=yes
25762 else
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25766 ac_header_preproc=no
25769 rm -f conftest.err conftest.$ac_ext
25770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25771 echo "${ECHO_T}$ac_header_preproc" >&6; }
25773 # So? What about this header?
25774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25775 yes:no: )
25776 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25777 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25778 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25779 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25780 ac_header_preproc=yes
25782 no:yes:* )
25783 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25784 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25786 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25788 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25790 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25792 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25794 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25797 esac
25798 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25799 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25802 else
25803 eval "$as_ac_Header=\$ac_header_preproc"
25805 ac_res=`eval echo '${'$as_ac_Header'}'`
25806 { echo "$as_me:$LINENO: result: $ac_res" >&5
25807 echo "${ECHO_T}$ac_res" >&6; }
25810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25811 RADIUS_HEADER_FOUND=1
25812 else
25813 RADIUS_HEADER_FOUND=0
25818 else
25819 if test "xradiusclient-ng.h" != "x" ; then
25820 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25821 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25822 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25823 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25827 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25828 else
25829 # Is the header compilable?
25830 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25831 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25832 cat >conftest.$ac_ext <<_ACEOF
25833 /* confdefs.h. */
25834 _ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h. */
25838 $ac_includes_default
25839 #include <radiusclient-ng.h>
25840 _ACEOF
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25849 ac_status=$?
25850 grep -v '^ *+' conftest.er1 >conftest.err
25851 rm -f conftest.er1
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } &&
25855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25856 { (case "(($ac_try" in
25857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_try") 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_try") 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25875 ac_header_compiler=yes
25876 else
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 ac_header_compiler=no
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25885 echo "${ECHO_T}$ac_header_compiler" >&6; }
25887 # Is the header present?
25888 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25889 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25890 cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h. */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 #include <radiusclient-ng.h>
25897 _ACEOF
25898 if { (ac_try="$ac_cpp conftest.$ac_ext"
25899 case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25902 esac
25903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25905 ac_status=$?
25906 grep -v '^ *+' conftest.er1 >conftest.err
25907 rm -f conftest.er1
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } >/dev/null; then
25911 if test -s conftest.err; then
25912 ac_cpp_err=$ac_c_preproc_warn_flag
25913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25914 else
25915 ac_cpp_err=
25917 else
25918 ac_cpp_err=yes
25920 if test -z "$ac_cpp_err"; then
25921 ac_header_preproc=yes
25922 else
25923 echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ac_header_preproc=no
25929 rm -f conftest.err conftest.$ac_ext
25930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25931 echo "${ECHO_T}$ac_header_preproc" >&6; }
25933 # So? What about this header?
25934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25935 yes:no: )
25936 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25937 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25939 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25940 ac_header_preproc=yes
25942 no:yes:* )
25943 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25944 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25946 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25947 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25948 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25949 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25950 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25951 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25952 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25953 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25954 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25957 esac
25958 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25959 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25960 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25961 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 else
25963 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25965 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25966 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25969 if test $ac_cv_header_radiusclient_ng_h = yes; then
25970 RADIUS_HEADER_FOUND=1
25971 else
25972 RADIUS_HEADER_FOUND=0
25978 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25979 if test ! -z "${RADIUS_MANDATORY}" ;
25980 then
25981 { echo "$as_me:$LINENO: ***" >&5
25982 echo "$as_me: ***" >&6;}
25983 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25984 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25985 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
25986 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&or re-run configure;}
25987 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25988 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25989 exit 1
25991 RADIUS_LIB=""
25992 RADIUS_INCLUDE=""
25993 PBX_RADIUS=0
25994 else
25995 PBX_RADIUS=1
25997 cat >>confdefs.h <<_ACEOF
25998 #define HAVE_RADIUS 1
25999 _ACEOF
26002 elif test ! -z "${RADIUS_MANDATORY}";
26003 then
26004 { echo "$as_me:$LINENO: ***" >&5
26005 echo "$as_me: ***" >&6;}
26006 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
26007 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
26008 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26009 echo "$as_me: *** Either correct the installation" >&or run configure;}
26010 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26011 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26012 exit 1
26018 if test "${USE_SPEEX}" != "no"; then
26019 pbxlibdir=""
26020 if test "x${SPEEX_DIR}" != "x"; then
26021 if test -d ${SPEEX_DIR}/lib; then
26022 pbxlibdir="-L${SPEEX_DIR}/lib"
26023 else
26024 pbxlibdir="-L${SPEEX_DIR}"
26027 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
26028 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
26029 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032 ac_check_lib_save_LIBS=$LIBS
26033 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
26034 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h. */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26041 /* Override any GCC internal prototype to avoid an error.
26042 Use char because int might match the return type of a GCC
26043 builtin and then its argument prototype would still apply. */
26044 #ifdef __cplusplus
26045 extern "C"
26046 #endif
26047 char speex_encode ();
26049 main ()
26051 return speex_encode ();
26053 return 0;
26055 _ACEOF
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (ac_try="$ac_link"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_link") 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
26070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26071 { (case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_try") 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
26080 { ac_try='test -s conftest$ac_exeext'
26081 { (case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26084 esac
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_try") 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26090 ac_cv_lib_speex_speex_encode=yes
26091 else
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 ac_cv_lib_speex_speex_encode=no
26098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26099 conftest$ac_exeext conftest.$ac_ext
26100 LIBS=$ac_check_lib_save_LIBS
26102 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
26103 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
26104 if test $ac_cv_lib_speex_speex_encode = yes; then
26105 AST_SPEEX_FOUND=yes
26106 else
26107 AST_SPEEX_FOUND=no
26111 if test "${AST_SPEEX_FOUND}" = "yes"; then
26112 SPEEX_LIB="-lspeex -lm"
26113 SPEEX_HEADER_FOUND="1"
26114 if test "x${SPEEX_DIR}" != "x"; then
26115 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
26116 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
26117 if test "xspeex/speex.h" != "x" ; then
26118 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
26119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26120 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
26121 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26125 ac_res=`eval echo '${'$as_ac_Header'}'`
26126 { echo "$as_me:$LINENO: result: $ac_res" >&5
26127 echo "${ECHO_T}$ac_res" >&6; }
26128 else
26129 # Is the header compilable?
26130 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
26131 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
26132 cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h. */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 $ac_includes_default
26139 #include <${SPEEX_DIR}/include/speex/speex.h>
26140 _ACEOF
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145 *) ac_try_echo=$ac_try;;
26146 esac
26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148 (eval "$ac_compile") 2>conftest.er1
26149 ac_status=$?
26150 grep -v '^ *+' conftest.er1 >conftest.err
26151 rm -f conftest.er1
26152 cat conftest.err >&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } &&
26155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26156 { (case "(($ac_try" in
26157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26158 *) ac_try_echo=$ac_try;;
26159 esac
26160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26161 (eval "$ac_try") 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26169 esac
26170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26171 (eval "$ac_try") 2>&5
26172 ac_status=$?
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; }; then
26175 ac_header_compiler=yes
26176 else
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26180 ac_header_compiler=no
26183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6; }
26187 # Is the header present?
26188 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
26189 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h. */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <${SPEEX_DIR}/include/speex/speex.h>
26197 _ACEOF
26198 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
26211 if test -s conftest.err; then
26212 ac_cpp_err=$ac_c_preproc_warn_flag
26213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26214 else
26215 ac_cpp_err=
26217 else
26218 ac_cpp_err=yes
26220 if test -z "$ac_cpp_err"; then
26221 ac_header_preproc=yes
26222 else
26223 echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26226 ac_header_preproc=no
26229 rm -f conftest.err conftest.$ac_ext
26230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26231 echo "${ECHO_T}$ac_header_preproc" >&6; }
26233 # So? What about this header?
26234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26235 yes:no: )
26236 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26237 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
26239 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
26240 ac_header_preproc=yes
26242 no:yes:* )
26243 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
26244 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
26246 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
26248 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
26249 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26250 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26251 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
26252 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
26253 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
26254 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
26257 esac
26258 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
26259 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
26260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26261 echo $ECHO_N "(cached) $ECHO_C" >&6
26262 else
26263 eval "$as_ac_Header=\$ac_header_preproc"
26265 ac_res=`eval echo '${'$as_ac_Header'}'`
26266 { echo "$as_me:$LINENO: result: $ac_res" >&5
26267 echo "${ECHO_T}$ac_res" >&6; }
26270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26271 SPEEX_HEADER_FOUND=1
26272 else
26273 SPEEX_HEADER_FOUND=0
26278 else
26279 if test "xspeex/speex.h" != "x" ; then
26280 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26281 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26282 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26283 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26287 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26288 else
26289 # Is the header compilable?
26290 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26291 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26292 cat >conftest.$ac_ext <<_ACEOF
26293 /* confdefs.h. */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26298 $ac_includes_default
26299 #include <speex/speex.h>
26300 _ACEOF
26301 rm -f conftest.$ac_objext
26302 if { (ac_try="$ac_compile"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_compile") 2>conftest.er1
26309 ac_status=$?
26310 grep -v '^ *+' conftest.er1 >conftest.err
26311 rm -f conftest.er1
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26316 { (case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_try") 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_try") 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_header_compiler=yes
26336 else
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26340 ac_header_compiler=no
26343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26345 echo "${ECHO_T}$ac_header_compiler" >&6; }
26347 # Is the header present?
26348 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26349 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26350 cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h. */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26356 #include <speex/speex.h>
26357 _ACEOF
26358 if { (ac_try="$ac_cpp conftest.$ac_ext"
26359 case "(($ac_try" in
26360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361 *) ac_try_echo=$ac_try;;
26362 esac
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } >/dev/null; then
26371 if test -s conftest.err; then
26372 ac_cpp_err=$ac_c_preproc_warn_flag
26373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26374 else
26375 ac_cpp_err=
26377 else
26378 ac_cpp_err=yes
26380 if test -z "$ac_cpp_err"; then
26381 ac_header_preproc=yes
26382 else
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ac_header_preproc=no
26389 rm -f conftest.err conftest.$ac_ext
26390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26391 echo "${ECHO_T}$ac_header_preproc" >&6; }
26393 # So? What about this header?
26394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26395 yes:no: )
26396 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26397 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26398 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26399 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26400 ac_header_preproc=yes
26402 no:yes:* )
26403 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26404 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26405 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26406 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26408 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26410 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26412 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26413 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26414 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26417 esac
26418 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26419 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26420 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423 ac_cv_header_speex_speex_h=$ac_header_preproc
26425 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26426 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26429 if test $ac_cv_header_speex_speex_h = yes; then
26430 SPEEX_HEADER_FOUND=1
26431 else
26432 SPEEX_HEADER_FOUND=0
26438 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26439 if test ! -z "${SPEEX_MANDATORY}" ;
26440 then
26441 { echo "$as_me:$LINENO: ***" >&5
26442 echo "$as_me: ***" >&6;}
26443 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
26444 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
26445 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
26446 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&or re-run configure;}
26447 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26448 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26449 exit 1
26451 SPEEX_LIB=""
26452 SPEEX_INCLUDE=""
26453 PBX_SPEEX=0
26454 else
26455 PBX_SPEEX=1
26457 cat >>confdefs.h <<_ACEOF
26458 #define HAVE_SPEEX 1
26459 _ACEOF
26462 elif test ! -z "${SPEEX_MANDATORY}";
26463 then
26464 { echo "$as_me:$LINENO: ***" >&5
26465 echo "$as_me: ***" >&6;}
26466 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
26467 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
26468 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26469 echo "$as_me: *** Either correct the installation" >&or run configure;}
26470 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26471 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26472 exit 1
26478 if test "${USE_SQLITE}" != "no"; then
26479 pbxlibdir=""
26480 if test "x${SQLITE_DIR}" != "x"; then
26481 if test -d ${SQLITE_DIR}/lib; then
26482 pbxlibdir="-L${SQLITE_DIR}/lib"
26483 else
26484 pbxlibdir="-L${SQLITE_DIR}"
26487 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
26488 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
26489 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
26490 echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492 ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-lsqlite ${pbxlibdir} $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h. */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26501 /* Override any GCC internal prototype to avoid an error.
26502 Use char because int might match the return type of a GCC
26503 builtin and then its argument prototype would still apply. */
26504 #ifdef __cplusplus
26505 extern "C"
26506 #endif
26507 char sqlite_exec ();
26509 main ()
26511 return sqlite_exec ();
26513 return 0;
26515 _ACEOF
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (ac_try="$ac_link"
26518 case "(($ac_try" in
26519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520 *) ac_try_echo=$ac_try;;
26521 esac
26522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523 (eval "$ac_link") 2>conftest.er1
26524 ac_status=$?
26525 grep -v '^ *+' conftest.er1 >conftest.err
26526 rm -f conftest.er1
26527 cat conftest.err >&5
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } &&
26530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26531 { (case "(($ac_try" in
26532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26533 *) ac_try_echo=$ac_try;;
26534 esac
26535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26536 (eval "$ac_try") 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; } &&
26540 { ac_try='test -s conftest$ac_exeext'
26541 { (case "(($ac_try" in
26542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26543 *) ac_try_echo=$ac_try;;
26544 esac
26545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26546 (eval "$ac_try") 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
26550 ac_cv_lib_sqlite_sqlite_exec=yes
26551 else
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_cv_lib_sqlite_sqlite_exec=no
26558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26559 conftest$ac_exeext conftest.$ac_ext
26560 LIBS=$ac_check_lib_save_LIBS
26562 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
26563 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
26564 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
26565 AST_SQLITE_FOUND=yes
26566 else
26567 AST_SQLITE_FOUND=no
26571 if test "${AST_SQLITE_FOUND}" = "yes"; then
26572 SQLITE_LIB="-lsqlite "
26573 SQLITE_HEADER_FOUND="1"
26574 if test "x${SQLITE_DIR}" != "x"; then
26575 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
26576 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
26577 if test "xsqlite.h" != "x" ; then
26578 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
26579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26580 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26581 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26585 ac_res=`eval echo '${'$as_ac_Header'}'`
26586 { echo "$as_me:$LINENO: result: $ac_res" >&5
26587 echo "${ECHO_T}$ac_res" >&6; }
26588 else
26589 # Is the header compilable?
26590 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
26591 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h. */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 $ac_includes_default
26599 #include <${SQLITE_DIR}/include/sqlite.h>
26600 _ACEOF
26601 rm -f conftest.$ac_objext
26602 if { (ac_try="$ac_compile"
26603 case "(($ac_try" in
26604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605 *) ac_try_echo=$ac_try;;
26606 esac
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608 (eval "$ac_compile") 2>conftest.er1
26609 ac_status=$?
26610 grep -v '^ *+' conftest.er1 >conftest.err
26611 rm -f conftest.er1
26612 cat conftest.err >&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26616 { (case "(($ac_try" in
26617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618 *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_try") 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; } &&
26625 { ac_try='test -s conftest.$ac_objext'
26626 { (case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_try") 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; }; then
26635 ac_header_compiler=yes
26636 else
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ac_header_compiler=no
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26645 echo "${ECHO_T}$ac_header_compiler" >&6; }
26647 # Is the header present?
26648 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
26649 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
26650 cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h. */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h. */
26656 #include <${SQLITE_DIR}/include/sqlite.h>
26657 _ACEOF
26658 if { (ac_try="$ac_cpp conftest.$ac_ext"
26659 case "(($ac_try" in
26660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26661 *) ac_try_echo=$ac_try;;
26662 esac
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26665 ac_status=$?
26666 grep -v '^ *+' conftest.er1 >conftest.err
26667 rm -f conftest.er1
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } >/dev/null; then
26671 if test -s conftest.err; then
26672 ac_cpp_err=$ac_c_preproc_warn_flag
26673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26674 else
26675 ac_cpp_err=
26677 else
26678 ac_cpp_err=yes
26680 if test -z "$ac_cpp_err"; then
26681 ac_header_preproc=yes
26682 else
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26686 ac_header_preproc=no
26689 rm -f conftest.err conftest.$ac_ext
26690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26691 echo "${ECHO_T}$ac_header_preproc" >&6; }
26693 # So? What about this header?
26694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26695 yes:no: )
26696 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26697 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26698 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
26699 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
26700 ac_header_preproc=yes
26702 no:yes:* )
26703 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
26704 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
26706 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
26708 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26710 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26711 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
26712 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
26713 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
26714 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
26717 esac
26718 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26719 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 else
26723 eval "$as_ac_Header=\$ac_header_preproc"
26725 ac_res=`eval echo '${'$as_ac_Header'}'`
26726 { echo "$as_me:$LINENO: result: $ac_res" >&5
26727 echo "${ECHO_T}$ac_res" >&6; }
26730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26731 SQLITE_HEADER_FOUND=1
26732 else
26733 SQLITE_HEADER_FOUND=0
26738 else
26739 if test "xsqlite.h" != "x" ; then
26740 if test "${ac_cv_header_sqlite_h+set}" = set; then
26741 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26742 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26743 if test "${ac_cv_header_sqlite_h+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26747 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26748 else
26749 # Is the header compilable?
26750 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
26751 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h. */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 $ac_includes_default
26759 #include <sqlite.h>
26760 _ACEOF
26761 rm -f conftest.$ac_objext
26762 if { (ac_try="$ac_compile"
26763 case "(($ac_try" in
26764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26765 *) ac_try_echo=$ac_try;;
26766 esac
26767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26768 (eval "$ac_compile") 2>conftest.er1
26769 ac_status=$?
26770 grep -v '^ *+' conftest.er1 >conftest.err
26771 rm -f conftest.er1
26772 cat conftest.err >&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } &&
26775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26776 { (case "(($ac_try" in
26777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778 *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781 (eval "$ac_try") 2>&5
26782 ac_status=$?
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); }; } &&
26785 { ac_try='test -s conftest.$ac_objext'
26786 { (case "(($ac_try" in
26787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788 *) ac_try_echo=$ac_try;;
26789 esac
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791 (eval "$ac_try") 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_header_compiler=yes
26796 else
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_header_compiler=no
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26805 echo "${ECHO_T}$ac_header_compiler" >&6; }
26807 # Is the header present?
26808 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
26809 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h. */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 #include <sqlite.h>
26817 _ACEOF
26818 if { (ac_try="$ac_cpp conftest.$ac_ext"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26825 ac_status=$?
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } >/dev/null; then
26831 if test -s conftest.err; then
26832 ac_cpp_err=$ac_c_preproc_warn_flag
26833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26834 else
26835 ac_cpp_err=
26837 else
26838 ac_cpp_err=yes
26840 if test -z "$ac_cpp_err"; then
26841 ac_header_preproc=yes
26842 else
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26846 ac_header_preproc=no
26849 rm -f conftest.err conftest.$ac_ext
26850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26851 echo "${ECHO_T}$ac_header_preproc" >&6; }
26853 # So? What about this header?
26854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26855 yes:no: )
26856 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26857 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
26859 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
26860 ac_header_preproc=yes
26862 no:yes:* )
26863 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
26864 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
26866 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
26868 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26870 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
26872 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
26874 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
26877 esac
26878 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26879 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26880 if test "${ac_cv_header_sqlite_h+set}" = set; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 else
26883 ac_cv_header_sqlite_h=$ac_header_preproc
26885 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26886 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26889 if test $ac_cv_header_sqlite_h = yes; then
26890 SQLITE_HEADER_FOUND=1
26891 else
26892 SQLITE_HEADER_FOUND=0
26898 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
26899 if test ! -z "${SQLITE_MANDATORY}" ;
26900 then
26901 { echo "$as_me:$LINENO: ***" >&5
26902 echo "$as_me: ***" >&6;}
26903 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
26904 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
26905 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
26906 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&or re-run configure;}
26907 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26908 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26909 exit 1
26911 SQLITE_LIB=""
26912 SQLITE_INCLUDE=""
26913 PBX_SQLITE=0
26914 else
26915 PBX_SQLITE=1
26917 cat >>confdefs.h <<_ACEOF
26918 #define HAVE_SQLITE 1
26919 _ACEOF
26922 elif test ! -z "${SQLITE_MANDATORY}";
26923 then
26924 { echo "$as_me:$LINENO: ***" >&5
26925 echo "$as_me: ***" >&6;}
26926 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26927 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26928 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26929 echo "$as_me: *** Either correct the installation" >&or run configure;}
26930 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26931 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26932 exit 1
26938 if test "${USE_OPENSSL}" != "no"; then
26939 pbxlibdir=""
26940 if test "x${OPENSSL_DIR}" != "x"; then
26941 if test -d ${OPENSSL_DIR}/lib; then
26942 pbxlibdir="-L${OPENSSL_DIR}/lib"
26943 else
26944 pbxlibdir="-L${OPENSSL_DIR}"
26947 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26948 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26949 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26950 echo $ECHO_N "(cached) $ECHO_C" >&6
26951 else
26952 ac_check_lib_save_LIBS=$LIBS
26953 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26954 cat >conftest.$ac_ext <<_ACEOF
26955 /* confdefs.h. */
26956 _ACEOF
26957 cat confdefs.h >>conftest.$ac_ext
26958 cat >>conftest.$ac_ext <<_ACEOF
26959 /* end confdefs.h. */
26961 /* Override any GCC internal prototype to avoid an error.
26962 Use char because int might match the return type of a GCC
26963 builtin and then its argument prototype would still apply. */
26964 #ifdef __cplusplus
26965 extern "C"
26966 #endif
26967 char ssl2_connect ();
26969 main ()
26971 return ssl2_connect ();
26973 return 0;
26975 _ACEOF
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
26978 case "(($ac_try" in
26979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980 *) ac_try_echo=$ac_try;;
26981 esac
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983 (eval "$ac_link") 2>conftest.er1
26984 ac_status=$?
26985 grep -v '^ *+' conftest.er1 >conftest.err
26986 rm -f conftest.er1
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } &&
26990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; } &&
27000 { ac_try='test -s conftest$ac_exeext'
27001 { (case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27004 esac
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_try") 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 ac_cv_lib_ssl_ssl2_connect=yes
27011 else
27012 echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27015 ac_cv_lib_ssl_ssl2_connect=no
27018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27019 conftest$ac_exeext conftest.$ac_ext
27020 LIBS=$ac_check_lib_save_LIBS
27022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
27023 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
27024 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
27025 AST_OPENSSL_FOUND=yes
27026 else
27027 AST_OPENSSL_FOUND=no
27031 if test "${AST_OPENSSL_FOUND}" = "yes"; then
27032 OPENSSL_LIB="-lssl -lcrypto"
27033 OPENSSL_HEADER_FOUND="1"
27034 if test "x${OPENSSL_DIR}" != "x"; then
27035 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
27036 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
27037 if test "xopenssl/ssl.h" != "x" ; then
27038 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
27039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27040 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
27041 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
27042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27045 ac_res=`eval echo '${'$as_ac_Header'}'`
27046 { echo "$as_me:$LINENO: result: $ac_res" >&5
27047 echo "${ECHO_T}$ac_res" >&6; }
27048 else
27049 # Is the header compilable?
27050 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
27051 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
27052 cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h. */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 $ac_includes_default
27059 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
27060 _ACEOF
27061 rm -f conftest.$ac_objext
27062 if { (ac_try="$ac_compile"
27063 case "(($ac_try" in
27064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065 *) ac_try_echo=$ac_try;;
27066 esac
27067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27068 (eval "$ac_compile") 2>conftest.er1
27069 ac_status=$?
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
27075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27076 { (case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_try") 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest.$ac_objext'
27086 { (case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27089 esac
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_try") 2>&5
27092 ac_status=$?
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 ac_header_compiler=yes
27096 else
27097 echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27100 ac_header_compiler=no
27103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105 echo "${ECHO_T}$ac_header_compiler" >&6; }
27107 # Is the header present?
27108 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
27109 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
27110 cat >conftest.$ac_ext <<_ACEOF
27111 /* confdefs.h. */
27112 _ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h. */
27116 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
27117 _ACEOF
27118 if { (ac_try="$ac_cpp conftest.$ac_ext"
27119 case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } >/dev/null; then
27131 if test -s conftest.err; then
27132 ac_cpp_err=$ac_c_preproc_warn_flag
27133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27134 else
27135 ac_cpp_err=
27137 else
27138 ac_cpp_err=yes
27140 if test -z "$ac_cpp_err"; then
27141 ac_header_preproc=yes
27142 else
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 ac_header_preproc=no
27149 rm -f conftest.err conftest.$ac_ext
27150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27151 echo "${ECHO_T}$ac_header_preproc" >&6; }
27153 # So? What about this header?
27154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27155 yes:no: )
27156 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27157 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
27159 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
27160 ac_header_preproc=yes
27162 no:yes:* )
27163 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
27164 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
27165 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
27166 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
27168 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
27169 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27170 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27171 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
27172 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27173 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
27174 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27177 esac
27178 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
27179 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
27180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27183 eval "$as_ac_Header=\$ac_header_preproc"
27185 ac_res=`eval echo '${'$as_ac_Header'}'`
27186 { echo "$as_me:$LINENO: result: $ac_res" >&5
27187 echo "${ECHO_T}$ac_res" >&6; }
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 OPENSSL_HEADER_FOUND=1
27192 else
27193 OPENSSL_HEADER_FOUND=0
27198 else
27199 if test "xopenssl/ssl.h" != "x" ; then
27200 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27201 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27202 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27203 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27207 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27208 else
27209 # Is the header compilable?
27210 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
27211 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h. */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 $ac_includes_default
27219 #include <openssl/ssl.h>
27220 _ACEOF
27221 rm -f conftest.$ac_objext
27222 if { (ac_try="$ac_compile"
27223 case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27226 esac
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_compile") 2>conftest.er1
27229 ac_status=$?
27230 grep -v '^ *+' conftest.er1 >conftest.err
27231 rm -f conftest.er1
27232 cat conftest.err >&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); } &&
27235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27236 { (case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_try") 2>&5
27242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; } &&
27245 { ac_try='test -s conftest.$ac_objext'
27246 { (case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27249 esac
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251 (eval "$ac_try") 2>&5
27252 ac_status=$?
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; }; then
27255 ac_header_compiler=yes
27256 else
27257 echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27260 ac_header_compiler=no
27263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27265 echo "${ECHO_T}$ac_header_compiler" >&6; }
27267 # Is the header present?
27268 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27269 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27270 cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h. */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27276 #include <openssl/ssl.h>
27277 _ACEOF
27278 if { (ac_try="$ac_cpp conftest.$ac_ext"
27279 case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27285 ac_status=$?
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } >/dev/null; then
27291 if test -s conftest.err; then
27292 ac_cpp_err=$ac_c_preproc_warn_flag
27293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27294 else
27295 ac_cpp_err=
27297 else
27298 ac_cpp_err=yes
27300 if test -z "$ac_cpp_err"; then
27301 ac_header_preproc=yes
27302 else
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 ac_header_preproc=no
27309 rm -f conftest.err conftest.$ac_ext
27310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27311 echo "${ECHO_T}$ac_header_preproc" >&6; }
27313 # So? What about this header?
27314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27315 yes:no: )
27316 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27317 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27318 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
27319 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
27320 ac_header_preproc=yes
27322 no:yes:* )
27323 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
27324 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
27326 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
27328 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
27329 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27330 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
27332 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
27334 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27337 esac
27338 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27339 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27340 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343 ac_cv_header_openssl_ssl_h=$ac_header_preproc
27345 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27346 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27349 if test $ac_cv_header_openssl_ssl_h = yes; then
27350 OPENSSL_HEADER_FOUND=1
27351 else
27352 OPENSSL_HEADER_FOUND=0
27358 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
27359 if test ! -z "${OPENSSL_MANDATORY}" ;
27360 then
27361 { echo "$as_me:$LINENO: ***" >&5
27362 echo "$as_me: ***" >&6;}
27363 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
27364 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
27365 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
27366 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&or re-run configure;}
27367 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27368 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27369 exit 1
27371 OPENSSL_LIB=""
27372 OPENSSL_INCLUDE=""
27373 PBX_OPENSSL=0
27374 else
27375 PBX_OPENSSL=1
27377 cat >>confdefs.h <<_ACEOF
27378 #define HAVE_OPENSSL 1
27379 _ACEOF
27382 elif test ! -z "${OPENSSL_MANDATORY}";
27383 then
27384 { echo "$as_me:$LINENO: ***" >&5
27385 echo "$as_me: ***" >&6;}
27386 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
27387 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
27388 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27389 echo "$as_me: *** Either correct the installation" >&or run configure;}
27390 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27391 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27392 exit 1
27398 if test "${USE_FREETDS}" != "no"; then
27399 pbxlibdir=""
27400 if test "x${FREETDS_DIR}" != "x"; then
27401 if test -d ${FREETDS_DIR}/lib; then
27402 pbxlibdir="-L${FREETDS_DIR}/lib"
27403 else
27404 pbxlibdir="-L${FREETDS_DIR}"
27407 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
27408 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
27409 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
27410 echo $ECHO_N "(cached) $ECHO_C" >&6
27411 else
27412 ac_check_lib_save_LIBS=$LIBS
27413 LIBS="-ltds ${pbxlibdir} $LIBS"
27414 cat >conftest.$ac_ext <<_ACEOF
27415 /* confdefs.h. */
27416 _ACEOF
27417 cat confdefs.h >>conftest.$ac_ext
27418 cat >>conftest.$ac_ext <<_ACEOF
27419 /* end confdefs.h. */
27421 /* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424 #ifdef __cplusplus
27425 extern "C"
27426 #endif
27427 char tds_version ();
27429 main ()
27431 return tds_version ();
27433 return 0;
27435 _ACEOF
27436 rm -f conftest.$ac_objext conftest$ac_exeext
27437 if { (ac_try="$ac_link"
27438 case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27441 esac
27442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_link") 2>conftest.er1
27444 ac_status=$?
27445 grep -v '^ *+' conftest.er1 >conftest.err
27446 rm -f conftest.er1
27447 cat conftest.err >&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); } &&
27450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27451 { (case "(($ac_try" in
27452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453 *) ac_try_echo=$ac_try;;
27454 esac
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456 (eval "$ac_try") 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; } &&
27460 { ac_try='test -s conftest$ac_exeext'
27461 { (case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_try") 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
27470 ac_cv_lib_tds_tds_version=yes
27471 else
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 ac_cv_lib_tds_tds_version=no
27478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27479 conftest$ac_exeext conftest.$ac_ext
27480 LIBS=$ac_check_lib_save_LIBS
27482 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
27483 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
27484 if test $ac_cv_lib_tds_tds_version = yes; then
27485 AST_FREETDS_FOUND=yes
27486 else
27487 AST_FREETDS_FOUND=no
27491 if test "${AST_FREETDS_FOUND}" = "yes"; then
27492 FREETDS_LIB="-ltds "
27493 FREETDS_HEADER_FOUND="1"
27494 if test "x${FREETDS_DIR}" != "x"; then
27495 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
27496 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
27497 if test "xtds.h" != "x" ; then
27498 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
27499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27500 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27501 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27503 echo $ECHO_N "(cached) $ECHO_C" >&6
27505 ac_res=`eval echo '${'$as_ac_Header'}'`
27506 { echo "$as_me:$LINENO: result: $ac_res" >&5
27507 echo "${ECHO_T}$ac_res" >&6; }
27508 else
27509 # Is the header compilable?
27510 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
27511 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
27512 cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h. */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 $ac_includes_default
27519 #include <${FREETDS_DIR}/include/tds.h>
27520 _ACEOF
27521 rm -f conftest.$ac_objext
27522 if { (ac_try="$ac_compile"
27523 case "(($ac_try" in
27524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525 *) ac_try_echo=$ac_try;;
27526 esac
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528 (eval "$ac_compile") 2>conftest.er1
27529 ac_status=$?
27530 grep -v '^ *+' conftest.er1 >conftest.err
27531 rm -f conftest.er1
27532 cat conftest.err >&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } &&
27535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539 esac
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; } &&
27545 { ac_try='test -s conftest.$ac_objext'
27546 { (case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27549 esac
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551 (eval "$ac_try") 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 ac_header_compiler=yes
27556 else
27557 echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27560 ac_header_compiler=no
27563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27565 echo "${ECHO_T}$ac_header_compiler" >&6; }
27567 # Is the header present?
27568 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
27569 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
27570 cat >conftest.$ac_ext <<_ACEOF
27571 /* confdefs.h. */
27572 _ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h. */
27576 #include <${FREETDS_DIR}/include/tds.h>
27577 _ACEOF
27578 if { (ac_try="$ac_cpp conftest.$ac_ext"
27579 case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27582 esac
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27585 ac_status=$?
27586 grep -v '^ *+' conftest.er1 >conftest.err
27587 rm -f conftest.er1
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } >/dev/null; then
27591 if test -s conftest.err; then
27592 ac_cpp_err=$ac_c_preproc_warn_flag
27593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27594 else
27595 ac_cpp_err=
27597 else
27598 ac_cpp_err=yes
27600 if test -z "$ac_cpp_err"; then
27601 ac_header_preproc=yes
27602 else
27603 echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27606 ac_header_preproc=no
27609 rm -f conftest.err conftest.$ac_ext
27610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27611 echo "${ECHO_T}$ac_header_preproc" >&6; }
27613 # So? What about this header?
27614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27615 yes:no: )
27616 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27617 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27618 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
27619 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
27620 ac_header_preproc=yes
27622 no:yes:* )
27623 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
27624 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
27625 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
27626 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
27627 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
27628 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
27629 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
27630 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27631 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
27632 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
27633 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
27634 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
27637 esac
27638 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27639 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643 eval "$as_ac_Header=\$ac_header_preproc"
27645 ac_res=`eval echo '${'$as_ac_Header'}'`
27646 { echo "$as_me:$LINENO: result: $ac_res" >&5
27647 echo "${ECHO_T}$ac_res" >&6; }
27650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27651 FREETDS_HEADER_FOUND=1
27652 else
27653 FREETDS_HEADER_FOUND=0
27658 else
27659 if test "xtds.h" != "x" ; then
27660 if test "${ac_cv_header_tds_h+set}" = set; then
27661 { echo "$as_me:$LINENO: checking for tds.h" >&5
27662 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27663 if test "${ac_cv_header_tds_h+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27667 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27668 else
27669 # Is the header compilable?
27670 { echo "$as_me:$LINENO: checking tds.h usability" >&5
27671 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
27672 cat >conftest.$ac_ext <<_ACEOF
27673 /* confdefs.h. */
27674 _ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27678 $ac_includes_default
27679 #include <tds.h>
27680 _ACEOF
27681 rm -f conftest.$ac_objext
27682 if { (ac_try="$ac_compile"
27683 case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27686 esac
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_compile") 2>conftest.er1
27689 ac_status=$?
27690 grep -v '^ *+' conftest.er1 >conftest.err
27691 rm -f conftest.er1
27692 cat conftest.err >&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } &&
27695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27696 { (case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27699 esac
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; } &&
27705 { ac_try='test -s conftest.$ac_objext'
27706 { (case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_try") 2>&5
27712 ac_status=$?
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 ac_header_compiler=yes
27716 else
27717 echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27720 ac_header_compiler=no
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27725 echo "${ECHO_T}$ac_header_compiler" >&6; }
27727 # Is the header present?
27728 { echo "$as_me:$LINENO: checking tds.h presence" >&5
27729 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
27730 cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h. */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27736 #include <tds.h>
27737 _ACEOF
27738 if { (ac_try="$ac_cpp conftest.$ac_ext"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27745 ac_status=$?
27746 grep -v '^ *+' conftest.er1 >conftest.err
27747 rm -f conftest.er1
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } >/dev/null; then
27751 if test -s conftest.err; then
27752 ac_cpp_err=$ac_c_preproc_warn_flag
27753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27754 else
27755 ac_cpp_err=
27757 else
27758 ac_cpp_err=yes
27760 if test -z "$ac_cpp_err"; then
27761 ac_header_preproc=yes
27762 else
27763 echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27766 ac_header_preproc=no
27769 rm -f conftest.err conftest.$ac_ext
27770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27771 echo "${ECHO_T}$ac_header_preproc" >&6; }
27773 # So? What about this header?
27774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27775 yes:no: )
27776 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27777 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
27779 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
27780 ac_header_preproc=yes
27782 no:yes:* )
27783 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
27784 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
27785 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
27786 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
27787 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
27788 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
27789 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
27790 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
27792 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
27794 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
27797 esac
27798 { echo "$as_me:$LINENO: checking for tds.h" >&5
27799 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27800 if test "${ac_cv_header_tds_h+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803 ac_cv_header_tds_h=$ac_header_preproc
27805 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27806 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27809 if test $ac_cv_header_tds_h = yes; then
27810 FREETDS_HEADER_FOUND=1
27811 else
27812 FREETDS_HEADER_FOUND=0
27818 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
27819 if test ! -z "${FREETDS_MANDATORY}" ;
27820 then
27821 { echo "$as_me:$LINENO: ***" >&5
27822 echo "$as_me: ***" >&6;}
27823 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
27824 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
27825 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
27826 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&or re-run configure;}
27827 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27828 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27829 exit 1
27831 FREETDS_LIB=""
27832 FREETDS_INCLUDE=""
27833 PBX_FREETDS=0
27834 else
27835 PBX_FREETDS=1
27837 cat >>confdefs.h <<_ACEOF
27838 #define HAVE_FREETDS 1
27839 _ACEOF
27842 elif test ! -z "${FREETDS_MANDATORY}";
27843 then
27844 { echo "$as_me:$LINENO: ***" >&5
27845 echo "$as_me: ***" >&6;}
27846 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
27847 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
27848 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27849 echo "$as_me: *** Either correct the installation" >&or run configure;}
27850 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27851 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27852 exit 1
27856 if test "${PBX_FREETDS}" != "0";
27857 then
27858 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
27859 *0.64*)
27860 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
27862 *0.63*)
27863 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
27865 *0.62*)
27866 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
27869 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
27871 esac
27875 if test "${USE_TERMCAP}" != "no"; then
27876 pbxlibdir=""
27877 if test "x${TERMCAP_DIR}" != "x"; then
27878 if test -d ${TERMCAP_DIR}/lib; then
27879 pbxlibdir="-L${TERMCAP_DIR}/lib"
27880 else
27881 pbxlibdir="-L${TERMCAP_DIR}"
27884 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
27885 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
27886 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 else
27889 ac_check_lib_save_LIBS=$LIBS
27890 LIBS="-ltermcap ${pbxlibdir} $LIBS"
27891 cat >conftest.$ac_ext <<_ACEOF
27892 /* confdefs.h. */
27893 _ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h. */
27898 /* Override any GCC internal prototype to avoid an error.
27899 Use char because int might match the return type of a GCC
27900 builtin and then its argument prototype would still apply. */
27901 #ifdef __cplusplus
27902 extern "C"
27903 #endif
27904 char tgetent ();
27906 main ()
27908 return tgetent ();
27910 return 0;
27912 _ACEOF
27913 rm -f conftest.$ac_objext conftest$ac_exeext
27914 if { (ac_try="$ac_link"
27915 case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_link") 2>conftest.er1
27921 ac_status=$?
27922 grep -v '^ *+' conftest.er1 >conftest.err
27923 rm -f conftest.er1
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } &&
27927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27928 { (case "(($ac_try" in
27929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930 *) ac_try_echo=$ac_try;;
27931 esac
27932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933 (eval "$ac_try") 2>&5
27934 ac_status=$?
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; } &&
27937 { ac_try='test -s conftest$ac_exeext'
27938 { (case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_try") 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
27947 ac_cv_lib_termcap_tgetent=yes
27948 else
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27952 ac_cv_lib_termcap_tgetent=no
27955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27956 conftest$ac_exeext conftest.$ac_ext
27957 LIBS=$ac_check_lib_save_LIBS
27959 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
27960 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
27961 if test $ac_cv_lib_termcap_tgetent = yes; then
27962 AST_TERMCAP_FOUND=yes
27963 else
27964 AST_TERMCAP_FOUND=no
27968 if test "${AST_TERMCAP_FOUND}" = "yes"; then
27969 TERMCAP_LIB="-ltermcap "
27970 TERMCAP_HEADER_FOUND="1"
27971 if test "x${TERMCAP_DIR}" != "x"; then
27972 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
27973 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
27974 if test "x" != "x" ; then
27975 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
27976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27977 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27978 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27982 ac_res=`eval echo '${'$as_ac_Header'}'`
27983 { echo "$as_me:$LINENO: result: $ac_res" >&5
27984 echo "${ECHO_T}$ac_res" >&6; }
27985 else
27986 # Is the header compilable?
27987 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
27988 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h. */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
27996 #include <${TERMCAP_DIR}/include/>
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28006 ac_status=$?
28007 grep -v '^ *+' conftest.er1 >conftest.err
28008 rm -f conftest.er1
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28013 { (case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_try") 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest.$ac_objext'
28023 { (case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28026 esac
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_try") 2>&5
28029 ac_status=$?
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 ac_header_compiler=yes
28033 else
28034 echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28037 ac_header_compiler=no
28040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28042 echo "${ECHO_T}$ac_header_compiler" >&6; }
28044 # Is the header present?
28045 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
28046 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
28047 cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h. */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053 #include <${TERMCAP_DIR}/include/>
28054 _ACEOF
28055 if { (ac_try="$ac_cpp conftest.$ac_ext"
28056 case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28059 esac
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28062 ac_status=$?
28063 grep -v '^ *+' conftest.er1 >conftest.err
28064 rm -f conftest.er1
28065 cat conftest.err >&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } >/dev/null; then
28068 if test -s conftest.err; then
28069 ac_cpp_err=$ac_c_preproc_warn_flag
28070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28071 else
28072 ac_cpp_err=
28074 else
28075 ac_cpp_err=yes
28077 if test -z "$ac_cpp_err"; then
28078 ac_header_preproc=yes
28079 else
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_header_preproc=no
28086 rm -f conftest.err conftest.$ac_ext
28087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28088 echo "${ECHO_T}$ac_header_preproc" >&6; }
28090 # So? What about this header?
28091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28092 yes:no: )
28093 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28094 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28095 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
28096 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
28097 ac_header_preproc=yes
28099 no:yes:* )
28100 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
28101 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
28102 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
28103 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
28104 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
28105 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
28106 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28107 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28108 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
28109 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28110 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
28111 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28114 esac
28115 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
28116 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
28117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28118 echo $ECHO_N "(cached) $ECHO_C" >&6
28119 else
28120 eval "$as_ac_Header=\$ac_header_preproc"
28122 ac_res=`eval echo '${'$as_ac_Header'}'`
28123 { echo "$as_me:$LINENO: result: $ac_res" >&5
28124 echo "${ECHO_T}$ac_res" >&6; }
28127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28128 TERMCAP_HEADER_FOUND=1
28129 else
28130 TERMCAP_HEADER_FOUND=0
28135 else
28136 if test "x" != "x" ; then
28137 if test "${ac_cv_header_+set}" = set; then
28138 { echo "$as_me:$LINENO: checking for " >&5
28139 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28140 if test "${ac_cv_header_+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28143 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28144 echo "${ECHO_T}$ac_cv_header_" >&6; }
28145 else
28146 # Is the header compilable?
28147 { echo "$as_me:$LINENO: checking usability" >&5
28148 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28149 cat >conftest.$ac_ext <<_ACEOF
28150 /* confdefs.h. */
28151 _ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 $ac_includes_default
28156 #include <>
28157 _ACEOF
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186 esac
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28192 ac_header_compiler=yes
28193 else
28194 echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28197 ac_header_compiler=no
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28202 echo "${ECHO_T}$ac_header_compiler" >&6; }
28204 # Is the header present?
28205 { echo "$as_me:$LINENO: checking presence" >&5
28206 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28207 cat >conftest.$ac_ext <<_ACEOF
28208 /* confdefs.h. */
28209 _ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h. */
28213 #include <>
28214 _ACEOF
28215 if { (ac_try="$ac_cpp conftest.$ac_ext"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28222 ac_status=$?
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } >/dev/null; then
28228 if test -s conftest.err; then
28229 ac_cpp_err=$ac_c_preproc_warn_flag
28230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28231 else
28232 ac_cpp_err=
28234 else
28235 ac_cpp_err=yes
28237 if test -z "$ac_cpp_err"; then
28238 ac_header_preproc=yes
28239 else
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ac_header_preproc=no
28246 rm -f conftest.err conftest.$ac_ext
28247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28248 echo "${ECHO_T}$ac_header_preproc" >&6; }
28250 # So? What about this header?
28251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28252 yes:no: )
28253 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28254 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28255 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28256 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28257 ac_header_preproc=yes
28259 no:yes:* )
28260 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28261 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28262 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28263 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28264 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28265 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28266 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28267 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28269 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28271 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28274 esac
28275 { echo "$as_me:$LINENO: checking for " >&5
28276 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28277 if test "${ac_cv_header_+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28279 else
28280 ac_cv_header_=$ac_header_preproc
28282 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28283 echo "${ECHO_T}$ac_cv_header_" >&6; }
28286 if test $ac_cv_header_ = yes; then
28287 TERMCAP_HEADER_FOUND=1
28288 else
28289 TERMCAP_HEADER_FOUND=0
28295 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28296 if test ! -z "${TERMCAP_MANDATORY}" ;
28297 then
28298 { echo "$as_me:$LINENO: ***" >&5
28299 echo "$as_me: ***" >&6;}
28300 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28301 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28302 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
28303 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&or re-run configure;}
28304 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28305 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28306 exit 1
28308 TERMCAP_LIB=""
28309 TERMCAP_INCLUDE=""
28310 PBX_TERMCAP=0
28311 else
28312 PBX_TERMCAP=1
28314 cat >>confdefs.h <<_ACEOF
28315 #define HAVE_TERMCAP 1
28316 _ACEOF
28319 elif test ! -z "${TERMCAP_MANDATORY}";
28320 then
28321 { echo "$as_me:$LINENO: ***" >&5
28322 echo "$as_me: ***" >&6;}
28323 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28324 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28325 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28326 echo "$as_me: *** Either correct the installation" >&or run configure;}
28327 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28328 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28329 exit 1
28335 if test "${USE_TINFO}" != "no"; then
28336 pbxlibdir=""
28337 if test "x${TINFO_DIR}" != "x"; then
28338 if test -d ${TINFO_DIR}/lib; then
28339 pbxlibdir="-L${TINFO_DIR}/lib"
28340 else
28341 pbxlibdir="-L${TINFO_DIR}"
28344 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28345 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28346 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349 ac_check_lib_save_LIBS=$LIBS
28350 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28351 cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h. */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28358 /* Override any GCC internal prototype to avoid an error.
28359 Use char because int might match the return type of a GCC
28360 builtin and then its argument prototype would still apply. */
28361 #ifdef __cplusplus
28362 extern "C"
28363 #endif
28364 char tgetent ();
28366 main ()
28368 return tgetent ();
28370 return 0;
28372 _ACEOF
28373 rm -f conftest.$ac_objext conftest$ac_exeext
28374 if { (ac_try="$ac_link"
28375 case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378 esac
28379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_link") 2>conftest.er1
28381 ac_status=$?
28382 grep -v '^ *+' conftest.er1 >conftest.err
28383 rm -f conftest.er1
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28388 { (case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_try") 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
28397 { ac_try='test -s conftest$ac_exeext'
28398 { (case "(($ac_try" in
28399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400 *) ac_try_echo=$ac_try;;
28401 esac
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_try") 2>&5
28404 ac_status=$?
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; }; then
28407 ac_cv_lib_tinfo_tgetent=yes
28408 else
28409 echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28412 ac_cv_lib_tinfo_tgetent=no
28415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28416 conftest$ac_exeext conftest.$ac_ext
28417 LIBS=$ac_check_lib_save_LIBS
28419 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
28420 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
28421 if test $ac_cv_lib_tinfo_tgetent = yes; then
28422 AST_TINFO_FOUND=yes
28423 else
28424 AST_TINFO_FOUND=no
28428 if test "${AST_TINFO_FOUND}" = "yes"; then
28429 TINFO_LIB="-ltinfo "
28430 TINFO_HEADER_FOUND="1"
28431 if test "x${TINFO_DIR}" != "x"; then
28432 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
28433 TINFO_INCLUDE="-I${TINFO_DIR}/include"
28434 if test "x" != "x" ; then
28435 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
28436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28437 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28438 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28440 echo $ECHO_N "(cached) $ECHO_C" >&6
28442 ac_res=`eval echo '${'$as_ac_Header'}'`
28443 { echo "$as_me:$LINENO: result: $ac_res" >&5
28444 echo "${ECHO_T}$ac_res" >&6; }
28445 else
28446 # Is the header compilable?
28447 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
28448 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
28449 cat >conftest.$ac_ext <<_ACEOF
28450 /* confdefs.h. */
28451 _ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28455 $ac_includes_default
28456 #include <${TINFO_DIR}/include/>
28457 _ACEOF
28458 rm -f conftest.$ac_objext
28459 if { (ac_try="$ac_compile"
28460 case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28463 esac
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_compile") 2>conftest.er1
28466 ac_status=$?
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } &&
28472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28473 { (case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_try") 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; } &&
28482 { ac_try='test -s conftest.$ac_objext'
28483 { (case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28486 esac
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_try") 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; }; then
28492 ac_header_compiler=yes
28493 else
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28497 ac_header_compiler=no
28500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28502 echo "${ECHO_T}$ac_header_compiler" >&6; }
28504 # Is the header present?
28505 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
28506 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
28507 cat >conftest.$ac_ext <<_ACEOF
28508 /* confdefs.h. */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h. */
28513 #include <${TINFO_DIR}/include/>
28514 _ACEOF
28515 if { (ac_try="$ac_cpp conftest.$ac_ext"
28516 case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28519 esac
28520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28522 ac_status=$?
28523 grep -v '^ *+' conftest.er1 >conftest.err
28524 rm -f conftest.er1
28525 cat conftest.err >&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } >/dev/null; then
28528 if test -s conftest.err; then
28529 ac_cpp_err=$ac_c_preproc_warn_flag
28530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28531 else
28532 ac_cpp_err=
28534 else
28535 ac_cpp_err=yes
28537 if test -z "$ac_cpp_err"; then
28538 ac_header_preproc=yes
28539 else
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28543 ac_header_preproc=no
28546 rm -f conftest.err conftest.$ac_ext
28547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28548 echo "${ECHO_T}$ac_header_preproc" >&6; }
28550 # So? What about this header?
28551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28552 yes:no: )
28553 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28554 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28555 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
28556 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
28557 ac_header_preproc=yes
28559 no:yes:* )
28560 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
28561 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
28562 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
28563 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
28564 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
28565 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
28566 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28567 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28568 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
28569 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28570 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
28571 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28574 esac
28575 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28576 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 else
28580 eval "$as_ac_Header=\$ac_header_preproc"
28582 ac_res=`eval echo '${'$as_ac_Header'}'`
28583 { echo "$as_me:$LINENO: result: $ac_res" >&5
28584 echo "${ECHO_T}$ac_res" >&6; }
28587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28588 TINFO_HEADER_FOUND=1
28589 else
28590 TINFO_HEADER_FOUND=0
28595 else
28596 if test "x" != "x" ; then
28597 if test "${ac_cv_header_+set}" = set; then
28598 { echo "$as_me:$LINENO: checking for " >&5
28599 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28600 if test "${ac_cv_header_+set}" = set; then
28601 echo $ECHO_N "(cached) $ECHO_C" >&6
28603 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28604 echo "${ECHO_T}$ac_cv_header_" >&6; }
28605 else
28606 # Is the header compilable?
28607 { echo "$as_me:$LINENO: checking usability" >&5
28608 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28609 cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h. */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28615 $ac_includes_default
28616 #include <>
28617 _ACEOF
28618 rm -f conftest.$ac_objext
28619 if { (ac_try="$ac_compile"
28620 case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_compile") 2>conftest.er1
28626 ac_status=$?
28627 grep -v '^ *+' conftest.er1 >conftest.err
28628 rm -f conftest.er1
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28633 { (case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28636 esac
28637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638 (eval "$ac_try") 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
28643 { (case "(($ac_try" in
28644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28646 esac
28647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_try") 2>&5
28649 ac_status=$?
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; }; then
28652 ac_header_compiler=yes
28653 else
28654 echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28657 ac_header_compiler=no
28660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28662 echo "${ECHO_T}$ac_header_compiler" >&6; }
28664 # Is the header present?
28665 { echo "$as_me:$LINENO: checking presence" >&5
28666 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28667 cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h. */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28673 #include <>
28674 _ACEOF
28675 if { (ac_try="$ac_cpp conftest.$ac_ext"
28676 case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679 esac
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28682 ac_status=$?
28683 grep -v '^ *+' conftest.er1 >conftest.err
28684 rm -f conftest.er1
28685 cat conftest.err >&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); } >/dev/null; then
28688 if test -s conftest.err; then
28689 ac_cpp_err=$ac_c_preproc_warn_flag
28690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28691 else
28692 ac_cpp_err=
28694 else
28695 ac_cpp_err=yes
28697 if test -z "$ac_cpp_err"; then
28698 ac_header_preproc=yes
28699 else
28700 echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 ac_header_preproc=no
28706 rm -f conftest.err conftest.$ac_ext
28707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28708 echo "${ECHO_T}$ac_header_preproc" >&6; }
28710 # So? What about this header?
28711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28712 yes:no: )
28713 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28714 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28715 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28716 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28717 ac_header_preproc=yes
28719 no:yes:* )
28720 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28721 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28722 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28723 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28724 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28725 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28726 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28727 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28729 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28731 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28734 esac
28735 { echo "$as_me:$LINENO: checking for " >&5
28736 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28737 if test "${ac_cv_header_+set}" = set; then
28738 echo $ECHO_N "(cached) $ECHO_C" >&6
28739 else
28740 ac_cv_header_=$ac_header_preproc
28742 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28743 echo "${ECHO_T}$ac_cv_header_" >&6; }
28746 if test $ac_cv_header_ = yes; then
28747 TINFO_HEADER_FOUND=1
28748 else
28749 TINFO_HEADER_FOUND=0
28755 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
28756 if test ! -z "${TINFO_MANDATORY}" ;
28757 then
28758 { echo "$as_me:$LINENO: ***" >&5
28759 echo "$as_me: ***" >&6;}
28760 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
28761 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
28762 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support" >&5
28763 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&or re-run configure;}
28764 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28765 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28766 exit 1
28768 TINFO_LIB=""
28769 TINFO_INCLUDE=""
28770 PBX_TINFO=0
28771 else
28772 PBX_TINFO=1
28774 cat >>confdefs.h <<_ACEOF
28775 #define HAVE_TINFO 1
28776 _ACEOF
28779 elif test ! -z "${TINFO_MANDATORY}";
28780 then
28781 { echo "$as_me:$LINENO: ***" >&5
28782 echo "$as_me: ***" >&6;}
28783 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
28784 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
28785 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28786 echo "$as_me: *** Either correct the installation" >&or run configure;}
28787 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28788 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28789 exit 1
28794 if test "${host_os}" != "linux-gnu" ; then
28795 tonezone_extra="-lm"
28799 if test "${USE_TONEZONE}" != "no"; then
28800 pbxlibdir=""
28801 if test "x${TONEZONE_DIR}" != "x"; then
28802 if test -d ${TONEZONE_DIR}/lib; then
28803 pbxlibdir="-L${TONEZONE_DIR}/lib"
28804 else
28805 pbxlibdir="-L${TONEZONE_DIR}"
28808 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
28809 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
28810 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812 else
28813 ac_check_lib_save_LIBS=$LIBS
28814 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
28815 cat >conftest.$ac_ext <<_ACEOF
28816 /* confdefs.h. */
28817 _ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28822 /* Override any GCC internal prototype to avoid an error.
28823 Use char because int might match the return type of a GCC
28824 builtin and then its argument prototype would still apply. */
28825 #ifdef __cplusplus
28826 extern "C"
28827 #endif
28828 char tone_zone_find ();
28830 main ()
28832 return tone_zone_find ();
28834 return 0;
28836 _ACEOF
28837 rm -f conftest.$ac_objext conftest$ac_exeext
28838 if { (ac_try="$ac_link"
28839 case "(($ac_try" in
28840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841 *) ac_try_echo=$ac_try;;
28842 esac
28843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844 (eval "$ac_link") 2>conftest.er1
28845 ac_status=$?
28846 grep -v '^ *+' conftest.er1 >conftest.err
28847 rm -f conftest.er1
28848 cat conftest.err >&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } &&
28851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28852 { (case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_try") 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest$ac_exeext'
28862 { (case "(($ac_try" in
28863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864 *) ac_try_echo=$ac_try;;
28865 esac
28866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28867 (eval "$ac_try") 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 ac_cv_lib_tonezone_tone_zone_find=yes
28872 else
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 ac_cv_lib_tonezone_tone_zone_find=no
28879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28880 conftest$ac_exeext conftest.$ac_ext
28881 LIBS=$ac_check_lib_save_LIBS
28883 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
28884 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
28885 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
28886 AST_TONEZONE_FOUND=yes
28887 else
28888 AST_TONEZONE_FOUND=no
28892 if test "${AST_TONEZONE_FOUND}" = "yes"; then
28893 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
28894 TONEZONE_HEADER_FOUND="1"
28895 if test "x${TONEZONE_DIR}" != "x"; then
28896 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
28897 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
28898 if test "xzaptel/tonezone.h" != "x" ; then
28899 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
28900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28901 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28902 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 ac_res=`eval echo '${'$as_ac_Header'}'`
28907 { echo "$as_me:$LINENO: result: $ac_res" >&5
28908 echo "${ECHO_T}$ac_res" >&6; }
28909 else
28910 # Is the header compilable?
28911 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
28912 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
28913 cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h. */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 $ac_includes_default
28920 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28921 _ACEOF
28922 rm -f conftest.$ac_objext
28923 if { (ac_try="$ac_compile"
28924 case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_compile") 2>conftest.er1
28930 ac_status=$?
28931 grep -v '^ *+' conftest.er1 >conftest.err
28932 rm -f conftest.er1
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28937 { (case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_try") 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
28947 { (case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28950 esac
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952 (eval "$ac_try") 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_header_compiler=yes
28957 else
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_header_compiler=no
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 echo "${ECHO_T}$ac_header_compiler" >&6; }
28968 # Is the header present?
28969 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
28970 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h. */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28978 _ACEOF
28979 if { (ac_try="$ac_cpp conftest.$ac_ext"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } >/dev/null; then
28992 if test -s conftest.err; then
28993 ac_cpp_err=$ac_c_preproc_warn_flag
28994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28995 else
28996 ac_cpp_err=
28998 else
28999 ac_cpp_err=yes
29001 if test -z "$ac_cpp_err"; then
29002 ac_header_preproc=yes
29003 else
29004 echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29007 ac_header_preproc=no
29010 rm -f conftest.err conftest.$ac_ext
29011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6; }
29014 # So? What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016 yes:no: )
29017 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29023 no:yes:* )
29024 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
29038 esac
29039 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
29040 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
29041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29042 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 else
29044 eval "$as_ac_Header=\$ac_header_preproc"
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047 { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29052 TONEZONE_HEADER_FOUND=1
29053 else
29054 TONEZONE_HEADER_FOUND=0
29059 else
29060 if test "xzaptel/tonezone.h" != "x" ; then
29061 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29062 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
29063 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
29064 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29067 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
29068 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
29069 else
29070 # Is the header compilable?
29071 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
29072 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
29073 cat >conftest.$ac_ext <<_ACEOF
29074 /* confdefs.h. */
29075 _ACEOF
29076 cat confdefs.h >>conftest.$ac_ext
29077 cat >>conftest.$ac_ext <<_ACEOF
29078 /* end confdefs.h. */
29079 $ac_includes_default
29080 #include <zaptel/tonezone.h>
29081 _ACEOF
29082 rm -f conftest.$ac_objext
29083 if { (ac_try="$ac_compile"
29084 case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087 esac
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_compile") 2>conftest.er1
29090 ac_status=$?
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29097 { (case "(($ac_try" in
29098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099 *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102 (eval "$ac_try") 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest.$ac_objext'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_header_compiler=yes
29117 else
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29121 ac_header_compiler=no
29124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29126 echo "${ECHO_T}$ac_header_compiler" >&6; }
29128 # Is the header present?
29129 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
29130 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
29131 cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h. */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29137 #include <zaptel/tonezone.h>
29138 _ACEOF
29139 if { (ac_try="$ac_cpp conftest.$ac_ext"
29140 case "(($ac_try" in
29141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142 *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29146 ac_status=$?
29147 grep -v '^ *+' conftest.er1 >conftest.err
29148 rm -f conftest.er1
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } >/dev/null; then
29152 if test -s conftest.err; then
29153 ac_cpp_err=$ac_c_preproc_warn_flag
29154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29155 else
29156 ac_cpp_err=
29158 else
29159 ac_cpp_err=yes
29161 if test -z "$ac_cpp_err"; then
29162 ac_header_preproc=yes
29163 else
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29167 ac_header_preproc=no
29170 rm -f conftest.err conftest.$ac_ext
29171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29172 echo "${ECHO_T}$ac_header_preproc" >&6; }
29174 # So? What about this header?
29175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29176 yes:no: )
29177 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29178 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
29180 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
29181 ac_header_preproc=yes
29183 no:yes:* )
29184 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
29185 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
29186 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
29187 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
29188 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
29189 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
29190 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29191 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29192 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
29193 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
29194 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
29195 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
29198 esac
29199 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
29200 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
29201 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29203 else
29204 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
29206 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
29207 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
29210 if test $ac_cv_header_zaptel_tonezone_h = yes; then
29211 TONEZONE_HEADER_FOUND=1
29212 else
29213 TONEZONE_HEADER_FOUND=0
29219 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
29220 if test ! -z "${TONEZONE_MANDATORY}" ;
29221 then
29222 { echo "$as_me:$LINENO: ***" >&5
29223 echo "$as_me: ***" >&6;}
29224 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
29225 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
29226 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
29227 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&or re-run configure;}
29228 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29229 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29230 exit 1
29232 TONEZONE_LIB=""
29233 TONEZONE_INCLUDE=""
29234 PBX_TONEZONE=0
29235 else
29236 PBX_TONEZONE=1
29238 cat >>confdefs.h <<_ACEOF
29239 #define HAVE_TONEZONE 1
29240 _ACEOF
29243 elif test ! -z "${TONEZONE_MANDATORY}";
29244 then
29245 { echo "$as_me:$LINENO: ***" >&5
29246 echo "$as_me: ***" >&6;}
29247 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
29248 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
29249 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29250 echo "$as_me: *** Either correct the installation" >&or run configure;}
29251 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29252 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29253 exit 1
29259 if test "${USE_VORBIS}" != "no"; then
29260 pbxlibdir=""
29261 if test "x${VORBIS_DIR}" != "x"; then
29262 if test -d ${VORBIS_DIR}/lib; then
29263 pbxlibdir="-L${VORBIS_DIR}/lib"
29264 else
29265 pbxlibdir="-L${VORBIS_DIR}"
29268 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29269 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29270 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273 ac_check_lib_save_LIBS=$LIBS
29274 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29275 cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h. */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 /* Override any GCC internal prototype to avoid an error.
29283 Use char because int might match the return type of a GCC
29284 builtin and then its argument prototype would still apply. */
29285 #ifdef __cplusplus
29286 extern "C"
29287 #endif
29288 char vorbis_info_init ();
29290 main ()
29292 return vorbis_info_init ();
29294 return 0;
29296 _ACEOF
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (ac_try="$ac_link"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_link") 2>conftest.er1
29305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } &&
29311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29312 { (case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_try") 2>&5
29318 ac_status=$?
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; } &&
29321 { ac_try='test -s conftest$ac_exeext'
29322 { (case "(($ac_try" in
29323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324 *) ac_try_echo=$ac_try;;
29325 esac
29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327 (eval "$ac_try") 2>&5
29328 ac_status=$?
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; }; then
29331 ac_cv_lib_vorbis_vorbis_info_init=yes
29332 else
29333 echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29336 ac_cv_lib_vorbis_vorbis_info_init=no
29339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29340 conftest$ac_exeext conftest.$ac_ext
29341 LIBS=$ac_check_lib_save_LIBS
29343 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29344 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29345 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29346 AST_VORBIS_FOUND=yes
29347 else
29348 AST_VORBIS_FOUND=no
29352 if test "${AST_VORBIS_FOUND}" = "yes"; then
29353 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29354 VORBIS_HEADER_FOUND="1"
29355 if test "x${VORBIS_DIR}" != "x"; then
29356 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29357 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29358 if test "xvorbis/codec.h" != "x" ; then
29359 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
29360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29361 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29362 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 ac_res=`eval echo '${'$as_ac_Header'}'`
29367 { echo "$as_me:$LINENO: result: $ac_res" >&5
29368 echo "${ECHO_T}$ac_res" >&6; }
29369 else
29370 # Is the header compilable?
29371 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
29372 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
29373 cat >conftest.$ac_ext <<_ACEOF
29374 /* confdefs.h. */
29375 _ACEOF
29376 cat confdefs.h >>conftest.$ac_ext
29377 cat >>conftest.$ac_ext <<_ACEOF
29378 /* end confdefs.h. */
29379 $ac_includes_default
29380 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29381 _ACEOF
29382 rm -f conftest.$ac_objext
29383 if { (ac_try="$ac_compile"
29384 case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29387 esac
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_compile") 2>conftest.er1
29390 ac_status=$?
29391 grep -v '^ *+' conftest.er1 >conftest.err
29392 rm -f conftest.er1
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } &&
29396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29397 { (case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_try") 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
29407 { (case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29410 esac
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_try") 2>&5
29413 ac_status=$?
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); }; }; then
29416 ac_header_compiler=yes
29417 else
29418 echo "$as_me: failed program was:" >&5
29419 sed 's/^/| /' conftest.$ac_ext >&5
29421 ac_header_compiler=no
29424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29426 echo "${ECHO_T}$ac_header_compiler" >&6; }
29428 # Is the header present?
29429 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
29430 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
29431 cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h. */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29437 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29438 _ACEOF
29439 if { (ac_try="$ac_cpp conftest.$ac_ext"
29440 case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29446 ac_status=$?
29447 grep -v '^ *+' conftest.er1 >conftest.err
29448 rm -f conftest.er1
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } >/dev/null; then
29452 if test -s conftest.err; then
29453 ac_cpp_err=$ac_c_preproc_warn_flag
29454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29455 else
29456 ac_cpp_err=
29458 else
29459 ac_cpp_err=yes
29461 if test -z "$ac_cpp_err"; then
29462 ac_header_preproc=yes
29463 else
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ac_header_preproc=no
29470 rm -f conftest.err conftest.$ac_ext
29471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29472 echo "${ECHO_T}$ac_header_preproc" >&6; }
29474 # So? What about this header?
29475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29476 yes:no: )
29477 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29478 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
29480 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
29481 ac_header_preproc=yes
29483 no:yes:* )
29484 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
29485 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
29487 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
29489 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29491 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29492 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
29493 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
29495 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29498 esac
29499 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29500 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504 eval "$as_ac_Header=\$ac_header_preproc"
29506 ac_res=`eval echo '${'$as_ac_Header'}'`
29507 { echo "$as_me:$LINENO: result: $ac_res" >&5
29508 echo "${ECHO_T}$ac_res" >&6; }
29511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29512 VORBIS_HEADER_FOUND=1
29513 else
29514 VORBIS_HEADER_FOUND=0
29519 else
29520 if test "xvorbis/codec.h" != "x" ; then
29521 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29522 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29523 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29524 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29528 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29529 else
29530 # Is the header compilable?
29531 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29532 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29533 cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h. */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h. */
29539 $ac_includes_default
29540 #include <vorbis/codec.h>
29541 _ACEOF
29542 rm -f conftest.$ac_objext
29543 if { (ac_try="$ac_compile"
29544 case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547 esac
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
29550 ac_status=$?
29551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570 esac
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_header_compiler=yes
29577 else
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581 ac_header_compiler=no
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29586 echo "${ECHO_T}$ac_header_compiler" >&6; }
29588 # Is the header present?
29589 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29590 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29591 cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h. */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h. */
29597 #include <vorbis/codec.h>
29598 _ACEOF
29599 if { (ac_try="$ac_cpp conftest.$ac_ext"
29600 case "(($ac_try" in
29601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29602 *) ac_try_echo=$ac_try;;
29603 esac
29604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29606 ac_status=$?
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } >/dev/null; then
29612 if test -s conftest.err; then
29613 ac_cpp_err=$ac_c_preproc_warn_flag
29614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29615 else
29616 ac_cpp_err=
29618 else
29619 ac_cpp_err=yes
29621 if test -z "$ac_cpp_err"; then
29622 ac_header_preproc=yes
29623 else
29624 echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29627 ac_header_preproc=no
29630 rm -f conftest.err conftest.$ac_ext
29631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29632 echo "${ECHO_T}$ac_header_preproc" >&6; }
29634 # So? What about this header?
29635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29636 yes:no: )
29637 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29638 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29640 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29641 ac_header_preproc=yes
29643 no:yes:* )
29644 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29645 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29646 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29647 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29649 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29650 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29651 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29652 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29653 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29654 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29655 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29658 esac
29659 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29660 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29661 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29662 echo $ECHO_N "(cached) $ECHO_C" >&6
29663 else
29664 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29666 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29667 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29670 if test $ac_cv_header_vorbis_codec_h = yes; then
29671 VORBIS_HEADER_FOUND=1
29672 else
29673 VORBIS_HEADER_FOUND=0
29679 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29680 if test ! -z "${VORBIS_MANDATORY}" ;
29681 then
29682 { echo "$as_me:$LINENO: ***" >&5
29683 echo "$as_me: ***" >&6;}
29684 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29685 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29686 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
29687 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&or re-run configure;}
29688 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29689 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29690 exit 1
29692 VORBIS_LIB=""
29693 VORBIS_INCLUDE=""
29694 PBX_VORBIS=0
29695 else
29696 PBX_VORBIS=1
29698 cat >>confdefs.h <<_ACEOF
29699 #define HAVE_VORBIS 1
29700 _ACEOF
29703 elif test ! -z "${VORBIS_MANDATORY}";
29704 then
29705 { echo "$as_me:$LINENO: ***" >&5
29706 echo "$as_me: ***" >&6;}
29707 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
29708 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
29709 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29710 echo "$as_me: *** Either correct the installation" >&or run configure;}
29711 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29712 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29713 exit 1
29718 ac_ext=cpp
29719 ac_cpp='$CXXCPP $CPPFLAGS'
29720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29725 if test "${USE_VPB}" != "no"; then
29726 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
29727 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
29728 saved_libs="${LIBS}"
29729 saved_cppflags="${CPPFLAGS}"
29730 if test "x${VPB_DIR}" != "x"; then
29731 if test -d ${VPB_DIR}/lib; then
29732 vpblibdir=${VPB_DIR}/lib
29733 else
29734 vpblibdir=${VPB_DIR}
29736 LIBS="${LIBS} -L${vpblibdir}"
29737 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
29739 LIBS="${LIBS} -lvpb -lpthread"
29740 cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h. */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29747 #include <vpbapi.h>
29749 main ()
29751 int q = vpb_open(0,0);
29753 return 0;
29756 _ACEOF
29757 rm -f conftest.$ac_objext conftest$ac_exeext
29758 if { (ac_try="$ac_link"
29759 case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29762 esac
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_link") 2>conftest.er1
29765 ac_status=$?
29766 grep -v '^ *+' conftest.er1 >conftest.err
29767 rm -f conftest.er1
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29772 { (case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_try") 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; } &&
29781 { ac_try='test -s conftest$ac_exeext'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785 esac
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 { echo "$as_me:$LINENO: result: yes" >&5
29792 echo "${ECHO_T}yes" >&6; }
29793 ac_cv_lib_vpb_vpb_open="yes"
29795 else
29796 echo "$as_me: failed program was:" >&5
29797 sed 's/^/| /' conftest.$ac_ext >&5
29799 { echo "$as_me:$LINENO: result: no" >&5
29800 echo "${ECHO_T}no" >&6; }
29801 ac_cv_lib_vpb_vpb_open="no"
29806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29807 conftest$ac_exeext conftest.$ac_ext
29808 LIBS="${saved_libs}"
29809 CPPFLAGS="${saved_cppflags}"
29810 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
29811 VPB_LIB="-lvpb"
29812 if test "${VPB_DIR}" != ""; then
29813 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
29814 VPB_INCLUDE="-I${VPB_DIR}/include"
29816 PBX_VPB=1
29818 cat >>confdefs.h <<\_ACEOF
29819 #define HAVE_VPB 1
29820 _ACEOF
29822 elif test ! -z "${VPB_MANDATORY}"; then
29823 { echo "$as_me:$LINENO: ***" >&5
29824 echo "$as_me: ***" >&6;}
29825 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
29826 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
29827 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29828 echo "$as_me: *** Either correct the installation" >&or run configure;}
29829 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
29830 echo "$as_me: *** including --without-vpb." >&6;}
29831 exit 1
29835 ac_ext=c
29836 ac_cpp='$CPP $CPPFLAGS'
29837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29843 if test "${USE_ZLIB}" != "no"; then
29844 pbxlibdir=""
29845 if test "x${ZLIB_DIR}" != "x"; then
29846 if test -d ${ZLIB_DIR}/lib; then
29847 pbxlibdir="-L${ZLIB_DIR}/lib"
29848 else
29849 pbxlibdir="-L${ZLIB_DIR}"
29852 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
29853 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
29854 if test "${ac_cv_lib_z_compress+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857 ac_check_lib_save_LIBS=$LIBS
29858 LIBS="-lz ${pbxlibdir} $LIBS"
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h. */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29866 /* Override any GCC internal prototype to avoid an error.
29867 Use char because int might match the return type of a GCC
29868 builtin and then its argument prototype would still apply. */
29869 #ifdef __cplusplus
29870 extern "C"
29871 #endif
29872 char compress ();
29874 main ()
29876 return compress ();
29878 return 0;
29880 _ACEOF
29881 rm -f conftest.$ac_objext conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888 (eval "$ac_link") 2>conftest.er1
29889 ac_status=$?
29890 grep -v '^ *+' conftest.er1 >conftest.err
29891 rm -f conftest.er1
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
29895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29899 esac
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_try") 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest$ac_exeext'
29906 { (case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_try") 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_lib_z_compress=yes
29916 else
29917 echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29920 ac_cv_lib_z_compress=no
29923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29924 conftest$ac_exeext conftest.$ac_ext
29925 LIBS=$ac_check_lib_save_LIBS
29927 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
29928 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
29929 if test $ac_cv_lib_z_compress = yes; then
29930 AST_ZLIB_FOUND=yes
29931 else
29932 AST_ZLIB_FOUND=no
29936 if test "${AST_ZLIB_FOUND}" = "yes"; then
29937 ZLIB_LIB="-lz "
29938 ZLIB_HEADER_FOUND="1"
29939 if test "x${ZLIB_DIR}" != "x"; then
29940 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
29941 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
29942 if test "xzlib.h" != "x" ; then
29943 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
29944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29945 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29946 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 ac_res=`eval echo '${'$as_ac_Header'}'`
29951 { echo "$as_me:$LINENO: result: $ac_res" >&5
29952 echo "${ECHO_T}$ac_res" >&6; }
29953 else
29954 # Is the header compilable?
29955 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
29956 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
29957 cat >conftest.$ac_ext <<_ACEOF
29958 /* confdefs.h. */
29959 _ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h. */
29963 $ac_includes_default
29964 #include <${ZLIB_DIR}/include/zlib.h>
29965 _ACEOF
29966 rm -f conftest.$ac_objext
29967 if { (ac_try="$ac_compile"
29968 case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29971 esac
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_compile") 2>conftest.er1
29974 ac_status=$?
29975 grep -v '^ *+' conftest.er1 >conftest.err
29976 rm -f conftest.er1
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
29980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29981 { (case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_try") 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest.$ac_objext'
29991 { (case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29994 esac
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_try") 2>&5
29997 ac_status=$?
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; }; then
30000 ac_header_compiler=yes
30001 else
30002 echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30005 ac_header_compiler=no
30008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30010 echo "${ECHO_T}$ac_header_compiler" >&6; }
30012 # Is the header present?
30013 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
30014 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
30015 cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h. */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h. */
30021 #include <${ZLIB_DIR}/include/zlib.h>
30022 _ACEOF
30023 if { (ac_try="$ac_cpp conftest.$ac_ext"
30024 case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30027 esac
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30030 ac_status=$?
30031 grep -v '^ *+' conftest.er1 >conftest.err
30032 rm -f conftest.er1
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } >/dev/null; then
30036 if test -s conftest.err; then
30037 ac_cpp_err=$ac_c_preproc_warn_flag
30038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30039 else
30040 ac_cpp_err=
30042 else
30043 ac_cpp_err=yes
30045 if test -z "$ac_cpp_err"; then
30046 ac_header_preproc=yes
30047 else
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ac_header_preproc=no
30054 rm -f conftest.err conftest.$ac_ext
30055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30056 echo "${ECHO_T}$ac_header_preproc" >&6; }
30058 # So? What about this header?
30059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30060 yes:no: )
30061 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30062 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30063 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
30064 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
30065 ac_header_preproc=yes
30067 no:yes:* )
30068 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
30069 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
30070 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
30071 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
30072 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
30073 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
30074 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30075 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
30077 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
30078 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
30079 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
30082 esac
30083 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
30084 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
30085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088 eval "$as_ac_Header=\$ac_header_preproc"
30090 ac_res=`eval echo '${'$as_ac_Header'}'`
30091 { echo "$as_me:$LINENO: result: $ac_res" >&5
30092 echo "${ECHO_T}$ac_res" >&6; }
30095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30096 ZLIB_HEADER_FOUND=1
30097 else
30098 ZLIB_HEADER_FOUND=0
30103 else
30104 if test "xzlib.h" != "x" ; then
30105 if test "${ac_cv_header_zlib_h+set}" = set; then
30106 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30107 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30108 if test "${ac_cv_header_zlib_h+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30111 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30112 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30113 else
30114 # Is the header compilable?
30115 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
30116 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30117 cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h. */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30123 $ac_includes_default
30124 #include <zlib.h>
30125 _ACEOF
30126 rm -f conftest.$ac_objext
30127 if { (ac_try="$ac_compile"
30128 case "(($ac_try" in
30129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130 *) ac_try_echo=$ac_try;;
30131 esac
30132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133 (eval "$ac_compile") 2>conftest.er1
30134 ac_status=$?
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } &&
30140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30141 { (case "(($ac_try" in
30142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30143 *) ac_try_echo=$ac_try;;
30144 esac
30145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30146 (eval "$ac_try") 2>&5
30147 ac_status=$?
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); }; } &&
30150 { ac_try='test -s conftest.$ac_objext'
30151 { (case "(($ac_try" in
30152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30153 *) ac_try_echo=$ac_try;;
30154 esac
30155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30156 (eval "$ac_try") 2>&5
30157 ac_status=$?
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); }; }; then
30160 ac_header_compiler=yes
30161 else
30162 echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30165 ac_header_compiler=no
30168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30170 echo "${ECHO_T}$ac_header_compiler" >&6; }
30172 # Is the header present?
30173 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
30174 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30175 cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h. */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 #include <zlib.h>
30182 _ACEOF
30183 if { (ac_try="$ac_cpp conftest.$ac_ext"
30184 case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30190 ac_status=$?
30191 grep -v '^ *+' conftest.er1 >conftest.err
30192 rm -f conftest.er1
30193 cat conftest.err >&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); } >/dev/null; then
30196 if test -s conftest.err; then
30197 ac_cpp_err=$ac_c_preproc_warn_flag
30198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30199 else
30200 ac_cpp_err=
30202 else
30203 ac_cpp_err=yes
30205 if test -z "$ac_cpp_err"; then
30206 ac_header_preproc=yes
30207 else
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_header_preproc=no
30214 rm -f conftest.err conftest.$ac_ext
30215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30216 echo "${ECHO_T}$ac_header_preproc" >&6; }
30218 # So? What about this header?
30219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30220 yes:no: )
30221 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30222 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30223 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30224 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30225 ac_header_preproc=yes
30227 no:yes:* )
30228 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30229 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30231 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30233 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30234 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30235 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30236 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30237 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30238 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30239 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30242 esac
30243 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30244 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30245 if test "${ac_cv_header_zlib_h+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248 ac_cv_header_zlib_h=$ac_header_preproc
30250 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30251 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30254 if test $ac_cv_header_zlib_h = yes; then
30255 ZLIB_HEADER_FOUND=1
30256 else
30257 ZLIB_HEADER_FOUND=0
30263 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30264 if test ! -z "${ZLIB_MANDATORY}" ;
30265 then
30266 { echo "$as_me:$LINENO: ***" >&5
30267 echo "$as_me: ***" >&6;}
30268 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30269 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30270 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
30271 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&or re-run configure;}
30272 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30273 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30274 exit 1
30276 ZLIB_LIB=""
30277 ZLIB_INCLUDE=""
30278 PBX_ZLIB=0
30279 else
30280 PBX_ZLIB=1
30282 cat >>confdefs.h <<_ACEOF
30283 #define HAVE_ZLIB 1
30284 _ACEOF
30287 elif test ! -z "${ZLIB_MANDATORY}";
30288 then
30289 { echo "$as_me:$LINENO: ***" >&5
30290 echo "$as_me: ***" >&6;}
30291 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30292 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30293 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30294 echo "$as_me: *** Either correct the installation" >&or run configure;}
30295 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30296 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30297 exit 1
30302 if test "${USE_ZAPTEL}" != "no"; then
30303 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
30304 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
30305 saved_cppflags="${CPPFLAGS}"
30306 if test "x${ZAPTEL_DIR}" != "x"; then
30307 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30309 cat >conftest.$ac_ext <<_ACEOF
30311 /* confdefs.h. */
30312 _ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h. */
30316 #include <zaptel/zaptel.h>
30318 main ()
30320 int foo = ZT_TONE_DTMF_BASE;
30322 return 0;
30325 _ACEOF
30326 rm -f conftest.$ac_objext
30327 if { (ac_try="$ac_compile"
30328 case "(($ac_try" in
30329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330 *) ac_try_echo=$ac_try;;
30331 esac
30332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333 (eval "$ac_compile") 2>conftest.er1
30334 ac_status=$?
30335 grep -v '^ *+' conftest.er1 >conftest.err
30336 rm -f conftest.er1
30337 cat conftest.err >&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); } &&
30340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30341 { (case "(($ac_try" in
30342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343 *) ac_try_echo=$ac_try;;
30344 esac
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346 (eval "$ac_try") 2>&5
30347 ac_status=$?
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; } &&
30350 { ac_try='test -s conftest.$ac_objext'
30351 { (case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_try") 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; }; then
30360 { echo "$as_me:$LINENO: result: yes" >&5
30361 echo "${ECHO_T}yes" >&6; }
30362 ac_cv_zaptel_h="yes"
30364 else
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 { echo "$as_me:$LINENO: result: no" >&5
30369 echo "${ECHO_T}no" >&6; }
30370 ac_cv_zaptel_h="no"
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 CPPFLAGS="${saved_cppflags}"
30377 if test "${ac_cv_zaptel_h}" = "yes"; then
30378 if test "${ZAPTEL_DIR}" != ""; then
30379 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
30381 PBX_ZAPTEL=1
30383 cat >>confdefs.h <<\_ACEOF
30384 #define HAVE_ZAPTEL 1
30385 _ACEOF
30387 elif test ! -z "${ZAPTEL_MANDATORY}";
30388 then
30389 { echo "$as_me:$LINENO: ***" >&5
30390 echo "$as_me: ***" >&6;}
30391 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30392 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30393 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30394 echo "$as_me: *** Either correct the installation" >&or run configure;}
30395 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30396 echo "$as_me: *** including --without-zaptel." >&6;}
30397 exit 1
30401 EDITLINE_LIB=""
30402 if test "x$TERMCAP_LIB" != "x" ; then
30403 EDITLINE_LIB="$TERMCAP_LIB"
30404 elif test "x$TINFO_LIB" != "x" ; then
30405 EDITLINE_LIB="$TINFO_LIB"
30406 elif test "x$CURSES_LIB" != "x" ; then
30407 EDITLINE_LIB="$CURSES_LIB"
30408 elif test "x$NCURSES_LIB" != "x" ; then
30409 EDITLINE_LIB="$NCURSES_LIB"
30410 else
30411 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30412 echo "$as_me: error: *** termcap support not found" >&2;}
30413 { (exit 1); exit 1; }; }
30417 if test "${ac_cv_header_h323_h+set}" = set; then
30418 { echo "$as_me:$LINENO: checking for h323.h" >&5
30419 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30420 if test "${ac_cv_header_h323_h+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30424 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30425 else
30426 # Is the header compilable?
30427 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30428 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30429 cat >conftest.$ac_ext <<_ACEOF
30430 /* confdefs.h. */
30431 _ACEOF
30432 cat confdefs.h >>conftest.$ac_ext
30433 cat >>conftest.$ac_ext <<_ACEOF
30434 /* end confdefs.h. */
30435 $ac_includes_default
30436 #include <h323.h>
30437 _ACEOF
30438 rm -f conftest.$ac_objext
30439 if { (ac_try="$ac_compile"
30440 case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30443 esac
30444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_compile") 2>conftest.er1
30446 ac_status=$?
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } &&
30452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30453 { (case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_try") 2>&5
30459 ac_status=$?
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); }; } &&
30462 { ac_try='test -s conftest.$ac_objext'
30463 { (case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30466 esac
30467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30468 (eval "$ac_try") 2>&5
30469 ac_status=$?
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); }; }; then
30472 ac_header_compiler=yes
30473 else
30474 echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30477 ac_header_compiler=no
30480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30482 echo "${ECHO_T}$ac_header_compiler" >&6; }
30484 # Is the header present?
30485 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30486 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30487 cat >conftest.$ac_ext <<_ACEOF
30488 /* confdefs.h. */
30489 _ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h. */
30493 #include <h323.h>
30494 _ACEOF
30495 if { (ac_try="$ac_cpp conftest.$ac_ext"
30496 case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30499 esac
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30502 ac_status=$?
30503 grep -v '^ *+' conftest.er1 >conftest.err
30504 rm -f conftest.er1
30505 cat conftest.err >&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } >/dev/null; then
30508 if test -s conftest.err; then
30509 ac_cpp_err=$ac_c_preproc_warn_flag
30510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30511 else
30512 ac_cpp_err=
30514 else
30515 ac_cpp_err=yes
30517 if test -z "$ac_cpp_err"; then
30518 ac_header_preproc=yes
30519 else
30520 echo "$as_me: failed program was:" >&5
30521 sed 's/^/| /' conftest.$ac_ext >&5
30523 ac_header_preproc=no
30526 rm -f conftest.err conftest.$ac_ext
30527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30528 echo "${ECHO_T}$ac_header_preproc" >&6; }
30530 # So? What about this header?
30531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30532 yes:no: )
30533 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30534 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30535 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30536 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30537 ac_header_preproc=yes
30539 no:yes:* )
30540 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30541 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30543 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30544 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30545 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30546 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30547 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30548 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30549 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30550 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30551 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30554 esac
30555 { echo "$as_me:$LINENO: checking for h323.h" >&5
30556 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30557 if test "${ac_cv_header_h323_h+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560 ac_cv_header_h323_h=$ac_header_preproc
30562 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30563 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30566 if test $ac_cv_header_h323_h = yes; then
30567 PBX_H323=1
30568 else
30569 PBX_H323=0
30575 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30576 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30577 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 else
30580 cat >conftest.$ac_ext <<_ACEOF
30581 /* confdefs.h. */
30582 _ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h. */
30587 #include <linux/version.h>
30588 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
30589 #include <linux/compiler.h>
30590 #endif
30593 #include <linux/ixjuser.h>
30594 _ACEOF
30595 rm -f conftest.$ac_objext
30596 if { (ac_try="$ac_compile"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_compile") 2>conftest.er1
30603 ac_status=$?
30604 grep -v '^ *+' conftest.er1 >conftest.err
30605 rm -f conftest.er1
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } &&
30609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30610 { (case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_try") 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest.$ac_objext'
30620 { (case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_try") 2>&5
30626 ac_status=$?
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; }; then
30629 ac_cv_header_linux_ixjuser_h=yes
30630 else
30631 echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30634 ac_cv_header_linux_ixjuser_h=no
30637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30639 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30640 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30641 if test $ac_cv_header_linux_ixjuser_h = yes; then
30642 PBX_IXJUSER=1
30643 else
30644 PBX_IXJUSER=0
30650 PBX_GTK=0
30651 if test -n "$ac_tool_prefix"; then
30652 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30653 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
30654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30656 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659 if test -n "$GTKCONFIG"; then
30660 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
30661 else
30662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30663 for as_dir in $PATH
30665 IFS=$as_save_IFS
30666 test -z "$as_dir" && as_dir=.
30667 for ac_exec_ext in '' $ac_executable_extensions; do
30668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30669 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
30670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30671 break 2
30673 done
30674 done
30675 IFS=$as_save_IFS
30679 GTKCONFIG=$ac_cv_prog_GTKCONFIG
30680 if test -n "$GTKCONFIG"; then
30681 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30682 echo "${ECHO_T}$GTKCONFIG" >&6; }
30683 else
30684 { echo "$as_me:$LINENO: result: no" >&5
30685 echo "${ECHO_T}no" >&6; }
30690 if test -z "$ac_cv_prog_GTKCONFIG"; then
30691 ac_ct_GTKCONFIG=$GTKCONFIG
30692 # Extract the first word of "gtk-config", so it can be a program name with args.
30693 set dummy gtk-config; ac_word=$2
30694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30696 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30698 else
30699 if test -n "$ac_ct_GTKCONFIG"; then
30700 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
30701 else
30702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703 for as_dir in $PATH
30705 IFS=$as_save_IFS
30706 test -z "$as_dir" && as_dir=.
30707 for ac_exec_ext in '' $ac_executable_extensions; do
30708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30709 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
30710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30711 break 2
30713 done
30714 done
30715 IFS=$as_save_IFS
30719 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
30720 if test -n "$ac_ct_GTKCONFIG"; then
30721 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
30722 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
30723 else
30724 { echo "$as_me:$LINENO: result: no" >&5
30725 echo "${ECHO_T}no" >&6; }
30728 if test "x$ac_ct_GTKCONFIG" = x; then
30729 GTKCONFIG="No"
30730 else
30731 case $cross_compiling:$ac_tool_warned in
30732 yes:)
30733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30734 whose name does not start with the host triplet. If you think this
30735 configuration is useful to you, please write to autoconf@gnu.org." >&5
30736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30737 whose name does not start with the host triplet. If you think this
30738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30739 ac_tool_warned=yes ;;
30740 esac
30741 GTKCONFIG=$ac_ct_GTKCONFIG
30743 else
30744 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
30747 if test ! "x${GTKCONFIG}" = xNo; then
30748 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
30749 GTK_LIB=$(${GTKCONFIG} --libs gthread)
30750 PBX_GTK=1
30752 cat >>confdefs.h <<\_ACEOF
30753 #define HAVE_GTK 1
30754 _ACEOF
30761 if test "${USE_CURL}" != "no"; then
30762 if test -n "$ac_tool_prefix"; then
30763 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
30764 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
30765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30767 if test "${ac_cv_path_CURL+set}" = set; then
30768 echo $ECHO_N "(cached) $ECHO_C" >&6
30769 else
30770 case $CURL in
30771 [\\/]* | ?:[\\/]*)
30772 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776 for as_dir in $PATH
30778 IFS=$as_save_IFS
30779 test -z "$as_dir" && as_dir=.
30780 for ac_exec_ext in '' $ac_executable_extensions; do
30781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
30783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30784 break 2
30786 done
30787 done
30788 IFS=$as_save_IFS
30791 esac
30793 CURL=$ac_cv_path_CURL
30794 if test -n "$CURL"; then
30795 { echo "$as_me:$LINENO: result: $CURL" >&5
30796 echo "${ECHO_T}$CURL" >&6; }
30797 else
30798 { echo "$as_me:$LINENO: result: no" >&5
30799 echo "${ECHO_T}no" >&6; }
30804 if test -z "$ac_cv_path_CURL"; then
30805 ac_pt_CURL=$CURL
30806 # Extract the first word of "curl-config", so it can be a program name with args.
30807 set dummy curl-config; ac_word=$2
30808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30810 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
30811 echo $ECHO_N "(cached) $ECHO_C" >&6
30812 else
30813 case $ac_pt_CURL in
30814 [\\/]* | ?:[\\/]*)
30815 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
30818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30819 for as_dir in $PATH
30821 IFS=$as_save_IFS
30822 test -z "$as_dir" && as_dir=.
30823 for ac_exec_ext in '' $ac_executable_extensions; do
30824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30825 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
30826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30827 break 2
30829 done
30830 done
30831 IFS=$as_save_IFS
30834 esac
30836 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
30837 if test -n "$ac_pt_CURL"; then
30838 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
30839 echo "${ECHO_T}$ac_pt_CURL" >&6; }
30840 else
30841 { echo "$as_me:$LINENO: result: no" >&5
30842 echo "${ECHO_T}no" >&6; }
30845 if test "x$ac_pt_CURL" = x; then
30846 CURL="No"
30847 else
30848 case $cross_compiling:$ac_tool_warned in
30849 yes:)
30850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30851 whose name does not start with the host triplet. If you think this
30852 configuration is useful to you, please write to autoconf@gnu.org." >&5
30853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30854 whose name does not start with the host triplet. If you think this
30855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30856 ac_tool_warned=yes ;;
30857 esac
30858 CURL=$ac_pt_CURL
30860 else
30861 CURL="$ac_cv_path_CURL"
30864 if test ! x"${CURL}" = xNo; then
30865 # check for version
30866 if test "${host_os}" = "SunOS"; then
30867 if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
30868 CURL_INCLUDE=$(${CURL} --cflags)
30869 CURL_LIB=$(${CURL} --libs)
30870 PBX_CURL=1
30872 cat >>confdefs.h <<\_ACEOF
30873 #define HAVE_CURL 1
30874 _ACEOF
30877 else
30878 if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
30879 CURL_INCLUDE=$(${CURL} --cflags)
30880 CURL_LIB=$(${CURL} --libs)
30881 PBX_CURL=1
30883 cat >>confdefs.h <<\_ACEOF
30884 #define HAVE_CURL 1
30885 _ACEOF
30892 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
30894 cat >confcache <<\_ACEOF
30895 # This file is a shell script that caches the results of configure
30896 # tests run on this system so they can be shared between configure
30897 # scripts and configure runs, see configure's option --config-cache.
30898 # It is not useful on other systems. If it contains results you don't
30899 # want to keep, you may remove or edit it.
30901 # config.status only pays attention to the cache file if you give it
30902 # the --recheck option to rerun configure.
30904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30906 # following values.
30908 _ACEOF
30910 # The following way of writing the cache mishandles newlines in values,
30911 # but we know of no workaround that is simple, portable, and efficient.
30912 # So, we kill variables containing newlines.
30913 # Ultrix sh set writes to stderr and can't be redirected directly,
30914 # and sets the high bit in the cache file unless we assign to the vars.
30916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30917 eval ac_val=\$$ac_var
30918 case $ac_val in #(
30919 *${as_nl}*)
30920 case $ac_var in #(
30921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30922 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30923 esac
30924 case $ac_var in #(
30925 _ | IFS | as_nl) ;; #(
30926 *) $as_unset $ac_var ;;
30927 esac ;;
30928 esac
30929 done
30931 (set) 2>&1 |
30932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30933 *${as_nl}ac_space=\ *)
30934 # `set' does not quote correctly, so add quotes (double-quote
30935 # substitution turns \\\\ into \\, and sed turns \\ into \).
30936 sed -n \
30937 "s/'/'\\\\''/g;
30938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30939 ;; #(
30941 # `set' quotes correctly as required by POSIX, so do not add quotes.
30942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30944 esac |
30945 sort
30947 sed '
30948 /^ac_cv_env_/b end
30949 t clear
30950 :clear
30951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30952 t end
30953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30954 :end' >>confcache
30955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30956 if test -w "$cache_file"; then
30957 test "x$cache_file" != "x/dev/null" &&
30958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30959 echo "$as_me: updating cache $cache_file" >&6;}
30960 cat confcache >$cache_file
30961 else
30962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30963 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30966 rm -f confcache
30968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30969 # Let make expand exec_prefix.
30970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30972 DEFS=-DHAVE_CONFIG_H
30974 ac_libobjs=
30975 ac_ltlibobjs=
30976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30977 # 1. Remove the extension, and $U if already installed.
30978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30979 ac_i=`echo "$ac_i" | sed "$ac_script"`
30980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30981 # will be set to the directory where LIBOBJS objects are built.
30982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30984 done
30985 LIBOBJS=$ac_libobjs
30987 LTLIBOBJS=$ac_ltlibobjs
30991 : ${CONFIG_STATUS=./config.status}
30992 ac_clean_files_save=$ac_clean_files
30993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30996 cat >$CONFIG_STATUS <<_ACEOF
30997 #! $SHELL
30998 # Generated by $as_me.
30999 # Run this file to recreate the current configuration.
31000 # Compiler output produced by configure, useful for debugging
31001 # configure, is in config.log if it exists.
31003 debug=false
31004 ac_cs_recheck=false
31005 ac_cs_silent=false
31006 SHELL=\${CONFIG_SHELL-$SHELL}
31007 _ACEOF
31009 cat >>$CONFIG_STATUS <<\_ACEOF
31010 ## --------------------- ##
31011 ## M4sh Initialization. ##
31012 ## --------------------- ##
31014 # Be Bourne compatible
31015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31016 emulate sh
31017 NULLCMD=:
31018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31019 # is contrary to our usage. Disable this feature.
31020 alias -g '${1+"$@"}'='"$@"'
31021 setopt NO_GLOB_SUBST
31022 else
31023 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
31025 BIN_SH=xpg4; export BIN_SH # for Tru64
31026 DUALCASE=1; export DUALCASE # for MKS sh
31029 # PATH needs CR
31030 # Avoid depending upon Character Ranges.
31031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31034 as_cr_digits='0123456789'
31035 as_cr_alnum=$as_cr_Letters$as_cr_digits
31037 # The user is always right.
31038 if test "${PATH_SEPARATOR+set}" != set; then
31039 echo "#! /bin/sh" >conf$$.sh
31040 echo "exit 0" >>conf$$.sh
31041 chmod +x conf$$.sh
31042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31043 PATH_SEPARATOR=';'
31044 else
31045 PATH_SEPARATOR=:
31047 rm -f conf$$.sh
31050 # Support unset when possible.
31051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31052 as_unset=unset
31053 else
31054 as_unset=false
31058 # IFS
31059 # We need space, tab and new line, in precisely that order. Quoting is
31060 # there to prevent editors from complaining about space-tab.
31061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31062 # splitting by setting IFS to empty value.)
31063 as_nl='
31065 IFS=" "" $as_nl"
31067 # Find who we are. Look in the path if we contain no directory separator.
31068 case $0 in
31069 *[\\/]* ) as_myself=$0 ;;
31070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31071 for as_dir in $PATH
31073 IFS=$as_save_IFS
31074 test -z "$as_dir" && as_dir=.
31075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31076 done
31077 IFS=$as_save_IFS
31080 esac
31081 # We did not find ourselves, most probably we were run as `sh COMMAND'
31082 # in which case we are not to be found in the path.
31083 if test "x$as_myself" = x; then
31084 as_myself=$0
31086 if test ! -f "$as_myself"; then
31087 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31088 { (exit 1); exit 1; }
31091 # Work around bugs in pre-3.0 UWIN ksh.
31092 for as_var in ENV MAIL MAILPATH
31093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31094 done
31095 PS1='$ '
31096 PS2='> '
31097 PS4='+ '
31099 # NLS nuisances.
31100 for as_var in \
31101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31103 LC_TELEPHONE LC_TIME
31105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31106 eval $as_var=C; export $as_var
31107 else
31108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31110 done
31112 # Required to use basename.
31113 if expr a : '\(a\)' >/dev/null 2>&1 &&
31114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31115 as_expr=expr
31116 else
31117 as_expr=false
31120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31121 as_basename=basename
31122 else
31123 as_basename=false
31127 # Name of the executable.
31128 as_me=`$as_basename -- "$0" ||
31129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31130 X"$0" : 'X\(//\)$' \| \
31131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31132 echo X/"$0" |
31133 sed '/^.*\/\([^/][^/]*\)\/*$/{
31134 s//\1/
31137 /^X\/\(\/\/\)$/{
31138 s//\1/
31141 /^X\/\(\/\).*/{
31142 s//\1/
31145 s/.*/./; q'`
31147 # CDPATH.
31148 $as_unset CDPATH
31152 as_lineno_1=$LINENO
31153 as_lineno_2=$LINENO
31154 test "x$as_lineno_1" != "x$as_lineno_2" &&
31155 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31158 # uniformly replaced by the line number. The first 'sed' inserts a
31159 # line-number line after each line using $LINENO; the second 'sed'
31160 # does the real work. The second script uses 'N' to pair each
31161 # line-number line with the line containing $LINENO, and appends
31162 # trailing '-' during substitution so that $LINENO is not a special
31163 # case at line end.
31164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31165 # scripts with optimization help from Paolo Bonzini. Blame Lee
31166 # E. McMahon (1931-1989) for sed's syntax. :-)
31167 sed -n '
31169 /[$]LINENO/=
31170 ' <$as_myself |
31171 sed '
31172 s/[$]LINENO.*/&-/
31173 t lineno
31175 :lineno
31177 :loop
31178 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31179 t loop
31180 s/-\n.*//
31181 ' >$as_me.lineno &&
31182 chmod +x "$as_me.lineno" ||
31183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31184 { (exit 1); exit 1; }; }
31186 # Don't try to exec as it changes $[0], causing all sort of problems
31187 # (the dirname of $[0] is not the place where we might find the
31188 # original and so on. Autoconf is especially sensitive to this).
31189 . "./$as_me.lineno"
31190 # Exit status is that of the last command.
31191 exit
31195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31196 as_dirname=dirname
31197 else
31198 as_dirname=false
31201 ECHO_C= ECHO_N= ECHO_T=
31202 case `echo -n x` in
31203 -n*)
31204 case `echo 'x\c'` in
31205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31206 *) ECHO_C='\c';;
31207 esac;;
31209 ECHO_N='-n';;
31210 esac
31212 if expr a : '\(a\)' >/dev/null 2>&1 &&
31213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31214 as_expr=expr
31215 else
31216 as_expr=false
31219 rm -f conf$$ conf$$.exe conf$$.file
31220 if test -d conf$$.dir; then
31221 rm -f conf$$.dir/conf$$.file
31222 else
31223 rm -f conf$$.dir
31224 mkdir conf$$.dir
31226 echo >conf$$.file
31227 if ln -s conf$$.file conf$$ 2>/dev/null; then
31228 as_ln_s='ln -s'
31229 # ... but there are two gotchas:
31230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31232 # In both cases, we have to default to `cp -p'.
31233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31234 as_ln_s='cp -p'
31235 elif ln conf$$.file conf$$ 2>/dev/null; then
31236 as_ln_s=ln
31237 else
31238 as_ln_s='cp -p'
31240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31241 rmdir conf$$.dir 2>/dev/null
31243 if mkdir -p . 2>/dev/null; then
31244 as_mkdir_p=:
31245 else
31246 test -d ./-p && rmdir ./-p
31247 as_mkdir_p=false
31250 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
31251 # systems may use methods other than mode bits to determine executability.
31252 cat >conf$$.file <<_ASEOF
31253 #! /bin/sh
31254 exit 0
31255 _ASEOF
31256 chmod +x conf$$.file
31257 if test -x conf$$.file >/dev/null 2>&1; then
31258 as_executable_p="test -x"
31259 else
31260 as_executable_p=:
31262 rm -f conf$$.file
31264 # Sed expression to map a string onto a valid CPP name.
31265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31267 # Sed expression to map a string onto a valid variable name.
31268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31271 exec 6>&1
31273 # Save the log message, to keep $[0] and so on meaningful, and to
31274 # report actual input values of CONFIG_FILES etc. instead of their
31275 # values after options handling.
31276 ac_log="
31277 This file was extended by $as_me, which was
31278 generated by GNU Autoconf 2.60a. Invocation command line was
31280 CONFIG_FILES = $CONFIG_FILES
31281 CONFIG_HEADERS = $CONFIG_HEADERS
31282 CONFIG_LINKS = $CONFIG_LINKS
31283 CONFIG_COMMANDS = $CONFIG_COMMANDS
31284 $ $0 $@
31286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31289 _ACEOF
31291 cat >>$CONFIG_STATUS <<_ACEOF
31292 # Files that config.status was made for.
31293 config_files="$ac_config_files"
31294 config_headers="$ac_config_headers"
31296 _ACEOF
31298 cat >>$CONFIG_STATUS <<\_ACEOF
31299 ac_cs_usage="\
31300 \`$as_me' instantiates files from templates according to the
31301 current configuration.
31303 Usage: $0 [OPTIONS] [FILE]...
31305 -h, --help print this help, then exit
31306 -V, --version print version number and configuration settings, then exit
31307 -q, --quiet do not print progress messages
31308 -d, --debug don't remove temporary files
31309 --recheck update $as_me by reconfiguring in the same conditions
31310 --file=FILE[:TEMPLATE]
31311 instantiate the configuration file FILE
31312 --header=FILE[:TEMPLATE]
31313 instantiate the configuration header FILE
31315 Configuration files:
31316 $config_files
31318 Configuration headers:
31319 $config_headers
31321 Report bugs to <bug-autoconf@gnu.org>."
31323 _ACEOF
31324 cat >>$CONFIG_STATUS <<_ACEOF
31325 ac_cs_version="\\
31326 config.status
31327 configured by $0, generated by GNU Autoconf 2.60a,
31328 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31330 Copyright (C) 2006 Free Software Foundation, Inc.
31331 This config.status script is free software; the Free Software Foundation
31332 gives unlimited permission to copy, distribute and modify it."
31334 ac_pwd='$ac_pwd'
31335 srcdir='$srcdir'
31336 INSTALL='$INSTALL'
31337 _ACEOF
31339 cat >>$CONFIG_STATUS <<\_ACEOF
31340 # If no file are specified by the user, then we need to provide default
31341 # value. By we need to know if files were specified by the user.
31342 ac_need_defaults=:
31343 while test $# != 0
31345 case $1 in
31346 --*=*)
31347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31349 ac_shift=:
31352 ac_option=$1
31353 ac_optarg=$2
31354 ac_shift=shift
31356 esac
31358 case $ac_option in
31359 # Handling of the options.
31360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31361 ac_cs_recheck=: ;;
31362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31363 echo "$ac_cs_version"; exit ;;
31364 --debug | --debu | --deb | --de | --d | -d )
31365 debug=: ;;
31366 --file | --fil | --fi | --f )
31367 $ac_shift
31368 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31369 ac_need_defaults=false;;
31370 --header | --heade | --head | --hea )
31371 $ac_shift
31372 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31373 ac_need_defaults=false;;
31374 --he | --h)
31375 # Conflict between --help and --header
31376 { echo "$as_me: error: ambiguous option: $1
31377 Try \`$0 --help' for more information." >&2
31378 { (exit 1); exit 1; }; };;
31379 --help | --hel | -h )
31380 echo "$ac_cs_usage"; exit ;;
31381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31383 ac_cs_silent=: ;;
31385 # This is an error.
31386 -*) { echo "$as_me: error: unrecognized option: $1
31387 Try \`$0 --help' for more information." >&2
31388 { (exit 1); exit 1; }; } ;;
31390 *) ac_config_targets="$ac_config_targets $1"
31391 ac_need_defaults=false ;;
31393 esac
31394 shift
31395 done
31397 ac_configure_extra_args=
31399 if $ac_cs_silent; then
31400 exec 6>/dev/null
31401 ac_configure_extra_args="$ac_configure_extra_args --silent"
31404 _ACEOF
31405 cat >>$CONFIG_STATUS <<_ACEOF
31406 if \$ac_cs_recheck; then
31407 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31408 CONFIG_SHELL=$SHELL
31409 export CONFIG_SHELL
31410 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31413 _ACEOF
31414 cat >>$CONFIG_STATUS <<\_ACEOF
31415 exec 5>>config.log
31417 echo
31418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31419 ## Running $as_me. ##
31420 _ASBOX
31421 echo "$ac_log"
31422 } >&5
31424 _ACEOF
31425 cat >>$CONFIG_STATUS <<_ACEOF
31426 _ACEOF
31428 cat >>$CONFIG_STATUS <<\_ACEOF
31430 # Handling of arguments.
31431 for ac_config_target in $ac_config_targets
31433 case $ac_config_target in
31434 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31435 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
31436 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
31437 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
31439 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31440 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31441 { (exit 1); exit 1; }; };;
31442 esac
31443 done
31446 # If the user did not use the arguments to specify the items to instantiate,
31447 # then the envvar interface is used. Set only those that are not.
31448 # We use the long form for the default assignment because of an extremely
31449 # bizarre bug on SunOS 4.1.3.
31450 if $ac_need_defaults; then
31451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31455 # Have a temporary directory for convenience. Make it in the build tree
31456 # simply because there is no reason against having it here, and in addition,
31457 # creating and moving files from /tmp can sometimes cause problems.
31458 # Hook for its removal unless debugging.
31459 # Note that there is a small window in which the directory will not be cleaned:
31460 # after its creation but before its name has been assigned to `$tmp'.
31461 $debug ||
31463 tmp=
31464 trap 'exit_status=$?
31465 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31467 trap '{ (exit 1); exit 1; }' 1 2 13 15
31469 # Create a (secure) tmp directory for tmp files.
31472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31473 test -n "$tmp" && test -d "$tmp"
31474 } ||
31476 tmp=./conf$$-$RANDOM
31477 (umask 077 && mkdir "$tmp")
31478 } ||
31480 echo "$me: cannot create a temporary directory in ." >&2
31481 { (exit 1); exit 1; }
31485 # Set up the sed scripts for CONFIG_FILES section.
31488 # No need to generate the scripts if there are no CONFIG_FILES.
31489 # This happens for instance when ./config.status config.h
31490 if test -n "$CONFIG_FILES"; then
31492 _ACEOF
31496 ac_delim='%!_!# '
31497 for ac_last_try in false false false false false :; do
31498 cat >conf$$subs.sed <<_ACEOF
31499 SHELL!$SHELL$ac_delim
31500 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31501 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31502 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31503 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31504 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31505 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31506 exec_prefix!$exec_prefix$ac_delim
31507 prefix!$prefix$ac_delim
31508 program_transform_name!$program_transform_name$ac_delim
31509 bindir!$bindir$ac_delim
31510 sbindir!$sbindir$ac_delim
31511 libexecdir!$libexecdir$ac_delim
31512 datarootdir!$datarootdir$ac_delim
31513 datadir!$datadir$ac_delim
31514 sysconfdir!$sysconfdir$ac_delim
31515 sharedstatedir!$sharedstatedir$ac_delim
31516 localstatedir!$localstatedir$ac_delim
31517 includedir!$includedir$ac_delim
31518 oldincludedir!$oldincludedir$ac_delim
31519 docdir!$docdir$ac_delim
31520 infodir!$infodir$ac_delim
31521 htmldir!$htmldir$ac_delim
31522 dvidir!$dvidir$ac_delim
31523 pdfdir!$pdfdir$ac_delim
31524 psdir!$psdir$ac_delim
31525 libdir!$libdir$ac_delim
31526 localedir!$localedir$ac_delim
31527 mandir!$mandir$ac_delim
31528 DEFS!$DEFS$ac_delim
31529 ECHO_C!$ECHO_C$ac_delim
31530 ECHO_N!$ECHO_N$ac_delim
31531 ECHO_T!$ECHO_T$ac_delim
31532 LIBS!$LIBS$ac_delim
31533 build_alias!$build_alias$ac_delim
31534 host_alias!$host_alias$ac_delim
31535 target_alias!$target_alias$ac_delim
31536 build!$build$ac_delim
31537 build_cpu!$build_cpu$ac_delim
31538 build_vendor!$build_vendor$ac_delim
31539 build_os!$build_os$ac_delim
31540 host!$host$ac_delim
31541 host_cpu!$host_cpu$ac_delim
31542 host_vendor!$host_vendor$ac_delim
31543 host_os!$host_os$ac_delim
31544 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
31545 BUILD_CPU!$BUILD_CPU$ac_delim
31546 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
31547 BUILD_OS!$BUILD_OS$ac_delim
31548 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
31549 HOST_CPU!$HOST_CPU$ac_delim
31550 HOST_VENDOR!$HOST_VENDOR$ac_delim
31551 HOST_OS!$HOST_OS$ac_delim
31552 OSARCH!$OSARCH$ac_delim
31553 UNAME!$UNAME$ac_delim
31554 PBX_OSREV!$PBX_OSREV$ac_delim
31555 CC!$CC$ac_delim
31556 CXX!$CXX$ac_delim
31557 LD!$LD$ac_delim
31558 RANLIB!$RANLIB$ac_delim
31559 AR!$AR$ac_delim
31560 CFLAGS!$CFLAGS$ac_delim
31561 LDFLAGS!$LDFLAGS$ac_delim
31562 CPPFLAGS!$CPPFLAGS$ac_delim
31563 ac_ct_CC!$ac_ct_CC$ac_delim
31564 EXEEXT!$EXEEXT$ac_delim
31565 OBJEXT!$OBJEXT$ac_delim
31566 CXXFLAGS!$CXXFLAGS$ac_delim
31567 ac_ct_CXX!$ac_ct_CXX$ac_delim
31568 CPP!$CPP$ac_delim
31569 CXXCPP!$CXXCPP$ac_delim
31570 SED!$SED$ac_delim
31571 EGREP!$EGREP$ac_delim
31572 AWK!$AWK$ac_delim
31573 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31574 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31575 INSTALL_DATA!$INSTALL_DATA$ac_delim
31576 LN_S!$LN_S$ac_delim
31577 GNU_MAKE!$GNU_MAKE$ac_delim
31578 GNU_LD!$GNU_LD$ac_delim
31579 GREP!$GREP$ac_delim
31580 FIND!$FIND$ac_delim
31581 COMPRESS!$COMPRESS$ac_delim
31582 BASENAME!$BASENAME$ac_delim
31583 ID!$ID$ac_delim
31584 DIRNAME!$DIRNAME$ac_delim
31585 LN!$LN$ac_delim
31586 DOT!$DOT$ac_delim
31587 STRIP!$STRIP$ac_delim
31588 AST_DEVMODE!$AST_DEVMODE$ac_delim
31589 ALSA_LIB!$ALSA_LIB$ac_delim
31590 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
31591 PBX_ALSA!$PBX_ALSA$ac_delim
31592 CURL_LIB!$CURL_LIB$ac_delim
31593 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
31594 PBX_CURL!$PBX_CURL$ac_delim
31595 CURSES_LIB!$CURSES_LIB$ac_delim
31596 _ACEOF
31598 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31599 break
31600 elif $ac_last_try; then
31601 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31603 { (exit 1); exit 1; }; }
31604 else
31605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31607 done
31609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31610 if test -n "$ac_eof"; then
31611 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31612 ac_eof=`expr $ac_eof + 1`
31615 cat >>$CONFIG_STATUS <<_ACEOF
31616 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31618 _ACEOF
31619 sed '
31620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31621 s/^/s,@/; s/!/@,|#_!!_#|/
31624 s/'"$ac_delim"'$/,g/; t
31625 s/$/\\/; p
31626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31627 ' >>$CONFIG_STATUS <conf$$subs.sed
31628 rm -f conf$$subs.sed
31629 cat >>$CONFIG_STATUS <<_ACEOF
31630 CEOF$ac_eof
31631 _ACEOF
31634 ac_delim='%!_!# '
31635 for ac_last_try in false false false false false :; do
31636 cat >conf$$subs.sed <<_ACEOF
31637 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
31638 PBX_CURSES!$PBX_CURSES$ac_delim
31639 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
31640 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
31641 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
31642 GSM_LIB!$GSM_LIB$ac_delim
31643 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
31644 PBX_GSM!$PBX_GSM$ac_delim
31645 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
31646 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
31647 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
31648 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
31649 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
31650 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
31651 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
31652 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
31653 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
31654 KDE_LIB!$KDE_LIB$ac_delim
31655 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
31656 PBX_KDE!$PBX_KDE$ac_delim
31657 MISDN_LIB!$MISDN_LIB$ac_delim
31658 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
31659 PBX_MISDN!$PBX_MISDN$ac_delim
31660 NBS_LIB!$NBS_LIB$ac_delim
31661 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
31662 PBX_NBS!$PBX_NBS$ac_delim
31663 NCURSES_LIB!$NCURSES_LIB$ac_delim
31664 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
31665 PBX_NCURSES!$PBX_NCURSES$ac_delim
31666 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
31667 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
31668 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
31669 NEWT_LIB!$NEWT_LIB$ac_delim
31670 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
31671 PBX_NEWT!$PBX_NEWT$ac_delim
31672 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
31673 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
31674 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
31675 OGG_LIB!$OGG_LIB$ac_delim
31676 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
31677 PBX_OGG!$PBX_OGG$ac_delim
31678 OSPTK_LIB!$OSPTK_LIB$ac_delim
31679 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
31680 PBX_OSPTK!$PBX_OSPTK$ac_delim
31681 OSS_LIB!$OSS_LIB$ac_delim
31682 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
31683 PBX_OSS!$PBX_OSS$ac_delim
31684 POPT_LIB!$POPT_LIB$ac_delim
31685 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
31686 PBX_POPT!$PBX_POPT$ac_delim
31687 PGSQL_LIB!$PGSQL_LIB$ac_delim
31688 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
31689 PBX_PGSQL!$PBX_PGSQL$ac_delim
31690 PRI_LIB!$PRI_LIB$ac_delim
31691 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
31692 PBX_PRI!$PBX_PRI$ac_delim
31693 PWLIB_LIB!$PWLIB_LIB$ac_delim
31694 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
31695 PBX_PWLIB!$PBX_PWLIB$ac_delim
31696 OPENH323_LIB!$OPENH323_LIB$ac_delim
31697 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
31698 PBX_OPENH323!$PBX_OPENH323$ac_delim
31699 QT_LIB!$QT_LIB$ac_delim
31700 QT_INCLUDE!$QT_INCLUDE$ac_delim
31701 PBX_QT!$PBX_QT$ac_delim
31702 RADIUS_LIB!$RADIUS_LIB$ac_delim
31703 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
31704 PBX_RADIUS!$PBX_RADIUS$ac_delim
31705 SPEEX_LIB!$SPEEX_LIB$ac_delim
31706 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
31707 PBX_SPEEX!$PBX_SPEEX$ac_delim
31708 SQLITE_LIB!$SQLITE_LIB$ac_delim
31709 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
31710 PBX_SQLITE!$PBX_SQLITE$ac_delim
31711 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
31712 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
31713 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
31714 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
31715 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
31716 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
31717 FREETDS_LIB!$FREETDS_LIB$ac_delim
31718 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
31719 PBX_FREETDS!$PBX_FREETDS$ac_delim
31720 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
31721 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
31722 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
31723 TINFO_LIB!$TINFO_LIB$ac_delim
31724 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
31725 PBX_TINFO!$PBX_TINFO$ac_delim
31726 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
31727 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
31728 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
31729 VORBIS_LIB!$VORBIS_LIB$ac_delim
31730 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
31731 PBX_VORBIS!$PBX_VORBIS$ac_delim
31732 VPB_LIB!$VPB_LIB$ac_delim
31733 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
31734 _ACEOF
31736 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31737 break
31738 elif $ac_last_try; then
31739 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31741 { (exit 1); exit 1; }; }
31742 else
31743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31745 done
31747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31748 if test -n "$ac_eof"; then
31749 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31750 ac_eof=`expr $ac_eof + 1`
31753 cat >>$CONFIG_STATUS <<_ACEOF
31754 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31756 _ACEOF
31757 sed '
31758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31759 s/^/s,@/; s/!/@,|#_!!_#|/
31762 s/'"$ac_delim"'$/,g/; t
31763 s/$/\\/; p
31764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31765 ' >>$CONFIG_STATUS <conf$$subs.sed
31766 rm -f conf$$subs.sed
31767 cat >>$CONFIG_STATUS <<_ACEOF
31768 CEOF$ac_eof
31769 _ACEOF
31772 ac_delim='%!_!# '
31773 for ac_last_try in false false false false false :; do
31774 cat >conf$$subs.sed <<_ACEOF
31775 PBX_VPB!$PBX_VPB$ac_delim
31776 ZLIB_LIB!$ZLIB_LIB$ac_delim
31777 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
31778 PBX_ZLIB!$PBX_ZLIB$ac_delim
31779 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
31780 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
31781 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
31782 ALLOCA!$ALLOCA$ac_delim
31783 LIBOBJS!$LIBOBJS$ac_delim
31784 POW_LIB!$POW_LIB$ac_delim
31785 GC_CFLAGS!$GC_CFLAGS$ac_delim
31786 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
31787 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
31788 KDEINIT!$KDEINIT$ac_delim
31789 KDEDIR!$KDEDIR$ac_delim
31790 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
31791 PG_CONFIG!$PG_CONFIG$ac_delim
31792 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
31793 PWLIBDIR!$PWLIBDIR$ac_delim
31794 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
31795 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
31796 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
31797 OPENH323DIR!$OPENH323DIR$ac_delim
31798 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
31799 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
31800 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
31801 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
31802 QTMOC!$QTMOC$ac_delim
31803 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
31804 PBX_H323!$PBX_H323$ac_delim
31805 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
31806 GTKCONFIG!$GTKCONFIG$ac_delim
31807 PBX_GTK!$PBX_GTK$ac_delim
31808 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
31809 GTK_LIB!$GTK_LIB$ac_delim
31810 CURL!$CURL$ac_delim
31811 LTLIBOBJS!$LTLIBOBJS$ac_delim
31812 _ACEOF
31814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
31815 break
31816 elif $ac_last_try; then
31817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31819 { (exit 1); exit 1; }; }
31820 else
31821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31823 done
31825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31826 if test -n "$ac_eof"; then
31827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31828 ac_eof=`expr $ac_eof + 1`
31831 cat >>$CONFIG_STATUS <<_ACEOF
31832 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31834 _ACEOF
31835 sed '
31836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31837 s/^/s,@/; s/!/@,|#_!!_#|/
31840 s/'"$ac_delim"'$/,g/; t
31841 s/$/\\/; p
31842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31843 ' >>$CONFIG_STATUS <conf$$subs.sed
31844 rm -f conf$$subs.sed
31845 cat >>$CONFIG_STATUS <<_ACEOF
31846 :end
31847 s/|#_!!_#|//g
31848 CEOF$ac_eof
31849 _ACEOF
31852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31854 # trailing colons and then remove the whole line if VPATH becomes empty
31855 # (actually we leave an empty line to preserve line numbers).
31856 if test "x$srcdir" = x.; then
31857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31858 s/:*\$(srcdir):*/:/
31859 s/:*\${srcdir}:*/:/
31860 s/:*@srcdir@:*/:/
31861 s/^\([^=]*=[ ]*\):*/\1/
31862 s/:*$//
31863 s/^[^=]*=[ ]*$//
31867 cat >>$CONFIG_STATUS <<\_ACEOF
31868 fi # test -n "$CONFIG_FILES"
31871 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31873 case $ac_tag in
31874 :[FHLC]) ac_mode=$ac_tag; continue;;
31875 esac
31876 case $ac_mode$ac_tag in
31877 :[FHL]*:*);;
31878 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31879 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31880 { (exit 1); exit 1; }; };;
31881 :[FH]-) ac_tag=-:-;;
31882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31883 esac
31884 ac_save_IFS=$IFS
31885 IFS=:
31886 set x $ac_tag
31887 IFS=$ac_save_IFS
31888 shift
31889 ac_file=$1
31890 shift
31892 case $ac_mode in
31893 :L) ac_source=$1;;
31894 :[FH])
31895 ac_file_inputs=
31896 for ac_f
31898 case $ac_f in
31899 -) ac_f="$tmp/stdin";;
31900 *) # Look for the file first in the build tree, then in the source tree
31901 # (if the path is not absolute). The absolute path cannot be DOS-style,
31902 # because $ac_f cannot contain `:'.
31903 test -f "$ac_f" ||
31904 case $ac_f in
31905 [\\/$]*) false;;
31906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31907 esac ||
31908 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31909 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31910 { (exit 1); exit 1; }; };;
31911 esac
31912 ac_file_inputs="$ac_file_inputs $ac_f"
31913 done
31915 # Let's still pretend it is `configure' which instantiates (i.e., don't
31916 # use $as_me), people would be surprised to read:
31917 # /* config.h. Generated by config.status. */
31918 configure_input="Generated from "`IFS=:
31919 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31920 if test x"$ac_file" != x-; then
31921 configure_input="$ac_file. $configure_input"
31922 { echo "$as_me:$LINENO: creating $ac_file" >&5
31923 echo "$as_me: creating $ac_file" >&6;}
31926 case $ac_tag in
31927 *:-:* | *:-) cat >"$tmp/stdin";;
31928 esac
31930 esac
31932 ac_dir=`$as_dirname -- "$ac_file" ||
31933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31934 X"$ac_file" : 'X\(//\)[^/]' \| \
31935 X"$ac_file" : 'X\(//\)$' \| \
31936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31937 echo X"$ac_file" |
31938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31939 s//\1/
31942 /^X\(\/\/\)[^/].*/{
31943 s//\1/
31946 /^X\(\/\/\)$/{
31947 s//\1/
31950 /^X\(\/\).*/{
31951 s//\1/
31954 s/.*/./; q'`
31955 { as_dir="$ac_dir"
31956 case $as_dir in #(
31957 -*) as_dir=./$as_dir;;
31958 esac
31959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31960 as_dirs=
31961 while :; do
31962 case $as_dir in #(
31963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31964 *) as_qdir=$as_dir;;
31965 esac
31966 as_dirs="'$as_qdir' $as_dirs"
31967 as_dir=`$as_dirname -- "$as_dir" ||
31968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31969 X"$as_dir" : 'X\(//\)[^/]' \| \
31970 X"$as_dir" : 'X\(//\)$' \| \
31971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31972 echo X"$as_dir" |
31973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31974 s//\1/
31977 /^X\(\/\/\)[^/].*/{
31978 s//\1/
31981 /^X\(\/\/\)$/{
31982 s//\1/
31985 /^X\(\/\).*/{
31986 s//\1/
31989 s/.*/./; q'`
31990 test -d "$as_dir" && break
31991 done
31992 test -z "$as_dirs" || eval "mkdir $as_dirs"
31993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31994 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31995 { (exit 1); exit 1; }; }; }
31996 ac_builddir=.
31998 case "$ac_dir" in
31999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32002 # A ".." for each directory in $ac_dir_suffix.
32003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32004 case $ac_top_builddir_sub in
32005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32007 esac ;;
32008 esac
32009 ac_abs_top_builddir=$ac_pwd
32010 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32011 # for backward compatibility:
32012 ac_top_builddir=$ac_top_build_prefix
32014 case $srcdir in
32015 .) # We are building in place.
32016 ac_srcdir=.
32017 ac_top_srcdir=$ac_top_builddir_sub
32018 ac_abs_top_srcdir=$ac_pwd ;;
32019 [\\/]* | ?:[\\/]* ) # Absolute name.
32020 ac_srcdir=$srcdir$ac_dir_suffix;
32021 ac_top_srcdir=$srcdir
32022 ac_abs_top_srcdir=$srcdir ;;
32023 *) # Relative name.
32024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32025 ac_top_srcdir=$ac_top_build_prefix$srcdir
32026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32027 esac
32028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32031 case $ac_mode in
32034 # CONFIG_FILE
32037 case $INSTALL in
32038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32040 esac
32041 _ACEOF
32043 cat >>$CONFIG_STATUS <<\_ACEOF
32044 # If the template does not know about datarootdir, expand it.
32045 # FIXME: This hack should be removed a few years after 2.60.
32046 ac_datarootdir_hack=; ac_datarootdir_seen=
32048 case `sed -n '/datarootdir/ {
32052 /@datadir@/p
32053 /@docdir@/p
32054 /@infodir@/p
32055 /@localedir@/p
32056 /@mandir@/p
32057 ' $ac_file_inputs` in
32058 *datarootdir*) ac_datarootdir_seen=yes;;
32059 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32060 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32061 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32062 _ACEOF
32063 cat >>$CONFIG_STATUS <<_ACEOF
32064 ac_datarootdir_hack='
32065 s&@datadir@&$datadir&g
32066 s&@docdir@&$docdir&g
32067 s&@infodir@&$infodir&g
32068 s&@localedir@&$localedir&g
32069 s&@mandir@&$mandir&g
32070 s&\\\${datarootdir}&$datarootdir&g' ;;
32071 esac
32072 _ACEOF
32074 # Neutralize VPATH when `$srcdir' = `.'.
32075 # Shell code in configure.ac might set extrasub.
32076 # FIXME: do we really want to maintain this feature?
32077 cat >>$CONFIG_STATUS <<_ACEOF
32078 sed "$ac_vpsub
32079 $extrasub
32080 _ACEOF
32081 cat >>$CONFIG_STATUS <<\_ACEOF
32083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32084 s&@configure_input@&$configure_input&;t t
32085 s&@top_builddir@&$ac_top_builddir_sub&;t t
32086 s&@srcdir@&$ac_srcdir&;t t
32087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32088 s&@top_srcdir@&$ac_top_srcdir&;t t
32089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32090 s&@builddir@&$ac_builddir&;t t
32091 s&@abs_builddir@&$ac_abs_builddir&;t t
32092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32093 s&@INSTALL@&$ac_INSTALL&;t t
32094 $ac_datarootdir_hack
32095 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32100 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32101 which seems to be undefined. Please make sure it is defined." >&5
32102 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32103 which seems to be undefined. Please make sure it is defined." >&2;}
32105 rm -f "$tmp/stdin"
32106 case $ac_file in
32107 -) cat "$tmp/out"; rm -f "$tmp/out";;
32108 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32109 esac
32113 # CONFIG_HEADER
32115 _ACEOF
32117 # Transform confdefs.h into a sed script `conftest.defines', that
32118 # substitutes the proper values into config.h.in to produce config.h.
32119 rm -f conftest.defines conftest.tail
32120 # First, append a space to every undef/define line, to ease matching.
32121 echo 's/$/ /' >conftest.defines
32122 # Then, protect against being on the right side of a sed subst, or in
32123 # an unquoted here document, in config.status. If some macros were
32124 # called several times there might be several #defines for the same
32125 # symbol, which is useless. But do not sort them, since the last
32126 # AC_DEFINE must be honored.
32127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32128 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32129 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32130 # PARAMS is the parameter list in the macro definition--in most cases, it's
32131 # just an empty string.
32132 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32133 ac_dB='\\)[ (].*,\\1define\\2'
32134 ac_dC=' '
32135 ac_dD=' ,'
32137 uniq confdefs.h |
32138 sed -n '
32139 t rset
32140 :rset
32141 s/^[ ]*#[ ]*define[ ][ ]*//
32142 t ok
32145 s/[\\&,]/\\&/g
32146 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32147 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32148 ' >>conftest.defines
32150 # Remove the space that was appended to ease matching.
32151 # Then replace #undef with comments. This is necessary, for
32152 # example, in the case of _POSIX_SOURCE, which is predefined and required
32153 # on some systems where configure will not decide to define it.
32154 # (The regexp can be short, since the line contains either #define or #undef.)
32155 echo 's/ $//
32156 s,^[ #]*u.*,/* & */,' >>conftest.defines
32158 # Break up conftest.defines:
32159 ac_max_sed_lines=50
32161 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32162 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32163 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32164 # et cetera.
32165 ac_in='$ac_file_inputs'
32166 ac_out='"$tmp/out1"'
32167 ac_nxt='"$tmp/out2"'
32169 while :
32171 # Write a here document:
32172 cat >>$CONFIG_STATUS <<_ACEOF
32173 # First, check the format of the line:
32174 cat >"\$tmp/defines.sed" <<\\CEOF
32175 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32176 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32178 :def
32179 _ACEOF
32180 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32181 echo 'CEOF
32182 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32183 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32184 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32185 grep . conftest.tail >/dev/null || break
32186 rm -f conftest.defines
32187 mv conftest.tail conftest.defines
32188 done
32189 rm -f conftest.defines conftest.tail
32191 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32192 cat >>$CONFIG_STATUS <<\_ACEOF
32193 if test x"$ac_file" != x-; then
32194 echo "/* $configure_input */" >"$tmp/config.h"
32195 cat "$ac_result" >>"$tmp/config.h"
32196 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32197 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32198 echo "$as_me: $ac_file is unchanged" >&6;}
32199 else
32200 rm -f $ac_file
32201 mv "$tmp/config.h" $ac_file
32203 else
32204 echo "/* $configure_input */"
32205 cat "$ac_result"
32207 rm -f "$tmp/out12"
32211 esac
32213 done # for ac_tag
32216 { (exit 0); exit 0; }
32217 _ACEOF
32218 chmod +x $CONFIG_STATUS
32219 ac_clean_files=$ac_clean_files_save
32222 # configure is writing to config.log, and then calls config.status.
32223 # config.status does its own redirection, appending to config.log.
32224 # Unfortunately, on DOS this fails, as config.log is still kept open
32225 # by configure, so config.status won't be able to write to it; its
32226 # output is simply discarded. So we exec the FD to /dev/null,
32227 # effectively closing config.log, so it can be properly (re)opened and
32228 # appended to by config.status. When coming back to configure, we
32229 # need to make the FD available again.
32230 if test "$no_create" != yes; then
32231 ac_cs_success=:
32232 ac_config_status_args=
32233 test "$silent" = yes &&
32234 ac_config_status_args="$ac_config_status_args --quiet"
32235 exec 5>/dev/null
32236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32237 exec 5>>config.log
32238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32239 # would make configure fail if this is the last instruction.
32240 $ac_cs_success || { (exit 1); exit 1; }
32244 if test "x${silent}" != "xyes" ; then
32245 echo
32246 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
32247 echo " .\$7\$7.. .7\$\$7:. "
32248 echo " .\$\$:. ,\$7.7 "
32249 echo " .\$7. 7\$\$\$\$ .\$\$77 "
32250 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
32251 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
32252 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
32253 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
32254 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
32255 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
32256 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
32257 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
32258 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
32259 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
32260 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
32261 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
32262 echo " \$\$\$\$\$ \$\$\$ "
32263 echo " \$\$\$\$7. \$\$ (TM) "
32264 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32265 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32266 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32267 echo
32270 { echo "$as_me:$LINENO: Package configured for: " >&5
32271 echo "$as_me: Package configured for: " >&6;}
32272 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32273 echo "$as_me: OS type : $host_os" >&6;}
32274 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32275 echo "$as_me: Host CPU : $host_cpu" >&6;}
32276 if test "${cross_compiling}" = "yes"; then
32277 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32278 echo "$as_me: Cross Compilation = YES" >&6;}